From 2352c744b65cf943e3fb6cd3ebbc7e08c3304fb5 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 10:36:03 -0700 Subject: [PATCH 01/19] Support fd-backed Android shared memory Use anonymous FDs for Android shared memory so clients can keep allocating and resizing buffers without relying on a device-visible shm directory. --- .github/scripts/android-test.sh | 2 - .github/scripts/cmake-android-test.sh | 2 - client/client.cc | 124 +- client/client.h | 14 +- client/client_channel.cc | 192 +- client/client_channel.h | 18 +- client/publisher.cc | 12 +- common/channel.cc | 14 +- common/channel.h | 8 +- common/client_buffer.h | 6 + common/split_buffer.cc | 91 +- docs/android.md | 38 +- proto/subspace.pb.cc | 28970 ++++++++++++++---------- proto/subspace.pb.h | 14067 +++++++----- proto/subspace.proto | 27 + server/client_handler.cc | 106 +- server/client_handler.h | 6 +- server/server.cc | 44 +- server/server_channel.cc | 37 +- server/server_channel.h | 42 +- server/shadow_replicator.cc | 23 +- server/shadow_replicator.h | 5 +- shadow/shadow.cc | 50 +- shadow/shadow.h | 5 +- 24 files changed, 26179 insertions(+), 17724 deletions(-) diff --git a/.github/scripts/android-test.sh b/.github/scripts/android-test.sh index e6bf59d..96c8a23 100755 --- a/.github/scripts/android-test.sh +++ b/.github/scripts/android-test.sh @@ -8,8 +8,6 @@ sleep 5 adb wait-for-device adb shell "while [[ -z \$(getprop sys.boot_completed) ]]; do sleep 1; done" -# Create shared memory directory -adb shell "mkdir -p /dev/subspace && chmod 777 /dev/subspace" adb shell "mkdir -p /data/local/tmp" # Collect shared libraries (dereference symlinks from bazel output) diff --git a/.github/scripts/cmake-android-test.sh b/.github/scripts/cmake-android-test.sh index 189ee67..5fe7187 100755 --- a/.github/scripts/cmake-android-test.sh +++ b/.github/scripts/cmake-android-test.sh @@ -10,8 +10,6 @@ sleep 5 adb wait-for-device adb shell "while [[ -z \$(getprop sys.boot_completed) ]]; do sleep 1; done" -# Create shared memory directory -adb shell "mkdir -p /dev/subspace && chmod 777 /dev/subspace" adb shell "mkdir -p /data/local/tmp" # Push libc++_shared.so from NDK (needed since we built with ANDROID_STL=c++_shared) diff --git a/client/client.cc b/client/client.cc index 9354723..558dc05 100644 --- a/client/client.cc +++ b/client/client.cc @@ -65,6 +65,27 @@ static void ToProto(const ClientBufferHandleMetadata &metadata, *proto->mutable_allocator_metadata() = metadata.allocator_metadata; } +static ClientBufferHandleMetadata +FromProto(const ClientBufferHandleMetadataProto &proto) { + ClientBufferHandleMetadata metadata; + metadata.channel_name = proto.channel_name(); + metadata.session_id = proto.session_id(); + metadata.buffer_index = proto.buffer_index(); + metadata.slot_id = proto.slot_id(); + metadata.is_prefix = proto.is_prefix(); + metadata.full_size = proto.full_size(); + metadata.allocation_size = proto.allocation_size(); + metadata.handle = static_cast(proto.handle()); + metadata.shadow_file = proto.shadow_file(); + metadata.object_name = proto.object_name(); + metadata.allocator = proto.allocator(); + metadata.pool_id = proto.pool_id(); + metadata.cache_enabled = proto.cache_enabled(); + metadata.alignment = proto.alignment(); + metadata.allocator_metadata = proto.allocator_metadata(); + return metadata; +} + ClientImpl::ClientLockGuard::ClientLockGuard(ClientImpl *client, LockMode lock_mode) : client_(client), lock_mode_(lock_mode) { @@ -344,8 +365,14 @@ ClientImpl::CreatePublisher(const std::string &channel_name, }, server_user_id_, server_group_id_); channel->SetClientBufferRegistrationCallback( - [this](const ClientBufferHandleMetadata &metadata) { - return RegisterClientBuffer(metadata); + [this](const ClientBufferHandleMetadata &metadata, + const toolbelt::FileDescriptor *fd) { + return RegisterClientBuffer(metadata, fd); + }); + channel->SetClientBufferLookupCallback( + [this](const std::string &channel_name, uint64_t session_id, + uint32_t buffer_index) { + return GetClientBuffers(channel_name, session_id, buffer_index); }); channel->SetClientBufferUnregistrationCallback( [this](const std::string &channel_name, uint64_t session_id, @@ -458,6 +485,11 @@ ClientImpl::CreateSubscriber(const std::string &channel_name, return CheckReload(static_cast(c)); }, server_user_id_, server_group_id_); + channel->SetClientBufferLookupCallback( + [this](const std::string &channel_name, uint64_t session_id, + uint32_t buffer_index) { + return GetClientBuffers(channel_name, session_id, buffer_index); + }); channel->SetNumSlots(sub_resp.num_slots()); { @@ -1765,7 +1797,8 @@ absl::Status ClientImpl::ReregisterSubscriber(SubscriberImpl *subscriber) { absl::Status ClientImpl::SendRequestReceiveResponse( const Request &req, Response &response, - std::vector &fds) { + std::vector &fds, + const std::vector &send_fds) { { size_t msg_len = req.ByteSizeLong(); @@ -1781,13 +1814,20 @@ absl::Status ClientImpl::SendRequestReceiveResponse( socket_.Close(); if (was_connected_ && !reconnecting_) { if (absl::Status rs = Reconnect(); rs.ok()) { - return SendRequestReceiveResponse(req, response, fds); + return SendRequestReceiveResponse(req, response, fds, send_fds); } else { return rs; } } return n.status(); } + if (!send_fds.empty()) { + absl::Status status = socket_.SendFds(send_fds, co_); + if (!status.ok()) { + socket_.Close(); + return status; + } + } } absl::StatusOr> recv_msg = @@ -1796,7 +1836,7 @@ absl::Status ClientImpl::SendRequestReceiveResponse( socket_.Close(); if (was_connected_ && !reconnecting_) { if (absl::Status rs = Reconnect(); rs.ok()) { - return SendRequestReceiveResponse(req, response, fds); + return SendRequestReceiveResponse(req, response, fds, send_fds); } else { return rs; } @@ -1817,7 +1857,9 @@ absl::Status ClientImpl::SendRequestReceiveResponse( return s; } -absl::Status ClientImpl::SendOneWayRequest(const Request &req) { +absl::Status +ClientImpl::SendOneWayRequest(const Request &req, + const std::vector &fds) { size_t msg_len = req.ByteSizeLong(); std::vector send_msg(sizeof(int32_t) + msg_len); char *sendbuf = send_msg.data() + sizeof(int32_t); @@ -1831,21 +1873,83 @@ absl::Status ClientImpl::SendOneWayRequest(const Request &req) { socket_.Close(); if (was_connected_ && !reconnecting_) { if (absl::Status rs = Reconnect(); rs.ok()) { - return SendOneWayRequest(req); + return SendOneWayRequest(req, fds); } else { return rs; } } return n.status(); } + if (!fds.empty()) { + absl::Status status = socket_.SendFds(fds, co_); + if (!status.ok()) { + socket_.Close(); + return status; + } + } return absl::OkStatus(); } absl::Status ClientImpl::RegisterClientBuffer( - const ClientBufferHandleMetadata &metadata) { + const ClientBufferHandleMetadata &metadata, + const toolbelt::FileDescriptor *fd) { Request req; - ToProto(metadata, req.mutable_register_client_buffer()->mutable_metadata()); - return SendOneWayRequest(req); + auto *register_buffer = req.mutable_register_client_buffer(); + ToProto(metadata, register_buffer->mutable_metadata()); + std::vector fds; + if (fd != nullptr && fd->Valid()) { + register_buffer->set_has_fd(true); + register_buffer->set_fd_index(0); + fds.push_back(*fd); + } + Response response; + std::vector response_fds; + if (absl::Status status = + SendRequestReceiveResponse(req, response, response_fds, fds); + !status.ok()) { + return status; + } + if (!response.register_client_buffer().error().empty()) { + return absl::InternalError(response.register_client_buffer().error()); + } + return absl::OkStatus(); +} + +absl::StatusOr> +ClientImpl::GetClientBuffers(const std::string &channel_name, + uint64_t session_id, uint32_t buffer_index) { + Request req; + auto *get = req.mutable_get_client_buffers(); + get->set_channel_name(channel_name); + get->set_session_id(session_id); + get->set_buffer_index(buffer_index); + + Response response; + std::vector fds; + if (absl::Status status = SendRequestReceiveResponse(req, response, fds); + !status.ok()) { + return status; + } + const auto &get_resp = response.get_client_buffers(); + if (!get_resp.error().empty()) { + return absl::InternalError(get_resp.error()); + } + if (get_resp.metadata_size() != get_resp.fd_indexes_size()) { + return absl::InternalError("Malformed client buffer response"); + } + std::vector result; + result.reserve(get_resp.metadata_size()); + for (int i = 0; i < get_resp.metadata_size(); ++i) { + RegisteredClientBuffer buffer{ + .metadata = FromProto(get_resp.metadata(i)), + }; + int fd_index = get_resp.fd_indexes(i); + if (fd_index >= 0 && static_cast(fd_index) < fds.size()) { + buffer.fd = std::move(fds[size_t(fd_index)]); + } + result.push_back(std::move(buffer)); + } + return result; } absl::Status diff --git a/client/client.h b/client/client.h index 23a458b..d9c81c5 100644 --- a/client/client.h +++ b/client/client.h @@ -543,10 +543,18 @@ class ClientImpl : public std::enable_shared_from_this { absl::Status CheckConnected() const; absl::Status SendRequestReceiveResponse(const Request &req, Response &response, - std::vector &fds); - absl::Status SendOneWayRequest(const Request &req); + std::vector &fds, + const std::vector + &send_fds = {}); + absl::Status + SendOneWayRequest(const Request &req, + const std::vector &fds = {}); absl::Status RegisterClientBuffer( - const ClientBufferHandleMetadata &metadata); + const ClientBufferHandleMetadata &metadata, + const toolbelt::FileDescriptor *fd = nullptr); + absl::StatusOr> + GetClientBuffers(const std::string &channel_name, uint64_t session_id, + uint32_t buffer_index); absl::Status UnregisterClientBuffer(const std::string &channel_name, uint64_t session_id, uint32_t buffer_index); diff --git a/client/client_channel.cc b/client/client_channel.cc index ce0e4f5..00cfab3 100644 --- a/client/client_channel.cc +++ b/client/client_channel.cc @@ -12,6 +12,12 @@ #include #include #include +#if defined(__ANDROID__) +#include +#ifndef MFD_CLOEXEC +#define MFD_CLOEXEC 0x0001U +#endif +#endif #include #include #include @@ -276,7 +282,9 @@ absl::Status ClientChannel::AttachShmBuffers(int num_buffers) { } else { addr = nullptr; } - buffers_.emplace_back(std::make_unique(*size, slot_size, *addr)); + auto buffer_set = std::make_unique(*size, slot_size, *addr); + buffer_set->fd = std::move(*shm_fd); + buffers_.push_back(std::move(buffer_set)); } return absl::OkStatus(); } @@ -386,34 +394,81 @@ ClientChannel::CreateBuffer(int buffer_index, size_t size) { } #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID +static absl::StatusOr +CreateAnonymousSharedMemory(const std::string &name, size_t size) { +#ifdef __NR_memfd_create + int fd = static_cast(syscall( + __NR_memfd_create, name.c_str(), static_cast(MFD_CLOEXEC))); + if (fd == -1) { + return absl::InternalError(absl::StrFormat( + "Failed to create anonymous shared memory %s: %s", name, + strerror(errno))); + } + toolbelt::FileDescriptor shm_fd(fd); + if (GetSyscallShim().ftruncate_fn(shm_fd.Fd(), off_t(size)) == -1) { + return absl::InternalError(absl::StrFormat( + "Failed to size anonymous shared memory %s: %s", name, + strerror(errno))); + } + return shm_fd; +#else + return absl::UnimplementedError("memfd_create is not available"); +#endif +} + absl::StatusOr ClientChannel::CreateAndroidBuffer(const std::string &filename, size_t size) { - auto &shim = GetSyscallShim(); - // On Android, use regular files in the SHM directory. The file persists so - // that subscribers in other processes can open it by path. - auto shm_fd = OpenSharedMemoryFile(filename, O_RDWR | O_CREAT | O_EXCL); + auto shm_fd = CreateAnonymousSharedMemory(filename, size); if (!shm_fd.ok()) { return shm_fd.status(); } - if (!shm_fd->Valid()) { - return *shm_fd; + if (client_buffer_registration_callback_) { + ClientBufferHandleMetadata metadata = { + .channel_name = ResolvedName(), + .session_id = session_id_, + .buffer_index = static_cast(buffers_.size()), + .slot_id = 0, + .is_prefix = false, + .full_size = size, + .allocation_size = size, + .handle = static_cast(shm_fd->Fd()), + .allocator = "android_memfd", + }; + if (absl::Status status = + client_buffer_registration_callback_(metadata, &*shm_fd); + !status.ok()) { + return status; + } } - int e = shim.ftruncate_fn(shm_fd->Fd(), off_t(size)); - if (e == -1) { - (void)unlink(filename.c_str()); - return absl::InternalError( - absl::StrFormat("Failed to set length of shared memory %s: %s", - filename, strerror(errno))); - } + return *shm_fd; +} - if (shim.chmod_fn(filename.c_str(), 0777) == -1) { - return absl::InternalError( - absl::StrFormat("Failed to change permissions of shared memory %s: %s", - filename, strerror(errno))); +absl::StatusOr +ClientChannel::GetRegisteredClientBuffer(uint32_t buffer_index, bool is_prefix, + uint32_t slot_id) { + if (!client_buffer_lookup_callback_) { + return absl::InternalError("No client buffer lookup callback registered"); + } + absl::StatusOr> buffers = + client_buffer_lookup_callback_(ResolvedName(), session_id_, buffer_index); + if (!buffers.ok()) { + return buffers.status(); + } + for (RegisteredClientBuffer &buffer : *buffers) { + if (buffer.metadata.is_prefix == is_prefix && + buffer.metadata.slot_id == slot_id) { + if (!buffer.fd.Valid()) { + return absl::InternalError(absl::StrFormat( + "Registered client buffer %s/%u/%u missing FD", ResolvedName(), + buffer_index, slot_id)); + } + return std::move(buffer); + } } - - return *shm_fd; + return absl::NotFoundError(absl::StrFormat( + "No registered client buffer for %s buffer %u slot %u prefix %d", + ResolvedName(), buffer_index, slot_id, is_prefix)); } #endif @@ -534,13 +589,21 @@ ClientChannel::CreateSplitBufferSet(size_t buffer_index, size_t full_size, .shadow_file = prefix_name, .object_name = SplitBufferObjectName(prefix_name), }; +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + auto prefix_fd = + CreateAnonymousSharedMemory(prefix_metadata.object_name, + prefix_metadata.allocation_size); +#else auto prefix_fd = CreateSplitSharedMemoryBuffer(prefix_metadata); +#endif if (!prefix_fd.ok()) { return prefix_fd.status(); } +#if SUBSPACE_SHMEM_MODE != SUBSPACE_SHMEM_MODE_ANDROID if (!prefix_fd->Valid()) { return OpenSplitBufferSet(buffer_index, full_size, slot_size); } +#endif auto prefix_addr = MapBuffer(*prefix_fd, prefix_metadata.allocation_size, BufferMapMode::kReadWrite); @@ -548,13 +611,16 @@ ClientChannel::CreateSplitBufferSet(size_t buffer_index, size_t full_size, return prefix_addr.status(); } prefix_metadata.handle = static_cast(prefix_fd->Fd()); +#if SUBSPACE_SHMEM_MODE != SUBSPACE_SHMEM_MODE_ANDROID if (absl::Status status = WriteSplitBufferMetadataFile(prefix_metadata); !status.ok()) { return status; } +#endif if (client_buffer_registration_callback_) { if (absl::Status status = client_buffer_registration_callback_( - ClientBufferFromSplitMetadata(prefix_metadata, "split_shm")); + ClientBufferFromSplitMetadata(prefix_metadata, "split_shm"), + &*prefix_fd); !status.ok()) { (void)DestroySplitSharedMemoryBuffer(prefix_metadata); return status; @@ -608,15 +674,23 @@ ClientChannel::CreateSplitBufferSet(size_t buffer_index, size_t full_size, metadata.handle = slot_handle; metadata.allocation_size = slot_mapped_size; } else { +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + auto created_fd = + CreateAnonymousSharedMemory(metadata.object_name, + metadata.allocation_size); +#else auto created_fd = CreateSplitSharedMemoryBuffer(metadata); +#endif if (!created_fd.ok()) { return created_fd.status(); } +#if SUBSPACE_SHMEM_MODE != SUBSPACE_SHMEM_MODE_ANDROID if (!created_fd->Valid()) { return absl::InternalError(absl::StrFormat( "Split buffer slot already exists for channel %s slot %d", ResolvedName(), slot)); } +#endif auto addr = MapBuffer(*created_fd, payload_size, MapMode()); if (!addr.ok()) { return addr.status(); @@ -626,15 +700,18 @@ ClientChannel::CreateSplitBufferSet(size_t buffer_index, size_t full_size, slot_fd.emplace(std::move(*created_fd)); metadata.handle = slot_handle; } +#if SUBSPACE_SHMEM_MODE != SUBSPACE_SHMEM_MODE_ANDROID if (absl::Status status = WriteSplitBufferMetadataFile(metadata); !status.ok()) { return status; } +#endif if (client_buffer_registration_callback_) { if (absl::Status status = client_buffer_registration_callback_( ClientBufferFromSplitMetadata( metadata, buffer->uses_split_callbacks ? "split_callback" - : "split_shm")); + : "split_shm"), + slot_fd.has_value() ? &*slot_fd : nullptr); !status.ok()) { return status; } @@ -660,6 +737,25 @@ ClientChannel::OpenSplitBufferSet(size_t buffer_index, size_t full_size, std::string metadata_base = base.empty() || base[0] == '/' ? base : "/tmp/" + base; std::string prefix_name = metadata_base + "_prefix"; +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + absl::StatusOr prefix_registered = + GetRegisteredClientBuffer(static_cast(buffer_index), + /*is_prefix=*/true, /*slot_id=*/0); + if (!prefix_registered.ok()) { + return prefix_registered.status(); + } + auto prefix_addr = + MapBuffer(prefix_registered->fd, prefix_registered->metadata.allocation_size, + BufferMapMode::kReadWrite); + if (!prefix_addr.ok()) { + return prefix_addr.status(); + } + buffer->split_prefix_fd = std::move(prefix_registered->fd); + buffer->split_prefix_buffer = *prefix_addr; + buffer->split_prefix_buffer_size = + prefix_registered->metadata.allocation_size; + buffer->split_prefix_metadata = std::move(prefix_registered->metadata); +#else auto prefix_metadata = ReadSplitBufferMetadataFileWithRetry(prefix_name); if (!prefix_metadata.ok()) { return prefix_metadata.status(); @@ -678,6 +774,7 @@ ClientChannel::OpenSplitBufferSet(size_t buffer_index, size_t full_size, buffer->split_prefix_buffer = *prefix_addr; buffer->split_prefix_buffer_size = prefix_metadata->allocation_size; buffer->split_prefix_metadata = std::move(*prefix_metadata); +#endif buffer->split_slot_buffers.resize(NumSlots(), nullptr); buffer->split_slot_sizes.resize(NumSlots(), payload_size); buffer->split_handles.resize(NumSlots(), 0); @@ -686,17 +783,29 @@ ClientChannel::OpenSplitBufferSet(size_t buffer_index, size_t full_size, buffer->split_fds.reserve(NumSlots()); buffer->uses_split_callbacks = static_cast(SplitBuffersCallbacks().map); for (int slot = 0; slot < NumSlots(); slot++) { +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + absl::StatusOr registered = + GetRegisteredClientBuffer(static_cast(buffer_index), + /*is_prefix=*/false, + static_cast(slot)); + if (!registered.ok()) { + return registered.status(); + } + SplitBufferMetadata metadata = std::move(registered->metadata); +#else std::string shadow_file = absl::StrFormat("%s_slot_%d", metadata_base, slot); - auto metadata = ReadSplitBufferMetadataFileWithRetry(shadow_file); - if (!metadata.ok()) { - return metadata.status(); + auto metadata_or = ReadSplitBufferMetadataFileWithRetry(shadow_file); + if (!metadata_or.ok()) { + return metadata_or.status(); } + SplitBufferMetadata metadata = std::move(*metadata_or); +#endif char *slot_addr = nullptr; - uintptr_t slot_handle = metadata->handle; + uintptr_t slot_handle = metadata.handle; uint64_t slot_mapped_size = payload_size; void *slot_private_data = nullptr; if (SplitBuffersCallbacks().map) { - auto mapping = SplitBuffersCallbacks().map(*metadata); + auto mapping = SplitBuffersCallbacks().map(metadata); if (!mapping.ok()) { return mapping.status(); } @@ -705,29 +814,34 @@ ClientChannel::OpenSplitBufferSet(size_t buffer_index, size_t full_size, "Split buffer map callback returned an empty mapping"); } slot_addr = static_cast(mapping->address); - slot_handle = mapping->handle == 0 ? metadata->handle : mapping->handle; + slot_handle = mapping->handle == 0 ? metadata.handle : mapping->handle; slot_mapped_size = mapping->size == 0 ? payload_size : static_cast(mapping->size); slot_private_data = mapping->private_data; } else { - auto slot_fd = OpenSplitSharedMemoryBuffer(*metadata, O_RDWR); - if (!slot_fd.ok()) { - return slot_fd.status(); +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + toolbelt::FileDescriptor slot_fd = std::move(registered->fd); +#else + auto slot_fd_or = OpenSplitSharedMemoryBuffer(metadata, O_RDWR); + if (!slot_fd_or.ok()) { + return slot_fd_or.status(); } - auto addr = MapBuffer(*slot_fd, payload_size, MapMode()); + toolbelt::FileDescriptor slot_fd = std::move(*slot_fd_or); +#endif + auto addr = MapBuffer(slot_fd, payload_size, MapMode()); if (!addr.ok()) { return addr.status(); } slot_addr = *addr; - slot_handle = static_cast(slot_fd->Fd()); - buffer->split_fds.push_back(std::move(*slot_fd)); + slot_handle = static_cast(slot_fd.Fd()); + buffer->split_fds.push_back(std::move(slot_fd)); } buffer->split_handles[slot] = slot_handle; buffer->split_slot_buffers[slot] = slot_addr; buffer->split_slot_sizes[slot] = slot_mapped_size; buffer->split_private_data[slot] = slot_private_data; - buffer->split_metadata.push_back(std::move(*metadata)); + buffer->split_metadata.push_back(std::move(metadata)); } return buffer; } @@ -736,7 +850,13 @@ absl::StatusOr ClientChannel::OpenBuffer(int buffer_index) { std::string filename = BufferSharedMemoryName(buffer_index); #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - return OpenSharedMemoryFile(filename, O_RDWR); + absl::StatusOr buffer = + GetRegisteredClientBuffer(static_cast(buffer_index), + /*is_prefix=*/false, /*slot_id=*/0); + if (!buffer.ok()) { + return buffer.status(); + } + return std::move(buffer->fd); #elif SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_LINUX // Open the shared memory file. return OpenSharedMemoryFile(filename, O_RDWR); diff --git a/client/client_channel.h b/client/client_channel.h index f92b99f..145b423 100644 --- a/client/client_channel.h +++ b/client/client_channel.h @@ -62,6 +62,7 @@ struct BufferSet { uint64_t full_size = 0; uint64_t slot_size = 0; char *buffer = nullptr; + toolbelt::FileDescriptor fd; char *split_prefix_buffer = nullptr; uint64_t split_prefix_buffer_size = 0; std::vector split_slot_buffers; @@ -310,10 +311,16 @@ class ClientChannel : public Channel { } void SetClientBufferRegistrationCallback( - std::function + std::function callback) { client_buffer_registration_callback_ = std::move(callback); } + void SetClientBufferLookupCallback( + std::function>( + const std::string &, uint64_t, uint32_t)> callback) { + client_buffer_lookup_callback_ = std::move(callback); + } void SetClientBufferUnregistrationCallback( std::function callback) { @@ -360,6 +367,9 @@ class ClientChannel : public Channel { #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID absl::StatusOr CreateAndroidBuffer(const std::string &filename, size_t size); + absl::StatusOr + GetRegisteredClientBuffer(uint32_t buffer_index, bool is_prefix, + uint32_t slot_id); #elif SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_LINUX absl::StatusOr CreateLinuxBuffer(const std::string &filename, size_t size); @@ -382,8 +392,12 @@ class ClientChannel : public Channel { MessageSlot *slot_ = nullptr; // Current slot. int vchan_id_ = -1; // Virtual channel ID. uint64_t session_id_; - std::function + std::function client_buffer_registration_callback_ = nullptr; + std::function>( + const std::string &, uint64_t, uint32_t)> + client_buffer_lookup_callback_ = nullptr; std::function client_buffer_unregistration_callback_ = nullptr; std::vector> buffers_ = {}; diff --git a/client/publisher.cc b/client/publisher.cc index b925ec8..71cff2c 100644 --- a/client/publisher.cc +++ b/client/publisher.cc @@ -63,8 +63,10 @@ absl::Status PublisherImpl::CreateOrAttachBuffers(uint64_t final_slot_size) { } else { addr = nullptr; } - buffers_.emplace_back( - std::make_unique(*size, current_slot_size, *addr)); + auto buffer_set = + std::make_unique(*size, current_slot_size, *addr); + buffer_set->fd = std::move(*shm_fd); + buffers_.push_back(std::move(buffer_set)); bcb_->sizes[buffers_.size()].store(final_buffer_size, std::memory_order_relaxed); } else { @@ -76,8 +78,10 @@ absl::Status PublisherImpl::CreateOrAttachBuffers(uint64_t final_slot_size) { if (!addr.ok()) { return addr.status(); } - buffers_.emplace_back(std::make_unique( - final_buffer_size, final_slot_size, *addr)); + auto buffer_set = std::make_unique( + final_buffer_size, final_slot_size, *addr); + buffer_set->fd = std::move(*shm_fd); + buffers_.push_back(std::move(buffer_set)); current_slot_size = final_slot_size; } } diff --git a/common/channel.cc b/common/channel.cc index 2c7343f..117051c 100644 --- a/common/channel.cc +++ b/common/channel.cc @@ -23,14 +23,6 @@ namespace subspace { -#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID -static std::string g_android_shm_dir = kDefaultAndroidShmDir; - -const std::string &GetAndroidShmDir() { return g_android_shm_dir; } - -void SetAndroidShmDir(const std::string &dir) { g_android_shm_dir = dir; } -#endif - // Set this to 1 to print the memory mapping and unmapping calls. #define SHOW_MMAPS 0 @@ -127,10 +119,8 @@ std::string Channel::BufferSharedMemoryName(uint64_t session_id, absl::StrReplaceAll(ResolvedName(), {{"/", "."}}); #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - // On Android, use full paths in the configured SHM directory so that - // publishers and subscribers in different processes can open by path. - return absl::StrFormat("%s/subspace_%d_%s_%d", GetAndroidShmDir(), session_id, - sanitized_name, buffer_index); + return absl::StrFormat("subspace_%d_%s_%d", session_id, sanitized_name, + buffer_index); #elif defined(__APPLE__) // Since you can't actually see any shared memory names in the MacOS // filesystem we need to use /tmp to create a shadow file that is mapped to a diff --git a/common/channel.h b/common/channel.h index d626c74..1d94dfe 100644 --- a/common/channel.h +++ b/common/channel.h @@ -29,7 +29,7 @@ namespace subspace { // Change this if you want to use a different shared memory mode. #if defined(__ANDROID__) -// Android does not have /dev/shm; use regular files on a tmpfs-backed dir. +// Android does not have /dev/shm; use anonymous fd-backed shared memory. #define SUBSPACE_SHMEM_MODE SUBSPACE_SHMEM_MODE_ANDROID #elif defined(__linux__) // On Linux we can use /dev/shm directly for shared memory. @@ -40,12 +40,6 @@ namespace subspace { #define SUBSPACE_SHMEM_MODE SUBSPACE_SHMEM_MODE_POSIX #endif -#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID -constexpr const char *kDefaultAndroidShmDir = "/dev/subspace"; -const std::string &GetAndroidShmDir(); -void SetAndroidShmDir(const std::string &dir); -#endif - // Flag for flags field in MessagePrefix. constexpr int kMessageActivate = 1; // This is a reliable activation message. constexpr int kMessageBridged = 2; // This message came from the bridge. diff --git a/common/client_buffer.h b/common/client_buffer.h index e434b7c..ff3bfc0 100644 --- a/common/client_buffer.h +++ b/common/client_buffer.h @@ -5,6 +5,7 @@ #pragma once #include "google/protobuf/any.pb.h" +#include "toolbelt/fd.h" #include #include @@ -32,4 +33,9 @@ struct ClientBufferHandleMetadata { google::protobuf::Any allocator_metadata; }; +struct RegisteredClientBuffer { + ClientBufferHandleMetadata metadata; + toolbelt::FileDescriptor fd; +}; + } // namespace subspace diff --git a/common/split_buffer.cc b/common/split_buffer.cc index 5011cb7..6dfbde4 100644 --- a/common/split_buffer.cc +++ b/common/split_buffer.cc @@ -13,13 +13,65 @@ #include #include #include +#include #include #include +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID +#include +#include +#ifndef MFD_CLOEXEC +#define MFD_CLOEXEC 0x0001U +#endif +#endif #include namespace subspace { namespace { +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID +std::mutex &AndroidSplitBufferMutex() { + static std::mutex mutex; + return mutex; +} + +std::unordered_map &AndroidSplitBufferFds() { + static std::unordered_map fds; + return fds; +} + +absl::StatusOr +CreateAndroidAnonymousObject(const std::string &name, uint64_t size) { + std::lock_guard lock(AndroidSplitBufferMutex()); + auto &fds = AndroidSplitBufferFds(); + if (fds.find(name) != fds.end()) { + return toolbelt::FileDescriptor(); + } +#ifdef __NR_memfd_create + int fd = static_cast(syscall( + __NR_memfd_create, name.c_str(), static_cast(MFD_CLOEXEC))); + if (fd == -1) { + return absl::InternalError(absl::StrFormat( + "Failed to create split buffer object %s: %s", name, strerror(errno))); + } +#else + return absl::UnimplementedError("memfd_create is not available"); +#endif + if (GetSyscallShim().ftruncate_fn(fd, static_cast(size)) == -1) { + close(fd); + return absl::InternalError(absl::StrFormat( + "Failed to size split buffer object %s: %s", name, strerror(errno))); + } + int kept_fd = dup(fd); + if (kept_fd == -1) { + close(fd); + return absl::InternalError(absl::StrFormat( + "Failed to retain split buffer object %s: %s", name, strerror(errno))); + } + fds.emplace(name, kept_fd); + return toolbelt::FileDescriptor(fd); +} +#endif + absl::Status WriteAll(int fd, const std::string &contents, const std::string &path) { const char *p = contents.data(); @@ -171,13 +223,14 @@ std::string SplitBufferObjectName(const std::string &shadow_file) { absl::StatusOr CreateSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata) { #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - std::string path = GetAndroidShmDir() + "/" + metadata.object_name; - int fd = GetSyscallShim().open_fn(path.c_str(), - O_RDWR | O_CREAT | O_EXCL, 0666); + uint64_t allocation_size = + metadata.allocation_size != 0 ? metadata.allocation_size + : PageAlignedSize(metadata.full_size); + return CreateAndroidAnonymousObject(metadata.object_name, + PageAlignedSize(allocation_size)); #else int fd = GetSyscallShim().shm_open_fn(metadata.object_name.c_str(), O_RDWR | O_CREAT | O_EXCL, 0666); -#endif if (fd == -1) { if (errno == EEXIST) { return toolbelt::FileDescriptor(); @@ -204,13 +257,26 @@ CreateSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata) { } return shm_fd; +#endif } absl::StatusOr OpenSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata, int flags) { #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - std::string path = GetAndroidShmDir() + "/" + metadata.object_name; - int fd = GetSyscallShim().open_fn(path.c_str(), flags, 0666); + std::lock_guard lock(AndroidSplitBufferMutex()); + auto &fds = AndroidSplitBufferFds(); + auto it = fds.find(metadata.object_name); + if (it == fds.end()) { + return absl::NotFoundError(absl::StrFormat( + "Failed to open split buffer object %s: not found", + metadata.object_name)); + } + int fd = dup(it->second); + if (fd == -1) { + return absl::InternalError(absl::StrFormat( + "Failed to duplicate split buffer object %s: %s", + metadata.object_name, strerror(errno))); + } #else int fd = GetSyscallShim().shm_open_fn(metadata.object_name.c_str(), flags, 0666); @@ -227,16 +293,23 @@ absl::Status DestroySplitSharedMemoryBuffer( const SplitBufferMetadata &metadata) { absl::Status status = absl::OkStatus(); #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - std::string path = GetAndroidShmDir() + "/" + metadata.object_name; - if (unlink(path.c_str()) == -1 && errno != ENOENT) { + { + std::lock_guard lock(AndroidSplitBufferMutex()); + auto &fds = AndroidSplitBufferFds(); + auto it = fds.find(metadata.object_name); + if (it != fds.end()) { + close(it->second); + fds.erase(it); + } + } #else if (GetSyscallShim().shm_unlink_fn(metadata.object_name.c_str()) == -1 && errno != ENOENT) { -#endif status = absl::InternalError(absl::StrFormat( "Failed to unlink split buffer object %s: %s", metadata.object_name, strerror(errno))); } +#endif if (unlink(metadata.shadow_file.c_str()) == -1 && errno != ENOENT && status.ok()) { status = absl::InternalError(absl::StrFormat( diff --git a/docs/android.md b/docs/android.md index a62f7da..a09773d 100644 --- a/docs/android.md +++ b/docs/android.md @@ -72,19 +72,6 @@ The emulator with `google_apis` images supports `adb root`: adb root ``` -### Create shared memory directory - -Subspace on Android uses regular files in a tmpfs-backed directory instead of -POSIX `shm_open` (which is unavailable on Android). The default directory is -`/dev/subspace` (defined by `kDefaultAndroidShmDir` in `common/channel.h`). - -```bash -adb shell "mkdir -p /dev/subspace && chmod 777 /dev/subspace" -``` - -Without this directory, any channel creation will fail with a file-not-found -error. - ### Socket path The default server socket on Android is `/data/local/tmp/subspace` (defined by @@ -122,8 +109,8 @@ adb push bazel-bin/plugins/split_buffer_free_test_plugin.so /data/local/tmp/plug adb shell "cd /data/local/tmp && ./subspace_server &" ``` -The server uses the default socket `/data/local/tmp/subspace` and shared memory -directory `/dev/subspace` on Android. No flags are needed for local operation. +The server uses the default socket `/data/local/tmp/subspace` on Android. Shared +memory is fd-backed and does not require a device-visible directory. ### Run tests @@ -148,21 +135,20 @@ adb shell "cd /data/local/tmp && LD_LIBRARY_PATH=/data/local/tmp/android_libs \ Android lacks POSIX shared memory (`shm_open`/`shm_unlink`). Subspace uses `SUBSPACE_SHMEM_MODE_ANDROID` (defined in `common/channel.h`) which: -- Creates regular files in the `kDefaultAndroidShmDir` (`/dev/subspace`) - directory using `open()`/`mkstemp()` instead of `shm_open()` -- Uses `ftruncate()` + `mmap()` on those files (same as POSIX shm) +- Creates anonymous `memfd_create()` regions for the SCB, CCB, BCB, and + client-owned message buffers. +- Sizes them with `ftruncate()` and maps them with `mmap()`. - Passes file descriptors between processes via Unix domain sockets - (`SCM_RIGHTS`) -- Cleans up with `unlink()` instead of `shm_unlink()` - -The directory should be on a tmpfs mount for performance. On the emulator, -`/dev/` is typically tmpfs-backed. + (`SCM_RIGHTS`). +- Keeps client-side buffer allocation and resize by registering publisher-owned + buffer FDs with the server, which brokers them to subscribers. ### Split Buffers -Split buffer shared memory (`common/split_buffer.cc`) also uses the Android shm -directory for its backing files, following the same pattern as regular channel -buffers. +Built-in split buffers also use anonymous FDs. The publisher registers the +prefix and slot FDs with the server; subscribers fetch those descriptors when +attaching to a new buffer generation. Custom split-buffer callbacks continue to +use the callback-provided handles. ### Linker Namespaces diff --git a/proto/subspace.pb.cc b/proto/subspace.pb.cc index 5a09bc9..2a5c5c8 100644 --- a/proto/subspace.pb.cc +++ b/proto/subspace.pb.cc @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: subspace.proto -// Protobuf C++ Version: 5.29.5 +// Protobuf C++ Version: 6.33.4 #include "subspace.pb.h" @@ -25,10 +25,10 @@ namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; namespace subspace { - template +template PROTOBUF_CONSTEXPR VoidMessage::VoidMessage(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} + : ::google::protobuf::internal::ZeroFieldsBase(VoidMessage_class_data_.base()){} #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase() { } @@ -46,17 +46,17 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr UnregisterClientBufferRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), session_id_{::uint64_t{0u}}, - buffer_index_{0u}, - _cached_size_{0} {} + buffer_index_{0u} {} template PROTOBUF_CONSTEXPR UnregisterClientBufferRequest::UnregisterClientBufferRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(UnregisterClientBufferRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -75,20 +75,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowUpdateChannelOptions::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), has_split_buffer_options_{false}, use_split_buffers_{false}, has_max_publishers_{false}, split_buffers_over_bridge_{false}, - max_publishers_{0}, - _cached_size_{0} {} + max_publishers_{0} {} template PROTOBUF_CONSTEXPR ShadowUpdateChannelOptions::ShadowUpdateChannelOptions(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowUpdateChannelOptions_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -107,17 +107,17 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowUnregisterClientBuffer::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), session_id_{::uint64_t{0u}}, - buffer_index_{0u}, - _cached_size_{0} {} + buffer_index_{0u} {} template PROTOBUF_CONSTEXPR ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowUnregisterClientBuffer_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -136,14 +136,14 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowStateDump::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : session_id_{::uint64_t{0u}}, - num_channels_{0}, - _cached_size_{0} {} + : _cached_size_{0}, + session_id_{::uint64_t{0u}}, + num_channels_{0} {} template PROTOBUF_CONSTEXPR ShadowStateDump::ShadowStateDump(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowStateDump_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -159,10 +159,10 @@ struct ShadowStateDumpDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowStateDumpDefaultTypeInternal _ShadowStateDump_default_instance_; - template +template PROTOBUF_CONSTEXPR ShadowStateDone::ShadowStateDone(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} + : ::google::protobuf::internal::ZeroFieldsBase(ShadowStateDone_class_data_.base()){} #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase() { } @@ -180,16 +180,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowRemoveSubscriber::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - subscriber_id_{0}, - _cached_size_{0} {} + subscriber_id_{0} {} template PROTOBUF_CONSTEXPR ShadowRemoveSubscriber::ShadowRemoveSubscriber(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowRemoveSubscriber_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -208,16 +208,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowRemovePublisher::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - publisher_id_{0}, - _cached_size_{0} {} + publisher_id_{0} {} template PROTOBUF_CONSTEXPR ShadowRemovePublisher::ShadowRemovePublisher(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowRemovePublisher_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -236,16 +236,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowRemoveChannel::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - channel_id_{0}, - _cached_size_{0} {} + channel_id_{0} {} template PROTOBUF_CONSTEXPR ShadowRemoveChannel::ShadowRemoveChannel(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowRemoveChannel_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -264,13 +264,13 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowInit::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : session_id_{::uint64_t{0u}}, - _cached_size_{0} {} + : _cached_size_{0}, + session_id_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR ShadowInit::ShadowInit(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowInit_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -289,7 +289,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowCreateChannel::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), type_( @@ -311,13 +312,12 @@ inline constexpr ShadowCreateChannel::Impl_::Impl_( use_split_buffers_{false}, has_max_publishers_{false}, split_buffers_over_bridge_{false}, - max_publishers_{0}, - _cached_size_{0} {} + max_publishers_{0} {} template PROTOBUF_CONSTEXPR ShadowCreateChannel::ShadowCreateChannel(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowCreateChannel_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -336,20 +336,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowAddSubscriber::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), subscriber_id_{0}, is_reliable_{false}, is_bridge_{false}, for_tunnel_{false}, - max_active_messages_{0}, - _cached_size_{0} {} + max_active_messages_{0} {} template PROTOBUF_CONSTEXPR ShadowAddSubscriber::ShadowAddSubscriber(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowAddSubscriber_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -368,7 +368,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowAddPublisher::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), publisher_id_{0}, @@ -377,13 +378,12 @@ inline constexpr ShadowAddPublisher::Impl_::Impl_( is_bridge_{false}, is_fixed_size_{false}, notify_retirement_{false}, - for_tunnel_{false}, - _cached_size_{0} {} + for_tunnel_{false} {} template PROTOBUF_CONSTEXPR ShadowAddPublisher::ShadowAddPublisher(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowAddPublisher_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -402,18 +402,18 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RpcOpenResponse_ResponseChannel::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : name_( + : _cached_size_{0}, + name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), type_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcOpenResponse_ResponseChannel_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -432,20 +432,20 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RpcOpenResponse_RequestChannel::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : name_( + : _cached_size_{0}, + name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), type_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), slot_size_{0}, - num_slots_{0}, - _cached_size_{0} {} + num_slots_{0} {} template PROTOBUF_CONSTEXPR RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcOpenResponse_RequestChannel_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -461,10 +461,10 @@ struct RpcOpenResponse_RequestChannelDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenResponse_RequestChannelDefaultTypeInternal _RpcOpenResponse_RequestChannel_default_instance_; - template +template PROTOBUF_CONSTEXPR RpcOpenRequest::RpcOpenRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} + : ::google::protobuf::internal::ZeroFieldsBase(RpcOpenRequest_class_data_.base()){} #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase() { } @@ -479,10 +479,10 @@ struct RpcOpenRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenRequestDefaultTypeInternal _RpcOpenRequest_default_instance_; - template +template PROTOBUF_CONSTEXPR RpcCloseResponse::RpcCloseResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(_class_data_.base()){} + : ::google::protobuf::internal::ZeroFieldsBase(RpcCloseResponse_class_data_.base()){} #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase() { } @@ -500,13 +500,13 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RpcCloseRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : session_id_{0}, - _cached_size_{0} {} + : _cached_size_{0}, + session_id_{0} {} template PROTOBUF_CONSTEXPR RpcCloseRequest::RpcCloseRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcCloseRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -525,15 +525,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RpcCancelRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : session_id_{0}, + : _cached_size_{0}, + session_id_{0}, request_id_{0}, - client_id_{::uint64_t{0u}}, - _cached_size_{0} {} + client_id_{::uint64_t{0u}} {} template PROTOBUF_CONSTEXPR RpcCancelRequest::RpcCancelRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcCancelRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -552,13 +552,13 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RetirementNotification::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : slot_id_{0}, - _cached_size_{0} {} + : _cached_size_{0}, + slot_id_{0} {} template PROTOBUF_CONSTEXPR RetirementNotification::RetirementNotification(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RetirementNotification_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -577,15 +577,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RemoveSubscriberResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : error_( + : _cached_size_{0}, + error_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR RemoveSubscriberResponse::RemoveSubscriberResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RemoveSubscriberResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -604,16 +604,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RemoveSubscriberRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - subscriber_id_{0}, - _cached_size_{0} {} + subscriber_id_{0} {} template PROTOBUF_CONSTEXPR RemoveSubscriberRequest::RemoveSubscriberRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RemoveSubscriberRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -632,15 +632,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RemovePublisherResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : error_( + : _cached_size_{0}, + error_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR RemovePublisherResponse::RemovePublisherResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RemovePublisherResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -659,16 +659,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RemovePublisherRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - publisher_id_{0}, - _cached_size_{0} {} + publisher_id_{0} {} template PROTOBUF_CONSTEXPR RemovePublisherRequest::RemovePublisherRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RemovePublisherRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -685,17 +685,44 @@ struct RemovePublisherRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemovePublisherRequestDefaultTypeInternal _RemovePublisherRequest_default_instance_; +inline constexpr RegisterClientBufferResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + error_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR RegisterClientBufferResponse::RegisterClientBufferResponse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(RegisterClientBufferResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct RegisterClientBufferResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegisterClientBufferResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~RegisterClientBufferResponseDefaultTypeInternal() {} + union { + RegisterClientBufferResponse _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterClientBufferResponseDefaultTypeInternal _RegisterClientBufferResponse_default_instance_; + inline constexpr RawMessage::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : data_( + : _cached_size_{0}, + data_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR RawMessage::RawMessage(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RawMessage_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -714,16 +741,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr InitResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : session_id_{::int64_t{0}}, + : _cached_size_{0}, + session_id_{::int64_t{0}}, scb_fd_index_{0}, user_id_{0}, - group_id_{0}, - _cached_size_{0} {} + group_id_{0} {} template PROTOBUF_CONSTEXPR InitResponse::InitResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(InitResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -742,15 +769,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr InitRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : client_name_( + : _cached_size_{0}, + client_name_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR InitRequest::InitRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(InitRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -769,7 +796,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetTriggersResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : reliable_pub_trigger_fd_indexes_{}, + : _cached_size_{0}, + reliable_pub_trigger_fd_indexes_{}, _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, sub_trigger_fd_indexes_{}, _sub_trigger_fd_indexes_cached_byte_size_{0}, @@ -777,13 +805,12 @@ inline constexpr GetTriggersResponse::Impl_::Impl_( _retirement_fd_indexes_cached_byte_size_{0}, error_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetTriggersResponse::GetTriggersResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(GetTriggersResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -802,15 +829,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetTriggersRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetTriggersRequest::GetTriggersRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(GetTriggersRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -827,17 +854,46 @@ struct GetTriggersRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTriggersRequestDefaultTypeInternal _GetTriggersRequest_default_instance_; -inline constexpr GetChannelStatsRequest::Impl_::Impl_( +inline constexpr GetClientBuffersRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + session_id_{::uint64_t{0u}}, + buffer_index_{0u} {} + +template +PROTOBUF_CONSTEXPR GetClientBuffersRequest::GetClientBuffersRequest(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(GetClientBuffersRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct GetClientBuffersRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClientBuffersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClientBuffersRequestDefaultTypeInternal() {} + union { + GetClientBuffersRequest _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClientBuffersRequestDefaultTypeInternal _GetClientBuffersRequest_default_instance_; + +inline constexpr GetChannelStatsRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + channel_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetChannelStatsRequest::GetChannelStatsRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(GetChannelStatsRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -856,15 +912,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetChannelInfoRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetChannelInfoRequest::GetChannelInfoRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(GetChannelInfoRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -883,15 +939,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr Discovery_Query::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR Discovery_Query::Discovery_Query(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(Discovery_Query_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -910,18 +966,18 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr Discovery_Advertise::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), reliable_{false}, notify_retirement_{false}, - split_buffers_{false}, - _cached_size_{0} {} + split_buffers_{false} {} template PROTOBUF_CONSTEXPR Discovery_Advertise::Discovery_Advertise(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(Discovery_Advertise_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -940,7 +996,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr CreateSubscriberResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : reliable_pub_trigger_fd_indexes_{}, + : _cached_size_{0}, + reliable_pub_trigger_fd_indexes_{}, _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, retirement_fd_indexes_{}, _retirement_fd_indexes_cached_byte_size_{0}, @@ -962,13 +1019,12 @@ inline constexpr CreateSubscriberResponse::Impl_::Impl_( vchan_id_{0}, checksum_size_{0}, metadata_size_{0}, - use_split_buffers_{false}, - _cached_size_{0} {} + use_split_buffers_{false} {} template PROTOBUF_CONSTEXPR CreateSubscriberResponse::CreateSubscriberResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(CreateSubscriberResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -987,7 +1043,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr CreateSubscriberRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), type_( @@ -1001,13 +1058,12 @@ inline constexpr CreateSubscriberRequest::Impl_::Impl_( is_bridge_{false}, for_tunnel_{false}, max_active_messages_{0}, - vchan_id_{0}, - _cached_size_{0} {} + vchan_id_{0} {} template PROTOBUF_CONSTEXPR CreateSubscriberRequest::CreateSubscriberRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(CreateSubscriberRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1026,7 +1082,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr CreatePublisherResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : sub_trigger_fd_indexes_{}, + : _cached_size_{0}, + sub_trigger_fd_indexes_{}, _sub_trigger_fd_indexes_cached_byte_size_{0}, retirement_fd_indexes_{}, _retirement_fd_indexes_cached_byte_size_{0}, @@ -1044,13 +1101,12 @@ inline constexpr CreatePublisherResponse::Impl_::Impl_( pub_trigger_fd_index_{0}, num_sub_updates_{0}, vchan_id_{0}, - retirement_fd_index_{0}, - _cached_size_{0} {} + retirement_fd_index_{0} {} template PROTOBUF_CONSTEXPR CreatePublisherResponse::CreatePublisherResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(CreatePublisherResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1069,7 +1125,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr CreatePublisherRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), type_( @@ -1088,17 +1145,16 @@ inline constexpr CreatePublisherRequest::Impl_::Impl_( checksum_size_{0}, metadata_size_{0}, publisher_id_{0}, - for_tunnel_{false}, notify_retirement_{false}, + for_tunnel_{false}, use_split_buffers_{false}, split_buffers_over_bridge_{false}, - max_publishers_{0}, - _cached_size_{0} {} + max_publishers_{0} {} template PROTOBUF_CONSTEXPR CreatePublisherRequest::CreatePublisherRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(CreatePublisherRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1117,7 +1173,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ChannelStatsProto::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channel_name_( + : _cached_size_{0}, + channel_name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), total_bytes_{::int64_t{0}}, @@ -1129,13 +1186,12 @@ inline constexpr ChannelStatsProto::Impl_::Impl_( max_message_size_{0u}, total_drops_{0u}, num_bridge_pubs_{0}, - num_bridge_subs_{0}, - _cached_size_{0} {} + num_bridge_subs_{0} {} template PROTOBUF_CONSTEXPR ChannelStatsProto::ChannelStatsProto(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ChannelStatsProto_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1154,7 +1210,8 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ChannelInfoProto::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : name_( + : _cached_size_{0}, + name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), type_( @@ -1173,13 +1230,12 @@ inline constexpr ChannelInfoProto::Impl_::Impl_( is_virtual_{false}, vchan_id_{0}, num_tunnel_pubs_{0}, - num_tunnel_subs_{0}, - _cached_size_{0} {} + num_tunnel_subs_{0} {} template PROTOBUF_CONSTEXPR ChannelInfoProto::ChannelInfoProto(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ChannelInfoProto_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1198,16 +1254,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ChannelAddress::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : address_( + : _cached_size_{0}, + address_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - port_{0}, - _cached_size_{0} {} + port_{0} {} template PROTOBUF_CONSTEXPR ChannelAddress::ChannelAddress(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ChannelAddress_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1243,7 +1299,7 @@ inline constexpr Subscribed::Impl_::Impl_( template PROTOBUF_CONSTEXPR Subscribed::Subscribed(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(Subscribed_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1262,17 +1318,17 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr Statistics::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channels_{}, + : _cached_size_{0}, + channels_{}, server_id_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - timestamp_{::int64_t{0}}, - _cached_size_{0} {} + timestamp_{::int64_t{0}} {} template PROTOBUF_CONSTEXPR Statistics::Statistics(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(Statistics_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1291,16 +1347,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RpcServerRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : client_id_{::uint64_t{0u}}, + : _cached_size_{0}, + client_id_{::uint64_t{0u}}, request_id_{0}, request_{}, - _cached_size_{0}, _oneof_case_{} {} template PROTOBUF_CONSTEXPR RpcServerRequest::RpcServerRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcServerRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1333,7 +1389,7 @@ inline constexpr RpcResponse::Impl_::Impl_( template PROTOBUF_CONSTEXPR RpcResponse::RpcResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1362,7 +1418,7 @@ inline constexpr RpcRequest::Impl_::Impl_( template PROTOBUF_CONSTEXPR RpcRequest::RpcRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1395,7 +1451,7 @@ inline constexpr RpcOpenResponse_Method::Impl_::Impl_( template PROTOBUF_CONSTEXPR RpcOpenResponse_Method::RpcOpenResponse_Method(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcOpenResponse_Method_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1414,16 +1470,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetChannelStatsResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channels_{}, + : _cached_size_{0}, + channels_{}, error_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetChannelStatsResponse::GetChannelStatsResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(GetChannelStatsResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1442,16 +1498,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr GetChannelInfoResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channels_{}, + : _cached_size_{0}, + channels_{}, error_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR GetChannelInfoResponse::GetChannelInfoResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(GetChannelInfoResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1480,7 +1536,7 @@ inline constexpr Discovery_Subscribe::Impl_::Impl_( template PROTOBUF_CONSTEXPR Discovery_Subscribe::Discovery_Subscribe(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(Discovery_Subscribe_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1529,7 +1585,7 @@ inline constexpr ClientBufferHandleMetadataProto::Impl_::Impl_( template PROTOBUF_CONSTEXPR ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ClientBufferHandleMetadataProto_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1548,16 +1604,16 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ChannelDirectory::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : channels_{}, + : _cached_size_{0}, + channels_{}, server_id_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} + ::_pbi::ConstantInitialized()) {} template PROTOBUF_CONSTEXPR ChannelDirectory::ChannelDirectory(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ChannelDirectory_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1577,12 +1633,14 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr ShadowRegisterClientBuffer::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - metadata_{nullptr} {} + metadata_{nullptr}, + has_fd_{false}, + fd_index_{0} {} template PROTOBUF_CONSTEXPR ShadowRegisterClientBuffer::ShadowRegisterClientBuffer(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowRegisterClientBuffer_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1601,15 +1659,15 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RpcOpenResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : methods_{}, + : _cached_size_{0}, + methods_{}, client_id_{::uint64_t{0u}}, - session_id_{0}, - _cached_size_{0} {} + session_id_{0} {} template PROTOBUF_CONSTEXPR RpcOpenResponse::RpcOpenResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcOpenResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1626,71 +1684,77 @@ struct RpcOpenResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenResponseDefaultTypeInternal _RpcOpenResponse_default_instance_; -inline constexpr Response::Impl_::Impl_( +inline constexpr RegisterClientBufferRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : response_{}, - _cached_size_{0}, - _oneof_case_{} {} + : _cached_size_{0}, + metadata_{nullptr}, + has_fd_{false}, + fd_index_{0} {} template -PROTOBUF_CONSTEXPR Response::Response(::_pbi::ConstantInitialized) +PROTOBUF_CONSTEXPR RegisterClientBufferRequest::RegisterClientBufferRequest(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RegisterClientBufferRequest_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } -struct ResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseDefaultTypeInternal() {} +struct RegisterClientBufferRequestDefaultTypeInternal { + PROTOBUF_CONSTEXPR RegisterClientBufferRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~RegisterClientBufferRequestDefaultTypeInternal() {} union { - Response _instance; + RegisterClientBufferRequest _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterClientBufferRequestDefaultTypeInternal _RegisterClientBufferRequest_default_instance_; -inline constexpr RegisterClientBufferRequest::Impl_::Impl_( +inline constexpr GetClientBuffersResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - metadata_{nullptr} {} + metadata_{}, + fd_indexes_{}, + _fd_indexes_cached_byte_size_{0}, + error_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR RegisterClientBufferRequest::RegisterClientBufferRequest(::_pbi::ConstantInitialized) +PROTOBUF_CONSTEXPR GetClientBuffersResponse::GetClientBuffersResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(GetClientBuffersResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE _impl_(::_pbi::ConstantInitialized()) { } -struct RegisterClientBufferRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RegisterClientBufferRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RegisterClientBufferRequestDefaultTypeInternal() {} +struct GetClientBuffersResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GetClientBuffersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GetClientBuffersResponseDefaultTypeInternal() {} union { - RegisterClientBufferRequest _instance; + GetClientBuffersResponse _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterClientBufferRequestDefaultTypeInternal _RegisterClientBufferRequest_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClientBuffersResponseDefaultTypeInternal _GetClientBuffersResponse_default_instance_; inline constexpr Discovery::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : server_id_( + : _cached_size_{0}, + server_id_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), port_{0}, data_{}, - _cached_size_{0}, _oneof_case_{} {} template PROTOBUF_CONSTEXPR Discovery::Discovery(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(Discovery_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1716,7 +1780,7 @@ inline constexpr ShadowEvent::Impl_::Impl_( template PROTOBUF_CONSTEXPR ShadowEvent::ShadowEvent(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(ShadowEvent_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1735,19 +1799,19 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT inline constexpr RpcServerResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept - : error_( + : _cached_size_{0}, + error_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), client_id_{::uint64_t{0u}}, request_id_{0}, response_{}, - _cached_size_{0}, _oneof_case_{} {} template PROTOBUF_CONSTEXPR RpcServerResponse::RpcServerResponse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(RpcServerResponse_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1764,6 +1828,32 @@ struct RpcServerResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcServerResponseDefaultTypeInternal _RpcServerResponse_default_instance_; +inline constexpr Response::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : response_{}, + _cached_size_{0}, + _oneof_case_{} {} + +template +PROTOBUF_CONSTEXPR Response::Response(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(Response_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(::_pbi::ConstantInitialized()) { +} +struct ResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseDefaultTypeInternal() {} + union { + Response _instance; + }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; + inline constexpr Request::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : request_{}, @@ -1773,7 +1863,7 @@ inline constexpr Request::Impl_::Impl_( template PROTOBUF_CONSTEXPR Request::Request(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(_class_data_.base()), + : ::google::protobuf::Message(Request_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1790,42 +1880,32 @@ struct RequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestDefaultTypeInternal _Request_default_instance_; } // namespace subspace -static constexpr const ::_pb::EnumDescriptor** +static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_enum_descriptors_subspace_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** +static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_service_descriptors_subspace_2eproto = nullptr; const ::uint32_t TableStruct_subspace_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::InitRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::InitRequest, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::InitRequest, _impl_.client_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_._has_bits_), + 7, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.scb_fd_index_), PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.user_id_), PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.group_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 1, + 0, + 2, + 3, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_._has_bits_), + 21, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.num_slots_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.slot_size_), @@ -1844,14 +1924,27 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.use_split_buffers_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.max_publishers_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.split_buffers_over_bridge_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 3, + 4, + 5, + 6, + 7, + 1, + 8, + 14, + 2, + 9, + 13, + 10, + 11, + 12, + 15, + 17, + 16, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_._has_bits_), + 16, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.error_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.channel_id_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.publisher_id_), @@ -1865,14 +1958,22 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.vchan_id_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.retirement_fd_index_), PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.retirement_fd_indexes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 2, + 4, + 5, + 6, + 7, + 8, + 9, + 0, + 10, + 3, + 11, + 12, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_._has_bits_), + 12, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.subscriber_id_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.is_reliable_), @@ -1882,14 +1983,18 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.for_tunnel_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.mux_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.vchan_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 3, + 4, + 5, + 1, + 7, + 6, + 2, + 8, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_._has_bits_), + 20, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.error_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.channel_id_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.subscriber_id_), @@ -1907,111 +2012,90 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.checksum_size_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.metadata_size_), PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.use_split_buffers_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 2, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 0, + 12, + 3, + 13, + 1, + 14, + 15, + 16, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersRequest, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersRequest, _impl_.channel_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_._has_bits_), + 7, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.error_), PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_), PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.sub_trigger_fd_indexes_), PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.retirement_fd_indexes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 3, + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherRequest, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherRequest, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherRequest, _impl_.publisher_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherResponse, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherResponse, _impl_.error_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberRequest, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberRequest, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberRequest, _impl_.subscriber_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberResponse, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberResponse, _impl_.error_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoRequest, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoRequest, _impl_.channel_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoResponse, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoResponse, _impl_.error_), PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoResponse, _impl_.channels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 1, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsRequest, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsRequest, _impl_.channel_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsResponse, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsResponse, _impl_.error_), PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsResponse, _impl_.channels_), + 1, + 0, + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 18, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.buffer_index_), @@ -2027,86 +2111,92 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.cache_enabled_), PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.alignment_), PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.allocator_metadata_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, 0, + 6, + 7, + 8, + 12, + 9, + 10, + 11, + 1, + 2, + 3, + 4, + 13, + 14, + 5, + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_.has_fd_), + PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_.fd_index_), + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferResponse, _impl_._has_bits_), + 4, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferResponse, _impl_.error_), 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_._has_bits_), + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_.buffer_index_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::Request, _internal_metadata_), - ~0u, // no _extensions_ + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_._has_bits_), + 6, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_.channel_name_), + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_.session_id_), + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_.buffer_index_), + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_._has_bits_), + 6, // hasbit index offset + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_.error_), + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_.fd_indexes_), + 2, + 0, + 1, + 0x004, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::Response, _internal_metadata_), - ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), + 0x004, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_._has_bits_), + 17, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.name_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.slot_size_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_slots_), @@ -2121,24 +2211,30 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.is_virtual_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.vchan_id_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.mux_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ChannelDirectory, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 3, + 4, + 1, + 5, + 6, + 7, + 8, + 9, + 12, + 13, + 10, + 11, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ChannelDirectory, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ChannelDirectory, _impl_.server_id_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelDirectory, _impl_.channels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 1, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_._has_bits_), + 14, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.total_bytes_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.total_messages_), @@ -2150,35 +2246,36 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.total_drops_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.num_bridge_pubs_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.num_bridge_subs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_._has_bits_), + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_.server_id_), PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_.timestamp_), PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_.channels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ChannelAddress, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 1, + 2, + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ChannelAddress, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ChannelAddress, _impl_.address_), PROTOBUF_FIELD_OFFSET(::subspace::ChannelAddress, _impl_.port_), + 0, + 1, + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 13, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.slot_size_), PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.num_slots_), @@ -2189,203 +2286,152 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.metadata_size_), PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.split_buffers_), PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.split_buffers_over_bridge_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RetirementNotification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 2, + 3, + 5, + 6, + 1, + 4, + 9, + 7, + 8, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RetirementNotification, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RetirementNotification, _impl_.slot_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Query, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Query, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Query, _impl_.channel_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_._has_bits_), + 7, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.reliable_), PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.notify_retirement_), PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.split_buffers_), + 0, + 1, + 2, + 3, + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_.receiver_), PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_.reliable_), - ~0u, 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _internal_metadata_), - ~0u, // no _extensions_ + 1, + 2, + 0x085, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 10, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.server_id_), PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.port_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), + PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), + 0, + 1, + ~0u, + ~0u, + ~0u, + 0x000, // bitmap + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_._has_bits_), + 7, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.name_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.slot_size_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.num_slots_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_ResponseChannel, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 2, + 3, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_ResponseChannel, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_ResponseChannel, _impl_.name_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_ResponseChannel, _impl_.type_), + 0, + 1, + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 8, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.name_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.request_channel_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.response_channel_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.cancel_channel_), - ~0u, - ~0u, 0, + 4, + 2, + 3, 1, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_._has_bits_), + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_.methods_), PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_.client_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcCloseRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 2, + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RpcCloseRequest, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcCloseRequest, _impl_.session_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcCloseResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _internal_metadata_), - ~0u, // no _extensions_ + 0, + 0x000, // bitmap + 0x085, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 9, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.client_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_id_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _internal_metadata_), - ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_), + PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_), + 0, + 1, + ~0u, + ~0u, + 0x085, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 10, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.client_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.request_id_), - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.response_), + PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.response_), PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.error_), PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.response_), + 1, + 2, + ~0u, + ~0u, + 0, + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 8, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.method_), PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.argument_), PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.request_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.client_id_), - ~0u, + 1, 0, - ~0u, - ~0u, - ~0u, + 2, + 4, + 3, + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 10, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.error_), PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.result_), PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.session_id_), @@ -2393,79 +2439,51 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.client_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.is_last_), PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.is_cancelled_), - ~0u, 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 1, + 2, + 3, + 4, + 5, + 6, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_._has_bits_), + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_.request_id_), PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_.client_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::RawMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::RawMessage, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::RawMessage, _impl_.data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::VoidMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _internal_metadata_), - ~0u, // no _extensions_ + 0, + 0x000, // bitmap + 0x004, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_._oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowInit, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowInit, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowInit, _impl_.session_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_._has_bits_), + 20, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.channel_id_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.slot_size_), @@ -2483,24 +2501,33 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.has_max_publishers_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.max_publishers_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.split_buffers_over_bridge_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveChannel, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 3, + 4, + 5, + 1, + 6, + 7, + 8, + 10, + 11, + 2, + 12, + 9, + 13, + 14, + 16, + 15, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveChannel, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveChannel, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveChannel, _impl_.channel_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_._has_bits_), + 11, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.publisher_id_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.is_reliable_), @@ -2509,158 +2536,152 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.is_fixed_size_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.notify_retirement_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.for_tunnel_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemovePublisher, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemovePublisher, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemovePublisher, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemovePublisher, _impl_.publisher_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_._has_bits_), + 9, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.subscriber_id_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.is_reliable_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.is_bridge_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.max_active_messages_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.for_tunnel_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveSubscriber, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 2, + 3, + 5, + 4, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveSubscriber, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveSubscriber, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveSubscriber, _impl_.subscriber_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDump, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDump, _impl_._has_bits_), + 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDump, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDump, _impl_.num_channels_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDone, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 0x000, // bitmap + 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_.has_fd_), + PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_.fd_index_), 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_._has_bits_), + 6, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_.session_id_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_.buffer_index_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) + 0, + 1, + 2, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_._has_bits_), + 9, // hasbit index offset PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.channel_name_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.use_split_buffers_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.has_max_publishers_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.max_publishers_), PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_), + 0, + 1, + 2, + 3, + 5, + 4, }; static const ::_pbi::MigrationSchema schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::subspace::InitRequest)}, - {9, -1, -1, sizeof(::subspace::InitResponse)}, - {21, -1, -1, sizeof(::subspace::CreatePublisherRequest)}, - {47, -1, -1, sizeof(::subspace::CreatePublisherResponse)}, - {68, -1, -1, sizeof(::subspace::CreateSubscriberRequest)}, - {85, -1, -1, sizeof(::subspace::CreateSubscriberResponse)}, - {110, -1, -1, sizeof(::subspace::GetTriggersRequest)}, - {119, -1, -1, sizeof(::subspace::GetTriggersResponse)}, - {131, -1, -1, sizeof(::subspace::RemovePublisherRequest)}, - {141, -1, -1, sizeof(::subspace::RemovePublisherResponse)}, - {150, -1, -1, sizeof(::subspace::RemoveSubscriberRequest)}, - {160, -1, -1, sizeof(::subspace::RemoveSubscriberResponse)}, - {169, -1, -1, sizeof(::subspace::GetChannelInfoRequest)}, - {178, -1, -1, sizeof(::subspace::GetChannelInfoResponse)}, - {188, -1, -1, sizeof(::subspace::GetChannelStatsRequest)}, - {197, -1, -1, sizeof(::subspace::GetChannelStatsResponse)}, - {207, 230, -1, sizeof(::subspace::ClientBufferHandleMetadataProto)}, - {245, 254, -1, sizeof(::subspace::RegisterClientBufferRequest)}, - {255, -1, -1, sizeof(::subspace::UnregisterClientBufferRequest)}, - {266, -1, -1, sizeof(::subspace::Request)}, - {285, -1, -1, sizeof(::subspace::Response)}, - {302, -1, -1, sizeof(::subspace::ChannelInfoProto)}, - {324, -1, -1, sizeof(::subspace::ChannelDirectory)}, - {334, -1, -1, sizeof(::subspace::ChannelStatsProto)}, - {353, -1, -1, sizeof(::subspace::Statistics)}, - {364, -1, -1, sizeof(::subspace::ChannelAddress)}, - {374, 392, -1, sizeof(::subspace::Subscribed)}, - {402, -1, -1, sizeof(::subspace::RetirementNotification)}, - {411, -1, -1, sizeof(::subspace::Discovery_Query)}, - {420, -1, -1, sizeof(::subspace::Discovery_Advertise)}, - {432, 443, -1, sizeof(::subspace::Discovery_Subscribe)}, - {446, -1, -1, sizeof(::subspace::Discovery)}, - {460, -1, -1, sizeof(::subspace::RpcOpenRequest)}, - {468, -1, -1, sizeof(::subspace::RpcOpenResponse_RequestChannel)}, - {480, -1, -1, sizeof(::subspace::RpcOpenResponse_ResponseChannel)}, - {490, 503, -1, sizeof(::subspace::RpcOpenResponse_Method)}, - {508, -1, -1, sizeof(::subspace::RpcOpenResponse)}, - {519, -1, -1, sizeof(::subspace::RpcCloseRequest)}, - {528, -1, -1, sizeof(::subspace::RpcCloseResponse)}, - {536, -1, -1, sizeof(::subspace::RpcServerRequest)}, - {549, -1, -1, sizeof(::subspace::RpcServerResponse)}, - {563, 576, -1, sizeof(::subspace::RpcRequest)}, - {581, 596, -1, sizeof(::subspace::RpcResponse)}, - {603, -1, -1, sizeof(::subspace::RpcCancelRequest)}, - {614, -1, -1, sizeof(::subspace::RawMessage)}, - {623, -1, -1, sizeof(::subspace::VoidMessage)}, - {631, -1, -1, sizeof(::subspace::ShadowEvent)}, - {652, -1, -1, sizeof(::subspace::ShadowInit)}, - {661, -1, -1, sizeof(::subspace::ShadowCreateChannel)}, - {686, -1, -1, sizeof(::subspace::ShadowRemoveChannel)}, - {696, -1, -1, sizeof(::subspace::ShadowAddPublisher)}, - {712, -1, -1, sizeof(::subspace::ShadowRemovePublisher)}, - {722, -1, -1, sizeof(::subspace::ShadowAddSubscriber)}, - {736, -1, -1, sizeof(::subspace::ShadowRemoveSubscriber)}, - {746, -1, -1, sizeof(::subspace::ShadowStateDump)}, - {756, -1, -1, sizeof(::subspace::ShadowStateDone)}, - {764, 773, -1, sizeof(::subspace::ShadowRegisterClientBuffer)}, - {774, -1, -1, sizeof(::subspace::ShadowUnregisterClientBuffer)}, - {785, -1, -1, sizeof(::subspace::ShadowUpdateChannelOptions)}, + {0, sizeof(::subspace::InitRequest)}, + {5, sizeof(::subspace::InitResponse)}, + {16, sizeof(::subspace::CreatePublisherRequest)}, + {55, sizeof(::subspace::CreatePublisherResponse)}, + {84, sizeof(::subspace::CreateSubscriberRequest)}, + {105, sizeof(::subspace::CreateSubscriberResponse)}, + {142, sizeof(::subspace::GetTriggersRequest)}, + {147, sizeof(::subspace::GetTriggersResponse)}, + {158, sizeof(::subspace::RemovePublisherRequest)}, + {165, sizeof(::subspace::RemovePublisherResponse)}, + {170, sizeof(::subspace::RemoveSubscriberRequest)}, + {177, sizeof(::subspace::RemoveSubscriberResponse)}, + {182, sizeof(::subspace::GetChannelInfoRequest)}, + {187, sizeof(::subspace::GetChannelInfoResponse)}, + {194, sizeof(::subspace::GetChannelStatsRequest)}, + {199, sizeof(::subspace::GetChannelStatsResponse)}, + {206, sizeof(::subspace::ClientBufferHandleMetadataProto)}, + {239, sizeof(::subspace::RegisterClientBufferRequest)}, + {248, sizeof(::subspace::RegisterClientBufferResponse)}, + {253, sizeof(::subspace::UnregisterClientBufferRequest)}, + {262, sizeof(::subspace::GetClientBuffersRequest)}, + {271, sizeof(::subspace::GetClientBuffersResponse)}, + {280, sizeof(::subspace::Request)}, + {294, sizeof(::subspace::Response)}, + {307, sizeof(::subspace::ChannelInfoProto)}, + {338, sizeof(::subspace::ChannelDirectory)}, + {345, sizeof(::subspace::ChannelStatsProto)}, + {370, sizeof(::subspace::Statistics)}, + {379, sizeof(::subspace::ChannelAddress)}, + {386, sizeof(::subspace::Subscribed)}, + {409, sizeof(::subspace::RetirementNotification)}, + {414, sizeof(::subspace::Discovery_Query)}, + {419, sizeof(::subspace::Discovery_Advertise)}, + {430, sizeof(::subspace::Discovery_Subscribe)}, + {439, sizeof(::subspace::Discovery)}, + {454, sizeof(::subspace::RpcOpenRequest)}, + {455, sizeof(::subspace::RpcOpenResponse_RequestChannel)}, + {466, sizeof(::subspace::RpcOpenResponse_ResponseChannel)}, + {473, sizeof(::subspace::RpcOpenResponse_Method)}, + {486, sizeof(::subspace::RpcOpenResponse)}, + {495, sizeof(::subspace::RpcCloseRequest)}, + {500, sizeof(::subspace::RpcCloseResponse)}, + {501, sizeof(::subspace::RpcServerRequest)}, + {514, sizeof(::subspace::RpcServerResponse)}, + {529, sizeof(::subspace::RpcRequest)}, + {542, sizeof(::subspace::RpcResponse)}, + {559, sizeof(::subspace::RpcCancelRequest)}, + {568, sizeof(::subspace::RawMessage)}, + {573, sizeof(::subspace::VoidMessage)}, + {574, sizeof(::subspace::ShadowEvent)}, + {589, sizeof(::subspace::ShadowInit)}, + {594, sizeof(::subspace::ShadowCreateChannel)}, + {631, sizeof(::subspace::ShadowRemoveChannel)}, + {638, sizeof(::subspace::ShadowAddPublisher)}, + {657, sizeof(::subspace::ShadowRemovePublisher)}, + {664, sizeof(::subspace::ShadowAddSubscriber)}, + {679, sizeof(::subspace::ShadowRemoveSubscriber)}, + {686, sizeof(::subspace::ShadowStateDump)}, + {693, sizeof(::subspace::ShadowStateDone)}, + {694, sizeof(::subspace::ShadowRegisterClientBuffer)}, + {703, sizeof(::subspace::ShadowUnregisterClientBuffer)}, + {712, sizeof(::subspace::ShadowUpdateChannelOptions)}, }; -static const ::_pb::Message* const file_default_instances[] = { +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { &::subspace::_InitRequest_default_instance_._instance, &::subspace::_InitResponse_default_instance_._instance, &::subspace::_CreatePublisherRequest_default_instance_._instance, @@ -2679,7 +2700,10 @@ static const ::_pb::Message* const file_default_instances[] = { &::subspace::_GetChannelStatsResponse_default_instance_._instance, &::subspace::_ClientBufferHandleMetadataProto_default_instance_._instance, &::subspace::_RegisterClientBufferRequest_default_instance_._instance, + &::subspace::_RegisterClientBufferResponse_default_instance_._instance, &::subspace::_UnregisterClientBufferRequest_default_instance_._instance, + &::subspace::_GetClientBuffersRequest_default_instance_._instance, + &::subspace::_GetClientBuffersResponse_default_instance_._instance, &::subspace::_Request_default_instance_._instance, &::subspace::_Response_default_instance_._instance, &::subspace::_ChannelInfoProto_default_instance_._instance, @@ -2788,181 +2812,195 @@ const char descriptor_table_protodef_subspace_2eproto[] ABSL_ATTRIBUTE_SECTION_V "\t\022\021\n\tallocator\030\013 \001(\t\022\017\n\007pool_id\030\014 \001(\t\022\025\n" "\rcache_enabled\030\r \001(\010\022\021\n\talignment\030\016 \001(\r\022" "0\n\022allocator_metadata\030\017 \001(\0132\024.google.pro" - "tobuf.Any\"Z\n\033RegisterClientBufferRequest" + "tobuf.Any\"|\n\033RegisterClientBufferRequest" "\022;\n\010metadata\030\001 \001(\0132).subspace.ClientBuff" - "erHandleMetadataProto\"_\n\035UnregisterClien" - "tBufferRequest\022\024\n\014channel_name\030\001 \001(\t\022\022\n\n" - "session_id\030\002 \001(\004\022\024\n\014buffer_index\030\003 \001(\r\"\377" - "\004\n\007Request\022%\n\004init\030\001 \001(\0132\025.subspace.Init" - "RequestH\000\022<\n\020create_publisher\030\002 \001(\0132 .su" - "bspace.CreatePublisherRequestH\000\022>\n\021creat" - "e_subscriber\030\003 \001(\0132!.subspace.CreateSubs" - "criberRequestH\000\0224\n\014get_triggers\030\004 \001(\0132\034." - "subspace.GetTriggersRequestH\000\022<\n\020remove_" - "publisher\030\005 \001(\0132 .subspace.RemovePublish" - "erRequestH\000\022>\n\021remove_subscriber\030\006 \001(\0132!" - ".subspace.RemoveSubscriberRequestH\000\022;\n\020g" - "et_channel_info\030\t \001(\0132\037.subspace.GetChan" - "nelInfoRequestH\000\022=\n\021get_channel_stats\030\n " - "\001(\0132 .subspace.GetChannelStatsRequestH\000\022" - "G\n\026register_client_buffer\030\013 \001(\0132%.subspa" - "ce.RegisterClientBufferRequestH\000\022K\n\030unre" - "gister_client_buffer\030\014 \001(\0132\'.subspace.Un" - "registerClientBufferRequestH\000B\t\n\007request" - "\"\363\003\n\010Response\022&\n\004init\030\001 \001(\0132\026.subspace.I" - "nitResponseH\000\022=\n\020create_publisher\030\002 \001(\0132" - "!.subspace.CreatePublisherResponseH\000\022\?\n\021" - "create_subscriber\030\003 \001(\0132\".subspace.Creat" - "eSubscriberResponseH\000\0225\n\014get_triggers\030\004 " - "\001(\0132\035.subspace.GetTriggersResponseH\000\022=\n\020" - "remove_publisher\030\005 \001(\0132!.subspace.Remove" - "PublisherResponseH\000\022\?\n\021remove_subscriber" - "\030\006 \001(\0132\".subspace.RemoveSubscriberRespon" - "seH\000\022<\n\020get_channel_info\030\t \001(\0132 .subspac" - "e.GetChannelInfoResponseH\000\022>\n\021get_channe" - "l_stats\030\n \001(\0132!.subspace.GetChannelStats" - "ResponseH\000B\n\n\010response\"\244\002\n\020ChannelInfoPr" - "oto\022\014\n\004name\030\001 \001(\t\022\021\n\tslot_size\030\002 \001(\005\022\021\n\t" - "num_slots\030\003 \001(\005\022\014\n\004type\030\004 \001(\014\022\020\n\010num_pub" - "s\030\005 \001(\005\022\020\n\010num_subs\030\006 \001(\005\022\027\n\017num_bridge_" - "pubs\030\007 \001(\005\022\027\n\017num_bridge_subs\030\010 \001(\005\022\023\n\013i" - "s_reliable\030\t \001(\010\022\027\n\017num_tunnel_pubs\030\r \001(" - "\005\022\027\n\017num_tunnel_subs\030\016 \001(\005\022\022\n\nis_virtual" - "\030\n \001(\010\022\020\n\010vchan_id\030\013 \001(\005\022\013\n\003mux\030\014 \001(\t\"S\n" - "\020ChannelDirectory\022\021\n\tserver_id\030\001 \001(\t\022,\n\010" - "channels\030\002 \003(\0132\032.subspace.ChannelInfoPro" - "to\"\201\002\n\021ChannelStatsProto\022\024\n\014channel_name" - "\030\001 \001(\t\022\023\n\013total_bytes\030\002 \001(\003\022\026\n\016total_mes" - "sages\030\003 \001(\003\022\021\n\tslot_size\030\004 \001(\005\022\021\n\tnum_sl" - "ots\030\005 \001(\005\022\020\n\010num_pubs\030\006 \001(\005\022\020\n\010num_subs\030" - "\007 \001(\005\022\030\n\020max_message_size\030\010 \001(\r\022\023\n\013total" - "_drops\030\t \001(\r\022\027\n\017num_bridge_pubs\030\n \001(\005\022\027\n" - "\017num_bridge_subs\030\013 \001(\005\"a\n\nStatistics\022\021\n\t" - "server_id\030\001 \001(\t\022\021\n\ttimestamp\030\002 \001(\003\022-\n\010ch" - "annels\030\003 \003(\0132\033.subspace.ChannelStatsProt" - "o\"/\n\016ChannelAddress\022\017\n\007address\030\001 \001(\014\022\014\n\004" - "port\030\002 \001(\005\"\222\002\n\nSubscribed\022\024\n\014channel_nam" - "e\030\001 \001(\t\022\021\n\tslot_size\030\002 \001(\005\022\021\n\tnum_slots\030" - "\003 \001(\005\022\020\n\010reliable\030\004 \001(\010\022\031\n\021notify_retire" - "ment\030\005 \001(\010\0223\n\021retirement_socket\030\006 \001(\0132\030." - "subspace.ChannelAddress\022\025\n\rchecksum_size" - "\030\007 \001(\005\022\025\n\rmetadata_size\030\010 \001(\005\022\025\n\rsplit_b" - "uffers\030\t \001(\010\022!\n\031split_buffers_over_bridg" - "e\030\n \001(\010\")\n\026RetirementNotification\022\017\n\007slo" - "t_id\030\001 \001(\005\"\257\003\n\tDiscovery\022\021\n\tserver_id\030\001 " - "\001(\t\022\014\n\004port\030\002 \001(\005\022*\n\005query\030\003 \001(\0132\031.subsp" - "ace.Discovery.QueryH\000\0222\n\tadvertise\030\004 \001(\013" - "2\035.subspace.Discovery.AdvertiseH\000\0222\n\tsub" - "scribe\030\005 \001(\0132\035.subspace.Discovery.Subscr" - "ibeH\000\032\035\n\005Query\022\024\n\014channel_name\030\001 \001(\t\032e\n\t" - "Advertise\022\024\n\014channel_name\030\001 \001(\t\022\020\n\010relia" - "ble\030\002 \001(\010\022\031\n\021notify_retirement\030\003 \001(\010\022\025\n\r" - "split_buffers\030\004 \001(\010\032_\n\tSubscribe\022\024\n\014chan" - "nel_name\030\001 \001(\t\022*\n\010receiver\030\002 \001(\0132\030.subsp" - "ace.ChannelAddress\022\020\n\010reliable\030\003 \001(\010B\006\n\004" - "data\"\020\n\016RpcOpenRequest\"\263\003\n\017RpcOpenRespon" - "se\022\022\n\nsession_id\030\001 \001(\005\0221\n\007methods\030\002 \003(\0132" - " .subspace.RpcOpenResponse.Method\022\021\n\tcli" - "ent_id\030\003 \001(\004\032R\n\016RequestChannel\022\014\n\004name\030\001" - " \001(\t\022\021\n\tslot_size\030\002 \001(\005\022\021\n\tnum_slots\030\003 \001" - "(\005\022\014\n\004type\030\004 \001(\t\032-\n\017ResponseChannel\022\014\n\004n" - "ame\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\032\302\001\n\006Method\022\014\n\004na" - "me\030\001 \001(\t\022\n\n\002id\030\002 \001(\005\022A\n\017request_channel\030" - "\003 \001(\0132(.subspace.RpcOpenResponse.Request" - "Channel\022C\n\020response_channel\030\004 \001(\0132).subs" - "pace.RpcOpenResponse.ResponseChannel\022\026\n\016" - "cancel_channel\030\005 \001(\t\"%\n\017RpcCloseRequest\022" - "\022\n\nsession_id\030\001 \001(\005\"\022\n\020RpcCloseResponse\"" - "\232\001\n\020RpcServerRequest\022\021\n\tclient_id\030\001 \001(\004\022" - "\022\n\nrequest_id\030\002 \001(\005\022(\n\004open\030\003 \001(\0132\030.subs" - "pace.RpcOpenRequestH\000\022*\n\005close\030\004 \001(\0132\031.s" - "ubspace.RpcCloseRequestH\000B\t\n\007request\"\255\001\n" - "\021RpcServerResponse\022\021\n\tclient_id\030\001 \001(\004\022\022\n" - "\nrequest_id\030\002 \001(\005\022)\n\004open\030\003 \001(\0132\031.subspa" - "ce.RpcOpenResponseH\000\022+\n\005close\030\004 \001(\0132\032.su" - "bspace.RpcCloseResponseH\000\022\r\n\005error\030\005 \001(\t" - "B\n\n\010response\"\177\n\nRpcRequest\022\016\n\006method\030\001 \001" - "(\005\022&\n\010argument\030\002 \001(\0132\024.google.protobuf.A" - "ny\022\022\n\nsession_id\030\003 \001(\005\022\022\n\nrequest_id\030\004 \001" - "(\005\022\021\n\tclient_id\030\005 \001(\004\"\244\001\n\013RpcResponse\022\r\n" - "\005error\030\001 \001(\t\022$\n\006result\030\002 \001(\0132\024.google.pr" - "otobuf.Any\022\022\n\nsession_id\030\003 \001(\005\022\022\n\nreques" - "t_id\030\004 \001(\005\022\021\n\tclient_id\030\005 \001(\004\022\017\n\007is_last" - "\030\006 \001(\010\022\024\n\014is_cancelled\030\007 \001(\010\"M\n\020RpcCance" - "lRequest\022\022\n\nsession_id\030\001 \001(\005\022\022\n\nrequest_" - "id\030\002 \001(\005\022\021\n\tclient_id\030\003 \001(\004\"\032\n\nRawMessag" - "e\022\014\n\004data\030\001 \001(\014\"\r\n\013VoidMessage\"\330\005\n\013Shado" - "wEvent\022$\n\004init\030\001 \001(\0132\024.subspace.ShadowIn" - "itH\000\0227\n\016create_channel\030\002 \001(\0132\035.subspace." - "ShadowCreateChannelH\000\0227\n\016remove_channel\030" - "\003 \001(\0132\035.subspace.ShadowRemoveChannelH\000\0225" - "\n\radd_publisher\030\004 \001(\0132\034.subspace.ShadowA" - "ddPublisherH\000\022;\n\020remove_publisher\030\005 \001(\0132" - "\037.subspace.ShadowRemovePublisherH\000\0227\n\016ad" - "d_subscriber\030\006 \001(\0132\035.subspace.ShadowAddS" - "ubscriberH\000\022=\n\021remove_subscriber\030\007 \001(\0132 " - ".subspace.ShadowRemoveSubscriberH\000\022/\n\nst" - "ate_dump\030\010 \001(\0132\031.subspace.ShadowStateDum" - "pH\000\022/\n\nstate_done\030\t \001(\0132\031.subspace.Shado" - "wStateDoneH\000\022F\n\026register_client_buffer\030\n" - " \001(\0132$.subspace.ShadowRegisterClientBuff" - "erH\000\022J\n\030unregister_client_buffer\030\013 \001(\0132&" - ".subspace.ShadowUnregisterClientBufferH\000" - "\022F\n\026update_channel_options\030\014 \001(\0132$.subsp" - "ace.ShadowUpdateChannelOptionsH\000B\007\n\005even" - "t\" \n\nShadowInit\022\022\n\nsession_id\030\001 \001(\004\"\222\003\n\023" - "ShadowCreateChannel\022\024\n\014channel_name\030\001 \001(" - "\t\022\022\n\nchannel_id\030\002 \001(\005\022\021\n\tslot_size\030\003 \001(\005" - "\022\021\n\tnum_slots\030\004 \001(\005\022\014\n\004type\030\005 \001(\014\022\020\n\010is_" - "local\030\006 \001(\010\022\023\n\013is_reliable\030\007 \001(\010\022\025\n\ris_f" - "ixed_size\030\010 \001(\010\022\025\n\rchecksum_size\030\t \001(\005\022\025" - "\n\rmetadata_size\030\n \001(\005\022\013\n\003mux\030\013 \001(\t\022\020\n\010vc" - "han_id\030\014 \001(\005\022 \n\030has_split_buffer_options" - "\030\r \001(\010\022\031\n\021use_split_buffers\030\016 \001(\010\022\032\n\022has" - "_max_publishers\030\017 \001(\010\022\026\n\016max_publishers\030" - "\020 \001(\005\022!\n\031split_buffers_over_bridge\030\021 \001(\010" - "\"\?\n\023ShadowRemoveChannel\022\024\n\014channel_name\030" - "\001 \001(\t\022\022\n\nchannel_id\030\002 \001(\005\"\300\001\n\022ShadowAddP" - "ublisher\022\024\n\014channel_name\030\001 \001(\t\022\024\n\014publis" - "her_id\030\002 \001(\005\022\023\n\013is_reliable\030\003 \001(\010\022\020\n\010is_" - "local\030\004 \001(\010\022\021\n\tis_bridge\030\005 \001(\010\022\025\n\ris_fix" - "ed_size\030\006 \001(\010\022\031\n\021notify_retirement\030\007 \001(\010" - "\022\022\n\nfor_tunnel\030\010 \001(\010\"C\n\025ShadowRemovePubl" - "isher\022\024\n\014channel_name\030\001 \001(\t\022\024\n\014publisher" - "_id\030\002 \001(\005\"\233\001\n\023ShadowAddSubscriber\022\024\n\014cha" - "nnel_name\030\001 \001(\t\022\025\n\rsubscriber_id\030\002 \001(\005\022\023" - "\n\013is_reliable\030\003 \001(\010\022\021\n\tis_bridge\030\004 \001(\010\022\033" - "\n\023max_active_messages\030\005 \001(\005\022\022\n\nfor_tunne" - "l\030\006 \001(\010\"E\n\026ShadowRemoveSubscriber\022\024\n\014cha" - "nnel_name\030\001 \001(\t\022\025\n\rsubscriber_id\030\002 \001(\005\";" - "\n\017ShadowStateDump\022\022\n\nsession_id\030\001 \001(\004\022\024\n" - "\014num_channels\030\002 \001(\005\"\021\n\017ShadowStateDone\"Y" - "\n\032ShadowRegisterClientBuffer\022;\n\010metadata" - "\030\001 \001(\0132).subspace.ClientBufferHandleMeta" - "dataProto\"^\n\034ShadowUnregisterClientBuffe" - "r\022\024\n\014channel_name\030\001 \001(\t\022\022\n\nsession_id\030\002 " - "\001(\004\022\024\n\014buffer_index\030\003 \001(\r\"\306\001\n\032ShadowUpda" - "teChannelOptions\022\024\n\014channel_name\030\001 \001(\t\022 " - "\n\030has_split_buffer_options\030\002 \001(\010\022\031\n\021use_" - "split_buffers\030\003 \001(\010\022\032\n\022has_max_publisher" - "s\030\004 \001(\010\022\026\n\016max_publishers\030\005 \001(\005\022!\n\031split" - "_buffers_over_bridge\030\006 \001(\010b\006proto3" + "erHandleMetadataProto\022\016\n\006has_fd\030\002 \001(\010\022\020\n" + "\010fd_index\030\003 \001(\005\"-\n\034RegisterClientBufferR" + "esponse\022\r\n\005error\030\001 \001(\t\"_\n\035UnregisterClie" + "ntBufferRequest\022\024\n\014channel_name\030\001 \001(\t\022\022\n" + "\nsession_id\030\002 \001(\004\022\024\n\014buffer_index\030\003 \001(\r\"" + "Y\n\027GetClientBuffersRequest\022\024\n\014channel_na" + "me\030\001 \001(\t\022\022\n\nsession_id\030\002 \001(\004\022\024\n\014buffer_i" + "ndex\030\003 \001(\r\"z\n\030GetClientBuffersResponse\022\r" + "\n\005error\030\001 \001(\t\022;\n\010metadata\030\002 \003(\0132).subspa" + "ce.ClientBufferHandleMetadataProto\022\022\n\nfd" + "_indexes\030\003 \003(\005\"\300\005\n\007Request\022%\n\004init\030\001 \001(\013" + "2\025.subspace.InitRequestH\000\022<\n\020create_publ" + "isher\030\002 \001(\0132 .subspace.CreatePublisherRe" + "questH\000\022>\n\021create_subscriber\030\003 \001(\0132!.sub" + "space.CreateSubscriberRequestH\000\0224\n\014get_t" + "riggers\030\004 \001(\0132\034.subspace.GetTriggersRequ" + "estH\000\022<\n\020remove_publisher\030\005 \001(\0132 .subspa" + "ce.RemovePublisherRequestH\000\022>\n\021remove_su" + "bscriber\030\006 \001(\0132!.subspace.RemoveSubscrib" + "erRequestH\000\022;\n\020get_channel_info\030\t \001(\0132\037." + "subspace.GetChannelInfoRequestH\000\022=\n\021get_" + "channel_stats\030\n \001(\0132 .subspace.GetChanne" + "lStatsRequestH\000\022G\n\026register_client_buffe" + "r\030\013 \001(\0132%.subspace.RegisterClientBufferR" + "equestH\000\022K\n\030unregister_client_buffer\030\014 \001" + "(\0132\'.subspace.UnregisterClientBufferRequ" + "estH\000\022\?\n\022get_client_buffers\030\r \001(\0132!.subs" + "pace.GetClientBuffersRequestH\000B\t\n\007reques" + "t\"\377\004\n\010Response\022&\n\004init\030\001 \001(\0132\026.subspace." + "InitResponseH\000\022=\n\020create_publisher\030\002 \001(\013" + "2!.subspace.CreatePublisherResponseH\000\022\?\n" + "\021create_subscriber\030\003 \001(\0132\".subspace.Crea" + "teSubscriberResponseH\000\0225\n\014get_triggers\030\004" + " \001(\0132\035.subspace.GetTriggersResponseH\000\022=\n" + "\020remove_publisher\030\005 \001(\0132!.subspace.Remov" + "ePublisherResponseH\000\022\?\n\021remove_subscribe" + "r\030\006 \001(\0132\".subspace.RemoveSubscriberRespo" + "nseH\000\022<\n\020get_channel_info\030\t \001(\0132 .subspa" + "ce.GetChannelInfoResponseH\000\022>\n\021get_chann" + "el_stats\030\n \001(\0132!.subspace.GetChannelStat" + "sResponseH\000\022@\n\022get_client_buffers\030\013 \001(\0132" + "\".subspace.GetClientBuffersResponseH\000\022H\n" + "\026register_client_buffer\030\014 \001(\0132&.subspace" + ".RegisterClientBufferResponseH\000B\n\n\010respo" + "nse\"\244\002\n\020ChannelInfoProto\022\014\n\004name\030\001 \001(\t\022\021" + "\n\tslot_size\030\002 \001(\005\022\021\n\tnum_slots\030\003 \001(\005\022\014\n\004" + "type\030\004 \001(\014\022\020\n\010num_pubs\030\005 \001(\005\022\020\n\010num_subs" + "\030\006 \001(\005\022\027\n\017num_bridge_pubs\030\007 \001(\005\022\027\n\017num_b" + "ridge_subs\030\010 \001(\005\022\023\n\013is_reliable\030\t \001(\010\022\027\n" + "\017num_tunnel_pubs\030\r \001(\005\022\027\n\017num_tunnel_sub" + "s\030\016 \001(\005\022\022\n\nis_virtual\030\n \001(\010\022\020\n\010vchan_id\030" + "\013 \001(\005\022\013\n\003mux\030\014 \001(\t\"S\n\020ChannelDirectory\022\021" + "\n\tserver_id\030\001 \001(\t\022,\n\010channels\030\002 \003(\0132\032.su" + "bspace.ChannelInfoProto\"\201\002\n\021ChannelStats" + "Proto\022\024\n\014channel_name\030\001 \001(\t\022\023\n\013total_byt" + "es\030\002 \001(\003\022\026\n\016total_messages\030\003 \001(\003\022\021\n\tslot" + "_size\030\004 \001(\005\022\021\n\tnum_slots\030\005 \001(\005\022\020\n\010num_pu" + "bs\030\006 \001(\005\022\020\n\010num_subs\030\007 \001(\005\022\030\n\020max_messag" + "e_size\030\010 \001(\r\022\023\n\013total_drops\030\t \001(\r\022\027\n\017num" + "_bridge_pubs\030\n \001(\005\022\027\n\017num_bridge_subs\030\013 " + "\001(\005\"a\n\nStatistics\022\021\n\tserver_id\030\001 \001(\t\022\021\n\t" + "timestamp\030\002 \001(\003\022-\n\010channels\030\003 \003(\0132\033.subs" + "pace.ChannelStatsProto\"/\n\016ChannelAddress" + "\022\017\n\007address\030\001 \001(\014\022\014\n\004port\030\002 \001(\005\"\222\002\n\nSubs" + "cribed\022\024\n\014channel_name\030\001 \001(\t\022\021\n\tslot_siz" + "e\030\002 \001(\005\022\021\n\tnum_slots\030\003 \001(\005\022\020\n\010reliable\030\004" + " \001(\010\022\031\n\021notify_retirement\030\005 \001(\010\0223\n\021retir" + "ement_socket\030\006 \001(\0132\030.subspace.ChannelAdd" + "ress\022\025\n\rchecksum_size\030\007 \001(\005\022\025\n\rmetadata_" + "size\030\010 \001(\005\022\025\n\rsplit_buffers\030\t \001(\010\022!\n\031spl" + "it_buffers_over_bridge\030\n \001(\010\")\n\026Retireme" + "ntNotification\022\017\n\007slot_id\030\001 \001(\005\"\257\003\n\tDisc" + "overy\022\021\n\tserver_id\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\022*" + "\n\005query\030\003 \001(\0132\031.subspace.Discovery.Query" + "H\000\0222\n\tadvertise\030\004 \001(\0132\035.subspace.Discove" + "ry.AdvertiseH\000\0222\n\tsubscribe\030\005 \001(\0132\035.subs" + "pace.Discovery.SubscribeH\000\032\035\n\005Query\022\024\n\014c" + "hannel_name\030\001 \001(\t\032e\n\tAdvertise\022\024\n\014channe" + "l_name\030\001 \001(\t\022\020\n\010reliable\030\002 \001(\010\022\031\n\021notify" + "_retirement\030\003 \001(\010\022\025\n\rsplit_buffers\030\004 \001(\010" + "\032_\n\tSubscribe\022\024\n\014channel_name\030\001 \001(\t\022*\n\010r" + "eceiver\030\002 \001(\0132\030.subspace.ChannelAddress\022" + "\020\n\010reliable\030\003 \001(\010B\006\n\004data\"\020\n\016RpcOpenRequ" + "est\"\263\003\n\017RpcOpenResponse\022\022\n\nsession_id\030\001 " + "\001(\005\0221\n\007methods\030\002 \003(\0132 .subspace.RpcOpenR" + "esponse.Method\022\021\n\tclient_id\030\003 \001(\004\032R\n\016Req" + "uestChannel\022\014\n\004name\030\001 \001(\t\022\021\n\tslot_size\030\002" + " \001(\005\022\021\n\tnum_slots\030\003 \001(\005\022\014\n\004type\030\004 \001(\t\032-\n" + "\017ResponseChannel\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002" + " \001(\t\032\302\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030\002 \001(" + "\005\022A\n\017request_channel\030\003 \001(\0132(.subspace.Rp" + "cOpenResponse.RequestChannel\022C\n\020response" + "_channel\030\004 \001(\0132).subspace.RpcOpenRespons" + "e.ResponseChannel\022\026\n\016cancel_channel\030\005 \001(" + "\t\"%\n\017RpcCloseRequest\022\022\n\nsession_id\030\001 \001(\005" + "\"\022\n\020RpcCloseResponse\"\232\001\n\020RpcServerReques" + "t\022\021\n\tclient_id\030\001 \001(\004\022\022\n\nrequest_id\030\002 \001(\005" + "\022(\n\004open\030\003 \001(\0132\030.subspace.RpcOpenRequest" + "H\000\022*\n\005close\030\004 \001(\0132\031.subspace.RpcCloseReq" + "uestH\000B\t\n\007request\"\255\001\n\021RpcServerResponse\022" + "\021\n\tclient_id\030\001 \001(\004\022\022\n\nrequest_id\030\002 \001(\005\022)" + "\n\004open\030\003 \001(\0132\031.subspace.RpcOpenResponseH" + "\000\022+\n\005close\030\004 \001(\0132\032.subspace.RpcCloseResp" + "onseH\000\022\r\n\005error\030\005 \001(\tB\n\n\010response\"\177\n\nRpc" + "Request\022\016\n\006method\030\001 \001(\005\022&\n\010argument\030\002 \001(" + "\0132\024.google.protobuf.Any\022\022\n\nsession_id\030\003 " + "\001(\005\022\022\n\nrequest_id\030\004 \001(\005\022\021\n\tclient_id\030\005 \001" + "(\004\"\244\001\n\013RpcResponse\022\r\n\005error\030\001 \001(\t\022$\n\006res" + "ult\030\002 \001(\0132\024.google.protobuf.Any\022\022\n\nsessi" + "on_id\030\003 \001(\005\022\022\n\nrequest_id\030\004 \001(\005\022\021\n\tclien" + "t_id\030\005 \001(\004\022\017\n\007is_last\030\006 \001(\010\022\024\n\014is_cancel" + "led\030\007 \001(\010\"M\n\020RpcCancelRequest\022\022\n\nsession" + "_id\030\001 \001(\005\022\022\n\nrequest_id\030\002 \001(\005\022\021\n\tclient_" + "id\030\003 \001(\004\"\032\n\nRawMessage\022\014\n\004data\030\001 \001(\014\"\r\n\013" + "VoidMessage\"\330\005\n\013ShadowEvent\022$\n\004init\030\001 \001(" + "\0132\024.subspace.ShadowInitH\000\0227\n\016create_chan" + "nel\030\002 \001(\0132\035.subspace.ShadowCreateChannel" + "H\000\0227\n\016remove_channel\030\003 \001(\0132\035.subspace.Sh" + "adowRemoveChannelH\000\0225\n\radd_publisher\030\004 \001" + "(\0132\034.subspace.ShadowAddPublisherH\000\022;\n\020re" + "move_publisher\030\005 \001(\0132\037.subspace.ShadowRe" + "movePublisherH\000\0227\n\016add_subscriber\030\006 \001(\0132" + "\035.subspace.ShadowAddSubscriberH\000\022=\n\021remo" + "ve_subscriber\030\007 \001(\0132 .subspace.ShadowRem" + "oveSubscriberH\000\022/\n\nstate_dump\030\010 \001(\0132\031.su" + "bspace.ShadowStateDumpH\000\022/\n\nstate_done\030\t" + " \001(\0132\031.subspace.ShadowStateDoneH\000\022F\n\026reg" + "ister_client_buffer\030\n \001(\0132$.subspace.Sha" + "dowRegisterClientBufferH\000\022J\n\030unregister_" + "client_buffer\030\013 \001(\0132&.subspace.ShadowUnr" + "egisterClientBufferH\000\022F\n\026update_channel_" + "options\030\014 \001(\0132$.subspace.ShadowUpdateCha" + "nnelOptionsH\000B\007\n\005event\" \n\nShadowInit\022\022\n\n" + "session_id\030\001 \001(\004\"\222\003\n\023ShadowCreateChannel" + "\022\024\n\014channel_name\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001" + "(\005\022\021\n\tslot_size\030\003 \001(\005\022\021\n\tnum_slots\030\004 \001(\005" + "\022\014\n\004type\030\005 \001(\014\022\020\n\010is_local\030\006 \001(\010\022\023\n\013is_r" + "eliable\030\007 \001(\010\022\025\n\ris_fixed_size\030\010 \001(\010\022\025\n\r" + "checksum_size\030\t \001(\005\022\025\n\rmetadata_size\030\n \001" + "(\005\022\013\n\003mux\030\013 \001(\t\022\020\n\010vchan_id\030\014 \001(\005\022 \n\030has" + "_split_buffer_options\030\r \001(\010\022\031\n\021use_split" + "_buffers\030\016 \001(\010\022\032\n\022has_max_publishers\030\017 \001" + "(\010\022\026\n\016max_publishers\030\020 \001(\005\022!\n\031split_buff" + "ers_over_bridge\030\021 \001(\010\"\?\n\023ShadowRemoveCha" + "nnel\022\024\n\014channel_name\030\001 \001(\t\022\022\n\nchannel_id" + "\030\002 \001(\005\"\300\001\n\022ShadowAddPublisher\022\024\n\014channel" + "_name\030\001 \001(\t\022\024\n\014publisher_id\030\002 \001(\005\022\023\n\013is_" + "reliable\030\003 \001(\010\022\020\n\010is_local\030\004 \001(\010\022\021\n\tis_b" + "ridge\030\005 \001(\010\022\025\n\ris_fixed_size\030\006 \001(\010\022\031\n\021no" + "tify_retirement\030\007 \001(\010\022\022\n\nfor_tunnel\030\010 \001(" + "\010\"C\n\025ShadowRemovePublisher\022\024\n\014channel_na" + "me\030\001 \001(\t\022\024\n\014publisher_id\030\002 \001(\005\"\233\001\n\023Shado" + "wAddSubscriber\022\024\n\014channel_name\030\001 \001(\t\022\025\n\r" + "subscriber_id\030\002 \001(\005\022\023\n\013is_reliable\030\003 \001(\010" + "\022\021\n\tis_bridge\030\004 \001(\010\022\033\n\023max_active_messag" + "es\030\005 \001(\005\022\022\n\nfor_tunnel\030\006 \001(\010\"E\n\026ShadowRe" + "moveSubscriber\022\024\n\014channel_name\030\001 \001(\t\022\025\n\r" + "subscriber_id\030\002 \001(\005\";\n\017ShadowStateDump\022\022" + "\n\nsession_id\030\001 \001(\004\022\024\n\014num_channels\030\002 \001(\005" + "\"\021\n\017ShadowStateDone\"{\n\032ShadowRegisterCli" + "entBuffer\022;\n\010metadata\030\001 \001(\0132).subspace.C" + "lientBufferHandleMetadataProto\022\016\n\006has_fd" + "\030\002 \001(\010\022\020\n\010fd_index\030\003 \001(\005\"^\n\034ShadowUnregi" + "sterClientBuffer\022\024\n\014channel_name\030\001 \001(\t\022\022" + "\n\nsession_id\030\002 \001(\004\022\024\n\014buffer_index\030\003 \001(\r" + "\"\306\001\n\032ShadowUpdateChannelOptions\022\024\n\014chann" + "el_name\030\001 \001(\t\022 \n\030has_split_buffer_option" + "s\030\002 \001(\010\022\031\n\021use_split_buffers\030\003 \001(\010\022\032\n\022ha" + "s_max_publishers\030\004 \001(\010\022\026\n\016max_publishers" + "\030\005 \001(\005\022!\n\031split_buffers_over_bridge\030\006 \001(" + "\010b\006proto3" }; -static const ::_pbi::DescriptorTable* const descriptor_table_subspace_2eproto_deps[1] = - { +static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const + descriptor_table_subspace_2eproto_deps[1] = { &::descriptor_table_google_2fprotobuf_2fany_2eproto, }; static ::absl::once_flag descriptor_table_subspace_2eproto_once; PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_subspace_2eproto = { false, false, - 8954, + 9489, descriptor_table_protodef_subspace_2eproto, "subspace.proto", &descriptor_table_subspace_2eproto_once, descriptor_table_subspace_2eproto_deps, 1, - 59, + 62, schemas, file_default_instances, TableStruct_subspace_2eproto::offsets, @@ -2974,28 +3012,34 @@ namespace subspace { class InitRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(InitRequest, _impl_._has_bits_); }; -InitRequest::InitRequest(::google::protobuf::Arena* arena) +InitRequest::InitRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, InitRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.InitRequest) } -inline PROTOBUF_NDEBUG_INLINE InitRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::InitRequest& from_msg) - : client_name_(arena, from.client_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE InitRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::InitRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + client_name_(arena, from.client_name_) {} InitRequest::InitRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, InitRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3007,13 +3051,13 @@ InitRequest::InitRequest( // @@protoc_insertion_point(copy_constructor:subspace.InitRequest) } -inline PROTOBUF_NDEBUG_INLINE InitRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : client_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE InitRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + client_name_(arena) {} -inline void InitRequest::SharedCtor(::_pb::Arena* arena) { +inline void InitRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } InitRequest::~InitRequest() { @@ -3022,51 +3066,62 @@ InitRequest::~InitRequest() { } inline void InitRequest::SharedDtor(MessageLite& self) { InitRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.client_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* InitRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL InitRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) InitRequest(arena); } constexpr auto InitRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(InitRequest), alignof(InitRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull InitRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_InitRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &InitRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &InitRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &InitRequest::ByteSizeLong, - &InitRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(InitRequest, _impl_._cached_size_), - false, - }, - &InitRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* InitRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto InitRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_InitRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &InitRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &InitRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &InitRequest::ByteSizeLong, + &InitRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(InitRequest, _impl_._cached_size_), + false, + }, + &InitRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull InitRequest_class_data_ = + InitRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +InitRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&InitRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(InitRequest_class_data_.tc_table); + return InitRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 40, 2> InitRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 40, 2> +InitRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(InitRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -3075,7 +3130,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 40, 2> InitRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + InitRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -3084,13 +3139,13 @@ const ::_pbi::TcParseTable<0, 1, 0, 40, 2> InitRequest::_table_ = { }, {{ // string client_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(InitRequest, _impl_.client_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(InitRequest, _impl_.client_name_)}}, }}, {{ 65535, 65535 }}, {{ // string client_name = 1; - {PROTOBUF_FIELD_OFFSET(InitRequest, _impl_.client_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(InitRequest, _impl_.client_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -3099,7 +3154,6 @@ const ::_pbi::TcParseTable<0, 1, 0, 40, 2> InitRequest::_table_ = { "client_name" }}, }; - PROTOBUF_NOINLINE void InitRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.InitRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3107,94 +3161,122 @@ PROTOBUF_NOINLINE void InitRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.client_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.client_name_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* InitRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const InitRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* InitRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const InitRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.InitRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string client_name = 1; - if (!this_._internal_client_name().empty()) { - const std::string& _s = this_._internal_client_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.InitRequest.client_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.InitRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL InitRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const InitRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL InitRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const InitRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.InitRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string client_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_client_name().empty()) { + const ::std::string& _s = this_._internal_client_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.InitRequest.client_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.InitRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t InitRequest::ByteSizeLong(const MessageLite& base) { - const InitRequest& this_ = static_cast(base); +::size_t InitRequest::ByteSizeLong(const MessageLite& base) { + const InitRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t InitRequest::ByteSizeLong() const { - const InitRequest& this_ = *this; +::size_t InitRequest::ByteSizeLong() const { + const InitRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.InitRequest) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.InitRequest) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // string client_name = 1; - if (!this_._internal_client_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_client_name()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // string client_name = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_client_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_client_name()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void InitRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void InitRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.InitRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_client_name().empty()) { - _this->_internal_set_client_name(from._internal_client_name()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_client_name().empty()) { + _this->_internal_set_client_name(from._internal_client_name()); + } else { + if (_this->_impl_.client_name_.IsDefault()) { + _this->_internal_set_client_name(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void InitRequest::CopyFrom(const InitRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.InitRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.InitRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void InitRequest::InternalSwap(InitRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void InitRequest::InternalSwap(InitRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.client_name_, &other->_impl_.client_name_, arena); } @@ -3205,11 +3287,15 @@ ::google::protobuf::Metadata InitRequest::GetMetadata() const { class InitResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(InitResponse, _impl_._has_bits_); }; -InitResponse::InitResponse(::google::protobuf::Arena* arena) +InitResponse::InitResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, InitResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3217,18 +3303,24 @@ InitResponse::InitResponse(::google::protobuf::Arena* arena) // @@protoc_insertion_point(arena_constructor:subspace.InitResponse) } InitResponse::InitResponse( - ::google::protobuf::Arena* arena, const InitResponse& from) - : InitResponse(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, InitResponse_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE InitResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE InitResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void InitResponse::SharedCtor(::_pb::Arena* arena) { +inline void InitResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, session_id_), 0, offsetof(Impl_, group_id_) - @@ -3241,50 +3333,61 @@ InitResponse::~InitResponse() { } inline void InitResponse::SharedDtor(MessageLite& self) { InitResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* InitResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL InitResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) InitResponse(arena); } constexpr auto InitResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(InitResponse), alignof(InitResponse)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull InitResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_InitResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &InitResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &InitResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &InitResponse::ByteSizeLong, - &InitResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_._cached_size_), - false, - }, - &InitResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* InitResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto InitResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_InitResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &InitResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &InitResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &InitResponse::ByteSizeLong, + &InitResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(InitResponse, _impl_._cached_size_), + false, + }, + &InitResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull InitResponse_class_data_ = + InitResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +InitResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&InitResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(InitResponse_class_data_.tc_table); + return InitResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> InitResponse::_table_ = { +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +InitResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(InitResponse, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -3293,7 +3396,7 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> InitResponse::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + InitResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -3301,38 +3404,37 @@ const ::_pbi::TcParseTable<2, 4, 0, 0, 2> InitResponse::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 group_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.group_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.group_id_), 3>(), + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_)}}, // int32 scb_fd_index = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.scb_fd_index_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.scb_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.scb_fd_index_), 1>(), + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.scb_fd_index_)}}, // int64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(InitResponse, _impl_.session_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(InitResponse, _impl_.session_id_), 0>(), + {16, 0, 0, + PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.session_id_)}}, // int32 user_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.user_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.user_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.user_id_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.user_id_)}}, }}, {{ 65535, 65535 }}, {{ // int32 scb_fd_index = 1; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.scb_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.scb_fd_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, // int32 user_id = 3; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.user_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.user_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 group_id = 4; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void InitResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.InitResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3340,139 +3442,183 @@ PROTOBUF_NOINLINE void InitResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.group_id_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.group_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.group_id_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.group_id_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* InitResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const InitResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* InitResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const InitResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.InitResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 scb_fd_index = 1; - if (this_._internal_scb_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this_._internal_scb_fd_index(), target); - } - - // int64 session_id = 2; - if (this_._internal_session_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this_._internal_session_id(), target); - } - - // int32 user_id = 3; - if (this_._internal_user_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_user_id(), target); - } - - // int32 group_id = 4; - if (this_._internal_group_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this_._internal_group_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.InitResponse) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t InitResponse::ByteSizeLong(const MessageLite& base) { - const InitResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t InitResponse::ByteSizeLong() const { - const InitResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.InitResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // int64 session_id = 2; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_session_id()); - } - // int32 scb_fd_index = 1; - if (this_._internal_scb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_scb_fd_index()); - } - // int32 user_id = 3; - if (this_._internal_user_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_user_id()); - } - // int32 group_id = 4; - if (this_._internal_group_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_group_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void InitResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.InitResponse) - ABSL_DCHECK_NE(&from, _this); +::uint8_t* PROTOBUF_NONNULL InitResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const InitResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL InitResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const InitResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.InitResponse) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // int32 scb_fd_index = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_scb_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_scb_fd_index(), target); + } } - if (from._internal_scb_fd_index() != 0) { - _this->_impl_.scb_fd_index_ = from._impl_.scb_fd_index_; + + // int64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_session_id(), target); + } } - if (from._internal_user_id() != 0) { - _this->_impl_.user_id_ = from._impl_.user_id_; + + // int32 user_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_user_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_user_id(), target); + } } - if (from._internal_group_id() != 0) { - _this->_impl_.group_id_ = from._impl_.group_id_; + + // int32 group_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_group_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_group_id(), target); + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} -void InitResponse::CopyFrom(const InitResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.InitResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.InitResponse) + return target; } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t InitResponse::ByteSizeLong(const MessageLite& base) { + const InitResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t InitResponse::ByteSizeLong() const { + const InitResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.InitResponse) + ::size_t total_size = 0; -void InitResponse::InternalSwap(InitResponse* PROTOBUF_RESTRICT other) { - using std::swap; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // int64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_session_id()); + } + } + // int32 scb_fd_index = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_scb_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_scb_fd_index()); + } + } + // int32 user_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_user_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_user_id()); + } + } + // int32 group_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_group_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_group_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void InitResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.InitResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_scb_fd_index() != 0) { + _this->_impl_.scb_fd_index_ = from._impl_.scb_fd_index_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_user_id() != 0) { + _this->_impl_.user_id_ = from._impl_.user_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_group_id() != 0) { + _this->_impl_.group_id_ = from._impl_.group_id_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void InitResponse::CopyFrom(const InitResponse& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.InitResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void InitResponse::InternalSwap(InitResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_) + sizeof(InitResponse::_impl_.group_id_) @@ -3488,30 +3634,36 @@ ::google::protobuf::Metadata InitResponse::GetMetadata() const { class CreatePublisherRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_._has_bits_); }; -CreatePublisherRequest::CreatePublisherRequest(::google::protobuf::Arena* arena) +CreatePublisherRequest::CreatePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, CreatePublisherRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.CreatePublisherRequest) } -inline PROTOBUF_NDEBUG_INLINE CreatePublisherRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::CreatePublisherRequest& from_msg) - : channel_name_(arena, from.channel_name_), +PROTOBUF_NDEBUG_INLINE CreatePublisherRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::CreatePublisherRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_), type_(arena, from.type_), - mux_(arena, from.mux_), - _cached_size_{0} {} + mux_(arena, from.mux_) {} CreatePublisherRequest::CreatePublisherRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreatePublisherRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, CreatePublisherRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3520,9 +3672,9 @@ CreatePublisherRequest::CreatePublisherRequest( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, num_slots_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, num_slots_), offsetof(Impl_, max_publishers_) - offsetof(Impl_, num_slots_) + @@ -3530,17 +3682,17 @@ CreatePublisherRequest::CreatePublisherRequest( // @@protoc_insertion_point(copy_constructor:subspace.CreatePublisherRequest) } -inline PROTOBUF_NDEBUG_INLINE CreatePublisherRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), +PROTOBUF_NDEBUG_INLINE CreatePublisherRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena), type_(arena), - mux_(arena), - _cached_size_{0} {} + mux_(arena) {} -inline void CreatePublisherRequest::SharedCtor(::_pb::Arena* arena) { +inline void CreatePublisherRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, num_slots_), 0, offsetof(Impl_, max_publishers_) - @@ -3553,6 +3705,9 @@ CreatePublisherRequest::~CreatePublisherRequest() { } inline void CreatePublisherRequest::SharedDtor(MessageLite& self) { CreatePublisherRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); @@ -3561,45 +3716,53 @@ inline void CreatePublisherRequest::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* CreatePublisherRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL CreatePublisherRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) CreatePublisherRequest(arena); } constexpr auto CreatePublisherRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CreatePublisherRequest), alignof(CreatePublisherRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull CreatePublisherRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_CreatePublisherRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreatePublisherRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreatePublisherRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreatePublisherRequest::ByteSizeLong, - &CreatePublisherRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_._cached_size_), - false, - }, - &CreatePublisherRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* CreatePublisherRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto CreatePublisherRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CreatePublisherRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CreatePublisherRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CreatePublisherRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CreatePublisherRequest::ByteSizeLong, + &CreatePublisherRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_._cached_size_), + false, + }, + &CreatePublisherRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CreatePublisherRequest_class_data_ = + CreatePublisherRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CreatePublisherRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CreatePublisherRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CreatePublisherRequest_class_data_.tc_table); + return CreatePublisherRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 18, 0, 71, 2> CreatePublisherRequest::_table_ = { +const ::_pbi::TcParseTable<5, 18, 0, 71, 2> +CreatePublisherRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_._has_bits_), 0, // no _extensions_ 18, 248, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -3608,7 +3771,7 @@ const ::_pbi::TcParseTable<5, 18, 0, 71, 2> CreatePublisherRequest::_table_ = { 18, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + CreatePublisherRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -3618,58 +3781,76 @@ const ::_pbi::TcParseTable<5, 18, 0, 71, 2> CreatePublisherRequest::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.channel_name_)}}, // int32 num_slots = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.num_slots_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.num_slots_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.num_slots_), 3>(), + {16, 3, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.num_slots_)}}, // int32 slot_size = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.slot_size_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.slot_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.slot_size_), 4>(), + {24, 4, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.slot_size_)}}, // bool is_local = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_local_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 5, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_local_)}}, // bool is_reliable = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 6, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_reliable_)}}, // bool is_bridge = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_bridge_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 7, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_bridge_)}}, // bytes type = 7; {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.type_)}}, + {58, 1, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.type_)}}, // bool is_fixed_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_fixed_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {64, 8, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_fixed_size_)}}, // string mux = 9; {::_pbi::TcParser::FastUS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.mux_)}}, + {74, 2, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.mux_)}}, // int32 vchan_id = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.vchan_id_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.vchan_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.vchan_id_), 9>(), + {80, 9, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.vchan_id_)}}, // bool notify_retirement = 11; - {::_pbi::TcParser::SingularVarintNoZag1(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.notify_retirement_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {88, 13, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.notify_retirement_)}}, // int32 checksum_size = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.checksum_size_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.checksum_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.checksum_size_), 10>(), + {96, 10, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.checksum_size_)}}, // int32 metadata_size = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.metadata_size_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.metadata_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.metadata_size_), 11>(), + {104, 11, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.metadata_size_)}}, // int32 publisher_id = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.publisher_id_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.publisher_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.publisher_id_), 12>(), + {112, 12, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.publisher_id_)}}, // bool for_tunnel = 15; - {::_pbi::TcParser::SingularVarintNoZag1(), - {120, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.for_tunnel_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {120, 14, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.for_tunnel_)}}, // bool use_split_buffers = 16; {::_pbi::TcParser::FastV8S2, - {384, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.use_split_buffers_)}}, + {384, 15, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.use_split_buffers_)}}, // int32 max_publishers = 17; {::_pbi::TcParser::FastV32S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.max_publishers_)}}, + {392, 17, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.max_publishers_)}}, // bool split_buffers_over_bridge = 18; {::_pbi::TcParser::FastV8S2, - {400, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.split_buffers_over_bridge_)}}, + {400, 16, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.split_buffers_over_bridge_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -3687,59 +3868,41 @@ const ::_pbi::TcParseTable<5, 18, 0, 71, 2> CreatePublisherRequest::_table_ = { 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 num_slots = 2; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.num_slots_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.num_slots_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 slot_size = 3; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.slot_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.slot_size_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool is_local = 4; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_local_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_local_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_reliable = 5; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_reliable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_reliable_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_bridge = 6; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_bridge_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_bridge_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bytes type = 7; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bool is_fixed_size = 8; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_fixed_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_fixed_size_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // string mux = 9; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.mux_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 vchan_id = 10; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.vchan_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.vchan_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool notify_retirement = 11; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.notify_retirement_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // int32 checksum_size = 12; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.checksum_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.checksum_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 metadata_size = 13; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.metadata_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.metadata_size_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 publisher_id = 14; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.publisher_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.publisher_id_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool for_tunnel = 15; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.for_tunnel_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool use_split_buffers = 16; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.use_split_buffers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // int32 max_publishers = 17; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.max_publishers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.max_publishers_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool split_buffers_over_bridge = 18; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.split_buffers_over_bridge_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -3749,7 +3912,6 @@ const ::_pbi::TcParseTable<5, 18, 0, 71, 2> CreatePublisherRequest::_table_ = { "mux" }}, }; - PROTOBUF_NOINLINE void CreatePublisherRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.CreatePublisherRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3757,347 +3919,513 @@ PROTOBUF_NOINLINE void CreatePublisherRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.mux_.ClearToEmpty(); - ::memset(&_impl_.num_slots_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_publishers_) - - reinterpret_cast(&_impl_.num_slots_)) + sizeof(_impl_.max_publishers_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.mux_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.num_slots_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_bridge_) - + reinterpret_cast(&_impl_.num_slots_)) + sizeof(_impl_.is_bridge_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + ::memset(&_impl_.is_fixed_size_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.use_split_buffers_) - + reinterpret_cast(&_impl_.is_fixed_size_)) + sizeof(_impl_.use_split_buffers_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) { + ::memset(&_impl_.split_buffers_over_bridge_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.max_publishers_) - + reinterpret_cast(&_impl_.split_buffers_over_bridge_)) + sizeof(_impl_.max_publishers_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* CreatePublisherRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const CreatePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* CreatePublisherRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const CreatePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreatePublisherRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 num_slots = 2; - if (this_._internal_num_slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_num_slots(), target); - } - - // int32 slot_size = 3; - if (this_._internal_slot_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_slot_size(), target); - } - - // bool is_local = 4; - if (this_._internal_is_local() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_local(), target); - } - - // bool is_reliable = 5; - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_is_reliable(), target); - } - - // bool is_bridge = 6; - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_bridge(), target); - } - - // bytes type = 7; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - } - - // bool is_fixed_size = 8; - if (this_._internal_is_fixed_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this_._internal_is_fixed_size(), target); - } - - // string mux = 9; - if (!this_._internal_mux().empty()) { - const std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherRequest.mux"); - target = stream->WriteStringMaybeAliased(9, _s, target); - } - - // int32 vchan_id = 10; - if (this_._internal_vchan_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<10>( - stream, this_._internal_vchan_id(), target); - } - - // bool notify_retirement = 11; - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 11, this_._internal_notify_retirement(), target); - } - - // int32 checksum_size = 12; - if (this_._internal_checksum_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<12>( - stream, this_._internal_checksum_size(), target); - } - - // int32 metadata_size = 13; - if (this_._internal_metadata_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<13>( - stream, this_._internal_metadata_size(), target); - } - - // int32 publisher_id = 14; - if (this_._internal_publisher_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<14>( - stream, this_._internal_publisher_id(), target); - } - - // bool for_tunnel = 15; - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 15, this_._internal_for_tunnel(), target); - } - - // bool use_split_buffers = 16; - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 16, this_._internal_use_split_buffers(), target); - } - - // int32 max_publishers = 17; - if (this_._internal_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 17, this_._internal_max_publishers(), target); - } - - // bool split_buffers_over_bridge = 18; - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 18, this_._internal_split_buffers_over_bridge(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreatePublisherRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL CreatePublisherRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CreatePublisherRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CreatePublisherRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CreatePublisherRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.CreatePublisherRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t CreatePublisherRequest::ByteSizeLong(const MessageLite& base) { - const CreatePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t CreatePublisherRequest::ByteSizeLong() const { - const CreatePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreatePublisherRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // bytes type = 7; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - // string mux = 9; - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - // int32 num_slots = 2; - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - // int32 slot_size = 3; - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - // bool is_local = 4; - if (this_._internal_is_local() != 0) { - total_size += 2; - } - // bool is_reliable = 5; - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - // bool is_bridge = 6; - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - // bool is_fixed_size = 8; - if (this_._internal_is_fixed_size() != 0) { - total_size += 2; - } - // int32 vchan_id = 10; - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - // int32 checksum_size = 12; - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - // int32 metadata_size = 13; - if (this_._internal_metadata_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_metadata_size()); - } - // int32 publisher_id = 14; - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - // bool for_tunnel = 15; - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - // bool notify_retirement = 11; - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - // bool use_split_buffers = 16; - if (this_._internal_use_split_buffers() != 0) { - total_size += 3; - } - // bool split_buffers_over_bridge = 18; - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 3; - } - // int32 max_publishers = 17; - if (this_._internal_max_publishers() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_max_publishers()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // int32 num_slots = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_num_slots() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_num_slots(), target); + } + } -void CreatePublisherRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreatePublisherRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int32 slot_size = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_slot_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_slot_size(), target); + } + } + + // bool is_local = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_local() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_local(), target); + } + } + + // bool is_reliable = 5; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_is_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_is_reliable(), target); + } + } - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + // bool is_bridge = 6; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_is_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_is_bridge(), target); + } + } + + // bytes type = 7; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + target = stream->WriteBytesMaybeAliased(7, _s, target); + } + } + + // bool is_fixed_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_is_fixed_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_is_fixed_size(), target); + } + } + + // string mux = 9; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + const ::std::string& _s = this_._internal_mux(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherRequest.mux"); + target = stream->WriteStringMaybeAliased(9, _s, target); + } } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + + // int32 vchan_id = 10; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_vchan_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( + stream, this_._internal_vchan_id(), target); + } } - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); + + // bool notify_retirement = 11; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_notify_retirement() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 11, this_._internal_notify_retirement(), target); + } } - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; + + // int32 checksum_size = 12; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_checksum_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>( + stream, this_._internal_checksum_size(), target); + } } - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; + + // int32 metadata_size = 13; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_metadata_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>( + stream, this_._internal_metadata_size(), target); + } } - if (from._internal_is_local() != 0) { - _this->_impl_.is_local_ = from._impl_.is_local_; + + // int32 publisher_id = 14; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_publisher_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( + stream, this_._internal_publisher_id(), target); + } } - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + + // bool for_tunnel = 15; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_for_tunnel() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 15, this_._internal_for_tunnel(), target); + } } - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + + // bool use_split_buffers = 16; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_use_split_buffers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 16, this_._internal_use_split_buffers(), target); + } } - if (from._internal_is_fixed_size() != 0) { - _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; + + // int32 max_publishers = 17; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (this_._internal_max_publishers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 17, this_._internal_max_publishers(), target); + } } - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + + // bool split_buffers_over_bridge = 18; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 18, this_._internal_split_buffers_over_bridge(), target); + } } - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.CreatePublisherRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CreatePublisherRequest::ByteSizeLong(const MessageLite& base) { + const CreatePublisherRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CreatePublisherRequest::ByteSizeLong() const { + const CreatePublisherRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.CreatePublisherRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // bytes type = 7; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_type()); + } + } + // string mux = 9; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_mux()); + } + } + // int32 num_slots = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_num_slots() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_slots()); + } + } + // int32 slot_size = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_slot_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_size()); + } + } + // bool is_local = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_local() != 0) { + total_size += 2; + } + } + // bool is_reliable = 5; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_is_reliable() != 0) { + total_size += 2; + } + } + // bool is_bridge = 6; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_is_bridge() != 0) { + total_size += 2; + } + } } - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + // bool is_fixed_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_is_fixed_size() != 0) { + total_size += 2; + } + } + // int32 vchan_id = 10; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_vchan_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_vchan_id()); + } + } + // int32 checksum_size = 12; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_checksum_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_checksum_size()); + } + } + // int32 metadata_size = 13; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_metadata_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_metadata_size()); + } + } + // int32 publisher_id = 14; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_publisher_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_publisher_id()); + } + } + // bool notify_retirement = 11; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_notify_retirement() != 0) { + total_size += 2; + } + } + // bool for_tunnel = 15; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_for_tunnel() != 0) { + total_size += 2; + } + } + // bool use_split_buffers = 16; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_use_split_buffers() != 0) { + total_size += 3; + } + } } - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) { + // bool split_buffers_over_bridge = 18; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + total_size += 3; + } + } + // int32 max_publishers = 17; + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (this_._internal_max_publishers() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_max_publishers()); + } + } } - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void CreatePublisherRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreatePublisherRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_mux().empty()) { + _this->_internal_set_mux(from._internal_mux()); + } else { + if (_this->_impl_.mux_.IsDefault()) { + _this->_internal_set_mux(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_num_slots() != 0) { + _this->_impl_.num_slots_ = from._impl_.num_slots_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_slot_size() != 0) { + _this->_impl_.slot_size_ = from._impl_.slot_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_is_local() != 0) { + _this->_impl_.is_local_ = from._impl_.is_local_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_is_reliable() != 0) { + _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_is_bridge() != 0) { + _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + } + } } - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_is_fixed_size() != 0) { + _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_vchan_id() != 0) { + _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_checksum_size() != 0) { + _this->_impl_.checksum_size_ = from._impl_.checksum_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_metadata_size() != 0) { + _this->_impl_.metadata_size_ = from._impl_.metadata_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (from._internal_publisher_id() != 0) { + _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (from._internal_notify_retirement() != 0) { + _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; + } + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (from._internal_for_tunnel() != 0) { + _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + } + } + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (from._internal_use_split_buffers() != 0) { + _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; + } + } } - if (from._internal_max_publishers() != 0) { - _this->_impl_.max_publishers_ = from._impl_.max_publishers_; + if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (from._internal_split_buffers_over_bridge() != 0) { + _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + } + } + if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if (from._internal_max_publishers() != 0) { + _this->_impl_.max_publishers_ = from._impl_.max_publishers_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void CreatePublisherRequest::CopyFrom(const CreatePublisherRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreatePublisherRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreatePublisherRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void CreatePublisherRequest::InternalSwap(CreatePublisherRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void CreatePublisherRequest::InternalSwap(CreatePublisherRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); @@ -4116,33 +4444,39 @@ ::google::protobuf::Metadata CreatePublisherRequest::GetMetadata() const { class CreatePublisherResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_._has_bits_); }; -CreatePublisherResponse::CreatePublisherResponse(::google::protobuf::Arena* arena) +CreatePublisherResponse::CreatePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, CreatePublisherResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.CreatePublisherResponse) } -inline PROTOBUF_NDEBUG_INLINE CreatePublisherResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::CreatePublisherResponse& from_msg) - : sub_trigger_fd_indexes_{visibility, arena, from.sub_trigger_fd_indexes_}, +PROTOBUF_NDEBUG_INLINE CreatePublisherResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::CreatePublisherResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + sub_trigger_fd_indexes_{visibility, arena, from.sub_trigger_fd_indexes_}, _sub_trigger_fd_indexes_cached_byte_size_{0}, retirement_fd_indexes_{visibility, arena, from.retirement_fd_indexes_}, _retirement_fd_indexes_cached_byte_size_{0}, error_(arena, from.error_), - type_(arena, from.type_), - _cached_size_{0} {} + type_(arena, from.type_) {} CreatePublisherResponse::CreatePublisherResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreatePublisherResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, CreatePublisherResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4151,9 +4485,9 @@ CreatePublisherResponse::CreatePublisherResponse( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, channel_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, channel_id_), offsetof(Impl_, retirement_fd_index_) - offsetof(Impl_, channel_id_) + @@ -4161,20 +4495,20 @@ CreatePublisherResponse::CreatePublisherResponse( // @@protoc_insertion_point(copy_constructor:subspace.CreatePublisherResponse) } -inline PROTOBUF_NDEBUG_INLINE CreatePublisherResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : sub_trigger_fd_indexes_{visibility, arena}, +PROTOBUF_NDEBUG_INLINE CreatePublisherResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + sub_trigger_fd_indexes_{visibility, arena}, _sub_trigger_fd_indexes_cached_byte_size_{0}, retirement_fd_indexes_{visibility, arena}, _retirement_fd_indexes_cached_byte_size_{0}, error_(arena), - type_(arena), - _cached_size_{0} {} + type_(arena) {} -inline void CreatePublisherResponse::SharedCtor(::_pb::Arena* arena) { +inline void CreatePublisherResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, channel_id_), 0, offsetof(Impl_, retirement_fd_index_) - @@ -4187,6 +4521,9 @@ CreatePublisherResponse::~CreatePublisherResponse() { } inline void CreatePublisherResponse::SharedDtor(MessageLite& self) { CreatePublisherResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); @@ -4194,8 +4531,9 @@ inline void CreatePublisherResponse::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* CreatePublisherResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL CreatePublisherResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) CreatePublisherResponse(arena); } constexpr auto CreatePublisherResponse::InternalNewImpl_() { @@ -4218,37 +4556,44 @@ constexpr auto CreatePublisherResponse::InternalNewImpl_() { alignof(CreatePublisherResponse)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull CreatePublisherResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_CreatePublisherResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreatePublisherResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreatePublisherResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreatePublisherResponse::ByteSizeLong, - &CreatePublisherResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_._cached_size_), - false, - }, - &CreatePublisherResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* CreatePublisherResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto CreatePublisherResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CreatePublisherResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CreatePublisherResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CreatePublisherResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CreatePublisherResponse::ByteSizeLong, + &CreatePublisherResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_._cached_size_), + false, + }, + &CreatePublisherResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 13, 0, 54, 2> CreatePublisherResponse::_table_ = { + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CreatePublisherResponse_class_data_ = + CreatePublisherResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CreatePublisherResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CreatePublisherResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CreatePublisherResponse_class_data_.tc_table); + return CreatePublisherResponse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<4, 13, 0, 54, 2> +CreatePublisherResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_._has_bits_), 0, // no _extensions_ 15, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -4257,7 +4602,7 @@ const ::_pbi::TcParseTable<4, 13, 0, 54, 2> CreatePublisherResponse::_table_ = { 13, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + CreatePublisherResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -4267,87 +4612,87 @@ const ::_pbi::TcParseTable<4, 13, 0, 54, 2> CreatePublisherResponse::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.error_)}}, + {10, 2, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.error_)}}, // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.channel_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.channel_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.channel_id_), 4>(), + {16, 4, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.channel_id_)}}, // int32 publisher_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.publisher_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.publisher_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.publisher_id_), 5>(), + {24, 5, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.publisher_id_)}}, // int32 ccb_fd_index = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.ccb_fd_index_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.ccb_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.ccb_fd_index_), 6>(), + {32, 6, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.ccb_fd_index_)}}, // int32 bcb_fd_index = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.bcb_fd_index_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.bcb_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.bcb_fd_index_), 7>(), + {40, 7, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.bcb_fd_index_)}}, // int32 pub_poll_fd_index = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.pub_poll_fd_index_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_poll_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.pub_poll_fd_index_), 8>(), + {48, 8, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_poll_fd_index_)}}, // int32 pub_trigger_fd_index = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.pub_trigger_fd_index_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_trigger_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.pub_trigger_fd_index_), 9>(), + {56, 9, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_trigger_fd_index_)}}, // repeated int32 sub_trigger_fd_indexes = 8; {::_pbi::TcParser::FastV32P1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_)}}, + {66, 0, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_)}}, // int32 num_sub_updates = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.num_sub_updates_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.num_sub_updates_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.num_sub_updates_), 10>(), + {72, 10, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.num_sub_updates_)}}, // bytes type = 10; {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.type_)}}, + {82, 3, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.type_)}}, // int32 vchan_id = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.vchan_id_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.vchan_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.vchan_id_), 11>(), + {88, 11, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.vchan_id_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, // int32 retirement_fd_index = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.retirement_fd_index_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.retirement_fd_index_), 12>(), + {112, 12, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_index_)}}, // repeated int32 retirement_fd_indexes = 15; {::_pbi::TcParser::FastV32P1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_indexes_)}}, + {122, 1, 0, + PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_indexes_)}}, }}, {{ 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.error_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.channel_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.channel_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 publisher_id = 3; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.publisher_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.publisher_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 ccb_fd_index = 4; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.ccb_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.ccb_fd_index_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 bcb_fd_index = 5; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.bcb_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.bcb_fd_index_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 pub_poll_fd_index = 6; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_poll_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_poll_fd_index_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 pub_trigger_fd_index = 7; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_trigger_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_trigger_fd_index_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // repeated int32 sub_trigger_fd_indexes = 8; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, // int32 num_sub_updates = 9; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.num_sub_updates_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.num_sub_updates_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bytes type = 10; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // int32 vchan_id = 11; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.vchan_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.vchan_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 retirement_fd_index = 14; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_index_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // repeated int32 retirement_fd_indexes = 15; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_indexes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, }}, // no aux_entries {{ @@ -4356,7 +4701,6 @@ const ::_pbi::TcParseTable<4, 13, 0, 54, 2> CreatePublisherResponse::_table_ = { "error" }}, }; - PROTOBUF_NOINLINE void CreatePublisherResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.CreatePublisherResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4364,286 +4708,405 @@ PROTOBUF_NOINLINE void CreatePublisherResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.sub_trigger_fd_indexes_.Clear(); - _impl_.retirement_fd_indexes_.Clear(); - _impl_.error_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.retirement_fd_index_) - - reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.retirement_fd_index_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.sub_trigger_fd_indexes_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.retirement_fd_indexes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { + ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.bcb_fd_index_) - + reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.bcb_fd_index_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + ::memset(&_impl_.pub_poll_fd_index_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.retirement_fd_index_) - + reinterpret_cast(&_impl_.pub_poll_fd_index_)) + sizeof(_impl_.retirement_fd_index_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* CreatePublisherResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const CreatePublisherResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* CreatePublisherResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const CreatePublisherResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreatePublisherResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - - // int32 publisher_id = 3; - if (this_._internal_publisher_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_publisher_id(), target); - } - - // int32 ccb_fd_index = 4; - if (this_._internal_ccb_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this_._internal_ccb_fd_index(), target); - } - - // int32 bcb_fd_index = 5; - if (this_._internal_bcb_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this_._internal_bcb_fd_index(), target); - } - - // int32 pub_poll_fd_index = 6; - if (this_._internal_pub_poll_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this_._internal_pub_poll_fd_index(), target); - } - - // int32 pub_trigger_fd_index = 7; - if (this_._internal_pub_trigger_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<7>( - stream, this_._internal_pub_trigger_fd_index(), target); - } - - // repeated int32 sub_trigger_fd_indexes = 8; - { - int byte_size = this_._impl_._sub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 8, this_._internal_sub_trigger_fd_indexes(), byte_size, target); - } - } - - // int32 num_sub_updates = 9; - if (this_._internal_num_sub_updates() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<9>( - stream, this_._internal_num_sub_updates(), target); - } - - // bytes type = 10; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(10, _s, target); - } - - // int32 vchan_id = 11; - if (this_._internal_vchan_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<11>( - stream, this_._internal_vchan_id(), target); - } - - // int32 retirement_fd_index = 14; - if (this_._internal_retirement_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<14>( - stream, this_._internal_retirement_fd_index(), target); - } - - // repeated int32 retirement_fd_indexes = 15; - { - int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 15, this_._internal_retirement_fd_indexes(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreatePublisherResponse) - return target; - } +::uint8_t* PROTOBUF_NONNULL CreatePublisherResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CreatePublisherResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CreatePublisherResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CreatePublisherResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.CreatePublisherResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t CreatePublisherResponse::ByteSizeLong(const MessageLite& base) { - const CreatePublisherResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t CreatePublisherResponse::ByteSizeLong() const { - const CreatePublisherResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreatePublisherResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated int32 sub_trigger_fd_indexes = 8; - { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_sub_trigger_fd_indexes(), 1, - this_._impl_._sub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 retirement_fd_indexes = 15; - { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_retirement_fd_indexes(), 1, - this_._impl_._retirement_fd_indexes_cached_byte_size_); - } - } - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - // bytes type = 10; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - // int32 publisher_id = 3; - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - // int32 ccb_fd_index = 4; - if (this_._internal_ccb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_ccb_fd_index()); - } - // int32 bcb_fd_index = 5; - if (this_._internal_bcb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_bcb_fd_index()); - } - // int32 pub_poll_fd_index = 6; - if (this_._internal_pub_poll_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_pub_poll_fd_index()); - } - // int32 pub_trigger_fd_index = 7; - if (this_._internal_pub_trigger_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_pub_trigger_fd_index()); - } - // int32 num_sub_updates = 9; - if (this_._internal_num_sub_updates() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_sub_updates()); - } - // int32 vchan_id = 11; - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - // int32 retirement_fd_index = 14; - if (this_._internal_retirement_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_retirement_fd_index()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_channel_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_channel_id(), target); + } + } -void CreatePublisherResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreatePublisherResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int32 publisher_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_publisher_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_publisher_id(), target); + } + } + + // int32 ccb_fd_index = 4; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_ccb_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_ccb_fd_index(), target); + } + } + + // int32 bcb_fd_index = 5; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_bcb_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_bcb_fd_index(), target); + } + } + + // int32 pub_poll_fd_index = 6; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_pub_poll_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_pub_poll_fd_index(), target); + } + } + + // int32 pub_trigger_fd_index = 7; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_pub_trigger_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_pub_trigger_fd_index(), target); + } + } + + // repeated int32 sub_trigger_fd_indexes = 8; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._sub_trigger_fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 8, this_._internal_sub_trigger_fd_indexes(), byte_size, target); + } + } + } - _this->_internal_mutable_sub_trigger_fd_indexes()->MergeFrom(from._internal_sub_trigger_fd_indexes()); - _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); + // int32 num_sub_updates = 9; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_num_sub_updates() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( + stream, this_._internal_num_sub_updates(), target); + } } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + + // bytes type = 10; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + target = stream->WriteBytesMaybeAliased(10, _s, target); + } } - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; + + // int32 vchan_id = 11; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_vchan_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( + stream, this_._internal_vchan_id(), target); + } } - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + + // int32 retirement_fd_index = 14; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_retirement_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( + stream, this_._internal_retirement_fd_index(), target); + } } - if (from._internal_ccb_fd_index() != 0) { - _this->_impl_.ccb_fd_index_ = from._impl_.ccb_fd_index_; + + // repeated int32 retirement_fd_indexes = 15; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + { + int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 15, this_._internal_retirement_fd_indexes(), byte_size, target); + } + } } - if (from._internal_bcb_fd_index() != 0) { - _this->_impl_.bcb_fd_index_ = from._impl_.bcb_fd_index_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_pub_poll_fd_index() != 0) { - _this->_impl_.pub_poll_fd_index_ = from._impl_.pub_poll_fd_index_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.CreatePublisherResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t CreatePublisherResponse::ByteSizeLong(const MessageLite& base) { + const CreatePublisherResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t CreatePublisherResponse::ByteSizeLong() const { + const CreatePublisherResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.CreatePublisherResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated int32 sub_trigger_fd_indexes = 8; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_sub_trigger_fd_indexes(), 1, + this_._impl_._sub_trigger_fd_indexes_cached_byte_size_); + } + // repeated int32 retirement_fd_indexes = 15; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_retirement_fd_indexes(), 1, + this_._impl_._retirement_fd_indexes_cached_byte_size_); + } + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + // bytes type = 10; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_type()); + } + } + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_channel_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_channel_id()); + } + } + // int32 publisher_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_publisher_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_publisher_id()); + } + } + // int32 ccb_fd_index = 4; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_ccb_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_ccb_fd_index()); + } + } + // int32 bcb_fd_index = 5; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_bcb_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_bcb_fd_index()); + } + } } - if (from._internal_pub_trigger_fd_index() != 0) { - _this->_impl_.pub_trigger_fd_index_ = from._impl_.pub_trigger_fd_index_; + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + // int32 pub_poll_fd_index = 6; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_pub_poll_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_pub_poll_fd_index()); + } + } + // int32 pub_trigger_fd_index = 7; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_pub_trigger_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_pub_trigger_fd_index()); + } + } + // int32 num_sub_updates = 9; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_num_sub_updates() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_sub_updates()); + } + } + // int32 vchan_id = 11; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_vchan_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_vchan_id()); + } + } + // int32 retirement_fd_index = 14; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_retirement_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_retirement_fd_index()); + } + } } - if (from._internal_num_sub_updates() != 0) { - _this->_impl_.num_sub_updates_ = from._impl_.num_sub_updates_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void CreatePublisherResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreatePublisherResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_sub_trigger_fd_indexes()->MergeFrom(from._internal_sub_trigger_fd_indexes()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_channel_id() != 0) { + _this->_impl_.channel_id_ = from._impl_.channel_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_publisher_id() != 0) { + _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_ccb_fd_index() != 0) { + _this->_impl_.ccb_fd_index_ = from._impl_.ccb_fd_index_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_bcb_fd_index() != 0) { + _this->_impl_.bcb_fd_index_ = from._impl_.bcb_fd_index_; + } + } } - if (from._internal_retirement_fd_index() != 0) { - _this->_impl_.retirement_fd_index_ = from._impl_.retirement_fd_index_; + if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_pub_poll_fd_index() != 0) { + _this->_impl_.pub_poll_fd_index_ = from._impl_.pub_poll_fd_index_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_pub_trigger_fd_index() != 0) { + _this->_impl_.pub_trigger_fd_index_ = from._impl_.pub_trigger_fd_index_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_num_sub_updates() != 0) { + _this->_impl_.num_sub_updates_ = from._impl_.num_sub_updates_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_vchan_id() != 0) { + _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (from._internal_retirement_fd_index() != 0) { + _this->_impl_.retirement_fd_index_ = from._impl_.retirement_fd_index_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void CreatePublisherResponse::CopyFrom(const CreatePublisherResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreatePublisherResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreatePublisherResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void CreatePublisherResponse::InternalSwap(CreatePublisherResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void CreatePublisherResponse::InternalSwap(CreatePublisherResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.sub_trigger_fd_indexes_.InternalSwap(&other->_impl_.sub_trigger_fd_indexes_); _impl_.retirement_fd_indexes_.InternalSwap(&other->_impl_.retirement_fd_indexes_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); @@ -4663,30 +5126,36 @@ ::google::protobuf::Metadata CreatePublisherResponse::GetMetadata() const { class CreateSubscriberRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_._has_bits_); }; -CreateSubscriberRequest::CreateSubscriberRequest(::google::protobuf::Arena* arena) +CreateSubscriberRequest::CreateSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, CreateSubscriberRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.CreateSubscriberRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateSubscriberRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::CreateSubscriberRequest& from_msg) - : channel_name_(arena, from.channel_name_), +PROTOBUF_NDEBUG_INLINE CreateSubscriberRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::CreateSubscriberRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_), type_(arena, from.type_), - mux_(arena, from.mux_), - _cached_size_{0} {} + mux_(arena, from.mux_) {} CreateSubscriberRequest::CreateSubscriberRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreateSubscriberRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, CreateSubscriberRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4695,9 +5164,9 @@ CreateSubscriberRequest::CreateSubscriberRequest( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, subscriber_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, subscriber_id_), offsetof(Impl_, vchan_id_) - offsetof(Impl_, subscriber_id_) + @@ -4705,17 +5174,17 @@ CreateSubscriberRequest::CreateSubscriberRequest( // @@protoc_insertion_point(copy_constructor:subspace.CreateSubscriberRequest) } -inline PROTOBUF_NDEBUG_INLINE CreateSubscriberRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), +PROTOBUF_NDEBUG_INLINE CreateSubscriberRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena), type_(arena), - mux_(arena), - _cached_size_{0} {} + mux_(arena) {} -inline void CreateSubscriberRequest::SharedCtor(::_pb::Arena* arena) { +inline void CreateSubscriberRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, subscriber_id_), 0, offsetof(Impl_, vchan_id_) - @@ -4728,6 +5197,9 @@ CreateSubscriberRequest::~CreateSubscriberRequest() { } inline void CreateSubscriberRequest::SharedDtor(MessageLite& self) { CreateSubscriberRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); @@ -4736,45 +5208,53 @@ inline void CreateSubscriberRequest::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* CreateSubscriberRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL CreateSubscriberRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) CreateSubscriberRequest(arena); } constexpr auto CreateSubscriberRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CreateSubscriberRequest), alignof(CreateSubscriberRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull CreateSubscriberRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_CreateSubscriberRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreateSubscriberRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreateSubscriberRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreateSubscriberRequest::ByteSizeLong, - &CreateSubscriberRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_._cached_size_), - false, - }, - &CreateSubscriberRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* CreateSubscriberRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto CreateSubscriberRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CreateSubscriberRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CreateSubscriberRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CreateSubscriberRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CreateSubscriberRequest::ByteSizeLong, + &CreateSubscriberRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_._cached_size_), + false, + }, + &CreateSubscriberRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CreateSubscriberRequest_class_data_ = + CreateSubscriberRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CreateSubscriberRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CreateSubscriberRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CreateSubscriberRequest_class_data_.tc_table); + return CreateSubscriberRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 0, 64, 2> CreateSubscriberRequest::_table_ = { +const ::_pbi::TcParseTable<4, 9, 0, 64, 2> +CreateSubscriberRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_._has_bits_), 0, // no _extensions_ 9, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -4783,7 +5263,7 @@ const ::_pbi::TcParseTable<4, 9, 0, 64, 2> CreateSubscriberRequest::_table_ = { 9, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + CreateSubscriberRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -4793,31 +5273,40 @@ const ::_pbi::TcParseTable<4, 9, 0, 64, 2> CreateSubscriberRequest::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.channel_name_)}}, // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.subscriber_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.subscriber_id_), 3>(), + {16, 3, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_)}}, // bool is_reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 4, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_reliable_)}}, // bool is_bridge = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_bridge_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 5, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_bridge_)}}, // bytes type = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.type_)}}, + {42, 1, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.type_)}}, // int32 max_active_messages = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.max_active_messages_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.max_active_messages_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.max_active_messages_), 7>(), + {48, 7, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.max_active_messages_)}}, // string mux = 7; {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.mux_)}}, + {58, 2, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.mux_)}}, // int32 vchan_id = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.vchan_id_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.vchan_id_), 8>(), + {64, 8, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_)}}, // bool for_tunnel = 9; - {::_pbi::TcParser::SingularVarintNoZag1(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.for_tunnel_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {72, 6, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.for_tunnel_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -4828,32 +5317,23 @@ const ::_pbi::TcParseTable<4, 9, 0, 64, 2> CreateSubscriberRequest::_table_ = { 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool is_reliable = 3; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_reliable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_reliable_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_bridge = 4; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_bridge_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_bridge_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bytes type = 5; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // int32 max_active_messages = 6; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.max_active_messages_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.max_active_messages_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // string mux = 7; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.mux_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 vchan_id = 8; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool for_tunnel = 9; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.for_tunnel_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -4863,7 +5343,6 @@ const ::_pbi::TcParseTable<4, 9, 0, 64, 2> CreateSubscriberRequest::_table_ = { "mux" }}, }; - PROTOBUF_NOINLINE void CreateSubscriberRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.CreateSubscriberRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4871,294 +5350,397 @@ PROTOBUF_NOINLINE void CreateSubscriberRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.mux_.ClearToEmpty(); - ::memset(&_impl_.subscriber_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.vchan_id_) - - reinterpret_cast(&_impl_.subscriber_id_)) + sizeof(_impl_.vchan_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.mux_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.subscriber_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.max_active_messages_) - + reinterpret_cast(&_impl_.subscriber_id_)) + sizeof(_impl_.max_active_messages_)); + } + _impl_.vchan_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* CreateSubscriberRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const CreateSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* CreateSubscriberRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const CreateSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreateSubscriberRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - - // bool is_reliable = 3; - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_is_reliable(), target); - } - - // bool is_bridge = 4; - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_bridge(), target); - } - - // bytes type = 5; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // int32 max_active_messages = 6; - if (this_._internal_max_active_messages() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this_._internal_max_active_messages(), target); - } - - // string mux = 7; - if (!this_._internal_mux().empty()) { - const std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberRequest.mux"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - // int32 vchan_id = 8; - if (this_._internal_vchan_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<8>( - stream, this_._internal_vchan_id(), target); - } - - // bool for_tunnel = 9; - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 9, this_._internal_for_tunnel(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreateSubscriberRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t CreateSubscriberRequest::ByteSizeLong(const MessageLite& base) { - const CreateSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t CreateSubscriberRequest::ByteSizeLong() const { - const CreateSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreateSubscriberRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // bytes type = 5; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - // string mux = 7; - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - // bool is_reliable = 3; - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - // bool is_bridge = 4; - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - // bool for_tunnel = 9; - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - // int32 max_active_messages = 6; - if (this_._internal_max_active_messages() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_max_active_messages()); - } - // int32 vchan_id = 8; - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void CreateSubscriberRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreateSubscriberRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); +::uint8_t* PROTOBUF_NONNULL CreateSubscriberRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CreateSubscriberRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CreateSubscriberRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CreateSubscriberRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + // @@protoc_insertion_point(serialize_to_array_start:subspace.CreateSubscriberRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_subscriber_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_subscriber_id(), target); + } } - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + + // bool is_reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_is_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_is_reliable(), target); + } } - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + + // bool is_bridge = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_bridge(), target); + } } - if (from._internal_max_active_messages() != 0) { - _this->_impl_.max_active_messages_ = from._impl_.max_active_messages_; + + // bytes type = 5; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } } - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + + // int32 max_active_messages = 6; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_max_active_messages() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_max_active_messages(), target); + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} -void CreateSubscriberRequest::CopyFrom(const CreateSubscriberRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreateSubscriberRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + // string mux = 7; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + const ::std::string& _s = this_._internal_mux(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberRequest.mux"); + target = stream->WriteStringMaybeAliased(7, _s, target); + } + } + // int32 vchan_id = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_vchan_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_vchan_id(), target); + } + } -void CreateSubscriberRequest::InternalSwap(CreateSubscriberRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_) - + sizeof(CreateSubscriberRequest::_impl_.vchan_id_) - - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_)>( - reinterpret_cast(&_impl_.subscriber_id_), - reinterpret_cast(&other->_impl_.subscriber_id_)); -} + // bool for_tunnel = 9; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_for_tunnel() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this_._internal_for_tunnel(), target); + } + } -::google::protobuf::Metadata CreateSubscriberRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.CreateSubscriberRequest) + return target; } -// =================================================================== - -class CreateSubscriberResponse::_Internal { - public: -}; -CreateSubscriberResponse::CreateSubscriberResponse(::google::protobuf::Arena* arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { +::size_t CreateSubscriberRequest::ByteSizeLong(const MessageLite& base) { + const CreateSubscriberRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { +::size_t CreateSubscriberRequest::ByteSizeLong() const { + const CreateSubscriberRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.CreateSubscriberResponse) -} -inline PROTOBUF_NDEBUG_INLINE CreateSubscriberResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::CreateSubscriberResponse& from_msg) - : reliable_pub_trigger_fd_indexes_{visibility, arena, from.reliable_pub_trigger_fd_indexes_}, - _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{visibility, arena, from.retirement_fd_indexes_}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena, from.error_), - type_(arena, from.type_), - _cached_size_{0} {} + // @@protoc_insertion_point(message_byte_size_start:subspace.CreateSubscriberRequest) + ::size_t total_size = 0; -CreateSubscriberResponse::CreateSubscriberResponse( - ::google::protobuf::Arena* arena, - const CreateSubscriberResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - CreateSubscriberResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, channel_id_), - offsetof(Impl_, use_split_buffers_) - - offsetof(Impl_, channel_id_) + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // bytes type = 5; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_type()); + } + } + // string mux = 7; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_mux()); + } + } + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_subscriber_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_subscriber_id()); + } + } + // bool is_reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_is_reliable() != 0) { + total_size += 2; + } + } + // bool is_bridge = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_bridge() != 0) { + total_size += 2; + } + } + // bool for_tunnel = 9; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_for_tunnel() != 0) { + total_size += 2; + } + } + // int32 max_active_messages = 6; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_max_active_messages() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_max_active_messages()); + } + } + } + { + // int32 vchan_id = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_vchan_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_vchan_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void CreateSubscriberRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreateSubscriberRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_mux().empty()) { + _this->_internal_set_mux(from._internal_mux()); + } else { + if (_this->_impl_.mux_.IsDefault()) { + _this->_internal_set_mux(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_subscriber_id() != 0) { + _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_is_reliable() != 0) { + _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_is_bridge() != 0) { + _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_for_tunnel() != 0) { + _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_max_active_messages() != 0) { + _this->_impl_.max_active_messages_ = from._impl_.max_active_messages_; + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_vchan_id() != 0) { + _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void CreateSubscriberRequest::CopyFrom(const CreateSubscriberRequest& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreateSubscriberRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CreateSubscriberRequest::InternalSwap(CreateSubscriberRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_) + + sizeof(CreateSubscriberRequest::_impl_.vchan_id_) + - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_)>( + reinterpret_cast(&_impl_.subscriber_id_), + reinterpret_cast(&other->_impl_.subscriber_id_)); +} + +::google::protobuf::Metadata CreateSubscriberRequest::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class CreateSubscriberResponse::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_._has_bits_); +}; + +CreateSubscriberResponse::CreateSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CreateSubscriberResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:subspace.CreateSubscriberResponse) +} +PROTOBUF_NDEBUG_INLINE CreateSubscriberResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::CreateSubscriberResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + reliable_pub_trigger_fd_indexes_{visibility, arena, from.reliable_pub_trigger_fd_indexes_}, + _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, + retirement_fd_indexes_{visibility, arena, from.retirement_fd_indexes_}, + _retirement_fd_indexes_cached_byte_size_{0}, + error_(arena, from.error_), + type_(arena, from.type_) {} + +CreateSubscriberResponse::CreateSubscriberResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const CreateSubscriberResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, CreateSubscriberResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + CreateSubscriberResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, channel_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, channel_id_), + offsetof(Impl_, use_split_buffers_) - + offsetof(Impl_, channel_id_) + sizeof(Impl_::use_split_buffers_)); // @@protoc_insertion_point(copy_constructor:subspace.CreateSubscriberResponse) } -inline PROTOBUF_NDEBUG_INLINE CreateSubscriberResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : reliable_pub_trigger_fd_indexes_{visibility, arena}, +PROTOBUF_NDEBUG_INLINE CreateSubscriberResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + reliable_pub_trigger_fd_indexes_{visibility, arena}, _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, retirement_fd_indexes_{visibility, arena}, _retirement_fd_indexes_cached_byte_size_{0}, error_(arena), - type_(arena), - _cached_size_{0} {} + type_(arena) {} -inline void CreateSubscriberResponse::SharedCtor(::_pb::Arena* arena) { +inline void CreateSubscriberResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, channel_id_), 0, offsetof(Impl_, use_split_buffers_) - @@ -5171,6 +5753,9 @@ CreateSubscriberResponse::~CreateSubscriberResponse() { } inline void CreateSubscriberResponse::SharedDtor(MessageLite& self) { CreateSubscriberResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); @@ -5178,8 +5763,9 @@ inline void CreateSubscriberResponse::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* CreateSubscriberResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL CreateSubscriberResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) CreateSubscriberResponse(arena); } constexpr auto CreateSubscriberResponse::InternalNewImpl_() { @@ -5202,37 +5788,44 @@ constexpr auto CreateSubscriberResponse::InternalNewImpl_() { alignof(CreateSubscriberResponse)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull CreateSubscriberResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_CreateSubscriberResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreateSubscriberResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreateSubscriberResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreateSubscriberResponse::ByteSizeLong, - &CreateSubscriberResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_._cached_size_), - false, - }, - &CreateSubscriberResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* CreateSubscriberResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto CreateSubscriberResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CreateSubscriberResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CreateSubscriberResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CreateSubscriberResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CreateSubscriberResponse::ByteSizeLong, + &CreateSubscriberResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_._cached_size_), + false, + }, + &CreateSubscriberResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull CreateSubscriberResponse_class_data_ = + CreateSubscriberResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CreateSubscriberResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CreateSubscriberResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(CreateSubscriberResponse_class_data_.tc_table); + return CreateSubscriberResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 17, 0, 63, 2> CreateSubscriberResponse::_table_ = { +const ::_pbi::TcParseTable<5, 17, 0, 63, 2> +CreateSubscriberResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_._has_bits_), 0, // no _extensions_ 17, 248, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -5241,7 +5834,7 @@ const ::_pbi::TcParseTable<5, 17, 0, 63, 2> CreateSubscriberResponse::_table_ = 17, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + CreateSubscriberResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -5251,55 +5844,72 @@ const ::_pbi::TcParseTable<5, 17, 0, 63, 2> CreateSubscriberResponse::_table_ = {::_pbi::TcParser::MiniParse, {}}, // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.error_)}}, + {10, 2, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.error_)}}, // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.channel_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.channel_id_), 4>(), + {16, 4, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_)}}, // int32 subscriber_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.subscriber_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.subscriber_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.subscriber_id_), 5>(), + {24, 5, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.subscriber_id_)}}, // int32 ccb_fd_index = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.ccb_fd_index_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.ccb_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.ccb_fd_index_), 6>(), + {32, 6, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.ccb_fd_index_)}}, // int32 bcb_fd_index = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.bcb_fd_index_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.bcb_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.bcb_fd_index_), 7>(), + {40, 7, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.bcb_fd_index_)}}, // int32 trigger_fd_index = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.trigger_fd_index_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.trigger_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.trigger_fd_index_), 8>(), + {48, 8, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.trigger_fd_index_)}}, // int32 poll_fd_index = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.poll_fd_index_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.poll_fd_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.poll_fd_index_), 9>(), + {56, 9, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.poll_fd_index_)}}, // int32 slot_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.slot_size_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.slot_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.slot_size_), 10>(), + {64, 10, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.slot_size_)}}, // int32 num_slots = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.num_slots_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_slots_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.num_slots_), 11>(), + {72, 11, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_slots_)}}, // repeated int32 reliable_pub_trigger_fd_indexes = 10; {::_pbi::TcParser::FastV32P1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_)}}, + {82, 0, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_)}}, // int32 num_pub_updates = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.num_pub_updates_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_pub_updates_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.num_pub_updates_), 12>(), + {88, 12, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_pub_updates_)}}, // bytes type = 12; {::_pbi::TcParser::FastBS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.type_)}}, + {98, 3, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.type_)}}, // int32 vchan_id = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.vchan_id_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.vchan_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.vchan_id_), 13>(), + {104, 13, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.vchan_id_)}}, // repeated int32 retirement_fd_indexes = 14; {::_pbi::TcParser::FastV32P1, - {114, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.retirement_fd_indexes_)}}, + {114, 1, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.retirement_fd_indexes_)}}, // int32 checksum_size = 15; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.checksum_size_), 63>(), - {120, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.checksum_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.checksum_size_), 14>(), + {120, 14, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.checksum_size_)}}, // int32 metadata_size = 16; {::_pbi::TcParser::FastV32S2, - {384, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.metadata_size_)}}, + {384, 15, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.metadata_size_)}}, // bool use_split_buffers = 17; {::_pbi::TcParser::FastV8S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_)}}, + {392, 16, 0, + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -5318,56 +5928,39 @@ const ::_pbi::TcParseTable<5, 17, 0, 63, 2> CreateSubscriberResponse::_table_ = 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.error_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 subscriber_id = 3; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.subscriber_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 ccb_fd_index = 4; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.ccb_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.ccb_fd_index_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 bcb_fd_index = 5; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.bcb_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.bcb_fd_index_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 trigger_fd_index = 6; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.trigger_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.trigger_fd_index_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 poll_fd_index = 7; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.poll_fd_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.poll_fd_index_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 slot_size = 8; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.slot_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.slot_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_slots = 9; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_slots_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_slots_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // repeated int32 reliable_pub_trigger_fd_indexes = 10; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, // int32 num_pub_updates = 11; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_pub_updates_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_pub_updates_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bytes type = 12; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // int32 vchan_id = 13; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.vchan_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.vchan_id_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // repeated int32 retirement_fd_indexes = 14; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.retirement_fd_indexes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.retirement_fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, // int32 checksum_size = 15; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.checksum_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.checksum_size_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 metadata_size = 16; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.metadata_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.metadata_size_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool use_split_buffers = 17; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -5376,7 +5969,6 @@ const ::_pbi::TcParseTable<5, 17, 0, 63, 2> CreateSubscriberResponse::_table_ = "error" }}, }; - PROTOBUF_NOINLINE void CreateSubscriberResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.CreateSubscriberResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -5384,457 +5976,620 @@ PROTOBUF_NOINLINE void CreateSubscriberResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.reliable_pub_trigger_fd_indexes_.Clear(); - _impl_.retirement_fd_indexes_.Clear(); - _impl_.error_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.use_split_buffers_) - - reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.use_split_buffers_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.reliable_pub_trigger_fd_indexes_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.retirement_fd_indexes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { + ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.bcb_fd_index_) - + reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.bcb_fd_index_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + ::memset(&_impl_.trigger_fd_index_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.metadata_size_) - + reinterpret_cast(&_impl_.trigger_fd_index_)) + sizeof(_impl_.metadata_size_)); + } + _impl_.use_split_buffers_ = false; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* CreateSubscriberResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const CreateSubscriberResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* CreateSubscriberResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const CreateSubscriberResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreateSubscriberResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - - // int32 subscriber_id = 3; - if (this_._internal_subscriber_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_subscriber_id(), target); - } - - // int32 ccb_fd_index = 4; - if (this_._internal_ccb_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this_._internal_ccb_fd_index(), target); - } - - // int32 bcb_fd_index = 5; - if (this_._internal_bcb_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this_._internal_bcb_fd_index(), target); - } - - // int32 trigger_fd_index = 6; - if (this_._internal_trigger_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this_._internal_trigger_fd_index(), target); - } - - // int32 poll_fd_index = 7; - if (this_._internal_poll_fd_index() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<7>( - stream, this_._internal_poll_fd_index(), target); - } - - // int32 slot_size = 8; - if (this_._internal_slot_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<8>( - stream, this_._internal_slot_size(), target); - } - - // int32 num_slots = 9; - if (this_._internal_num_slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<9>( - stream, this_._internal_num_slots(), target); - } - - // repeated int32 reliable_pub_trigger_fd_indexes = 10; - { - int byte_size = this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 10, this_._internal_reliable_pub_trigger_fd_indexes(), byte_size, target); - } - } - - // int32 num_pub_updates = 11; - if (this_._internal_num_pub_updates() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<11>( - stream, this_._internal_num_pub_updates(), target); - } - - // bytes type = 12; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(12, _s, target); - } - - // int32 vchan_id = 13; - if (this_._internal_vchan_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<13>( - stream, this_._internal_vchan_id(), target); - } - - // repeated int32 retirement_fd_indexes = 14; - { - int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 14, this_._internal_retirement_fd_indexes(), byte_size, target); - } - } - - // int32 checksum_size = 15; - if (this_._internal_checksum_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<15>( - stream, this_._internal_checksum_size(), target); - } - - // int32 metadata_size = 16; - if (this_._internal_metadata_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 16, this_._internal_metadata_size(), target); - } - - // bool use_split_buffers = 17; - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 17, this_._internal_use_split_buffers(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreateSubscriberResponse) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t CreateSubscriberResponse::ByteSizeLong(const MessageLite& base) { - const CreateSubscriberResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t CreateSubscriberResponse::ByteSizeLong() const { - const CreateSubscriberResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreateSubscriberResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated int32 reliable_pub_trigger_fd_indexes = 10; - { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_reliable_pub_trigger_fd_indexes(), 1, - this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 retirement_fd_indexes = 14; - { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_retirement_fd_indexes(), 1, - this_._impl_._retirement_fd_indexes_cached_byte_size_); - } - } - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - // bytes type = 12; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - // int32 subscriber_id = 3; - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - // int32 ccb_fd_index = 4; - if (this_._internal_ccb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_ccb_fd_index()); - } - // int32 bcb_fd_index = 5; - if (this_._internal_bcb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_bcb_fd_index()); - } - // int32 trigger_fd_index = 6; - if (this_._internal_trigger_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_trigger_fd_index()); - } - // int32 poll_fd_index = 7; - if (this_._internal_poll_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_poll_fd_index()); - } - // int32 slot_size = 8; - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - // int32 num_slots = 9; - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - // int32 num_pub_updates = 11; - if (this_._internal_num_pub_updates() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_pub_updates()); - } - // int32 vchan_id = 13; - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - // int32 checksum_size = 15; - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - // int32 metadata_size = 16; - if (this_._internal_metadata_size() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_metadata_size()); - } - // bool use_split_buffers = 17; - if (this_._internal_use_split_buffers() != 0) { - total_size += 3; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void CreateSubscriberResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreateSubscriberResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_reliable_pub_trigger_fd_indexes()->MergeFrom(from._internal_reliable_pub_trigger_fd_indexes()); - _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; +::uint8_t* PROTOBUF_NONNULL CreateSubscriberResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const CreateSubscriberResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL CreateSubscriberResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const CreateSubscriberResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); } - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + // @@protoc_insertion_point(serialize_to_array_start:subspace.CreateSubscriberResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } - if (from._internal_ccb_fd_index() != 0) { - _this->_impl_.ccb_fd_index_ = from._impl_.ccb_fd_index_; + + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_channel_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_channel_id(), target); + } } - if (from._internal_bcb_fd_index() != 0) { - _this->_impl_.bcb_fd_index_ = from._impl_.bcb_fd_index_; + + // int32 subscriber_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_subscriber_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_subscriber_id(), target); + } } - if (from._internal_trigger_fd_index() != 0) { - _this->_impl_.trigger_fd_index_ = from._impl_.trigger_fd_index_; + + // int32 ccb_fd_index = 4; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_ccb_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_ccb_fd_index(), target); + } } - if (from._internal_poll_fd_index() != 0) { - _this->_impl_.poll_fd_index_ = from._impl_.poll_fd_index_; + + // int32 bcb_fd_index = 5; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_bcb_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_bcb_fd_index(), target); + } } - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; + + // int32 trigger_fd_index = 6; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_trigger_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_trigger_fd_index(), target); + } } - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; + + // int32 poll_fd_index = 7; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_poll_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_poll_fd_index(), target); + } } - if (from._internal_num_pub_updates() != 0) { - _this->_impl_.num_pub_updates_ = from._impl_.num_pub_updates_; + + // int32 slot_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_slot_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_slot_size(), target); + } } - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + + // int32 num_slots = 9; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_num_slots() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( + stream, this_._internal_num_slots(), target); + } } - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; + + // repeated int32 reliable_pub_trigger_fd_indexes = 10; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 10, this_._internal_reliable_pub_trigger_fd_indexes(), byte_size, target); + } + } } - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; + + // int32 num_pub_updates = 11; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_num_pub_updates() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( + stream, this_._internal_num_pub_updates(), target); + } } - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; + + // bytes type = 12; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + target = stream->WriteBytesMaybeAliased(12, _s, target); + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} -void CreateSubscriberResponse::CopyFrom(const CreateSubscriberResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreateSubscriberResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + // int32 vchan_id = 13; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_vchan_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>( + stream, this_._internal_vchan_id(), target); + } + } + // repeated int32 retirement_fd_indexes = 14; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + { + int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 14, this_._internal_retirement_fd_indexes(), byte_size, target); + } + } + } -void CreateSubscriberResponse::InternalSwap(CreateSubscriberResponse* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.reliable_pub_trigger_fd_indexes_.InternalSwap(&other->_impl_.reliable_pub_trigger_fd_indexes_); - _impl_.retirement_fd_indexes_.InternalSwap(&other->_impl_.retirement_fd_indexes_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_) - + sizeof(CreateSubscriberResponse::_impl_.use_split_buffers_) - - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_)>( - reinterpret_cast(&_impl_.channel_id_), - reinterpret_cast(&other->_impl_.channel_id_)); -} + // int32 checksum_size = 15; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_checksum_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<15>( + stream, this_._internal_checksum_size(), target); + } + } -::google::protobuf::Metadata CreateSubscriberResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== + // int32 metadata_size = 16; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_metadata_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 16, this_._internal_metadata_size(), target); + } + } -class GetTriggersRequest::_Internal { - public: -}; + // bool use_split_buffers = 17; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_use_split_buffers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 17, this_._internal_use_split_buffers(), target); + } + } -GetTriggersRequest::GetTriggersRequest(::google::protobuf::Arena* arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetTriggersRequest) + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.CreateSubscriberResponse) + return target; } -inline PROTOBUF_NDEBUG_INLINE GetTriggersRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::GetTriggersRequest& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} -GetTriggersRequest::GetTriggersRequest( - ::google::protobuf::Arena* arena, - const GetTriggersRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { +::size_t CreateSubscriberResponse::ByteSizeLong(const MessageLite& base) { + const CreateSubscriberResponse& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { +::size_t CreateSubscriberResponse::ByteSizeLong() const { + const CreateSubscriberResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - GetTriggersRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + // @@protoc_insertion_point(message_byte_size_start:subspace.CreateSubscriberResponse) + ::size_t total_size = 0; - // @@protoc_insertion_point(copy_constructor:subspace.GetTriggersRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetTriggersRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -inline void GetTriggersRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetTriggersRequest::~GetTriggersRequest() { + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // repeated int32 reliable_pub_trigger_fd_indexes = 10; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_reliable_pub_trigger_fd_indexes(), 1, + this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_); + } + // repeated int32 retirement_fd_indexes = 14; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_retirement_fd_indexes(), 1, + this_._impl_._retirement_fd_indexes_cached_byte_size_); + } + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + // bytes type = 12; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_type()); + } + } + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_channel_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_channel_id()); + } + } + // int32 subscriber_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_subscriber_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_subscriber_id()); + } + } + // int32 ccb_fd_index = 4; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_ccb_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_ccb_fd_index()); + } + } + // int32 bcb_fd_index = 5; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_bcb_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_bcb_fd_index()); + } + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + // int32 trigger_fd_index = 6; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_trigger_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_trigger_fd_index()); + } + } + // int32 poll_fd_index = 7; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_poll_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_poll_fd_index()); + } + } + // int32 slot_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_slot_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_size()); + } + } + // int32 num_slots = 9; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_num_slots() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_slots()); + } + } + // int32 num_pub_updates = 11; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_num_pub_updates() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_pub_updates()); + } + } + // int32 vchan_id = 13; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_vchan_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_vchan_id()); + } + } + // int32 checksum_size = 15; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_checksum_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_checksum_size()); + } + } + // int32 metadata_size = 16; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_metadata_size() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_metadata_size()); + } + } + } + { + // bool use_split_buffers = 17; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_use_split_buffers() != 0) { + total_size += 3; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void CreateSubscriberResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreateSubscriberResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_reliable_pub_trigger_fd_indexes()->MergeFrom(from._internal_reliable_pub_trigger_fd_indexes()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_channel_id() != 0) { + _this->_impl_.channel_id_ = from._impl_.channel_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_subscriber_id() != 0) { + _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_ccb_fd_index() != 0) { + _this->_impl_.ccb_fd_index_ = from._impl_.ccb_fd_index_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_bcb_fd_index() != 0) { + _this->_impl_.bcb_fd_index_ = from._impl_.bcb_fd_index_; + } + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_trigger_fd_index() != 0) { + _this->_impl_.trigger_fd_index_ = from._impl_.trigger_fd_index_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_poll_fd_index() != 0) { + _this->_impl_.poll_fd_index_ = from._impl_.poll_fd_index_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_slot_size() != 0) { + _this->_impl_.slot_size_ = from._impl_.slot_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_num_slots() != 0) { + _this->_impl_.num_slots_ = from._impl_.num_slots_; + } + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (from._internal_num_pub_updates() != 0) { + _this->_impl_.num_pub_updates_ = from._impl_.num_pub_updates_; + } + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (from._internal_vchan_id() != 0) { + _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (from._internal_checksum_size() != 0) { + _this->_impl_.checksum_size_ = from._impl_.checksum_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (from._internal_metadata_size() != 0) { + _this->_impl_.metadata_size_ = from._impl_.metadata_size_; + } + } + } + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (from._internal_use_split_buffers() != 0) { + _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void CreateSubscriberResponse::CopyFrom(const CreateSubscriberResponse& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreateSubscriberResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void CreateSubscriberResponse::InternalSwap(CreateSubscriberResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.reliable_pub_trigger_fd_indexes_.InternalSwap(&other->_impl_.reliable_pub_trigger_fd_indexes_); + _impl_.retirement_fd_indexes_.InternalSwap(&other->_impl_.retirement_fd_indexes_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_) + + sizeof(CreateSubscriberResponse::_impl_.use_split_buffers_) + - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_)>( + reinterpret_cast(&_impl_.channel_id_), + reinterpret_cast(&other->_impl_.channel_id_)); +} + +::google::protobuf::Metadata CreateSubscriberResponse::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class GetTriggersRequest::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_._has_bits_); +}; + +GetTriggersRequest::GetTriggersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTriggersRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:subspace.GetTriggersRequest) +} +PROTOBUF_NDEBUG_INLINE GetTriggersRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetTriggersRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} + +GetTriggersRequest::GetTriggersRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GetTriggersRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetTriggersRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GetTriggersRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:subspace.GetTriggersRequest) +} +PROTOBUF_NDEBUG_INLINE GetTriggersRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} + +inline void GetTriggersRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +GetTriggersRequest::~GetTriggersRequest() { // @@protoc_insertion_point(destructor:subspace.GetTriggersRequest) SharedDtor(*this); } inline void GetTriggersRequest::SharedDtor(MessageLite& self) { GetTriggersRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* GetTriggersRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL GetTriggersRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetTriggersRequest(arena); } constexpr auto GetTriggersRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetTriggersRequest), alignof(GetTriggersRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull GetTriggersRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_GetTriggersRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetTriggersRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetTriggersRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetTriggersRequest::ByteSizeLong, - &GetTriggersRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_._cached_size_), - false, - }, - &GetTriggersRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* GetTriggersRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto GetTriggersRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetTriggersRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetTriggersRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTriggersRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetTriggersRequest::ByteSizeLong, + &GetTriggersRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_._cached_size_), + false, + }, + &GetTriggersRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetTriggersRequest_class_data_ = + GetTriggersRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetTriggersRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetTriggersRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetTriggersRequest_class_data_.tc_table); + return GetTriggersRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 48, 2> GetTriggersRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 48, 2> +GetTriggersRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -5843,7 +6598,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 48, 2> GetTriggersRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + GetTriggersRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -5852,13 +6607,13 @@ const ::_pbi::TcParseTable<0, 1, 0, 48, 2> GetTriggersRequest::_table_ = { }, {{ // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -5867,7 +6622,6 @@ const ::_pbi::TcParseTable<0, 1, 0, 48, 2> GetTriggersRequest::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void GetTriggersRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.GetTriggersRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -5875,94 +6629,122 @@ PROTOBUF_NOINLINE void GetTriggersRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* GetTriggersRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const GetTriggersRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* GetTriggersRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const GetTriggersRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetTriggersRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetTriggersRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetTriggersRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL GetTriggersRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetTriggersRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetTriggersRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetTriggersRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetTriggersRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetTriggersRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetTriggersRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t GetTriggersRequest::ByteSizeLong(const MessageLite& base) { - const GetTriggersRequest& this_ = static_cast(base); +::size_t GetTriggersRequest::ByteSizeLong(const MessageLite& base) { + const GetTriggersRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t GetTriggersRequest::ByteSizeLong() const { - const GetTriggersRequest& this_ = *this; +::size_t GetTriggersRequest::ByteSizeLong() const { + const GetTriggersRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetTriggersRequest) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.GetTriggersRequest) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // string channel_name = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void GetTriggersRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void GetTriggersRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetTriggersRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GetTriggersRequest::CopyFrom(const GetTriggersRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetTriggersRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetTriggersRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetTriggersRequest::InternalSwap(GetTriggersRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetTriggersRequest::InternalSwap(GetTriggersRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); } @@ -5973,34 +6755,40 @@ ::google::protobuf::Metadata GetTriggersRequest::GetMetadata() const { class GetTriggersResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_._has_bits_); }; -GetTriggersResponse::GetTriggersResponse(::google::protobuf::Arena* arena) +GetTriggersResponse::GetTriggersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetTriggersResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.GetTriggersResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTriggersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::GetTriggersResponse& from_msg) - : reliable_pub_trigger_fd_indexes_{visibility, arena, from.reliable_pub_trigger_fd_indexes_}, +PROTOBUF_NDEBUG_INLINE GetTriggersResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetTriggersResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + reliable_pub_trigger_fd_indexes_{visibility, arena, from.reliable_pub_trigger_fd_indexes_}, _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, sub_trigger_fd_indexes_{visibility, arena, from.sub_trigger_fd_indexes_}, _sub_trigger_fd_indexes_cached_byte_size_{0}, retirement_fd_indexes_{visibility, arena, from.retirement_fd_indexes_}, _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena, from.error_), - _cached_size_{0} {} + error_(arena, from.error_) {} GetTriggersResponse::GetTriggersResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTriggersResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetTriggersResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6012,19 +6800,19 @@ GetTriggersResponse::GetTriggersResponse( // @@protoc_insertion_point(copy_constructor:subspace.GetTriggersResponse) } -inline PROTOBUF_NDEBUG_INLINE GetTriggersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : reliable_pub_trigger_fd_indexes_{visibility, arena}, +PROTOBUF_NDEBUG_INLINE GetTriggersResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + reliable_pub_trigger_fd_indexes_{visibility, arena}, _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, sub_trigger_fd_indexes_{visibility, arena}, _sub_trigger_fd_indexes_cached_byte_size_{0}, retirement_fd_indexes_{visibility, arena}, _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena), - _cached_size_{0} {} + error_(arena) {} -inline void GetTriggersResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetTriggersResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetTriggersResponse::~GetTriggersResponse() { @@ -6033,14 +6821,18 @@ GetTriggersResponse::~GetTriggersResponse() { } inline void GetTriggersResponse::SharedDtor(MessageLite& self) { GetTriggersResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); this_._impl_.~Impl_(); } -inline void* GetTriggersResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL GetTriggersResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetTriggersResponse(arena); } constexpr auto GetTriggersResponse::InternalNewImpl_() { @@ -6067,37 +6859,44 @@ constexpr auto GetTriggersResponse::InternalNewImpl_() { alignof(GetTriggersResponse)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull GetTriggersResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_GetTriggersResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetTriggersResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetTriggersResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetTriggersResponse::ByteSizeLong, - &GetTriggersResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_._cached_size_), - false, - }, - &GetTriggersResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* GetTriggersResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto GetTriggersResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetTriggersResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetTriggersResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetTriggersResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetTriggersResponse::ByteSizeLong, + &GetTriggersResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_._cached_size_), + false, + }, + &GetTriggersResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetTriggersResponse_class_data_ = + GetTriggersResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetTriggersResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetTriggersResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetTriggersResponse_class_data_.tc_table); + return GetTriggersResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 42, 2> GetTriggersResponse::_table_ = { +const ::_pbi::TcParseTable<2, 4, 0, 42, 2> +GetTriggersResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -6106,7 +6905,7 @@ const ::_pbi::TcParseTable<2, 4, 0, 42, 2> GetTriggersResponse::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + GetTriggersResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -6115,31 +6914,31 @@ const ::_pbi::TcParseTable<2, 4, 0, 42, 2> GetTriggersResponse::_table_ = { }, {{ // repeated int32 retirement_fd_indexes = 4; {::_pbi::TcParser::FastV32P1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.retirement_fd_indexes_)}}, + {34, 2, 0, + PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.retirement_fd_indexes_)}}, // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.error_)}}, + {10, 3, 0, + PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.error_)}}, // repeated int32 reliable_pub_trigger_fd_indexes = 2; {::_pbi::TcParser::FastV32P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_)}}, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_)}}, // repeated int32 sub_trigger_fd_indexes = 3; {::_pbi::TcParser::FastV32P1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.sub_trigger_fd_indexes_)}}, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.sub_trigger_fd_indexes_)}}, }}, {{ 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.error_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // repeated int32 reliable_pub_trigger_fd_indexes = 2; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, // repeated int32 sub_trigger_fd_indexes = 3; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.sub_trigger_fd_indexes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.sub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, // repeated int32 retirement_fd_indexes = 4; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.retirement_fd_indexes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.retirement_fd_indexes_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, }}, // no aux_entries {{ @@ -6148,7 +6947,6 @@ const ::_pbi::TcParseTable<2, 4, 0, 42, 2> GetTriggersResponse::_table_ = { "error" }}, }; - PROTOBUF_NOINLINE void GetTriggersResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.GetTriggersResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6156,151 +6954,199 @@ PROTOBUF_NOINLINE void GetTriggersResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.reliable_pub_trigger_fd_indexes_.Clear(); - _impl_.sub_trigger_fd_indexes_.Clear(); - _impl_.retirement_fd_indexes_.Clear(); - _impl_.error_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.reliable_pub_trigger_fd_indexes_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.sub_trigger_fd_indexes_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _impl_.retirement_fd_indexes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* GetTriggersResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const GetTriggersResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* GetTriggersResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const GetTriggersResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetTriggersResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetTriggersResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // repeated int32 reliable_pub_trigger_fd_indexes = 2; - { - int byte_size = this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 2, this_._internal_reliable_pub_trigger_fd_indexes(), byte_size, target); - } - } - - // repeated int32 sub_trigger_fd_indexes = 3; - { - int byte_size = this_._impl_._sub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 3, this_._internal_sub_trigger_fd_indexes(), byte_size, target); - } - } - - // repeated int32 retirement_fd_indexes = 4; - { - int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 4, this_._internal_retirement_fd_indexes(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetTriggersResponse) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t GetTriggersResponse::ByteSizeLong(const MessageLite& base) { - const GetTriggersResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t GetTriggersResponse::ByteSizeLong() const { - const GetTriggersResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetTriggersResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated int32 reliable_pub_trigger_fd_indexes = 2; - { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_reliable_pub_trigger_fd_indexes(), 1, - this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 sub_trigger_fd_indexes = 3; - { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_sub_trigger_fd_indexes(), 1, - this_._impl_._sub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 retirement_fd_indexes = 4; - { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_retirement_fd_indexes(), 1, - this_._impl_._retirement_fd_indexes_cached_byte_size_); - } - } - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void GetTriggersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetTriggersResponse) - ABSL_DCHECK_NE(&from, _this); +::uint8_t* PROTOBUF_NONNULL GetTriggersResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetTriggersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetTriggersResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetTriggersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetTriggersResponse) ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_reliable_pub_trigger_fd_indexes()->MergeFrom(from._internal_reliable_pub_trigger_fd_indexes()); - _this->_internal_mutable_sub_trigger_fd_indexes()->MergeFrom(from._internal_sub_trigger_fd_indexes()); - _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetTriggersResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} -void GetTriggersResponse::CopyFrom(const GetTriggersResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetTriggersResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} + // repeated int32 reliable_pub_trigger_fd_indexes = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + { + int byte_size = this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 2, this_._internal_reliable_pub_trigger_fd_indexes(), byte_size, target); + } + } + } + // repeated int32 sub_trigger_fd_indexes = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + { + int byte_size = this_._impl_._sub_trigger_fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 3, this_._internal_sub_trigger_fd_indexes(), byte_size, target); + } + } + } + + // repeated int32 retirement_fd_indexes = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + { + int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 4, this_._internal_retirement_fd_indexes(), byte_size, target); + } + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetTriggersResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetTriggersResponse::ByteSizeLong(const MessageLite& base) { + const GetTriggersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetTriggersResponse::ByteSizeLong() const { + const GetTriggersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.GetTriggersResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // repeated int32 reliable_pub_trigger_fd_indexes = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_reliable_pub_trigger_fd_indexes(), 1, + this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_); + } + // repeated int32 sub_trigger_fd_indexes = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_sub_trigger_fd_indexes(), 1, + this_._impl_._sub_trigger_fd_indexes_cached_byte_size_); + } + // repeated int32 retirement_fd_indexes = 4; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_retirement_fd_indexes(), 1, + this_._impl_._retirement_fd_indexes_cached_byte_size_); + } + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void GetTriggersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetTriggersResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_reliable_pub_trigger_fd_indexes()->MergeFrom(from._internal_reliable_pub_trigger_fd_indexes()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_sub_trigger_fd_indexes()->MergeFrom(from._internal_sub_trigger_fd_indexes()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void GetTriggersResponse::CopyFrom(const GetTriggersResponse& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetTriggersResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} -void GetTriggersResponse::InternalSwap(GetTriggersResponse* PROTOBUF_RESTRICT other) { - using std::swap; + +void GetTriggersResponse::InternalSwap(GetTriggersResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.reliable_pub_trigger_fd_indexes_.InternalSwap(&other->_impl_.reliable_pub_trigger_fd_indexes_); _impl_.sub_trigger_fd_indexes_.InternalSwap(&other->_impl_.sub_trigger_fd_indexes_); _impl_.retirement_fd_indexes_.InternalSwap(&other->_impl_.retirement_fd_indexes_); @@ -6314,28 +7160,34 @@ ::google::protobuf::Metadata GetTriggersResponse::GetMetadata() const { class RemovePublisherRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_._has_bits_); }; -RemovePublisherRequest::RemovePublisherRequest(::google::protobuf::Arena* arena) +RemovePublisherRequest::RemovePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemovePublisherRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RemovePublisherRequest) } -inline PROTOBUF_NDEBUG_INLINE RemovePublisherRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RemovePublisherRequest& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemovePublisherRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RemovePublisherRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} RemovePublisherRequest::RemovePublisherRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemovePublisherRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemovePublisherRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6348,13 +7200,13 @@ RemovePublisherRequest::RemovePublisherRequest( // @@protoc_insertion_point(copy_constructor:subspace.RemovePublisherRequest) } -inline PROTOBUF_NDEBUG_INLINE RemovePublisherRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemovePublisherRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void RemovePublisherRequest::SharedCtor(::_pb::Arena* arena) { +inline void RemovePublisherRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.publisher_id_ = {}; } @@ -6364,51 +7216,62 @@ RemovePublisherRequest::~RemovePublisherRequest() { } inline void RemovePublisherRequest::SharedDtor(MessageLite& self) { RemovePublisherRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* RemovePublisherRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RemovePublisherRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RemovePublisherRequest(arena); } constexpr auto RemovePublisherRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemovePublisherRequest), alignof(RemovePublisherRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RemovePublisherRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RemovePublisherRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemovePublisherRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemovePublisherRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemovePublisherRequest::ByteSizeLong, - &RemovePublisherRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_._cached_size_), - false, - }, - &RemovePublisherRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RemovePublisherRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RemovePublisherRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RemovePublisherRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RemovePublisherRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RemovePublisherRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RemovePublisherRequest::ByteSizeLong, + &RemovePublisherRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_._cached_size_), + false, + }, + &RemovePublisherRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RemovePublisherRequest_class_data_ = + RemovePublisherRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RemovePublisherRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RemovePublisherRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RemovePublisherRequest_class_data_.tc_table); + return RemovePublisherRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 52, 2> RemovePublisherRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 52, 2> +RemovePublisherRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -6417,7 +7280,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 52, 2> RemovePublisherRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RemovePublisherRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -6425,20 +7288,20 @@ const ::_pbi::TcParseTable<1, 2, 0, 52, 2> RemovePublisherRequest::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 publisher_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RemovePublisherRequest, _impl_.publisher_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.publisher_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RemovePublisherRequest, _impl_.publisher_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.publisher_id_)}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 publisher_id = 2; - {PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.publisher_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.publisher_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ @@ -6447,7 +7310,6 @@ const ::_pbi::TcParseTable<1, 2, 0, 52, 2> RemovePublisherRequest::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void RemovePublisherRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RemovePublisherRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6455,113 +7317,149 @@ PROTOBUF_NOINLINE void RemovePublisherRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } _impl_.publisher_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RemovePublisherRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RemovePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RemovePublisherRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RemovePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemovePublisherRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemovePublisherRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 publisher_id = 2; - if (this_._internal_publisher_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_publisher_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemovePublisherRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL RemovePublisherRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RemovePublisherRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RemovePublisherRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RemovePublisherRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RemovePublisherRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemovePublisherRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 publisher_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_publisher_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_publisher_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RemovePublisherRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RemovePublisherRequest::ByteSizeLong(const MessageLite& base) { - const RemovePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RemovePublisherRequest::ByteSizeLong() const { - const RemovePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemovePublisherRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int32 publisher_id = 2; - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RemovePublisherRequest::ByteSizeLong(const MessageLite& base) { + const RemovePublisherRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RemovePublisherRequest::ByteSizeLong() const { + const RemovePublisherRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RemovePublisherRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int32 publisher_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_publisher_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_publisher_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RemovePublisherRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RemovePublisherRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemovePublisherRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_publisher_id() != 0) { + _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RemovePublisherRequest::CopyFrom(const RemovePublisherRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemovePublisherRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemovePublisherRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RemovePublisherRequest::InternalSwap(RemovePublisherRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void RemovePublisherRequest::InternalSwap(RemovePublisherRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.publisher_id_, other->_impl_.publisher_id_); + swap(_impl_.publisher_id_, other->_impl_.publisher_id_); } ::google::protobuf::Metadata RemovePublisherRequest::GetMetadata() const { @@ -6571,28 +7469,34 @@ ::google::protobuf::Metadata RemovePublisherRequest::GetMetadata() const { class RemovePublisherResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_._has_bits_); }; -RemovePublisherResponse::RemovePublisherResponse(::google::protobuf::Arena* arena) +RemovePublisherResponse::RemovePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemovePublisherResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RemovePublisherResponse) } -inline PROTOBUF_NDEBUG_INLINE RemovePublisherResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RemovePublisherResponse& from_msg) - : error_(arena, from.error_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemovePublisherResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RemovePublisherResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + error_(arena, from.error_) {} RemovePublisherResponse::RemovePublisherResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemovePublisherResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemovePublisherResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6604,13 +7508,13 @@ RemovePublisherResponse::RemovePublisherResponse( // @@protoc_insertion_point(copy_constructor:subspace.RemovePublisherResponse) } -inline PROTOBUF_NDEBUG_INLINE RemovePublisherResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : error_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemovePublisherResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + error_(arena) {} -inline void RemovePublisherResponse::SharedCtor(::_pb::Arena* arena) { +inline void RemovePublisherResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } RemovePublisherResponse::~RemovePublisherResponse() { @@ -6619,51 +7523,62 @@ RemovePublisherResponse::~RemovePublisherResponse() { } inline void RemovePublisherResponse::SharedDtor(MessageLite& self) { RemovePublisherResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); this_._impl_.~Impl_(); } -inline void* RemovePublisherResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RemovePublisherResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RemovePublisherResponse(arena); } constexpr auto RemovePublisherResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemovePublisherResponse), alignof(RemovePublisherResponse)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RemovePublisherResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RemovePublisherResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemovePublisherResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemovePublisherResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemovePublisherResponse::ByteSizeLong, - &RemovePublisherResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_._cached_size_), - false, - }, - &RemovePublisherResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RemovePublisherResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RemovePublisherResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RemovePublisherResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RemovePublisherResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RemovePublisherResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RemovePublisherResponse::ByteSizeLong, + &RemovePublisherResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_._cached_size_), + false, + }, + &RemovePublisherResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RemovePublisherResponse_class_data_ = + RemovePublisherResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RemovePublisherResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RemovePublisherResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RemovePublisherResponse_class_data_.tc_table); + return RemovePublisherResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 46, 2> RemovePublisherResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 46, 2> +RemovePublisherResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -6672,7 +7587,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 46, 2> RemovePublisherResponse::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RemovePublisherResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -6681,13 +7596,13 @@ const ::_pbi::TcParseTable<0, 1, 0, 46, 2> RemovePublisherResponse::_table_ = { }, {{ // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_.error_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_.error_)}}, }}, {{ 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -6696,7 +7611,6 @@ const ::_pbi::TcParseTable<0, 1, 0, 46, 2> RemovePublisherResponse::_table_ = { "error" }}, }; - PROTOBUF_NOINLINE void RemovePublisherResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RemovePublisherResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6704,94 +7618,122 @@ PROTOBUF_NOINLINE void RemovePublisherResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.error_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RemovePublisherResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RemovePublisherResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RemovePublisherResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RemovePublisherResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemovePublisherResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemovePublisherResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemovePublisherResponse) - return target; - } +::uint8_t* PROTOBUF_NONNULL RemovePublisherResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RemovePublisherResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RemovePublisherResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RemovePublisherResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RemovePublisherResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemovePublisherResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RemovePublisherResponse) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RemovePublisherResponse::ByteSizeLong(const MessageLite& base) { - const RemovePublisherResponse& this_ = static_cast(base); +::size_t RemovePublisherResponse::ByteSizeLong(const MessageLite& base) { + const RemovePublisherResponse& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t RemovePublisherResponse::ByteSizeLong() const { - const RemovePublisherResponse& this_ = *this; +::size_t RemovePublisherResponse::ByteSizeLong() const { + const RemovePublisherResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemovePublisherResponse) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.RemovePublisherResponse) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // string error = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RemovePublisherResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RemovePublisherResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemovePublisherResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RemovePublisherResponse::CopyFrom(const RemovePublisherResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemovePublisherResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemovePublisherResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void RemovePublisherResponse::InternalSwap(RemovePublisherResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void RemovePublisherResponse::InternalSwap(RemovePublisherResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); } @@ -6802,28 +7744,34 @@ ::google::protobuf::Metadata RemovePublisherResponse::GetMetadata() const { class RemoveSubscriberRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_._has_bits_); }; -RemoveSubscriberRequest::RemoveSubscriberRequest(::google::protobuf::Arena* arena) +RemoveSubscriberRequest::RemoveSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemoveSubscriberRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RemoveSubscriberRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveSubscriberRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RemoveSubscriberRequest& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemoveSubscriberRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RemoveSubscriberRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} RemoveSubscriberRequest::RemoveSubscriberRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemoveSubscriberRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemoveSubscriberRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6836,13 +7784,13 @@ RemoveSubscriberRequest::RemoveSubscriberRequest( // @@protoc_insertion_point(copy_constructor:subspace.RemoveSubscriberRequest) } -inline PROTOBUF_NDEBUG_INLINE RemoveSubscriberRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemoveSubscriberRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void RemoveSubscriberRequest::SharedCtor(::_pb::Arena* arena) { +inline void RemoveSubscriberRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.subscriber_id_ = {}; } @@ -6852,51 +7800,62 @@ RemoveSubscriberRequest::~RemoveSubscriberRequest() { } inline void RemoveSubscriberRequest::SharedDtor(MessageLite& self) { RemoveSubscriberRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* RemoveSubscriberRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RemoveSubscriberRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RemoveSubscriberRequest(arena); } constexpr auto RemoveSubscriberRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemoveSubscriberRequest), alignof(RemoveSubscriberRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RemoveSubscriberRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RemoveSubscriberRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemoveSubscriberRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemoveSubscriberRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemoveSubscriberRequest::ByteSizeLong, - &RemoveSubscriberRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_._cached_size_), - false, - }, - &RemoveSubscriberRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RemoveSubscriberRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RemoveSubscriberRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RemoveSubscriberRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RemoveSubscriberRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RemoveSubscriberRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RemoveSubscriberRequest::ByteSizeLong, + &RemoveSubscriberRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_._cached_size_), + false, + }, + &RemoveSubscriberRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RemoveSubscriberRequest_class_data_ = + RemoveSubscriberRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RemoveSubscriberRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RemoveSubscriberRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RemoveSubscriberRequest_class_data_.tc_table); + return RemoveSubscriberRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 53, 2> RemoveSubscriberRequest::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 53, 2> +RemoveSubscriberRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -6905,7 +7864,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 53, 2> RemoveSubscriberRequest::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RemoveSubscriberRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -6913,20 +7872,20 @@ const ::_pbi::TcParseTable<1, 2, 0, 53, 2> RemoveSubscriberRequest::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RemoveSubscriberRequest, _impl_.subscriber_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.subscriber_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RemoveSubscriberRequest, _impl_.subscriber_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.subscriber_id_)}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.subscriber_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ @@ -6935,7 +7894,6 @@ const ::_pbi::TcParseTable<1, 2, 0, 53, 2> RemoveSubscriberRequest::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void RemoveSubscriberRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RemoveSubscriberRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6943,113 +7901,149 @@ PROTOBUF_NOINLINE void RemoveSubscriberRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } _impl_.subscriber_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RemoveSubscriberRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RemoveSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RemoveSubscriberRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RemoveSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemoveSubscriberRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemoveSubscriberRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemoveSubscriberRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL RemoveSubscriberRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RemoveSubscriberRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RemoveSubscriberRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RemoveSubscriberRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RemoveSubscriberRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemoveSubscriberRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_subscriber_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_subscriber_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RemoveSubscriberRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RemoveSubscriberRequest::ByteSizeLong(const MessageLite& base) { - const RemoveSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RemoveSubscriberRequest::ByteSizeLong() const { - const RemoveSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemoveSubscriberRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RemoveSubscriberRequest::ByteSizeLong(const MessageLite& base) { + const RemoveSubscriberRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RemoveSubscriberRequest::ByteSizeLong() const { + const RemoveSubscriberRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RemoveSubscriberRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_subscriber_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_subscriber_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RemoveSubscriberRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RemoveSubscriberRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemoveSubscriberRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_subscriber_id() != 0) { + _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RemoveSubscriberRequest::CopyFrom(const RemoveSubscriberRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemoveSubscriberRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemoveSubscriberRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RemoveSubscriberRequest::InternalSwap(RemoveSubscriberRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void RemoveSubscriberRequest::InternalSwap(RemoveSubscriberRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.subscriber_id_, other->_impl_.subscriber_id_); + swap(_impl_.subscriber_id_, other->_impl_.subscriber_id_); } ::google::protobuf::Metadata RemoveSubscriberRequest::GetMetadata() const { @@ -7059,28 +8053,34 @@ ::google::protobuf::Metadata RemoveSubscriberRequest::GetMetadata() const { class RemoveSubscriberResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_._has_bits_); }; -RemoveSubscriberResponse::RemoveSubscriberResponse(::google::protobuf::Arena* arena) +RemoveSubscriberResponse::RemoveSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemoveSubscriberResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RemoveSubscriberResponse) } -inline PROTOBUF_NDEBUG_INLINE RemoveSubscriberResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RemoveSubscriberResponse& from_msg) - : error_(arena, from.error_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemoveSubscriberResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RemoveSubscriberResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + error_(arena, from.error_) {} RemoveSubscriberResponse::RemoveSubscriberResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemoveSubscriberResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RemoveSubscriberResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7092,13 +8092,13 @@ RemoveSubscriberResponse::RemoveSubscriberResponse( // @@protoc_insertion_point(copy_constructor:subspace.RemoveSubscriberResponse) } -inline PROTOBUF_NDEBUG_INLINE RemoveSubscriberResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : error_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RemoveSubscriberResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + error_(arena) {} -inline void RemoveSubscriberResponse::SharedCtor(::_pb::Arena* arena) { +inline void RemoveSubscriberResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } RemoveSubscriberResponse::~RemoveSubscriberResponse() { @@ -7107,51 +8107,62 @@ RemoveSubscriberResponse::~RemoveSubscriberResponse() { } inline void RemoveSubscriberResponse::SharedDtor(MessageLite& self) { RemoveSubscriberResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); this_._impl_.~Impl_(); } -inline void* RemoveSubscriberResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RemoveSubscriberResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RemoveSubscriberResponse(arena); } constexpr auto RemoveSubscriberResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemoveSubscriberResponse), alignof(RemoveSubscriberResponse)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RemoveSubscriberResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RemoveSubscriberResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemoveSubscriberResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemoveSubscriberResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemoveSubscriberResponse::ByteSizeLong, - &RemoveSubscriberResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_._cached_size_), - false, - }, - &RemoveSubscriberResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RemoveSubscriberResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RemoveSubscriberResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RemoveSubscriberResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RemoveSubscriberResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RemoveSubscriberResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RemoveSubscriberResponse::ByteSizeLong, + &RemoveSubscriberResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_._cached_size_), + false, + }, + &RemoveSubscriberResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RemoveSubscriberResponse_class_data_ = + RemoveSubscriberResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RemoveSubscriberResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RemoveSubscriberResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RemoveSubscriberResponse_class_data_.tc_table); + return RemoveSubscriberResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 47, 2> RemoveSubscriberResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 47, 2> +RemoveSubscriberResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7160,7 +8171,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 47, 2> RemoveSubscriberResponse::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RemoveSubscriberResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -7169,13 +8180,13 @@ const ::_pbi::TcParseTable<0, 1, 0, 47, 2> RemoveSubscriberResponse::_table_ = { }, {{ // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_.error_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_.error_)}}, }}, {{ 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -7184,7 +8195,6 @@ const ::_pbi::TcParseTable<0, 1, 0, 47, 2> RemoveSubscriberResponse::_table_ = { "error" }}, }; - PROTOBUF_NOINLINE void RemoveSubscriberResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RemoveSubscriberResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -7192,94 +8202,122 @@ PROTOBUF_NOINLINE void RemoveSubscriberResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.error_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RemoveSubscriberResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RemoveSubscriberResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RemoveSubscriberResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RemoveSubscriberResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemoveSubscriberResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemoveSubscriberResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemoveSubscriberResponse) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RemoveSubscriberResponse::ByteSizeLong(const MessageLite& base) { - const RemoveSubscriberResponse& this_ = static_cast(base); +::uint8_t* PROTOBUF_NONNULL RemoveSubscriberResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RemoveSubscriberResponse& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t RemoveSubscriberResponse::ByteSizeLong() const { - const RemoveSubscriberResponse& this_ = *this; +::uint8_t* PROTOBUF_NONNULL RemoveSubscriberResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RemoveSubscriberResponse& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemoveSubscriberResponse) - ::size_t total_size = 0; + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RemoveSubscriberResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemoveSubscriberResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RemoveSubscriberResponse) + return target; +} - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RemoveSubscriberResponse::ByteSizeLong(const MessageLite& base) { + const RemoveSubscriberResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RemoveSubscriberResponse::ByteSizeLong() const { + const RemoveSubscriberResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RemoveSubscriberResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // string error = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RemoveSubscriberResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RemoveSubscriberResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemoveSubscriberResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RemoveSubscriberResponse::CopyFrom(const RemoveSubscriberResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemoveSubscriberResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemoveSubscriberResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void RemoveSubscriberResponse::InternalSwap(RemoveSubscriberResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void RemoveSubscriberResponse::InternalSwap(RemoveSubscriberResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); } @@ -7290,28 +8328,34 @@ ::google::protobuf::Metadata RemoveSubscriberResponse::GetMetadata() const { class GetChannelInfoRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_._has_bits_); }; -GetChannelInfoRequest::GetChannelInfoRequest(::google::protobuf::Arena* arena) +GetChannelInfoRequest::GetChannelInfoRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelInfoRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.GetChannelInfoRequest) } -inline PROTOBUF_NDEBUG_INLINE GetChannelInfoRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::GetChannelInfoRequest& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelInfoRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetChannelInfoRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} GetChannelInfoRequest::GetChannelInfoRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelInfoRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelInfoRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7323,13 +8367,13 @@ GetChannelInfoRequest::GetChannelInfoRequest( // @@protoc_insertion_point(copy_constructor:subspace.GetChannelInfoRequest) } -inline PROTOBUF_NDEBUG_INLINE GetChannelInfoRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelInfoRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void GetChannelInfoRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetChannelInfoRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetChannelInfoRequest::~GetChannelInfoRequest() { @@ -7338,51 +8382,62 @@ GetChannelInfoRequest::~GetChannelInfoRequest() { } inline void GetChannelInfoRequest::SharedDtor(MessageLite& self) { GetChannelInfoRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* GetChannelInfoRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL GetChannelInfoRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetChannelInfoRequest(arena); } constexpr auto GetChannelInfoRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetChannelInfoRequest), alignof(GetChannelInfoRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull GetChannelInfoRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_GetChannelInfoRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelInfoRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelInfoRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelInfoRequest::ByteSizeLong, - &GetChannelInfoRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_._cached_size_), - false, - }, - &GetChannelInfoRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* GetChannelInfoRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto GetChannelInfoRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetChannelInfoRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetChannelInfoRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetChannelInfoRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetChannelInfoRequest::ByteSizeLong, + &GetChannelInfoRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_._cached_size_), + false, + }, + &GetChannelInfoRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetChannelInfoRequest_class_data_ = + GetChannelInfoRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetChannelInfoRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelInfoRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetChannelInfoRequest_class_data_.tc_table); + return GetChannelInfoRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> GetChannelInfoRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 51, 2> +GetChannelInfoRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7391,7 +8446,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 51, 2> GetChannelInfoRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + GetChannelInfoRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -7400,13 +8455,13 @@ const ::_pbi::TcParseTable<0, 1, 0, 51, 2> GetChannelInfoRequest::_table_ = { }, {{ // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -7415,7 +8470,6 @@ const ::_pbi::TcParseTable<0, 1, 0, 51, 2> GetChannelInfoRequest::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void GetChannelInfoRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.GetChannelInfoRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -7423,94 +8477,122 @@ PROTOBUF_NOINLINE void GetChannelInfoRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* GetChannelInfoRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const GetChannelInfoRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* GetChannelInfoRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const GetChannelInfoRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelInfoRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelInfoRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelInfoRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL GetChannelInfoRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetChannelInfoRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetChannelInfoRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetChannelInfoRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelInfoRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelInfoRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelInfoRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t GetChannelInfoRequest::ByteSizeLong(const MessageLite& base) { - const GetChannelInfoRequest& this_ = static_cast(base); +::size_t GetChannelInfoRequest::ByteSizeLong(const MessageLite& base) { + const GetChannelInfoRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t GetChannelInfoRequest::ByteSizeLong() const { - const GetChannelInfoRequest& this_ = *this; +::size_t GetChannelInfoRequest::ByteSizeLong() const { + const GetChannelInfoRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelInfoRequest) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelInfoRequest) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // string channel_name = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void GetChannelInfoRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void GetChannelInfoRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelInfoRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GetChannelInfoRequest::CopyFrom(const GetChannelInfoRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelInfoRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelInfoRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetChannelInfoRequest::InternalSwap(GetChannelInfoRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetChannelInfoRequest::InternalSwap(GetChannelInfoRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); } @@ -7521,29 +8603,35 @@ ::google::protobuf::Metadata GetChannelInfoRequest::GetMetadata() const { class GetChannelInfoResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_._has_bits_); }; -GetChannelInfoResponse::GetChannelInfoResponse(::google::protobuf::Arena* arena) +GetChannelInfoResponse::GetChannelInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelInfoResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.GetChannelInfoResponse) } -inline PROTOBUF_NDEBUG_INLINE GetChannelInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::GetChannelInfoResponse& from_msg) - : channels_{visibility, arena, from.channels_}, - error_(arena, from.error_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelInfoResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetChannelInfoResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + error_(arena, from.error_) {} GetChannelInfoResponse::GetChannelInfoResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelInfoResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelInfoResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7555,14 +8643,14 @@ GetChannelInfoResponse::GetChannelInfoResponse( // @@protoc_insertion_point(copy_constructor:subspace.GetChannelInfoResponse) } -inline PROTOBUF_NDEBUG_INLINE GetChannelInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channels_{visibility, arena}, - error_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelInfoResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + error_(arena) {} -inline void GetChannelInfoResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetChannelInfoResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetChannelInfoResponse::~GetChannelInfoResponse() { @@ -7571,14 +8659,18 @@ GetChannelInfoResponse::~GetChannelInfoResponse() { } inline void GetChannelInfoResponse::SharedDtor(MessageLite& self) { GetChannelInfoResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); this_._impl_.~Impl_(); } -inline void* GetChannelInfoResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL GetChannelInfoResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetChannelInfoResponse(arena); } constexpr auto GetChannelInfoResponse::InternalNewImpl_() { @@ -7597,37 +8689,44 @@ constexpr auto GetChannelInfoResponse::InternalNewImpl_() { alignof(GetChannelInfoResponse)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull GetChannelInfoResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_GetChannelInfoResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelInfoResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelInfoResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelInfoResponse::ByteSizeLong, - &GetChannelInfoResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_._cached_size_), - false, - }, - &GetChannelInfoResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* GetChannelInfoResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto GetChannelInfoResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetChannelInfoResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetChannelInfoResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetChannelInfoResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetChannelInfoResponse::ByteSizeLong, + &GetChannelInfoResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_._cached_size_), + false, + }, + &GetChannelInfoResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetChannelInfoResponse_class_data_ = + GetChannelInfoResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetChannelInfoResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelInfoResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetChannelInfoResponse_class_data_.tc_table); + return GetChannelInfoResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 45, 2> GetChannelInfoResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 45, 2> +GetChannelInfoResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7636,7 +8735,7 @@ const ::_pbi::TcParseTable<1, 2, 1, 45, 2> GetChannelInfoResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + GetChannelInfoResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -7645,28 +8744,29 @@ const ::_pbi::TcParseTable<1, 2, 1, 45, 2> GetChannelInfoResponse::_table_ = { }, {{ // repeated .subspace.ChannelInfoProto channels = 2; {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.channels_)}}, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.channels_)}}, // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.error_)}}, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.error_)}}, }}, {{ 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.error_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // repeated .subspace.ChannelInfoProto channels = 2; - {PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.channels_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelInfoProto>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ChannelInfoProto>()}, + }}, + {{ "\37\5\0\0\0\0\0\0" "subspace.GetChannelInfoResponse" "error" }}, }; - PROTOBUF_NOINLINE void GetChannelInfoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.GetChannelInfoResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -7674,118 +8774,156 @@ PROTOBUF_NOINLINE void GetChannelInfoResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channels_.Clear(); - _impl_.error_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* GetChannelInfoResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const GetChannelInfoResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* GetChannelInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const GetChannelInfoResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelInfoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelInfoResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // repeated .subspace.ChannelInfoProto channels = 2; - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelInfoResponse) - return target; - } +::uint8_t* PROTOBUF_NONNULL GetChannelInfoResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetChannelInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetChannelInfoResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetChannelInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelInfoResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelInfoResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // repeated .subspace.ChannelInfoProto channels = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_channels_size()); + i < n; i++) { + const auto& repfield = this_._internal_channels().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelInfoResponse) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t GetChannelInfoResponse::ByteSizeLong(const MessageLite& base) { - const GetChannelInfoResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t GetChannelInfoResponse::ByteSizeLong() const { - const GetChannelInfoResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelInfoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .subspace.ChannelInfoProto channels = 2; - { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t GetChannelInfoResponse::ByteSizeLong(const MessageLite& base) { + const GetChannelInfoResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetChannelInfoResponse::ByteSizeLong() const { + const GetChannelInfoResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelInfoResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .subspace.ChannelInfoProto channels = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_channels_size(); + for (const auto& msg : this_._internal_channels()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void GetChannelInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void GetChannelInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelInfoResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_channels()->MergeFrom( - from._internal_channels()); - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_channels()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GetChannelInfoResponse::CopyFrom(const GetChannelInfoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelInfoResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelInfoResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void GetChannelInfoResponse::InternalSwap(GetChannelInfoResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetChannelInfoResponse::InternalSwap(GetChannelInfoResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.channels_.InternalSwap(&other->_impl_.channels_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); } @@ -7797,28 +8935,34 @@ ::google::protobuf::Metadata GetChannelInfoResponse::GetMetadata() const { class GetChannelStatsRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_._has_bits_); }; -GetChannelStatsRequest::GetChannelStatsRequest(::google::protobuf::Arena* arena) +GetChannelStatsRequest::GetChannelStatsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelStatsRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.GetChannelStatsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetChannelStatsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::GetChannelStatsRequest& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelStatsRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetChannelStatsRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} GetChannelStatsRequest::GetChannelStatsRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelStatsRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelStatsRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7830,13 +8974,13 @@ GetChannelStatsRequest::GetChannelStatsRequest( // @@protoc_insertion_point(copy_constructor:subspace.GetChannelStatsRequest) } -inline PROTOBUF_NDEBUG_INLINE GetChannelStatsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelStatsRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void GetChannelStatsRequest::SharedCtor(::_pb::Arena* arena) { +inline void GetChannelStatsRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetChannelStatsRequest::~GetChannelStatsRequest() { @@ -7845,51 +8989,62 @@ GetChannelStatsRequest::~GetChannelStatsRequest() { } inline void GetChannelStatsRequest::SharedDtor(MessageLite& self) { GetChannelStatsRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* GetChannelStatsRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL GetChannelStatsRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetChannelStatsRequest(arena); } constexpr auto GetChannelStatsRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetChannelStatsRequest), alignof(GetChannelStatsRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull GetChannelStatsRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_GetChannelStatsRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelStatsRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelStatsRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelStatsRequest::ByteSizeLong, - &GetChannelStatsRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_._cached_size_), - false, - }, - &GetChannelStatsRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* GetChannelStatsRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto GetChannelStatsRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetChannelStatsRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetChannelStatsRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetChannelStatsRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetChannelStatsRequest::ByteSizeLong, + &GetChannelStatsRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_._cached_size_), + false, + }, + &GetChannelStatsRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetChannelStatsRequest_class_data_ = + GetChannelStatsRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetChannelStatsRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelStatsRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetChannelStatsRequest_class_data_.tc_table); + return GetChannelStatsRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetChannelStatsRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 52, 2> +GetChannelStatsRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7898,7 +9053,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetChannelStatsRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + GetChannelStatsRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -7907,13 +9062,13 @@ const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetChannelStatsRequest::_table_ = { }, {{ // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -7922,7 +9077,6 @@ const ::_pbi::TcParseTable<0, 1, 0, 52, 2> GetChannelStatsRequest::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void GetChannelStatsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.GetChannelStatsRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -7930,94 +9084,122 @@ PROTOBUF_NOINLINE void GetChannelStatsRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* GetChannelStatsRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const GetChannelStatsRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* GetChannelStatsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const GetChannelStatsRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelStatsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelStatsRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelStatsRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL GetChannelStatsRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetChannelStatsRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetChannelStatsRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetChannelStatsRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelStatsRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelStatsRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelStatsRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t GetChannelStatsRequest::ByteSizeLong(const MessageLite& base) { - const GetChannelStatsRequest& this_ = static_cast(base); +::size_t GetChannelStatsRequest::ByteSizeLong(const MessageLite& base) { + const GetChannelStatsRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t GetChannelStatsRequest::ByteSizeLong() const { - const GetChannelStatsRequest& this_ = *this; +::size_t GetChannelStatsRequest::ByteSizeLong() const { + const GetChannelStatsRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelStatsRequest) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelStatsRequest) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // string channel_name = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void GetChannelStatsRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void GetChannelStatsRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelStatsRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GetChannelStatsRequest::CopyFrom(const GetChannelStatsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelStatsRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelStatsRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetChannelStatsRequest::InternalSwap(GetChannelStatsRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetChannelStatsRequest::InternalSwap(GetChannelStatsRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); } @@ -8028,29 +9210,35 @@ ::google::protobuf::Metadata GetChannelStatsRequest::GetMetadata() const { class GetChannelStatsResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_._has_bits_); }; -GetChannelStatsResponse::GetChannelStatsResponse(::google::protobuf::Arena* arena) +GetChannelStatsResponse::GetChannelStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelStatsResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.GetChannelStatsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetChannelStatsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::GetChannelStatsResponse& from_msg) - : channels_{visibility, arena, from.channels_}, - error_(arena, from.error_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelStatsResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetChannelStatsResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + error_(arena, from.error_) {} GetChannelStatsResponse::GetChannelStatsResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelStatsResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, GetChannelStatsResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8062,14 +9250,14 @@ GetChannelStatsResponse::GetChannelStatsResponse( // @@protoc_insertion_point(copy_constructor:subspace.GetChannelStatsResponse) } -inline PROTOBUF_NDEBUG_INLINE GetChannelStatsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channels_{visibility, arena}, - error_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE GetChannelStatsResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + error_(arena) {} -inline void GetChannelStatsResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetChannelStatsResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } GetChannelStatsResponse::~GetChannelStatsResponse() { @@ -8078,14 +9266,18 @@ GetChannelStatsResponse::~GetChannelStatsResponse() { } inline void GetChannelStatsResponse::SharedDtor(MessageLite& self) { GetChannelStatsResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); this_._impl_.~Impl_(); } -inline void* GetChannelStatsResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL GetChannelStatsResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) GetChannelStatsResponse(arena); } constexpr auto GetChannelStatsResponse::InternalNewImpl_() { @@ -8104,37 +9296,44 @@ constexpr auto GetChannelStatsResponse::InternalNewImpl_() { alignof(GetChannelStatsResponse)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull GetChannelStatsResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_GetChannelStatsResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelStatsResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelStatsResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelStatsResponse::ByteSizeLong, - &GetChannelStatsResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_._cached_size_), - false, - }, - &GetChannelStatsResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* GetChannelStatsResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto GetChannelStatsResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetChannelStatsResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetChannelStatsResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetChannelStatsResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetChannelStatsResponse::ByteSizeLong, + &GetChannelStatsResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_._cached_size_), + false, + }, + &GetChannelStatsResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetChannelStatsResponse_class_data_ = + GetChannelStatsResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetChannelStatsResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelStatsResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetChannelStatsResponse_class_data_.tc_table); + return GetChannelStatsResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 46, 2> GetChannelStatsResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 46, 2> +GetChannelStatsResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -8143,7 +9342,7 @@ const ::_pbi::TcParseTable<1, 2, 1, 46, 2> GetChannelStatsResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + GetChannelStatsResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -8152,28 +9351,29 @@ const ::_pbi::TcParseTable<1, 2, 1, 46, 2> GetChannelStatsResponse::_table_ = { }, {{ // repeated .subspace.ChannelStatsProto channels = 2; {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.channels_)}}, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.channels_)}}, // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.error_)}}, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.error_)}}, }}, {{ 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.error_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // repeated .subspace.ChannelStatsProto channels = 2; - {PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.channels_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelStatsProto>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ChannelStatsProto>()}, + }}, + {{ "\40\5\0\0\0\0\0\0" "subspace.GetChannelStatsResponse" "error" }}, }; - PROTOBUF_NOINLINE void GetChannelStatsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.GetChannelStatsResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -8181,118 +9381,156 @@ PROTOBUF_NOINLINE void GetChannelStatsResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channels_.Clear(); - _impl_.error_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* GetChannelStatsResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const GetChannelStatsResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* GetChannelStatsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const GetChannelStatsResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelStatsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelStatsResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // repeated .subspace.ChannelStatsProto channels = 2; - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelStatsResponse) - return target; - } +::uint8_t* PROTOBUF_NONNULL GetChannelStatsResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetChannelStatsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetChannelStatsResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetChannelStatsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelStatsResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelStatsResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // repeated .subspace.ChannelStatsProto channels = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_channels_size()); + i < n; i++) { + const auto& repfield = this_._internal_channels().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelStatsResponse) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t GetChannelStatsResponse::ByteSizeLong(const MessageLite& base) { - const GetChannelStatsResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t GetChannelStatsResponse::ByteSizeLong() const { - const GetChannelStatsResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelStatsResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .subspace.ChannelStatsProto channels = 2; - { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t GetChannelStatsResponse::ByteSizeLong(const MessageLite& base) { + const GetChannelStatsResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetChannelStatsResponse::ByteSizeLong() const { + const GetChannelStatsResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelStatsResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .subspace.ChannelStatsProto channels = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_channels_size(); + for (const auto& msg : this_._internal_channels()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void GetChannelStatsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void GetChannelStatsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelStatsResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_channels()->MergeFrom( - from._internal_channels()); - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_channels()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GetChannelStatsResponse::CopyFrom(const GetChannelStatsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelStatsResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelStatsResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void GetChannelStatsResponse::InternalSwap(GetChannelStatsResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void GetChannelStatsResponse::InternalSwap(GetChannelStatsResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.channels_.InternalSwap(&other->_impl_.channels_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); } @@ -8305,7 +9543,7 @@ ::google::protobuf::Metadata GetChannelStatsResponse::GetMetadata() const { class ClientBufferHandleMetadataProto::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_._has_bits_); }; @@ -8313,20 +9551,22 @@ class ClientBufferHandleMetadataProto::_Internal { void ClientBufferHandleMetadataProto::clear_allocator_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.allocator_metadata_ != nullptr) _impl_.allocator_metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } -ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto(::google::protobuf::Arena* arena) +ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ClientBufferHandleMetadataProto_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ClientBufferHandleMetadataProto) } -inline PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ClientBufferHandleMetadataProto& from_msg) +PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ClientBufferHandleMetadataProto& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, channel_name_(arena, from.channel_name_), @@ -8336,10 +9576,10 @@ inline PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( pool_id_(arena, from.pool_id_) {} ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ClientBufferHandleMetadataProto& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ClientBufferHandleMetadataProto_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8349,12 +9589,12 @@ ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.allocator_metadata_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>( - arena, *from._impl_.allocator_metadata_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + _impl_.allocator_metadata_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.allocator_metadata_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, session_id_), offsetof(Impl_, alignment_) - offsetof(Impl_, session_id_) + @@ -8362,9 +9602,9 @@ ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto( // @@protoc_insertion_point(copy_constructor:subspace.ClientBufferHandleMetadataProto) } -inline PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, channel_name_(arena), shadow_file_(arena), @@ -8372,9 +9612,9 @@ inline PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( allocator_(arena), pool_id_(arena) {} -inline void ClientBufferHandleMetadataProto::SharedCtor(::_pb::Arena* arena) { +inline void ClientBufferHandleMetadataProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, allocator_metadata_), 0, offsetof(Impl_, alignment_) - @@ -8387,6 +9627,9 @@ ClientBufferHandleMetadataProto::~ClientBufferHandleMetadataProto() { } inline void ClientBufferHandleMetadataProto::SharedDtor(MessageLite& self) { ClientBufferHandleMetadataProto& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); @@ -8398,43 +9641,51 @@ inline void ClientBufferHandleMetadataProto::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* ClientBufferHandleMetadataProto::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ClientBufferHandleMetadataProto(arena); } constexpr auto ClientBufferHandleMetadataProto::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ClientBufferHandleMetadataProto), alignof(ClientBufferHandleMetadataProto)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ClientBufferHandleMetadataProto::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ClientBufferHandleMetadataProto_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ClientBufferHandleMetadataProto::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ClientBufferHandleMetadataProto::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ClientBufferHandleMetadataProto::ByteSizeLong, - &ClientBufferHandleMetadataProto::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_._cached_size_), - false, - }, - &ClientBufferHandleMetadataProto::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ClientBufferHandleMetadataProto::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ClientBufferHandleMetadataProto::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ClientBufferHandleMetadataProto_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ClientBufferHandleMetadataProto::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ClientBufferHandleMetadataProto::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ClientBufferHandleMetadataProto::ByteSizeLong, + &ClientBufferHandleMetadataProto::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_._cached_size_), + false, + }, + &ClientBufferHandleMetadataProto::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ClientBufferHandleMetadataProto_class_data_ = + ClientBufferHandleMetadataProto::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ClientBufferHandleMetadataProto::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ClientBufferHandleMetadataProto_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ClientBufferHandleMetadataProto_class_data_.tc_table); + return ClientBufferHandleMetadataProto_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 15, 1, 107, 2> ClientBufferHandleMetadataProto::_table_ = { +const ::_pbi::TcParseTable<4, 15, 1, 107, 2> +ClientBufferHandleMetadataProto::_table_ = { { PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_._has_bits_), 0, // no _extensions_ @@ -8445,7 +9696,7 @@ const ::_pbi::TcParseTable<4, 15, 1, 107, 2> ClientBufferHandleMetadataProto::_t 15, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + ClientBufferHandleMetadataProto_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -8455,100 +9706,102 @@ const ::_pbi::TcParseTable<4, 15, 1, 107, 2> ClientBufferHandleMetadataProto::_t {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.channel_name_)}}, // uint64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.session_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.session_id_), 6>(), + {16, 6, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.session_id_)}}, // uint32 buffer_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.buffer_index_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.buffer_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.buffer_index_), 7>(), + {24, 7, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.buffer_index_)}}, // uint32 slot_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.slot_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.slot_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.slot_id_), 8>(), + {32, 8, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.slot_id_)}}, // bool is_prefix = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.is_prefix_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 12, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.is_prefix_)}}, // uint64 full_size = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.full_size_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.full_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.full_size_), 9>(), + {48, 9, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.full_size_)}}, // uint64 allocation_size = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.allocation_size_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocation_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.allocation_size_), 10>(), + {56, 10, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocation_size_)}}, // uint64 handle = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.handle_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.handle_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.handle_), 11>(), + {64, 11, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.handle_)}}, // string shadow_file = 9; {::_pbi::TcParser::FastUS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.shadow_file_)}}, + {74, 1, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.shadow_file_)}}, // string object_name = 10; {::_pbi::TcParser::FastUS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.object_name_)}}, + {82, 2, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.object_name_)}}, // string allocator = 11; {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_)}}, + {90, 3, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_)}}, // string pool_id = 12; {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.pool_id_)}}, + {98, 4, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.pool_id_)}}, // bool cache_enabled = 13; - {::_pbi::TcParser::SingularVarintNoZag1(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.cache_enabled_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {104, 13, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.cache_enabled_)}}, // uint32 alignment = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.alignment_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.alignment_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.alignment_), 14>(), + {112, 14, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.alignment_)}}, // .google.protobuf.Any allocator_metadata = 15; {::_pbi::TcParser::FastMtS1, - {122, 0, 0, PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_metadata_)}}, + {122, 5, 0, + PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_metadata_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.channel_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.session_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.session_id_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint32 buffer_index = 3; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.buffer_index_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.buffer_index_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 slot_id = 4; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.slot_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.slot_id_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // bool is_prefix = 5; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.is_prefix_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.is_prefix_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // uint64 full_size = 6; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.full_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.full_size_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 allocation_size = 7; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocation_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocation_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint64 handle = 8; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.handle_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.handle_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // string shadow_file = 9; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.shadow_file_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.shadow_file_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string object_name = 10; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.object_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.object_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string allocator = 11; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string pool_id = 12; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.pool_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.pool_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool cache_enabled = 13; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.cache_enabled_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.cache_enabled_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // uint32 alignment = 14; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.alignment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.alignment_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // .google.protobuf.Any allocator_metadata = 15; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_metadata_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, + }}, + {{ "\50\14\0\0\0\0\0\0\0\13\13\11\7\0\0\0" "subspace.ClientBufferHandleMetadataProto" "channel_name" @@ -8558,7 +9811,6 @@ const ::_pbi::TcParseTable<4, 15, 1, 107, 2> ClientBufferHandleMetadataProto::_t "pool_id" }}, }; - PROTOBUF_NOINLINE void ClientBufferHandleMetadataProto::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ClientBufferHandleMetadataProto) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -8566,332 +9818,465 @@ PROTOBUF_NOINLINE void ClientBufferHandleMetadataProto::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - _impl_.shadow_file_.ClearToEmpty(); - _impl_.object_name_.ClearToEmpty(); - _impl_.allocator_.ClearToEmpty(); - _impl_.pool_id_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.allocator_metadata_ != nullptr); - _impl_.allocator_metadata_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.shadow_file_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.object_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.allocator_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.pool_id_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(_impl_.allocator_metadata_ != nullptr); + _impl_.allocator_metadata_->Clear(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000c0U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.buffer_index_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { + ::memset(&_impl_.slot_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.alignment_) - + reinterpret_cast(&_impl_.slot_id_)) + sizeof(_impl_.alignment_)); } - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.alignment_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.alignment_)); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ClientBufferHandleMetadataProto::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ClientBufferHandleMetadataProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ClientBufferHandleMetadataProto::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ClientBufferHandleMetadataProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ClientBufferHandleMetadataProto) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // uint64 session_id = 2; - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_session_id(), target); - } - - // uint32 buffer_index = 3; - if (this_._internal_buffer_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_buffer_index(), target); - } - - // uint32 slot_id = 4; - if (this_._internal_slot_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this_._internal_slot_id(), target); - } - - // bool is_prefix = 5; - if (this_._internal_is_prefix() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_is_prefix(), target); - } - - // uint64 full_size = 6; - if (this_._internal_full_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this_._internal_full_size(), target); - } - - // uint64 allocation_size = 7; - if (this_._internal_allocation_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this_._internal_allocation_size(), target); - } - - // uint64 handle = 8; - if (this_._internal_handle() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this_._internal_handle(), target); - } - - // string shadow_file = 9; - if (!this_._internal_shadow_file().empty()) { - const std::string& _s = this_._internal_shadow_file(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.shadow_file"); - target = stream->WriteStringMaybeAliased(9, _s, target); - } - - // string object_name = 10; - if (!this_._internal_object_name().empty()) { - const std::string& _s = this_._internal_object_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.object_name"); - target = stream->WriteStringMaybeAliased(10, _s, target); - } - - // string allocator = 11; - if (!this_._internal_allocator().empty()) { - const std::string& _s = this_._internal_allocator(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.allocator"); - target = stream->WriteStringMaybeAliased(11, _s, target); - } - - // string pool_id = 12; - if (!this_._internal_pool_id().empty()) { - const std::string& _s = this_._internal_pool_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.pool_id"); - target = stream->WriteStringMaybeAliased(12, _s, target); - } - - // bool cache_enabled = 13; - if (this_._internal_cache_enabled() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 13, this_._internal_cache_enabled(), target); - } - - // uint32 alignment = 14; - if (this_._internal_alignment() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 14, this_._internal_alignment(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // .google.protobuf.Any allocator_metadata = 15; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 15, *this_._impl_.allocator_metadata_, this_._impl_.allocator_metadata_->GetCachedSize(), target, - stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ClientBufferHandleMetadataProto) - return target; - } +::uint8_t* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ClientBufferHandleMetadataProto& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ClientBufferHandleMetadataProto& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ClientBufferHandleMetadataProto) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ClientBufferHandleMetadataProto::ByteSizeLong(const MessageLite& base) { - const ClientBufferHandleMetadataProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ClientBufferHandleMetadataProto::ByteSizeLong() const { - const ClientBufferHandleMetadataProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ClientBufferHandleMetadataProto) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // string shadow_file = 9; - if (!this_._internal_shadow_file().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_shadow_file()); - } - // string object_name = 10; - if (!this_._internal_object_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_object_name()); - } - // string allocator = 11; - if (!this_._internal_allocator().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_allocator()); - } - // string pool_id = 12; - if (!this_._internal_pool_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_pool_id()); - } - } - { - // .google.protobuf.Any allocator_metadata = 15; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.allocator_metadata_); - } - } - { - // uint64 session_id = 2; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - // uint32 buffer_index = 3; - if (this_._internal_buffer_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_buffer_index()); - } - // uint32 slot_id = 4; - if (this_._internal_slot_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_slot_id()); - } - // uint64 full_size = 6; - if (this_._internal_full_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_full_size()); - } - // uint64 allocation_size = 7; - if (this_._internal_allocation_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_allocation_size()); - } - // uint64 handle = 8; - if (this_._internal_handle() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_handle()); - } - // bool is_prefix = 5; - if (this_._internal_is_prefix() != 0) { - total_size += 2; - } - // bool cache_enabled = 13; - if (this_._internal_cache_enabled() != 0) { - total_size += 2; - } - // uint32 alignment = 14; - if (this_._internal_alignment() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_alignment()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_session_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_session_id(), target); + } + } -void ClientBufferHandleMetadataProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ClientBufferHandleMetadataProto) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_buffer_index() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_buffer_index(), target); + } + } + + // uint32 slot_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_slot_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 4, this_._internal_slot_id(), target); + } + } + + // bool is_prefix = 5; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_is_prefix() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_is_prefix(), target); + } + } + + // uint64 full_size = 6; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_full_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 6, this_._internal_full_size(), target); + } + } - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + // uint64 allocation_size = 7; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_allocation_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 7, this_._internal_allocation_size(), target); + } } - if (!from._internal_shadow_file().empty()) { - _this->_internal_set_shadow_file(from._internal_shadow_file()); + + // uint64 handle = 8; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_handle() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 8, this_._internal_handle(), target); + } } - if (!from._internal_object_name().empty()) { - _this->_internal_set_object_name(from._internal_object_name()); + + // string shadow_file = 9; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_shadow_file().empty()) { + const ::std::string& _s = this_._internal_shadow_file(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.shadow_file"); + target = stream->WriteStringMaybeAliased(9, _s, target); + } } - if (!from._internal_allocator().empty()) { - _this->_internal_set_allocator(from._internal_allocator()); + + // string object_name = 10; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_object_name().empty()) { + const ::std::string& _s = this_._internal_object_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.object_name"); + target = stream->WriteStringMaybeAliased(10, _s, target); + } } - if (!from._internal_pool_id().empty()) { - _this->_internal_set_pool_id(from._internal_pool_id()); + + // string allocator = 11; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_allocator().empty()) { + const ::std::string& _s = this_._internal_allocator(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.allocator"); + target = stream->WriteStringMaybeAliased(11, _s, target); + } } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.allocator_metadata_ != nullptr); - if (_this->_impl_.allocator_metadata_ == nullptr) { - _this->_impl_.allocator_metadata_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.allocator_metadata_); - } else { - _this->_impl_.allocator_metadata_->MergeFrom(*from._impl_.allocator_metadata_); + + // string pool_id = 12; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_pool_id().empty()) { + const ::std::string& _s = this_._internal_pool_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.pool_id"); + target = stream->WriteStringMaybeAliased(12, _s, target); } } - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; + + // bool cache_enabled = 13; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_cache_enabled() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 13, this_._internal_cache_enabled(), target); + } } - if (from._internal_buffer_index() != 0) { - _this->_impl_.buffer_index_ = from._impl_.buffer_index_; + + // uint32 alignment = 14; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_alignment() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 14, this_._internal_alignment(), target); + } } - if (from._internal_slot_id() != 0) { - _this->_impl_.slot_id_ = from._impl_.slot_id_; + + // .google.protobuf.Any allocator_metadata = 15; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 15, *this_._impl_.allocator_metadata_, this_._impl_.allocator_metadata_->GetCachedSize(), target, + stream); } - if (from._internal_full_size() != 0) { - _this->_impl_.full_size_ = from._impl_.full_size_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_allocation_size() != 0) { - _this->_impl_.allocation_size_ = from._impl_.allocation_size_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.ClientBufferHandleMetadataProto) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ClientBufferHandleMetadataProto::ByteSizeLong(const MessageLite& base) { + const ClientBufferHandleMetadataProto& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ClientBufferHandleMetadataProto::ByteSizeLong() const { + const ClientBufferHandleMetadataProto& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ClientBufferHandleMetadataProto) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // string shadow_file = 9; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_shadow_file().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_shadow_file()); + } + } + // string object_name = 10; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_object_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_object_name()); + } + } + // string allocator = 11; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_allocator().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_allocator()); + } + } + // string pool_id = 12; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_pool_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_pool_id()); + } + } + // .google.protobuf.Any allocator_metadata = 15; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.allocator_metadata_); + } + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_session_id()); + } + } + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_buffer_index() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_buffer_index()); + } + } } - if (from._internal_handle() != 0) { - _this->_impl_.handle_ = from._impl_.handle_; + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { + // uint32 slot_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_slot_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_slot_id()); + } + } + // uint64 full_size = 6; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_full_size() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_full_size()); + } + } + // uint64 allocation_size = 7; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_allocation_size() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_allocation_size()); + } + } + // uint64 handle = 8; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_handle() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_handle()); + } + } + // bool is_prefix = 5; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_is_prefix() != 0) { + total_size += 2; + } + } + // bool cache_enabled = 13; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_cache_enabled() != 0) { + total_size += 2; + } + } + // uint32 alignment = 14; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_alignment() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_alignment()); + } + } } - if (from._internal_is_prefix() != 0) { - _this->_impl_.is_prefix_ = from._impl_.is_prefix_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ClientBufferHandleMetadataProto::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_cache_enabled() != 0) { - _this->_impl_.cache_enabled_ = from._impl_.cache_enabled_; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ClientBufferHandleMetadataProto) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_shadow_file().empty()) { + _this->_internal_set_shadow_file(from._internal_shadow_file()); + } else { + if (_this->_impl_.shadow_file_.IsDefault()) { + _this->_internal_set_shadow_file(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_object_name().empty()) { + _this->_internal_set_object_name(from._internal_object_name()); + } else { + if (_this->_impl_.object_name_.IsDefault()) { + _this->_internal_set_object_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!from._internal_allocator().empty()) { + _this->_internal_set_allocator(from._internal_allocator()); + } else { + if (_this->_impl_.allocator_.IsDefault()) { + _this->_internal_set_allocator(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!from._internal_pool_id().empty()) { + _this->_internal_set_pool_id(from._internal_pool_id()); + } else { + if (_this->_impl_.pool_id_.IsDefault()) { + _this->_internal_set_pool_id(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + ABSL_DCHECK(from._impl_.allocator_metadata_ != nullptr); + if (_this->_impl_.allocator_metadata_ == nullptr) { + _this->_impl_.allocator_metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.allocator_metadata_); + } else { + _this->_impl_.allocator_metadata_->MergeFrom(*from._impl_.allocator_metadata_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_buffer_index() != 0) { + _this->_impl_.buffer_index_ = from._impl_.buffer_index_; + } + } } - if (from._internal_alignment() != 0) { - _this->_impl_.alignment_ = from._impl_.alignment_; + if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_slot_id() != 0) { + _this->_impl_.slot_id_ = from._impl_.slot_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_full_size() != 0) { + _this->_impl_.full_size_ = from._impl_.full_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_allocation_size() != 0) { + _this->_impl_.allocation_size_ = from._impl_.allocation_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_handle() != 0) { + _this->_impl_.handle_ = from._impl_.handle_; + } + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (from._internal_is_prefix() != 0) { + _this->_impl_.is_prefix_ = from._impl_.is_prefix_; + } + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (from._internal_cache_enabled() != 0) { + _this->_impl_.cache_enabled_ = from._impl_.cache_enabled_; + } + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (from._internal_alignment() != 0) { + _this->_impl_.alignment_ = from._impl_.alignment_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ClientBufferHandleMetadataProto::CopyFrom(const ClientBufferHandleMetadataProto& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ClientBufferHandleMetadataProto) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ClientBufferHandleMetadataProto) if (&from == this) return; Clear(); MergeFrom(from); } -void ClientBufferHandleMetadataProto::InternalSwap(ClientBufferHandleMetadataProto* PROTOBUF_RESTRICT other) { - using std::swap; +void ClientBufferHandleMetadataProto::InternalSwap(ClientBufferHandleMetadataProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -8917,31 +10302,32 @@ ::google::protobuf::Metadata ClientBufferHandleMetadataProto::GetMetadata() cons class RegisterClientBufferRequest::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_._has_bits_); }; -RegisterClientBufferRequest::RegisterClientBufferRequest(::google::protobuf::Arena* arena) +RegisterClientBufferRequest::RegisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RegisterClientBufferRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RegisterClientBufferRequest) } -inline PROTOBUF_NDEBUG_INLINE RegisterClientBufferRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RegisterClientBufferRequest& from_msg) +PROTOBUF_NDEBUG_INLINE RegisterClientBufferRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RegisterClientBufferRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} RegisterClientBufferRequest::RegisterClientBufferRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegisterClientBufferRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RegisterClientBufferRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8951,20 +10337,32 @@ RegisterClientBufferRequest::RegisterClientBufferRequest( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::subspace::ClientBufferHandleMetadataProto>( - arena, *from._impl_.metadata_) - : nullptr; + _impl_.metadata_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, has_fd_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, has_fd_), + offsetof(Impl_, fd_index_) - + offsetof(Impl_, has_fd_) + + sizeof(Impl_::fd_index_)); // @@protoc_insertion_point(copy_constructor:subspace.RegisterClientBufferRequest) } -inline PROTOBUF_NDEBUG_INLINE RegisterClientBufferRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE RegisterClientBufferRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void RegisterClientBufferRequest::SharedCtor(::_pb::Arena* arena) { +inline void RegisterClientBufferRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.metadata_ = {}; + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, metadata_), + 0, + offsetof(Impl_, fd_index_) - + offsetof(Impl_, metadata_) + + sizeof(Impl_::fd_index_)); } RegisterClientBufferRequest::~RegisterClientBufferRequest() { // @@protoc_insertion_point(destructor:subspace.RegisterClientBufferRequest) @@ -8972,81 +10370,106 @@ RegisterClientBufferRequest::~RegisterClientBufferRequest() { } inline void RegisterClientBufferRequest::SharedDtor(MessageLite& self) { RegisterClientBufferRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.metadata_; this_._impl_.~Impl_(); } -inline void* RegisterClientBufferRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RegisterClientBufferRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RegisterClientBufferRequest(arena); } constexpr auto RegisterClientBufferRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RegisterClientBufferRequest), alignof(RegisterClientBufferRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RegisterClientBufferRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RegisterClientBufferRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RegisterClientBufferRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RegisterClientBufferRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RegisterClientBufferRequest::ByteSizeLong, - &RegisterClientBufferRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_._cached_size_), - false, - }, - &RegisterClientBufferRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RegisterClientBufferRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RegisterClientBufferRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RegisterClientBufferRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RegisterClientBufferRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RegisterClientBufferRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RegisterClientBufferRequest::ByteSizeLong, + &RegisterClientBufferRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_._cached_size_), + false, + }, + &RegisterClientBufferRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RegisterClientBufferRequest_class_data_ = + RegisterClientBufferRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RegisterClientBufferRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RegisterClientBufferRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RegisterClientBufferRequest_class_data_.tc_table); + return RegisterClientBufferRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> RegisterClientBufferRequest::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +RegisterClientBufferRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_._has_bits_), 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967288, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries + 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + RegisterClientBufferRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferRequest>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ + {::_pbi::TcParser::MiniParse, {}}, // .subspace.ClientBufferHandleMetadataProto metadata = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_)}}, + // bool has_fd = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.has_fd_)}}, + // int32 fd_index = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RegisterClientBufferRequest, _impl_.fd_index_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.fd_index_)}}, }}, {{ 65535, 65535 }}, {{ // .subspace.ClientBufferHandleMetadataProto metadata = 1; - {PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool has_fd = 2; + {PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.has_fd_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // int32 fd_index = 3; + {PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.fd_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, + }}, + {{ }}, }; - PROTOBUF_NOINLINE void RegisterClientBufferRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RegisterClientBufferRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9055,108 +10478,170 @@ PROTOBUF_NOINLINE void RegisterClientBufferRequest::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(_impl_.metadata_ != nullptr); _impl_.metadata_->Clear(); } + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.has_fd_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.fd_index_) - + reinterpret_cast(&_impl_.has_fd_)) + sizeof(_impl_.fd_index_)); + } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RegisterClientBufferRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RegisterClientBufferRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RegisterClientBufferRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RegisterClientBufferRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RegisterClientBufferRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, - stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RegisterClientBufferRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL RegisterClientBufferRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RegisterClientBufferRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RegisterClientBufferRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RegisterClientBufferRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RegisterClientBufferRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .subspace.ClientBufferHandleMetadataProto metadata = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, + stream); + } + + // bool has_fd = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_has_fd() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_has_fd(), target); + } + } + + // int32 fd_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_fd_index(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RegisterClientBufferRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RegisterClientBufferRequest::ByteSizeLong(const MessageLite& base) { - const RegisterClientBufferRequest& this_ = static_cast(base); +::size_t RegisterClientBufferRequest::ByteSizeLong(const MessageLite& base) { + const RegisterClientBufferRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t RegisterClientBufferRequest::ByteSizeLong() const { - const RegisterClientBufferRequest& this_ = *this; +::size_t RegisterClientBufferRequest::ByteSizeLong() const { + const RegisterClientBufferRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RegisterClientBufferRequest) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.RegisterClientBufferRequest) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // .subspace.ClientBufferHandleMetadataProto metadata = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); + } + // bool has_fd = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_has_fd() != 0) { + total_size += 2; + } + } + // int32 fd_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_fd_index()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RegisterClientBufferRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RegisterClientBufferRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RegisterClientBufferRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.metadata_ != nullptr); - if (_this->_impl_.metadata_ == nullptr) { - _this->_impl_.metadata_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ClientBufferHandleMetadataProto>(arena, *from._impl_.metadata_); - } else { - _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.metadata_ != nullptr); + if (_this->_impl_.metadata_ == nullptr) { + _this->_impl_.metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_); + } else { + _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_has_fd() != 0) { + _this->_impl_.has_fd_ = from._impl_.has_fd_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_fd_index() != 0) { + _this->_impl_.fd_index_ = from._impl_.fd_index_; + } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RegisterClientBufferRequest::CopyFrom(const RegisterClientBufferRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RegisterClientBufferRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RegisterClientBufferRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RegisterClientBufferRequest::InternalSwap(RegisterClientBufferRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void RegisterClientBufferRequest::InternalSwap(RegisterClientBufferRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.metadata_, other->_impl_.metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.fd_index_) + + sizeof(RegisterClientBufferRequest::_impl_.fd_index_) + - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_)>( + reinterpret_cast(&_impl_.metadata_), + reinterpret_cast(&other->_impl_.metadata_)); } ::google::protobuf::Metadata RegisterClientBufferRequest::GetMetadata() const { @@ -9164,114 +10649,406 @@ ::google::protobuf::Metadata RegisterClientBufferRequest::GetMetadata() const { } // =================================================================== -class UnregisterClientBufferRequest::_Internal { +class RegisterClientBufferResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_._has_bits_); }; -UnregisterClientBufferRequest::UnregisterClientBufferRequest(::google::protobuf::Arena* arena) +RegisterClientBufferResponse::RegisterClientBufferResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RegisterClientBufferResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.UnregisterClientBufferRequest) + // @@protoc_insertion_point(arena_constructor:subspace.RegisterClientBufferResponse) } -inline PROTOBUF_NDEBUG_INLINE UnregisterClientBufferRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::UnregisterClientBufferRequest& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RegisterClientBufferResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RegisterClientBufferResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + error_(arena, from.error_) {} -UnregisterClientBufferRequest::UnregisterClientBufferRequest( - ::google::protobuf::Arena* arena, - const UnregisterClientBufferRequest& from) +RegisterClientBufferResponse::RegisterClientBufferResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const RegisterClientBufferResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RegisterClientBufferResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE - UnregisterClientBufferRequest* const _this = this; + RegisterClientBufferResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, session_id_), - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); - // @@protoc_insertion_point(copy_constructor:subspace.UnregisterClientBufferRequest) + // @@protoc_insertion_point(copy_constructor:subspace.RegisterClientBufferResponse) } -inline PROTOBUF_NDEBUG_INLINE UnregisterClientBufferRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RegisterClientBufferResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + error_(arena) {} -inline void UnregisterClientBufferRequest::SharedCtor(::_pb::Arena* arena) { +inline void RegisterClientBufferResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - 0, - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); } -UnregisterClientBufferRequest::~UnregisterClientBufferRequest() { - // @@protoc_insertion_point(destructor:subspace.UnregisterClientBufferRequest) +RegisterClientBufferResponse::~RegisterClientBufferResponse() { + // @@protoc_insertion_point(destructor:subspace.RegisterClientBufferResponse) SharedDtor(*this); } -inline void UnregisterClientBufferRequest::SharedDtor(MessageLite& self) { +inline void RegisterClientBufferResponse::SharedDtor(MessageLite& self) { + RegisterClientBufferResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.error_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL RegisterClientBufferResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) RegisterClientBufferResponse(arena); +} +constexpr auto RegisterClientBufferResponse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RegisterClientBufferResponse), + alignof(RegisterClientBufferResponse)); +} +constexpr auto RegisterClientBufferResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RegisterClientBufferResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RegisterClientBufferResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RegisterClientBufferResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RegisterClientBufferResponse::ByteSizeLong, + &RegisterClientBufferResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_._cached_size_), + false, + }, + &RegisterClientBufferResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RegisterClientBufferResponse_class_data_ = + RegisterClientBufferResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RegisterClientBufferResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RegisterClientBufferResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RegisterClientBufferResponse_class_data_.tc_table); + return RegisterClientBufferResponse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 51, 2> +RegisterClientBufferResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + RegisterClientBufferResponse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string error = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_.error_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string error = 1; + {PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\45\5\0\0\0\0\0\0" + "subspace.RegisterClientBufferResponse" + "error" + }}, +}; +PROTOBUF_NOINLINE void RegisterClientBufferResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:subspace.RegisterClientBufferResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL RegisterClientBufferResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RegisterClientBufferResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RegisterClientBufferResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RegisterClientBufferResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RegisterClientBufferResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RegisterClientBufferResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RegisterClientBufferResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RegisterClientBufferResponse::ByteSizeLong(const MessageLite& base) { + const RegisterClientBufferResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RegisterClientBufferResponse::ByteSizeLong() const { + const RegisterClientBufferResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RegisterClientBufferResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + { + // string error = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void RegisterClientBufferResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RegisterClientBufferResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void RegisterClientBufferResponse::CopyFrom(const RegisterClientBufferResponse& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RegisterClientBufferResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void RegisterClientBufferResponse::InternalSwap(RegisterClientBufferResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); +} + +::google::protobuf::Metadata RegisterClientBufferResponse::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class UnregisterClientBufferRequest::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_._has_bits_); +}; + +UnregisterClientBufferRequest::UnregisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, UnregisterClientBufferRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:subspace.UnregisterClientBufferRequest) +} +PROTOBUF_NDEBUG_INLINE UnregisterClientBufferRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::UnregisterClientBufferRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} + +UnregisterClientBufferRequest::UnregisterClientBufferRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const UnregisterClientBufferRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, UnregisterClientBufferRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + UnregisterClientBufferRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, buffer_index_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::buffer_index_)); + + // @@protoc_insertion_point(copy_constructor:subspace.UnregisterClientBufferRequest) +} +PROTOBUF_NDEBUG_INLINE UnregisterClientBufferRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} + +inline void UnregisterClientBufferRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + 0, + offsetof(Impl_, buffer_index_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::buffer_index_)); +} +UnregisterClientBufferRequest::~UnregisterClientBufferRequest() { + // @@protoc_insertion_point(destructor:subspace.UnregisterClientBufferRequest) + SharedDtor(*this); +} +inline void UnregisterClientBufferRequest::SharedDtor(MessageLite& self) { UnregisterClientBufferRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* UnregisterClientBufferRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL UnregisterClientBufferRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) UnregisterClientBufferRequest(arena); } constexpr auto UnregisterClientBufferRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(UnregisterClientBufferRequest), alignof(UnregisterClientBufferRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull UnregisterClientBufferRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_UnregisterClientBufferRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &UnregisterClientBufferRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &UnregisterClientBufferRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &UnregisterClientBufferRequest::ByteSizeLong, - &UnregisterClientBufferRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_._cached_size_), - false, - }, - &UnregisterClientBufferRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* UnregisterClientBufferRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto UnregisterClientBufferRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_UnregisterClientBufferRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &UnregisterClientBufferRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &UnregisterClientBufferRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &UnregisterClientBufferRequest::ByteSizeLong, + &UnregisterClientBufferRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_._cached_size_), + false, + }, + &UnregisterClientBufferRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull UnregisterClientBufferRequest_class_data_ = + UnregisterClientBufferRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +UnregisterClientBufferRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&UnregisterClientBufferRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(UnregisterClientBufferRequest_class_data_.tc_table); + return UnregisterClientBufferRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 59, 2> UnregisterClientBufferRequest::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 59, 2> +UnregisterClientBufferRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -9280,7 +11057,7 @@ const ::_pbi::TcParseTable<2, 3, 0, 59, 2> UnregisterClientBufferRequest::_table 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + UnregisterClientBufferRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -9290,25 +11067,25 @@ const ::_pbi::TcParseTable<2, 3, 0, 59, 2> UnregisterClientBufferRequest::_table {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.channel_name_)}}, // uint64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnregisterClientBufferRequest, _impl_.session_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnregisterClientBufferRequest, _impl_.session_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_)}}, // uint32 buffer_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UnregisterClientBufferRequest, _impl_.buffer_index_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UnregisterClientBufferRequest, _impl_.buffer_index_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint32 buffer_index = 3; - {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, }}, // no aux_entries {{ @@ -9317,7 +11094,6 @@ const ::_pbi::TcParseTable<2, 3, 0, 59, 2> UnregisterClientBufferRequest::_table "channel_name" }}, }; - PROTOBUF_NOINLINE void UnregisterClientBufferRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.UnregisterClientBufferRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9325,138 +11101,911 @@ PROTOBUF_NOINLINE void UnregisterClientBufferRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.buffer_index_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.buffer_index_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* UnregisterClientBufferRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const UnregisterClientBufferRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* UnregisterClientBufferRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const UnregisterClientBufferRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.UnregisterClientBufferRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.UnregisterClientBufferRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // uint64 session_id = 2; - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_session_id(), target); - } - - // uint32 buffer_index = 3; - if (this_._internal_buffer_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_buffer_index(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.UnregisterClientBufferRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL UnregisterClientBufferRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const UnregisterClientBufferRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL UnregisterClientBufferRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const UnregisterClientBufferRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.UnregisterClientBufferRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.UnregisterClientBufferRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_session_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_session_id(), target); + } + } + + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_buffer_index() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_buffer_index(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.UnregisterClientBufferRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t UnregisterClientBufferRequest::ByteSizeLong(const MessageLite& base) { - const UnregisterClientBufferRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t UnregisterClientBufferRequest::ByteSizeLong() const { - const UnregisterClientBufferRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.UnregisterClientBufferRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // uint64 session_id = 2; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - // uint32 buffer_index = 3; - if (this_._internal_buffer_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_buffer_index()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t UnregisterClientBufferRequest::ByteSizeLong(const MessageLite& base) { + const UnregisterClientBufferRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t UnregisterClientBufferRequest::ByteSizeLong() const { + const UnregisterClientBufferRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.UnregisterClientBufferRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_session_id()); + } + } + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_buffer_index() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_buffer_index()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void UnregisterClientBufferRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void UnregisterClientBufferRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.UnregisterClientBufferRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_buffer_index() != 0) { + _this->_impl_.buffer_index_ = from._impl_.buffer_index_; + } + } } - if (from._internal_buffer_index() != 0) { - _this->_impl_.buffer_index_ = from._impl_.buffer_index_; + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void UnregisterClientBufferRequest::CopyFrom(const UnregisterClientBufferRequest& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.UnregisterClientBufferRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void UnregisterClientBufferRequest::InternalSwap(UnregisterClientBufferRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_) + + sizeof(UnregisterClientBufferRequest::_impl_.buffer_index_) + - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_)>( + reinterpret_cast(&_impl_.session_id_), + reinterpret_cast(&other->_impl_.session_id_)); +} + +::google::protobuf::Metadata UnregisterClientBufferRequest::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class GetClientBuffersRequest::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_._has_bits_); +}; + +GetClientBuffersRequest::GetClientBuffersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetClientBuffersRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:subspace.GetClientBuffersRequest) +} +PROTOBUF_NDEBUG_INLINE GetClientBuffersRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetClientBuffersRequest& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} + +GetClientBuffersRequest::GetClientBuffersRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GetClientBuffersRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetClientBuffersRequest_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GetClientBuffersRequest* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, session_id_), + offsetof(Impl_, buffer_index_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::buffer_index_)); + + // @@protoc_insertion_point(copy_constructor:subspace.GetClientBuffersRequest) +} +PROTOBUF_NDEBUG_INLINE GetClientBuffersRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} + +inline void GetClientBuffersRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, session_id_), + 0, + offsetof(Impl_, buffer_index_) - + offsetof(Impl_, session_id_) + + sizeof(Impl_::buffer_index_)); +} +GetClientBuffersRequest::~GetClientBuffersRequest() { + // @@protoc_insertion_point(destructor:subspace.GetClientBuffersRequest) + SharedDtor(*this); +} +inline void GetClientBuffersRequest::SharedDtor(MessageLite& self) { + GetClientBuffersRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.channel_name_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL GetClientBuffersRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetClientBuffersRequest(arena); +} +constexpr auto GetClientBuffersRequest::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetClientBuffersRequest), + alignof(GetClientBuffersRequest)); +} +constexpr auto GetClientBuffersRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetClientBuffersRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetClientBuffersRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetClientBuffersRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetClientBuffersRequest::ByteSizeLong, + &GetClientBuffersRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_._cached_size_), + false, + }, + &GetClientBuffersRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetClientBuffersRequest_class_data_ = + GetClientBuffersRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetClientBuffersRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetClientBuffersRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetClientBuffersRequest_class_data_.tc_table); + return GetClientBuffersRequest_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 53, 2> +GetClientBuffersRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + GetClientBuffersRequest_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::subspace::GetClientBuffersRequest>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string channel_name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.channel_name_)}}, + // uint64 session_id = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetClientBuffersRequest, _impl_.session_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.session_id_)}}, + // uint32 buffer_index = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetClientBuffersRequest, _impl_.buffer_index_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.buffer_index_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string channel_name = 1; + {PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint64 session_id = 2; + {PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint32 buffer_index = 3; + {PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.buffer_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, + }}, + // no aux_entries + {{ + "\40\14\0\0\0\0\0\0" + "subspace.GetClientBuffersRequest" + "channel_name" + }}, +}; +PROTOBUF_NOINLINE void GetClientBuffersRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:subspace.GetClientBuffersRequest) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.buffer_index_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetClientBuffersRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetClientBuffersRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetClientBuffersRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetClientBuffersRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetClientBuffersRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetClientBuffersRequest.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_session_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_session_id(), target); + } + } + + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_buffer_index() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_buffer_index(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetClientBuffersRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetClientBuffersRequest::ByteSizeLong(const MessageLite& base) { + const GetClientBuffersRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetClientBuffersRequest::ByteSizeLong() const { + const GetClientBuffersRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.GetClientBuffersRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_session_id()); + } + } + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_buffer_index() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_buffer_index()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void GetClientBuffersRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetClientBuffersRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_buffer_index() != 0) { + _this->_impl_.buffer_index_ = from._impl_.buffer_index_; + } + } + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); +} + +void GetClientBuffersRequest::CopyFrom(const GetClientBuffersRequest& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetClientBuffersRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + + +void GetClientBuffersRequest::InternalSwap(GetClientBuffersRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; + auto* arena = GetArena(); + ABSL_DCHECK_EQ(arena, other->GetArena()); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.buffer_index_) + + sizeof(GetClientBuffersRequest::_impl_.buffer_index_) + - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.session_id_)>( + reinterpret_cast(&_impl_.session_id_), + reinterpret_cast(&other->_impl_.session_id_)); +} + +::google::protobuf::Metadata GetClientBuffersRequest::GetMetadata() const { + return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); +} +// =================================================================== + +class GetClientBuffersResponse::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_._has_bits_); +}; + +GetClientBuffersResponse::GetClientBuffersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetClientBuffersResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + SharedCtor(arena); + // @@protoc_insertion_point(arena_constructor:subspace.GetClientBuffersResponse) +} +PROTOBUF_NDEBUG_INLINE GetClientBuffersResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::GetClientBuffersResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + metadata_{visibility, arena, from.metadata_}, + fd_indexes_{visibility, arena, from.fd_indexes_}, + _fd_indexes_cached_byte_size_{0}, + error_(arena, from.error_) {} + +GetClientBuffersResponse::GetClientBuffersResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, + const GetClientBuffersResponse& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, GetClientBuffersResponse_class_data_.base()) { +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena) { +#endif // PROTOBUF_CUSTOM_VTABLE + GetClientBuffersResponse* const _this = this; + (void)_this; + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); + + // @@protoc_insertion_point(copy_constructor:subspace.GetClientBuffersResponse) +} +PROTOBUF_NDEBUG_INLINE GetClientBuffersResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + metadata_{visibility, arena}, + fd_indexes_{visibility, arena}, + _fd_indexes_cached_byte_size_{0}, + error_(arena) {} + +inline void GetClientBuffersResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { + new (&_impl_) Impl_(internal_visibility(), arena); +} +GetClientBuffersResponse::~GetClientBuffersResponse() { + // @@protoc_insertion_point(destructor:subspace.GetClientBuffersResponse) + SharedDtor(*this); +} +inline void GetClientBuffersResponse::SharedDtor(MessageLite& self) { + GetClientBuffersResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.error_.Destroy(); + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL GetClientBuffersResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GetClientBuffersResponse(arena); +} +constexpr auto GetClientBuffersResponse::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.metadata_) + + decltype(GetClientBuffersResponse::_impl_.metadata_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.fd_indexes_) + + decltype(GetClientBuffersResponse::_impl_.fd_indexes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(GetClientBuffersResponse), alignof(GetClientBuffersResponse), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GetClientBuffersResponse::PlacementNew_, + sizeof(GetClientBuffersResponse), + alignof(GetClientBuffersResponse)); + } +} +constexpr auto GetClientBuffersResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GetClientBuffersResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GetClientBuffersResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GetClientBuffersResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GetClientBuffersResponse::ByteSizeLong, + &GetClientBuffersResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_._cached_size_), + false, + }, + &GetClientBuffersResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull GetClientBuffersResponse_class_data_ = + GetClientBuffersResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GetClientBuffersResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GetClientBuffersResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GetClientBuffersResponse_class_data_.tc_table); + return GetClientBuffersResponse_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 47, 2> +GetClientBuffersResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GetClientBuffersResponse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::subspace::GetClientBuffersResponse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // string error = 1; + {::_pbi::TcParser::FastUS1, + {10, 2, 0, + PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.error_)}}, + // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; + {::_pbi::TcParser::FastMtR1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.metadata_)}}, + // repeated int32 fd_indexes = 3; + {::_pbi::TcParser::FastV32P1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.fd_indexes_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string error = 1; + {PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.error_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; + {PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated int32 fd_indexes = 3; + {PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, + }}, + {{ + "\41\5\0\0\0\0\0\0" + "subspace.GetClientBuffersResponse" + "error" + }}, +}; +PROTOBUF_NOINLINE void GetClientBuffersResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:subspace.GetClientBuffersResponse) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.metadata_.Clear(); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _impl_.fd_indexes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL GetClientBuffersResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const GetClientBuffersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL GetClientBuffersResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const GetClientBuffersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.GetClientBuffersResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetClientBuffersResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_metadata_size()); + i < n; i++) { + const auto& repfield = this_._internal_metadata().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + } + + // repeated int32 fd_indexes = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + { + int byte_size = this_._impl_._fd_indexes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 3, this_._internal_fd_indexes(), byte_size, target); + } + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.GetClientBuffersResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t GetClientBuffersResponse::ByteSizeLong(const MessageLite& base) { + const GetClientBuffersResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t GetClientBuffersResponse::ByteSizeLong() const { + const GetClientBuffersResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.GetClientBuffersResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_metadata_size(); + for (const auto& msg : this_._internal_metadata()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // repeated int32 fd_indexes = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + total_size += + ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( + this_._internal_fd_indexes(), 1, + this_._impl_._fd_indexes_cached_byte_size_); + } + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void GetClientBuffersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetClientBuffersResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_metadata()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_metadata()); + } + if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_fd_indexes()->MergeFrom(from._internal_fd_indexes()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -void UnregisterClientBufferRequest::CopyFrom(const UnregisterClientBufferRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.UnregisterClientBufferRequest) +void GetClientBuffersResponse::CopyFrom(const GetClientBuffersResponse& from) { + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetClientBuffersResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void UnregisterClientBufferRequest::InternalSwap(UnregisterClientBufferRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void GetClientBuffersResponse::InternalSwap(GetClientBuffersResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_) - + sizeof(UnregisterClientBufferRequest::_impl_.buffer_index_) - - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_)>( - reinterpret_cast(&_impl_.session_id_), - reinterpret_cast(&other->_impl_.session_id_)); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.metadata_.InternalSwap(&other->_impl_.metadata_); + _impl_.fd_indexes_.InternalSwap(&other->_impl_.fd_indexes_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); } -::google::protobuf::Metadata UnregisterClientBufferRequest::GetMetadata() const { +::google::protobuf::Metadata GetClientBuffersResponse::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== @@ -9467,7 +12016,7 @@ class Request::_Internal { PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_._oneof_case_); }; -void Request::set_allocated_init(::subspace::InitRequest* init) { +void Request::set_allocated_init(::subspace::InitRequest* PROTOBUF_NULLABLE init) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (init) { @@ -9480,7 +12029,7 @@ void Request::set_allocated_init(::subspace::InitRequest* init) { } // @@protoc_insertion_point(field_set_allocated:subspace.Request.init) } -void Request::set_allocated_create_publisher(::subspace::CreatePublisherRequest* create_publisher) { +void Request::set_allocated_create_publisher(::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE create_publisher) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (create_publisher) { @@ -9493,7 +12042,7 @@ void Request::set_allocated_create_publisher(::subspace::CreatePublisherRequest* } // @@protoc_insertion_point(field_set_allocated:subspace.Request.create_publisher) } -void Request::set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* create_subscriber) { +void Request::set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE create_subscriber) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (create_subscriber) { @@ -9506,7 +12055,7 @@ void Request::set_allocated_create_subscriber(::subspace::CreateSubscriberReques } // @@protoc_insertion_point(field_set_allocated:subspace.Request.create_subscriber) } -void Request::set_allocated_get_triggers(::subspace::GetTriggersRequest* get_triggers) { +void Request::set_allocated_get_triggers(::subspace::GetTriggersRequest* PROTOBUF_NULLABLE get_triggers) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (get_triggers) { @@ -9519,7 +12068,7 @@ void Request::set_allocated_get_triggers(::subspace::GetTriggersRequest* get_tri } // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_triggers) } -void Request::set_allocated_remove_publisher(::subspace::RemovePublisherRequest* remove_publisher) { +void Request::set_allocated_remove_publisher(::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE remove_publisher) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (remove_publisher) { @@ -9532,7 +12081,7 @@ void Request::set_allocated_remove_publisher(::subspace::RemovePublisherRequest* } // @@protoc_insertion_point(field_set_allocated:subspace.Request.remove_publisher) } -void Request::set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* remove_subscriber) { +void Request::set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE remove_subscriber) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (remove_subscriber) { @@ -9545,7 +12094,7 @@ void Request::set_allocated_remove_subscriber(::subspace::RemoveSubscriberReques } // @@protoc_insertion_point(field_set_allocated:subspace.Request.remove_subscriber) } -void Request::set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* get_channel_info) { +void Request::set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE get_channel_info) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (get_channel_info) { @@ -9558,7 +12107,7 @@ void Request::set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* } // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_channel_info) } -void Request::set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* get_channel_stats) { +void Request::set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE get_channel_stats) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (get_channel_stats) { @@ -9571,7 +12120,7 @@ void Request::set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest } // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_channel_stats) } -void Request::set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* register_client_buffer) { +void Request::set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE register_client_buffer) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (register_client_buffer) { @@ -9584,7 +12133,7 @@ void Request::set_allocated_register_client_buffer(::subspace::RegisterClientBuf } // @@protoc_insertion_point(field_set_allocated:subspace.Request.register_client_buffer) } -void Request::set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* unregister_client_buffer) { +void Request::set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE unregister_client_buffer) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (unregister_client_buffer) { @@ -9597,27 +12146,41 @@ void Request::set_allocated_unregister_client_buffer(::subspace::UnregisterClien } // @@protoc_insertion_point(field_set_allocated:subspace.Request.unregister_client_buffer) } -Request::Request(::google::protobuf::Arena* arena) +void Request::set_allocated_get_client_buffers(::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE get_client_buffers) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_request(); + if (get_client_buffers) { + ::google::protobuf::Arena* submessage_arena = get_client_buffers->GetArena(); + if (message_arena != submessage_arena) { + get_client_buffers = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_client_buffers, submessage_arena); + } + set_has_get_client_buffers(); + _impl_.request_.get_client_buffers_ = get_client_buffers; + } + // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_client_buffers) +} +Request::Request(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Request_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Request) } -inline PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Request& from_msg) +PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Request& from_msg) : request_{}, _cached_size_{0}, _oneof_case_{from._oneof_case_[0]} {} Request::Request( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Request& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Request_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9630,47 +12193,50 @@ Request::Request( case REQUEST_NOT_SET: break; case kInit: - _impl_.request_.init_ = ::google::protobuf::Message::CopyConstruct<::subspace::InitRequest>(arena, *from._impl_.request_.init_); + _impl_.request_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.init_); break; case kCreatePublisher: - _impl_.request_.create_publisher_ = ::google::protobuf::Message::CopyConstruct<::subspace::CreatePublisherRequest>(arena, *from._impl_.request_.create_publisher_); + _impl_.request_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_publisher_); break; case kCreateSubscriber: - _impl_.request_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct<::subspace::CreateSubscriberRequest>(arena, *from._impl_.request_.create_subscriber_); + _impl_.request_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_subscriber_); break; case kGetTriggers: - _impl_.request_.get_triggers_ = ::google::protobuf::Message::CopyConstruct<::subspace::GetTriggersRequest>(arena, *from._impl_.request_.get_triggers_); + _impl_.request_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_triggers_); break; case kRemovePublisher: - _impl_.request_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct<::subspace::RemovePublisherRequest>(arena, *from._impl_.request_.remove_publisher_); + _impl_.request_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_publisher_); break; case kRemoveSubscriber: - _impl_.request_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct<::subspace::RemoveSubscriberRequest>(arena, *from._impl_.request_.remove_subscriber_); + _impl_.request_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_subscriber_); break; case kGetChannelInfo: - _impl_.request_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelInfoRequest>(arena, *from._impl_.request_.get_channel_info_); + _impl_.request_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_info_); break; case kGetChannelStats: - _impl_.request_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelStatsRequest>(arena, *from._impl_.request_.get_channel_stats_); + _impl_.request_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_stats_); break; case kRegisterClientBuffer: - _impl_.request_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct<::subspace::RegisterClientBufferRequest>(arena, *from._impl_.request_.register_client_buffer_); + _impl_.request_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.register_client_buffer_); break; case kUnregisterClientBuffer: - _impl_.request_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct<::subspace::UnregisterClientBufferRequest>(arena, *from._impl_.request_.unregister_client_buffer_); + _impl_.request_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.unregister_client_buffer_); + break; + case kGetClientBuffers: + _impl_.request_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_client_buffers_); break; } // @@protoc_insertion_point(copy_constructor:subspace.Request) } -inline PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : request_{}, _cached_size_{0}, _oneof_case_{} {} -inline void Request::SharedCtor(::_pb::Arena* arena) { +inline void Request::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } Request::~Request() { @@ -9679,6 +12245,9 @@ Request::~Request() { } inline void Request::SharedDtor(MessageLite& self) { Request& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); if (this_.has_request()) { @@ -9771,6 +12340,14 @@ void Request::clear_request() { } break; } + case kGetClientBuffers: { + if (GetArena() == nullptr) { + delete _impl_.request_.get_client_buffers_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_client_buffers_); + } + break; + } case REQUEST_NOT_SET: { break; } @@ -9779,54 +12356,62 @@ void Request::clear_request() { } -inline void* Request::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Request::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Request(arena); } constexpr auto Request::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Request), alignof(Request)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Request::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Request_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Request::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Request::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Request::ByteSizeLong, - &Request::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Request, _impl_._cached_size_), - false, - }, - &Request::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Request::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Request::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Request_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Request::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Request::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Request::ByteSizeLong, + &Request::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Request, _impl_._cached_size_), + false, + }, + &Request::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Request_class_data_ = + Request::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Request::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Request_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Request_class_data_.tc_table); + return Request_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 10, 10, 0, 2> Request::_table_ = { +const ::_pbi::TcParseTable<0, 11, 11, 0, 2> +Request::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 12, 0, // max_field_number, fast_idx_mask + 13, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294963392, // skipmap + 4294959296, // skipmap offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 10, // num_aux_entries + 11, // num_field_entries + 11, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + Request_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -9838,50 +12423,44 @@ const ::_pbi::TcParseTable<0, 10, 10, 0, 2> Request::_table_ = { 65535, 65535 }}, {{ // .subspace.InitRequest init = 1; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.init_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.init_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.CreatePublisherRequest create_publisher = 2; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.create_publisher_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.create_publisher_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.CreateSubscriberRequest create_subscriber = 3; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.create_subscriber_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.create_subscriber_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.GetTriggersRequest get_triggers = 4; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_triggers_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_triggers_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.RemovePublisherRequest remove_publisher = 5; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.RemoveSubscriberRequest remove_subscriber = 6; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.GetChannelInfoRequest get_channel_info = 9; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_channel_info_), _Internal::kOneofCaseOffset + 0, 6, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_channel_info_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.GetChannelStatsRequest get_channel_stats = 10; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_channel_stats_), _Internal::kOneofCaseOffset + 0, 7, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_channel_stats_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.RegisterClientBufferRequest register_client_buffer = 11; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 8, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.unregister_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::InitRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::CreatePublisherRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::CreateSubscriberRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::GetTriggersRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RemovePublisherRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelInfoRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelStatsRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::UnregisterClientBufferRequest>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.unregister_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.GetClientBuffersRequest get_client_buffers = 13; + {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_client_buffers_), _Internal::kOneofCaseOffset + 0, 10, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::InitRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::CreatePublisherRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::CreateSubscriberRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::GetTriggersRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::RemovePublisherRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::GetChannelInfoRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::GetChannelStatsRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::UnregisterClientBufferRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::GetClientBuffersRequest>()}, + }}, + {{ }}, }; - PROTOBUF_NOINLINE void Request::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.Request) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9894,186 +12473,207 @@ PROTOBUF_NOINLINE void Request::Clear() { } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Request::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Request& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Request::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Request& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Request) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (this_.request_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.request_.init_, this_._impl_.request_.init_->GetCachedSize(), target, - stream); - break; - } - case kCreatePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.request_.create_publisher_, this_._impl_.request_.create_publisher_->GetCachedSize(), target, - stream); - break; - } - case kCreateSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.request_.create_subscriber_, this_._impl_.request_.create_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetTriggers: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.request_.get_triggers_, this_._impl_.request_.get_triggers_->GetCachedSize(), target, - stream); - break; - } - case kRemovePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.request_.remove_publisher_, this_._impl_.request_.remove_publisher_->GetCachedSize(), target, - stream); - break; - } - case kRemoveSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.request_.remove_subscriber_, this_._impl_.request_.remove_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelInfo: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *this_._impl_.request_.get_channel_info_, this_._impl_.request_.get_channel_info_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelStats: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, *this_._impl_.request_.get_channel_stats_, this_._impl_.request_.get_channel_stats_->GetCachedSize(), target, - stream); - break; - } - case kRegisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, *this_._impl_.request_.register_client_buffer_, this_._impl_.request_.register_client_buffer_->GetCachedSize(), target, - stream); - break; - } - case kUnregisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *this_._impl_.request_.unregister_client_buffer_, this_._impl_.request_.unregister_client_buffer_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Request) - return target; - } +::uint8_t* PROTOBUF_NONNULL Request::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Request& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Request::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Request& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Request) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + switch (this_.request_case()) { + case kInit: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.request_.init_, this_._impl_.request_.init_->GetCachedSize(), target, + stream); + break; + } + case kCreatePublisher: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.request_.create_publisher_, this_._impl_.request_.create_publisher_->GetCachedSize(), target, + stream); + break; + } + case kCreateSubscriber: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.request_.create_subscriber_, this_._impl_.request_.create_subscriber_->GetCachedSize(), target, + stream); + break; + } + case kGetTriggers: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.request_.get_triggers_, this_._impl_.request_.get_triggers_->GetCachedSize(), target, + stream); + break; + } + case kRemovePublisher: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.request_.remove_publisher_, this_._impl_.request_.remove_publisher_->GetCachedSize(), target, + stream); + break; + } + case kRemoveSubscriber: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.request_.remove_subscriber_, this_._impl_.request_.remove_subscriber_->GetCachedSize(), target, + stream); + break; + } + case kGetChannelInfo: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, *this_._impl_.request_.get_channel_info_, this_._impl_.request_.get_channel_info_->GetCachedSize(), target, + stream); + break; + } + case kGetChannelStats: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.request_.get_channel_stats_, this_._impl_.request_.get_channel_stats_->GetCachedSize(), target, + stream); + break; + } + case kRegisterClientBuffer: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.request_.register_client_buffer_, this_._impl_.request_.register_client_buffer_->GetCachedSize(), target, + stream); + break; + } + case kUnregisterClientBuffer: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.request_.unregister_client_buffer_, this_._impl_.request_.unregister_client_buffer_->GetCachedSize(), target, + stream); + break; + } + case kGetClientBuffers: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 13, *this_._impl_.request_.get_client_buffers_, this_._impl_.request_.get_client_buffers_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.Request) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Request::ByteSizeLong(const MessageLite& base) { - const Request& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t Request::ByteSizeLong() const { - const Request& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Request) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - switch (this_.request_case()) { - // .subspace.InitRequest init = 1; - case kInit: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.init_); - break; - } - // .subspace.CreatePublisherRequest create_publisher = 2; - case kCreatePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.create_publisher_); - break; - } - // .subspace.CreateSubscriberRequest create_subscriber = 3; - case kCreateSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.create_subscriber_); - break; - } - // .subspace.GetTriggersRequest get_triggers = 4; - case kGetTriggers: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_triggers_); - break; - } - // .subspace.RemovePublisherRequest remove_publisher = 5; - case kRemovePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.remove_publisher_); - break; - } - // .subspace.RemoveSubscriberRequest remove_subscriber = 6; - case kRemoveSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.remove_subscriber_); - break; - } - // .subspace.GetChannelInfoRequest get_channel_info = 9; - case kGetChannelInfo: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_channel_info_); - break; - } - // .subspace.GetChannelStatsRequest get_channel_stats = 10; - case kGetChannelStats: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_channel_stats_); - break; - } - // .subspace.RegisterClientBufferRequest register_client_buffer = 11; - case kRegisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.register_client_buffer_); - break; - } - // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; - case kUnregisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.unregister_client_buffer_); - break; - } - case REQUEST_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t Request::ByteSizeLong(const MessageLite& base) { + const Request& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Request::ByteSizeLong() const { + const Request& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.Request) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + switch (this_.request_case()) { + // .subspace.InitRequest init = 1; + case kInit: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.init_); + break; + } + // .subspace.CreatePublisherRequest create_publisher = 2; + case kCreatePublisher: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.create_publisher_); + break; + } + // .subspace.CreateSubscriberRequest create_subscriber = 3; + case kCreateSubscriber: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.create_subscriber_); + break; + } + // .subspace.GetTriggersRequest get_triggers = 4; + case kGetTriggers: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_triggers_); + break; + } + // .subspace.RemovePublisherRequest remove_publisher = 5; + case kRemovePublisher: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.remove_publisher_); + break; + } + // .subspace.RemoveSubscriberRequest remove_subscriber = 6; + case kRemoveSubscriber: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.remove_subscriber_); + break; + } + // .subspace.GetChannelInfoRequest get_channel_info = 9; + case kGetChannelInfo: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_channel_info_); + break; + } + // .subspace.GetChannelStatsRequest get_channel_stats = 10; + case kGetChannelStats: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_channel_stats_); + break; + } + // .subspace.RegisterClientBufferRequest register_client_buffer = 11; + case kRegisterClientBuffer: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.register_client_buffer_); + break; + } + // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; + case kUnregisterClientBuffer: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.unregister_client_buffer_); + break; + } + // .subspace.GetClientBuffersRequest get_client_buffers = 13; + case kGetClientBuffers: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_client_buffers_); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void Request::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void Request::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Request) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { @@ -10086,91 +12686,89 @@ void Request::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: switch (oneof_from_case) { case kInit: { if (oneof_needs_init) { - _this->_impl_.request_.init_ = - ::google::protobuf::Message::CopyConstruct<::subspace::InitRequest>(arena, *from._impl_.request_.init_); + _this->_impl_.request_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.init_); } else { - _this->_impl_.request_.init_->MergeFrom(from._internal_init()); + _this->_impl_.request_.init_->MergeFrom(*from._impl_.request_.init_); } break; } case kCreatePublisher: { if (oneof_needs_init) { - _this->_impl_.request_.create_publisher_ = - ::google::protobuf::Message::CopyConstruct<::subspace::CreatePublisherRequest>(arena, *from._impl_.request_.create_publisher_); + _this->_impl_.request_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_publisher_); } else { - _this->_impl_.request_.create_publisher_->MergeFrom(from._internal_create_publisher()); + _this->_impl_.request_.create_publisher_->MergeFrom(*from._impl_.request_.create_publisher_); } break; } case kCreateSubscriber: { if (oneof_needs_init) { - _this->_impl_.request_.create_subscriber_ = - ::google::protobuf::Message::CopyConstruct<::subspace::CreateSubscriberRequest>(arena, *from._impl_.request_.create_subscriber_); + _this->_impl_.request_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_subscriber_); } else { - _this->_impl_.request_.create_subscriber_->MergeFrom(from._internal_create_subscriber()); + _this->_impl_.request_.create_subscriber_->MergeFrom(*from._impl_.request_.create_subscriber_); } break; } case kGetTriggers: { if (oneof_needs_init) { - _this->_impl_.request_.get_triggers_ = - ::google::protobuf::Message::CopyConstruct<::subspace::GetTriggersRequest>(arena, *from._impl_.request_.get_triggers_); + _this->_impl_.request_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_triggers_); } else { - _this->_impl_.request_.get_triggers_->MergeFrom(from._internal_get_triggers()); + _this->_impl_.request_.get_triggers_->MergeFrom(*from._impl_.request_.get_triggers_); } break; } case kRemovePublisher: { if (oneof_needs_init) { - _this->_impl_.request_.remove_publisher_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RemovePublisherRequest>(arena, *from._impl_.request_.remove_publisher_); + _this->_impl_.request_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_publisher_); } else { - _this->_impl_.request_.remove_publisher_->MergeFrom(from._internal_remove_publisher()); + _this->_impl_.request_.remove_publisher_->MergeFrom(*from._impl_.request_.remove_publisher_); } break; } case kRemoveSubscriber: { if (oneof_needs_init) { - _this->_impl_.request_.remove_subscriber_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RemoveSubscriberRequest>(arena, *from._impl_.request_.remove_subscriber_); + _this->_impl_.request_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_subscriber_); } else { - _this->_impl_.request_.remove_subscriber_->MergeFrom(from._internal_remove_subscriber()); + _this->_impl_.request_.remove_subscriber_->MergeFrom(*from._impl_.request_.remove_subscriber_); } break; } case kGetChannelInfo: { if (oneof_needs_init) { - _this->_impl_.request_.get_channel_info_ = - ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelInfoRequest>(arena, *from._impl_.request_.get_channel_info_); + _this->_impl_.request_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_info_); } else { - _this->_impl_.request_.get_channel_info_->MergeFrom(from._internal_get_channel_info()); + _this->_impl_.request_.get_channel_info_->MergeFrom(*from._impl_.request_.get_channel_info_); } break; } case kGetChannelStats: { if (oneof_needs_init) { - _this->_impl_.request_.get_channel_stats_ = - ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelStatsRequest>(arena, *from._impl_.request_.get_channel_stats_); + _this->_impl_.request_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_stats_); } else { - _this->_impl_.request_.get_channel_stats_->MergeFrom(from._internal_get_channel_stats()); + _this->_impl_.request_.get_channel_stats_->MergeFrom(*from._impl_.request_.get_channel_stats_); } break; } case kRegisterClientBuffer: { if (oneof_needs_init) { - _this->_impl_.request_.register_client_buffer_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RegisterClientBufferRequest>(arena, *from._impl_.request_.register_client_buffer_); + _this->_impl_.request_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.register_client_buffer_); } else { - _this->_impl_.request_.register_client_buffer_->MergeFrom(from._internal_register_client_buffer()); + _this->_impl_.request_.register_client_buffer_->MergeFrom(*from._impl_.request_.register_client_buffer_); } break; } case kUnregisterClientBuffer: { if (oneof_needs_init) { - _this->_impl_.request_.unregister_client_buffer_ = - ::google::protobuf::Message::CopyConstruct<::subspace::UnregisterClientBufferRequest>(arena, *from._impl_.request_.unregister_client_buffer_); + _this->_impl_.request_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.unregister_client_buffer_); + } else { + _this->_impl_.request_.unregister_client_buffer_->MergeFrom(*from._impl_.request_.unregister_client_buffer_); + } + break; + } + case kGetClientBuffers: { + if (oneof_needs_init) { + _this->_impl_.request_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_client_buffers_); } else { - _this->_impl_.request_.unregister_client_buffer_->MergeFrom(from._internal_unregister_client_buffer()); + _this->_impl_.request_.get_client_buffers_->MergeFrom(*from._impl_.request_.get_client_buffers_); } break; } @@ -10178,19 +12776,20 @@ void Request::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Request::CopyFrom(const Request& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Request) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Request) if (&from == this) return; Clear(); MergeFrom(from); } -void Request::InternalSwap(Request* PROTOBUF_RESTRICT other) { - using std::swap; +void Request::InternalSwap(Request* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.request_, other->_impl_.request_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); @@ -10207,7 +12806,7 @@ class Response::_Internal { PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_._oneof_case_); }; -void Response::set_allocated_init(::subspace::InitResponse* init) { +void Response::set_allocated_init(::subspace::InitResponse* PROTOBUF_NULLABLE init) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (init) { @@ -10220,7 +12819,7 @@ void Response::set_allocated_init(::subspace::InitResponse* init) { } // @@protoc_insertion_point(field_set_allocated:subspace.Response.init) } -void Response::set_allocated_create_publisher(::subspace::CreatePublisherResponse* create_publisher) { +void Response::set_allocated_create_publisher(::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE create_publisher) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (create_publisher) { @@ -10233,7 +12832,7 @@ void Response::set_allocated_create_publisher(::subspace::CreatePublisherRespons } // @@protoc_insertion_point(field_set_allocated:subspace.Response.create_publisher) } -void Response::set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* create_subscriber) { +void Response::set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE create_subscriber) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (create_subscriber) { @@ -10246,7 +12845,7 @@ void Response::set_allocated_create_subscriber(::subspace::CreateSubscriberRespo } // @@protoc_insertion_point(field_set_allocated:subspace.Response.create_subscriber) } -void Response::set_allocated_get_triggers(::subspace::GetTriggersResponse* get_triggers) { +void Response::set_allocated_get_triggers(::subspace::GetTriggersResponse* PROTOBUF_NULLABLE get_triggers) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (get_triggers) { @@ -10259,7 +12858,7 @@ void Response::set_allocated_get_triggers(::subspace::GetTriggersResponse* get_t } // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_triggers) } -void Response::set_allocated_remove_publisher(::subspace::RemovePublisherResponse* remove_publisher) { +void Response::set_allocated_remove_publisher(::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE remove_publisher) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (remove_publisher) { @@ -10272,7 +12871,7 @@ void Response::set_allocated_remove_publisher(::subspace::RemovePublisherRespons } // @@protoc_insertion_point(field_set_allocated:subspace.Response.remove_publisher) } -void Response::set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* remove_subscriber) { +void Response::set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE remove_subscriber) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (remove_subscriber) { @@ -10285,7 +12884,7 @@ void Response::set_allocated_remove_subscriber(::subspace::RemoveSubscriberRespo } // @@protoc_insertion_point(field_set_allocated:subspace.Response.remove_subscriber) } -void Response::set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* get_channel_info) { +void Response::set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE get_channel_info) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (get_channel_info) { @@ -10298,7 +12897,7 @@ void Response::set_allocated_get_channel_info(::subspace::GetChannelInfoResponse } // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_channel_info) } -void Response::set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* get_channel_stats) { +void Response::set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE get_channel_stats) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (get_channel_stats) { @@ -10311,27 +12910,54 @@ void Response::set_allocated_get_channel_stats(::subspace::GetChannelStatsRespon } // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_channel_stats) } -Response::Response(::google::protobuf::Arena* arena) +void Response::set_allocated_get_client_buffers(::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE get_client_buffers) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_response(); + if (get_client_buffers) { + ::google::protobuf::Arena* submessage_arena = get_client_buffers->GetArena(); + if (message_arena != submessage_arena) { + get_client_buffers = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_client_buffers, submessage_arena); + } + set_has_get_client_buffers(); + _impl_.response_.get_client_buffers_ = get_client_buffers; + } + // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_client_buffers) +} +void Response::set_allocated_register_client_buffer(::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE register_client_buffer) { + ::google::protobuf::Arena* message_arena = GetArena(); + clear_response(); + if (register_client_buffer) { + ::google::protobuf::Arena* submessage_arena = register_client_buffer->GetArena(); + if (message_arena != submessage_arena) { + register_client_buffer = ::google::protobuf::internal::GetOwnedMessage(message_arena, register_client_buffer, submessage_arena); + } + set_has_register_client_buffer(); + _impl_.response_.register_client_buffer_ = register_client_buffer; + } + // @@protoc_insertion_point(field_set_allocated:subspace.Response.register_client_buffer) +} +Response::Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Response_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Response) } -inline PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Response& from_msg) +PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Response& from_msg) : response_{}, _cached_size_{0}, _oneof_case_{from._oneof_case_[0]} {} Response::Response( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Response& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Response_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -10344,41 +12970,47 @@ Response::Response( case RESPONSE_NOT_SET: break; case kInit: - _impl_.response_.init_ = ::google::protobuf::Message::CopyConstruct<::subspace::InitResponse>(arena, *from._impl_.response_.init_); + _impl_.response_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.init_); break; case kCreatePublisher: - _impl_.response_.create_publisher_ = ::google::protobuf::Message::CopyConstruct<::subspace::CreatePublisherResponse>(arena, *from._impl_.response_.create_publisher_); + _impl_.response_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_publisher_); break; case kCreateSubscriber: - _impl_.response_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct<::subspace::CreateSubscriberResponse>(arena, *from._impl_.response_.create_subscriber_); + _impl_.response_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_subscriber_); break; case kGetTriggers: - _impl_.response_.get_triggers_ = ::google::protobuf::Message::CopyConstruct<::subspace::GetTriggersResponse>(arena, *from._impl_.response_.get_triggers_); + _impl_.response_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_triggers_); break; case kRemovePublisher: - _impl_.response_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct<::subspace::RemovePublisherResponse>(arena, *from._impl_.response_.remove_publisher_); + _impl_.response_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_publisher_); break; case kRemoveSubscriber: - _impl_.response_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct<::subspace::RemoveSubscriberResponse>(arena, *from._impl_.response_.remove_subscriber_); + _impl_.response_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_subscriber_); break; case kGetChannelInfo: - _impl_.response_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelInfoResponse>(arena, *from._impl_.response_.get_channel_info_); + _impl_.response_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_info_); break; case kGetChannelStats: - _impl_.response_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelStatsResponse>(arena, *from._impl_.response_.get_channel_stats_); + _impl_.response_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_stats_); + break; + case kGetClientBuffers: + _impl_.response_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_client_buffers_); + break; + case kRegisterClientBuffer: + _impl_.response_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.register_client_buffer_); break; } // @@protoc_insertion_point(copy_constructor:subspace.Response) } -inline PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : response_{}, _cached_size_{0}, _oneof_case_{} {} -inline void Response::SharedCtor(::_pb::Arena* arena) { +inline void Response::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } Response::~Response() { @@ -10387,6 +13019,9 @@ Response::~Response() { } inline void Response::SharedDtor(MessageLite& self) { Response& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); if (this_.has_response()) { @@ -10463,6 +13098,22 @@ void Response::clear_response() { } break; } + case kGetClientBuffers: { + if (GetArena() == nullptr) { + delete _impl_.response_.get_client_buffers_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_client_buffers_); + } + break; + } + case kRegisterClientBuffer: { + if (GetArena() == nullptr) { + delete _impl_.response_.register_client_buffer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.register_client_buffer_); + } + break; + } case RESPONSE_NOT_SET: { break; } @@ -10471,54 +13122,62 @@ void Response::clear_response() { } -inline void* Response::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Response::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Response(arena); } constexpr auto Response::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Response), alignof(Response)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Response::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Response_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Response::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Response::ByteSizeLong, - &Response::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), - false, - }, - &Response::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Response::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Response::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Response_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Response::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Response::ByteSizeLong, + &Response::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), + false, + }, + &Response::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Response_class_data_ = + Response::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Response::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Response_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Response_class_data_.tc_table); + return Response_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 8, 8, 0, 2> Response::_table_ = { +const ::_pbi::TcParseTable<0, 10, 10, 0, 2> +Response::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ - 10, 0, // max_field_number, fast_idx_mask + 12, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294966464, // skipmap + 4294963392, // skipmap offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 8, // num_aux_entries + 10, // num_field_entries + 10, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + Response_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -10530,210 +13189,242 @@ const ::_pbi::TcParseTable<0, 8, 8, 0, 2> Response::_table_ = { 65535, 65535 }}, {{ // .subspace.InitResponse init = 1; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.init_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.init_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.CreatePublisherResponse create_publisher = 2; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.create_publisher_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.CreateSubscriberResponse create_subscriber = 3; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.create_subscriber_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.GetTriggersResponse get_triggers = 4; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_triggers_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.RemovePublisherResponse remove_publisher = 5; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.RemoveSubscriberResponse remove_subscriber = 6; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.GetChannelInfoResponse get_channel_info = 9; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_channel_info_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.GetChannelStatsResponse get_channel_stats = 10; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_channel_stats_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.GetClientBuffersResponse get_client_buffers = 11; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_client_buffers_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.RegisterClientBufferResponse register_client_buffer = 12; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::InitResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::CreatePublisherResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::CreateSubscriberResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::GetTriggersResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::RemovePublisherResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::GetChannelInfoResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::GetChannelStatsResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::GetClientBuffersResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferResponse>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void Response::Clear() { +// @@protoc_insertion_point(message_clear_start:subspace.Response) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_response(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Response& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Response& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Response) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + switch (this_.response_case()) { + case kInit: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.response_.init_, this_._impl_.response_.init_->GetCachedSize(), target, + stream); + break; + } + case kCreatePublisher: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.response_.create_publisher_, this_._impl_.response_.create_publisher_->GetCachedSize(), target, + stream); + break; + } + case kCreateSubscriber: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.response_.create_subscriber_, this_._impl_.response_.create_subscriber_->GetCachedSize(), target, + stream); + break; + } + case kGetTriggers: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.response_.get_triggers_, this_._impl_.response_.get_triggers_->GetCachedSize(), target, + stream); + break; + } + case kRemovePublisher: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.response_.remove_publisher_, this_._impl_.response_.remove_publisher_->GetCachedSize(), target, + stream); + break; + } + case kRemoveSubscriber: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.response_.remove_subscriber_, this_._impl_.response_.remove_subscriber_->GetCachedSize(), target, + stream); + break; + } + case kGetChannelInfo: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, *this_._impl_.response_.get_channel_info_, this_._impl_.response_.get_channel_info_->GetCachedSize(), target, + stream); + break; + } + case kGetChannelStats: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.response_.get_channel_stats_, this_._impl_.response_.get_channel_stats_->GetCachedSize(), target, + stream); + break; + } + case kGetClientBuffers: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.response_.get_client_buffers_, this_._impl_.response_.get_client_buffers_->GetCachedSize(), target, + stream); + break; + } + case kRegisterClientBuffer: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.response_.register_client_buffer_, this_._impl_.response_.register_client_buffer_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.Response) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Response::ByteSizeLong(const MessageLite& base) { + const Response& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Response::ByteSizeLong() const { + const Response& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.Response) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + switch (this_.response_case()) { + // .subspace.InitResponse init = 1; + case kInit: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.init_); + break; + } // .subspace.CreatePublisherResponse create_publisher = 2; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.create_publisher_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + case kCreatePublisher: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.create_publisher_); + break; + } // .subspace.CreateSubscriberResponse create_subscriber = 3; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.create_subscriber_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + case kCreateSubscriber: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.create_subscriber_); + break; + } // .subspace.GetTriggersResponse get_triggers = 4; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_triggers_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + case kGetTriggers: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_triggers_); + break; + } // .subspace.RemovePublisherResponse remove_publisher = 5; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + case kRemovePublisher: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.remove_publisher_); + break; + } // .subspace.RemoveSubscriberResponse remove_subscriber = 6; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + case kRemoveSubscriber: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.remove_subscriber_); + break; + } // .subspace.GetChannelInfoResponse get_channel_info = 9; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_channel_info_), _Internal::kOneofCaseOffset + 0, 6, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + case kGetChannelInfo: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_channel_info_); + break; + } // .subspace.GetChannelStatsResponse get_channel_stats = 10; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_channel_stats_), _Internal::kOneofCaseOffset + 0, 7, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::InitResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::CreatePublisherResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::CreateSubscriberResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::GetTriggersResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::RemovePublisherResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelInfoResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelStatsResponse>()}, - }}, {{ - }}, -}; - -PROTOBUF_NOINLINE void Response::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Response) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_response(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + case kGetChannelStats: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_channel_stats_); + break; + } + // .subspace.GetClientBuffersResponse get_client_buffers = 11; + case kGetClientBuffers: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_client_buffers_); + break; + } + // .subspace.RegisterClientBufferResponse register_client_buffer = 12; + case kRegisterClientBuffer: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.register_client_buffer_); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Response::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Response& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Response::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Response& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Response) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (this_.response_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.response_.init_, this_._impl_.response_.init_->GetCachedSize(), target, - stream); - break; - } - case kCreatePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.response_.create_publisher_, this_._impl_.response_.create_publisher_->GetCachedSize(), target, - stream); - break; - } - case kCreateSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.response_.create_subscriber_, this_._impl_.response_.create_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetTriggers: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.response_.get_triggers_, this_._impl_.response_.get_triggers_->GetCachedSize(), target, - stream); - break; - } - case kRemovePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.response_.remove_publisher_, this_._impl_.response_.remove_publisher_->GetCachedSize(), target, - stream); - break; - } - case kRemoveSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.response_.remove_subscriber_, this_._impl_.response_.remove_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelInfo: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *this_._impl_.response_.get_channel_info_, this_._impl_.response_.get_channel_info_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelStats: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, *this_._impl_.response_.get_channel_stats_, this_._impl_.response_.get_channel_stats_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Response) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Response::ByteSizeLong(const MessageLite& base) { - const Response& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t Response::ByteSizeLong() const { - const Response& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Response) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - switch (this_.response_case()) { - // .subspace.InitResponse init = 1; - case kInit: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.init_); - break; - } - // .subspace.CreatePublisherResponse create_publisher = 2; - case kCreatePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.create_publisher_); - break; - } - // .subspace.CreateSubscriberResponse create_subscriber = 3; - case kCreateSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.create_subscriber_); - break; - } - // .subspace.GetTriggersResponse get_triggers = 4; - case kGetTriggers: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_triggers_); - break; - } - // .subspace.RemovePublisherResponse remove_publisher = 5; - case kRemovePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.remove_publisher_); - break; - } - // .subspace.RemoveSubscriberResponse remove_subscriber = 6; - case kRemoveSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.remove_subscriber_); - break; - } - // .subspace.GetChannelInfoResponse get_channel_info = 9; - case kGetChannelInfo: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_channel_info_); - break; - } - // .subspace.GetChannelStatsResponse get_channel_stats = 10; - case kGetChannelStats: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_channel_stats_); - break; - } - case RESPONSE_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Response) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { @@ -10746,73 +13437,81 @@ void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google switch (oneof_from_case) { case kInit: { if (oneof_needs_init) { - _this->_impl_.response_.init_ = - ::google::protobuf::Message::CopyConstruct<::subspace::InitResponse>(arena, *from._impl_.response_.init_); + _this->_impl_.response_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.init_); } else { - _this->_impl_.response_.init_->MergeFrom(from._internal_init()); + _this->_impl_.response_.init_->MergeFrom(*from._impl_.response_.init_); } break; } case kCreatePublisher: { if (oneof_needs_init) { - _this->_impl_.response_.create_publisher_ = - ::google::protobuf::Message::CopyConstruct<::subspace::CreatePublisherResponse>(arena, *from._impl_.response_.create_publisher_); + _this->_impl_.response_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_publisher_); } else { - _this->_impl_.response_.create_publisher_->MergeFrom(from._internal_create_publisher()); + _this->_impl_.response_.create_publisher_->MergeFrom(*from._impl_.response_.create_publisher_); } break; } case kCreateSubscriber: { if (oneof_needs_init) { - _this->_impl_.response_.create_subscriber_ = - ::google::protobuf::Message::CopyConstruct<::subspace::CreateSubscriberResponse>(arena, *from._impl_.response_.create_subscriber_); + _this->_impl_.response_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_subscriber_); } else { - _this->_impl_.response_.create_subscriber_->MergeFrom(from._internal_create_subscriber()); + _this->_impl_.response_.create_subscriber_->MergeFrom(*from._impl_.response_.create_subscriber_); } break; } case kGetTriggers: { if (oneof_needs_init) { - _this->_impl_.response_.get_triggers_ = - ::google::protobuf::Message::CopyConstruct<::subspace::GetTriggersResponse>(arena, *from._impl_.response_.get_triggers_); + _this->_impl_.response_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_triggers_); } else { - _this->_impl_.response_.get_triggers_->MergeFrom(from._internal_get_triggers()); + _this->_impl_.response_.get_triggers_->MergeFrom(*from._impl_.response_.get_triggers_); } break; } case kRemovePublisher: { if (oneof_needs_init) { - _this->_impl_.response_.remove_publisher_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RemovePublisherResponse>(arena, *from._impl_.response_.remove_publisher_); + _this->_impl_.response_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_publisher_); } else { - _this->_impl_.response_.remove_publisher_->MergeFrom(from._internal_remove_publisher()); + _this->_impl_.response_.remove_publisher_->MergeFrom(*from._impl_.response_.remove_publisher_); } break; } case kRemoveSubscriber: { if (oneof_needs_init) { - _this->_impl_.response_.remove_subscriber_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RemoveSubscriberResponse>(arena, *from._impl_.response_.remove_subscriber_); + _this->_impl_.response_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_subscriber_); } else { - _this->_impl_.response_.remove_subscriber_->MergeFrom(from._internal_remove_subscriber()); + _this->_impl_.response_.remove_subscriber_->MergeFrom(*from._impl_.response_.remove_subscriber_); } break; } case kGetChannelInfo: { if (oneof_needs_init) { - _this->_impl_.response_.get_channel_info_ = - ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelInfoResponse>(arena, *from._impl_.response_.get_channel_info_); + _this->_impl_.response_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_info_); } else { - _this->_impl_.response_.get_channel_info_->MergeFrom(from._internal_get_channel_info()); + _this->_impl_.response_.get_channel_info_->MergeFrom(*from._impl_.response_.get_channel_info_); } break; } case kGetChannelStats: { if (oneof_needs_init) { - _this->_impl_.response_.get_channel_stats_ = - ::google::protobuf::Message::CopyConstruct<::subspace::GetChannelStatsResponse>(arena, *from._impl_.response_.get_channel_stats_); + _this->_impl_.response_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_stats_); + } else { + _this->_impl_.response_.get_channel_stats_->MergeFrom(*from._impl_.response_.get_channel_stats_); + } + break; + } + case kGetClientBuffers: { + if (oneof_needs_init) { + _this->_impl_.response_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_client_buffers_); + } else { + _this->_impl_.response_.get_client_buffers_->MergeFrom(*from._impl_.response_.get_client_buffers_); + } + break; + } + case kRegisterClientBuffer: { + if (oneof_needs_init) { + _this->_impl_.response_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.register_client_buffer_); } else { - _this->_impl_.response_.get_channel_stats_->MergeFrom(from._internal_get_channel_stats()); + _this->_impl_.response_.register_client_buffer_->MergeFrom(*from._impl_.response_.register_client_buffer_); } break; } @@ -10820,19 +13519,20 @@ void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Response::CopyFrom(const Response& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Response) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Response) if (&from == this) return; Clear(); MergeFrom(from); } -void Response::InternalSwap(Response* PROTOBUF_RESTRICT other) { - using std::swap; +void Response::InternalSwap(Response* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.response_, other->_impl_.response_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); @@ -10845,30 +13545,36 @@ ::google::protobuf::Metadata Response::GetMetadata() const { class ChannelInfoProto::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_._has_bits_); }; -ChannelInfoProto::ChannelInfoProto(::google::protobuf::Arena* arena) +ChannelInfoProto::ChannelInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelInfoProto_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ChannelInfoProto) } -inline PROTOBUF_NDEBUG_INLINE ChannelInfoProto::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ChannelInfoProto& from_msg) - : name_(arena, from.name_), +PROTOBUF_NDEBUG_INLINE ChannelInfoProto::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ChannelInfoProto& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_), type_(arena, from.type_), - mux_(arena, from.mux_), - _cached_size_{0} {} + mux_(arena, from.mux_) {} ChannelInfoProto::ChannelInfoProto( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelInfoProto& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelInfoProto_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -10877,9 +13583,9 @@ ChannelInfoProto::ChannelInfoProto( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, slot_size_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, slot_size_), offsetof(Impl_, num_tunnel_subs_) - offsetof(Impl_, slot_size_) + @@ -10887,17 +13593,17 @@ ChannelInfoProto::ChannelInfoProto( // @@protoc_insertion_point(copy_constructor:subspace.ChannelInfoProto) } -inline PROTOBUF_NDEBUG_INLINE ChannelInfoProto::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), +PROTOBUF_NDEBUG_INLINE ChannelInfoProto::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + name_(arena), type_(arena), - mux_(arena), - _cached_size_{0} {} + mux_(arena) {} -inline void ChannelInfoProto::SharedCtor(::_pb::Arena* arena) { +inline void ChannelInfoProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, slot_size_), 0, offsetof(Impl_, num_tunnel_subs_) - @@ -10910,6 +13616,9 @@ ChannelInfoProto::~ChannelInfoProto() { } inline void ChannelInfoProto::SharedDtor(MessageLite& self) { ChannelInfoProto& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -10918,45 +13627,53 @@ inline void ChannelInfoProto::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* ChannelInfoProto::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ChannelInfoProto::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ChannelInfoProto(arena); } constexpr auto ChannelInfoProto::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ChannelInfoProto), alignof(ChannelInfoProto)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ChannelInfoProto::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ChannelInfoProto_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelInfoProto::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelInfoProto::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelInfoProto::ByteSizeLong, - &ChannelInfoProto::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_._cached_size_), - false, - }, - &ChannelInfoProto::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ChannelInfoProto::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ChannelInfoProto::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ChannelInfoProto_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ChannelInfoProto::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ChannelInfoProto::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ChannelInfoProto::ByteSizeLong, + &ChannelInfoProto::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_._cached_size_), + false, + }, + &ChannelInfoProto::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ChannelInfoProto_class_data_ = + ChannelInfoProto::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ChannelInfoProto::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ChannelInfoProto_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ChannelInfoProto_class_data_.tc_table); + return ChannelInfoProto_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 14, 0, 49, 2> ChannelInfoProto::_table_ = { +const ::_pbi::TcParseTable<4, 14, 0, 49, 2> +ChannelInfoProto::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_._has_bits_), 0, // no _extensions_ 14, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -10965,7 +13682,7 @@ const ::_pbi::TcParseTable<4, 14, 0, 49, 2> ChannelInfoProto::_table_ = { 14, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ChannelInfoProto_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -10975,92 +13692,92 @@ const ::_pbi::TcParseTable<4, 14, 0, 49, 2> ChannelInfoProto::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.name_)}}, // int32 slot_size = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.slot_size_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.slot_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.slot_size_), 3>(), + {16, 3, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.slot_size_)}}, // int32 num_slots = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_slots_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_slots_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_slots_), 4>(), + {24, 4, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_slots_)}}, // bytes type = 4; {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.type_)}}, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.type_)}}, // int32 num_pubs = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_pubs_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_pubs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_pubs_), 5>(), + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_pubs_)}}, // int32 num_subs = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_subs_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_subs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_subs_), 6>(), + {48, 6, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_subs_)}}, // int32 num_bridge_pubs = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_bridge_pubs_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_pubs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_bridge_pubs_), 7>(), + {56, 7, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_pubs_)}}, // int32 num_bridge_subs = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_bridge_subs_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_subs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_bridge_subs_), 8>(), + {64, 8, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_subs_)}}, // bool is_reliable = 9; - {::_pbi::TcParser::SingularVarintNoZag1(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {72, 9, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_reliable_)}}, // bool is_virtual = 10; - {::_pbi::TcParser::SingularVarintNoZag1(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_virtual_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {80, 10, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_virtual_)}}, // int32 vchan_id = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.vchan_id_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.vchan_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.vchan_id_), 11>(), + {88, 11, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.vchan_id_)}}, // string mux = 12; {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.mux_)}}, + {98, 2, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.mux_)}}, // int32 num_tunnel_pubs = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_tunnel_pubs_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_pubs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_tunnel_pubs_), 12>(), + {104, 12, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_pubs_)}}, // int32 num_tunnel_subs = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_tunnel_subs_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_subs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_tunnel_subs_), 13>(), + {112, 13, 0, + PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_subs_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 slot_size = 2; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.slot_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.slot_size_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_slots = 3; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_slots_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_slots_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bytes type = 4; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // int32 num_pubs = 5; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_pubs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_pubs_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_subs = 6; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_subs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_subs_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_bridge_pubs = 7; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_pubs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_pubs_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_bridge_subs = 8; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_subs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_subs_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool is_reliable = 9; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_reliable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_reliable_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_virtual = 10; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_virtual_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_virtual_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // int32 vchan_id = 11; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.vchan_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.vchan_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // string mux = 12; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.mux_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 num_tunnel_pubs = 13; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_pubs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_pubs_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_tunnel_subs = 14; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_subs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_subs_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ @@ -11070,7 +13787,6 @@ const ::_pbi::TcParseTable<4, 14, 0, 49, 2> ChannelInfoProto::_table_ = { "mux" }}, }; - PROTOBUF_NOINLINE void ChannelInfoProto::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ChannelInfoProto) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -11078,293 +13794,426 @@ PROTOBUF_NOINLINE void ChannelInfoProto::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.mux_.ClearToEmpty(); - ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_tunnel_subs_) - - reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.num_tunnel_subs_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.mux_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_bridge_pubs_) - + reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.num_bridge_pubs_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { + ::memset(&_impl_.num_bridge_subs_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_tunnel_subs_) - + reinterpret_cast(&_impl_.num_bridge_subs_)) + sizeof(_impl_.num_tunnel_subs_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ChannelInfoProto::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ChannelInfoProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ChannelInfoProto::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ChannelInfoProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelInfoProto) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelInfoProto.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 slot_size = 2; - if (this_._internal_slot_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_slot_size(), target); - } - - // int32 num_slots = 3; - if (this_._internal_num_slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_num_slots(), target); - } - - // bytes type = 4; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // int32 num_pubs = 5; - if (this_._internal_num_pubs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this_._internal_num_pubs(), target); - } - - // int32 num_subs = 6; - if (this_._internal_num_subs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this_._internal_num_subs(), target); - } - - // int32 num_bridge_pubs = 7; - if (this_._internal_num_bridge_pubs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<7>( - stream, this_._internal_num_bridge_pubs(), target); - } - - // int32 num_bridge_subs = 8; - if (this_._internal_num_bridge_subs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<8>( - stream, this_._internal_num_bridge_subs(), target); - } - - // bool is_reliable = 9; - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 9, this_._internal_is_reliable(), target); - } - - // bool is_virtual = 10; - if (this_._internal_is_virtual() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 10, this_._internal_is_virtual(), target); - } - - // int32 vchan_id = 11; - if (this_._internal_vchan_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<11>( - stream, this_._internal_vchan_id(), target); - } - - // string mux = 12; - if (!this_._internal_mux().empty()) { - const std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelInfoProto.mux"); - target = stream->WriteStringMaybeAliased(12, _s, target); - } - - // int32 num_tunnel_pubs = 13; - if (this_._internal_num_tunnel_pubs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<13>( - stream, this_._internal_num_tunnel_pubs(), target); - } - - // int32 num_tunnel_subs = 14; - if (this_._internal_num_tunnel_subs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<14>( - stream, this_._internal_num_tunnel_subs(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelInfoProto) - return target; - } +::uint8_t* PROTOBUF_NONNULL ChannelInfoProto::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ChannelInfoProto& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ChannelInfoProto::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ChannelInfoProto& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelInfoProto) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + const ::std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelInfoProto.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ChannelInfoProto::ByteSizeLong(const MessageLite& base) { - const ChannelInfoProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ChannelInfoProto::ByteSizeLong() const { - const ChannelInfoProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelInfoProto) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string name = 1; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // bytes type = 4; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - // string mux = 12; - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - // int32 slot_size = 2; - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - // int32 num_slots = 3; - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - // int32 num_pubs = 5; - if (this_._internal_num_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_pubs()); - } - // int32 num_subs = 6; - if (this_._internal_num_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_subs()); - } - // int32 num_bridge_pubs = 7; - if (this_._internal_num_bridge_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_pubs()); - } - // int32 num_bridge_subs = 8; - if (this_._internal_num_bridge_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_subs()); - } - // bool is_reliable = 9; - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - // bool is_virtual = 10; - if (this_._internal_is_virtual() != 0) { - total_size += 2; - } - // int32 vchan_id = 11; - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - // int32 num_tunnel_pubs = 13; - if (this_._internal_num_tunnel_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_tunnel_pubs()); - } - // int32 num_tunnel_subs = 14; - if (this_._internal_num_tunnel_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_tunnel_subs()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // int32 slot_size = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_slot_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_slot_size(), target); + } + } -void ChannelInfoProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelInfoProto) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int32 num_slots = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_num_slots() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_num_slots(), target); + } + } + + // bytes type = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + target = stream->WriteBytesMaybeAliased(4, _s, target); + } + } + + // int32 num_pubs = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_num_pubs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_num_pubs(), target); + } + } + + // int32 num_subs = 6; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_num_subs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_num_subs(), target); + } + } - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + // int32 num_bridge_pubs = 7; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_num_bridge_pubs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_num_bridge_pubs(), target); + } } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + + // int32 num_bridge_subs = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_num_bridge_subs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_num_bridge_subs(), target); + } } - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); + + // bool is_reliable = 9; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_is_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this_._internal_is_reliable(), target); + } } - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; + + // bool is_virtual = 10; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_is_virtual() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 10, this_._internal_is_virtual(), target); + } } - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; + + // int32 vchan_id = 11; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_vchan_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( + stream, this_._internal_vchan_id(), target); + } } - if (from._internal_num_pubs() != 0) { - _this->_impl_.num_pubs_ = from._impl_.num_pubs_; + + // string mux = 12; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + const ::std::string& _s = this_._internal_mux(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelInfoProto.mux"); + target = stream->WriteStringMaybeAliased(12, _s, target); + } } - if (from._internal_num_subs() != 0) { - _this->_impl_.num_subs_ = from._impl_.num_subs_; + + // int32 num_tunnel_pubs = 13; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_num_tunnel_pubs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>( + stream, this_._internal_num_tunnel_pubs(), target); + } } - if (from._internal_num_bridge_pubs() != 0) { - _this->_impl_.num_bridge_pubs_ = from._impl_.num_bridge_pubs_; + + // int32 num_tunnel_subs = 14; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_num_tunnel_subs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( + stream, this_._internal_num_tunnel_subs(), target); + } } - if (from._internal_num_bridge_subs() != 0) { - _this->_impl_.num_bridge_subs_ = from._impl_.num_bridge_subs_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelInfoProto) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ChannelInfoProto::ByteSizeLong(const MessageLite& base) { + const ChannelInfoProto& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ChannelInfoProto::ByteSizeLong() const { + const ChannelInfoProto& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelInfoProto) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + } + // bytes type = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_type()); + } + } + // string mux = 12; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_mux()); + } + } + // int32 slot_size = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_slot_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_size()); + } + } + // int32 num_slots = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_num_slots() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_slots()); + } + } + // int32 num_pubs = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_num_pubs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_pubs()); + } + } + // int32 num_subs = 6; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_num_subs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_subs()); + } + } + // int32 num_bridge_pubs = 7; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_num_bridge_pubs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_bridge_pubs()); + } + } } - if (from._internal_is_virtual() != 0) { - _this->_impl_.is_virtual_ = from._impl_.is_virtual_; + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { + // int32 num_bridge_subs = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_num_bridge_subs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_bridge_subs()); + } + } + // bool is_reliable = 9; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_is_reliable() != 0) { + total_size += 2; + } + } + // bool is_virtual = 10; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_is_virtual() != 0) { + total_size += 2; + } + } + // int32 vchan_id = 11; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_vchan_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_vchan_id()); + } + } + // int32 num_tunnel_pubs = 13; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_num_tunnel_pubs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_tunnel_pubs()); + } + } + // int32 num_tunnel_subs = 14; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_num_tunnel_subs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_tunnel_subs()); + } + } } - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ChannelInfoProto::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_num_tunnel_pubs() != 0) { - _this->_impl_.num_tunnel_pubs_ = from._impl_.num_tunnel_pubs_; + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelInfoProto) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } else { + if (_this->_impl_.name_.IsDefault()) { + _this->_internal_set_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_mux().empty()) { + _this->_internal_set_mux(from._internal_mux()); + } else { + if (_this->_impl_.mux_.IsDefault()) { + _this->_internal_set_mux(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_slot_size() != 0) { + _this->_impl_.slot_size_ = from._impl_.slot_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_num_slots() != 0) { + _this->_impl_.num_slots_ = from._impl_.num_slots_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_num_pubs() != 0) { + _this->_impl_.num_pubs_ = from._impl_.num_pubs_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_num_subs() != 0) { + _this->_impl_.num_subs_ = from._impl_.num_subs_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_num_bridge_pubs() != 0) { + _this->_impl_.num_bridge_pubs_ = from._impl_.num_bridge_pubs_; + } + } } - if (from._internal_num_tunnel_subs() != 0) { - _this->_impl_.num_tunnel_subs_ = from._impl_.num_tunnel_subs_; + if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_num_bridge_subs() != 0) { + _this->_impl_.num_bridge_subs_ = from._impl_.num_bridge_subs_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_is_reliable() != 0) { + _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_is_virtual() != 0) { + _this->_impl_.is_virtual_ = from._impl_.is_virtual_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_vchan_id() != 0) { + _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (from._internal_num_tunnel_pubs() != 0) { + _this->_impl_.num_tunnel_pubs_ = from._impl_.num_tunnel_pubs_; + } + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (from._internal_num_tunnel_subs() != 0) { + _this->_impl_.num_tunnel_subs_ = from._impl_.num_tunnel_subs_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ChannelInfoProto::CopyFrom(const ChannelInfoProto& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelInfoProto) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelInfoProto) if (&from == this) return; Clear(); MergeFrom(from); } -void ChannelInfoProto::InternalSwap(ChannelInfoProto* PROTOBUF_RESTRICT other) { - using std::swap; +void ChannelInfoProto::InternalSwap(ChannelInfoProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); @@ -11383,29 +14232,35 @@ ::google::protobuf::Metadata ChannelInfoProto::GetMetadata() const { class ChannelDirectory::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_._has_bits_); }; -ChannelDirectory::ChannelDirectory(::google::protobuf::Arena* arena) +ChannelDirectory::ChannelDirectory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelDirectory_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ChannelDirectory) } -inline PROTOBUF_NDEBUG_INLINE ChannelDirectory::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ChannelDirectory& from_msg) - : channels_{visibility, arena, from.channels_}, - server_id_(arena, from.server_id_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ChannelDirectory::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ChannelDirectory& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + server_id_(arena, from.server_id_) {} ChannelDirectory::ChannelDirectory( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelDirectory& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelDirectory_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11417,14 +14272,14 @@ ChannelDirectory::ChannelDirectory( // @@protoc_insertion_point(copy_constructor:subspace.ChannelDirectory) } -inline PROTOBUF_NDEBUG_INLINE ChannelDirectory::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channels_{visibility, arena}, - server_id_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ChannelDirectory::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + server_id_(arena) {} -inline void ChannelDirectory::SharedCtor(::_pb::Arena* arena) { +inline void ChannelDirectory::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ChannelDirectory::~ChannelDirectory() { @@ -11433,14 +14288,18 @@ ChannelDirectory::~ChannelDirectory() { } inline void ChannelDirectory::SharedDtor(MessageLite& self) { ChannelDirectory& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.server_id_.Destroy(); this_._impl_.~Impl_(); } -inline void* ChannelDirectory::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ChannelDirectory::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ChannelDirectory(arena); } constexpr auto ChannelDirectory::InternalNewImpl_() { @@ -11459,37 +14318,44 @@ constexpr auto ChannelDirectory::InternalNewImpl_() { alignof(ChannelDirectory)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ChannelDirectory::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ChannelDirectory_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelDirectory::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelDirectory::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelDirectory::ByteSizeLong, - &ChannelDirectory::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_._cached_size_), - false, - }, - &ChannelDirectory::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ChannelDirectory::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ChannelDirectory::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ChannelDirectory_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ChannelDirectory::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ChannelDirectory::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ChannelDirectory::ByteSizeLong, + &ChannelDirectory::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_._cached_size_), + false, + }, + &ChannelDirectory::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ChannelDirectory_class_data_ = + ChannelDirectory::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ChannelDirectory::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ChannelDirectory_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ChannelDirectory_class_data_.tc_table); + return ChannelDirectory_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 43, 2> ChannelDirectory::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 43, 2> +ChannelDirectory::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -11498,7 +14364,7 @@ const ::_pbi::TcParseTable<1, 2, 1, 43, 2> ChannelDirectory::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + ChannelDirectory_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -11507,28 +14373,29 @@ const ::_pbi::TcParseTable<1, 2, 1, 43, 2> ChannelDirectory::_table_ = { }, {{ // repeated .subspace.ChannelInfoProto channels = 2; {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.channels_)}}, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.channels_)}}, // string server_id = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.server_id_)}}, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.server_id_)}}, }}, {{ 65535, 65535 }}, {{ // string server_id = 1; - {PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.server_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.server_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // repeated .subspace.ChannelInfoProto channels = 2; - {PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.channels_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelInfoProto>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ChannelInfoProto>()}, + }}, + {{ "\31\11\0\0\0\0\0\0" "subspace.ChannelDirectory" "server_id" }}, }; - PROTOBUF_NOINLINE void ChannelDirectory::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ChannelDirectory) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -11536,118 +14403,156 @@ PROTOBUF_NOINLINE void ChannelDirectory::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channels_.Clear(); - _impl_.server_id_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.server_id_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ChannelDirectory::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ChannelDirectory& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ChannelDirectory::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ChannelDirectory& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelDirectory) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string server_id = 1; - if (!this_._internal_server_id().empty()) { - const std::string& _s = this_._internal_server_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelDirectory.server_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // repeated .subspace.ChannelInfoProto channels = 2; - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelDirectory) - return target; - } +::uint8_t* PROTOBUF_NONNULL ChannelDirectory::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ChannelDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ChannelDirectory::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ChannelDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelDirectory) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string server_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_server_id().empty()) { + const ::std::string& _s = this_._internal_server_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelDirectory.server_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // repeated .subspace.ChannelInfoProto channels = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_channels_size()); + i < n; i++) { + const auto& repfield = this_._internal_channels().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelDirectory) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ChannelDirectory::ByteSizeLong(const MessageLite& base) { - const ChannelDirectory& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ChannelDirectory::ByteSizeLong() const { - const ChannelDirectory& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelDirectory) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .subspace.ChannelInfoProto channels = 2; - { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // string server_id = 1; - if (!this_._internal_server_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_server_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t ChannelDirectory::ByteSizeLong(const MessageLite& base) { + const ChannelDirectory& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ChannelDirectory::ByteSizeLong() const { + const ChannelDirectory& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelDirectory) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // repeated .subspace.ChannelInfoProto channels = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_channels_size(); + for (const auto& msg : this_._internal_channels()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // string server_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_server_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_server_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ChannelDirectory::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ChannelDirectory::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelDirectory) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_channels()->MergeFrom( - from._internal_channels()); - if (!from._internal_server_id().empty()) { - _this->_internal_set_server_id(from._internal_server_id()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_channels()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_server_id().empty()) { + _this->_internal_set_server_id(from._internal_server_id()); + } else { + if (_this->_impl_.server_id_.IsDefault()) { + _this->_internal_set_server_id(""); + } + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ChannelDirectory::CopyFrom(const ChannelDirectory& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelDirectory) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelDirectory) if (&from == this) return; Clear(); MergeFrom(from); } -void ChannelDirectory::InternalSwap(ChannelDirectory* PROTOBUF_RESTRICT other) { - using std::swap; +void ChannelDirectory::InternalSwap(ChannelDirectory* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.channels_.InternalSwap(&other->_impl_.channels_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_id_, &other->_impl_.server_id_, arena); } @@ -11659,28 +14564,34 @@ ::google::protobuf::Metadata ChannelDirectory::GetMetadata() const { class ChannelStatsProto::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_._has_bits_); }; -ChannelStatsProto::ChannelStatsProto(::google::protobuf::Arena* arena) +ChannelStatsProto::ChannelStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelStatsProto_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ChannelStatsProto) } -inline PROTOBUF_NDEBUG_INLINE ChannelStatsProto::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ChannelStatsProto& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ChannelStatsProto::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ChannelStatsProto& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ChannelStatsProto::ChannelStatsProto( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelStatsProto& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelStatsProto_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11689,9 +14600,9 @@ ChannelStatsProto::ChannelStatsProto( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, total_bytes_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, total_bytes_), offsetof(Impl_, num_bridge_subs_) - offsetof(Impl_, total_bytes_) + @@ -11699,15 +14610,15 @@ ChannelStatsProto::ChannelStatsProto( // @@protoc_insertion_point(copy_constructor:subspace.ChannelStatsProto) } -inline PROTOBUF_NDEBUG_INLINE ChannelStatsProto::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ChannelStatsProto::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ChannelStatsProto::SharedCtor(::_pb::Arena* arena) { +inline void ChannelStatsProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, total_bytes_), 0, offsetof(Impl_, num_bridge_subs_) - @@ -11720,51 +14631,62 @@ ChannelStatsProto::~ChannelStatsProto() { } inline void ChannelStatsProto::SharedDtor(MessageLite& self) { ChannelStatsProto& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ChannelStatsProto::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ChannelStatsProto::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ChannelStatsProto(arena); } constexpr auto ChannelStatsProto::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ChannelStatsProto), alignof(ChannelStatsProto)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ChannelStatsProto::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ChannelStatsProto_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelStatsProto::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelStatsProto::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelStatsProto::ByteSizeLong, - &ChannelStatsProto::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_._cached_size_), - false, - }, - &ChannelStatsProto::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ChannelStatsProto::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ChannelStatsProto::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ChannelStatsProto_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ChannelStatsProto::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ChannelStatsProto::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ChannelStatsProto::ByteSizeLong, + &ChannelStatsProto::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_._cached_size_), + false, + }, + &ChannelStatsProto::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ChannelStatsProto_class_data_ = + ChannelStatsProto::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ChannelStatsProto::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ChannelStatsProto_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ChannelStatsProto_class_data_.tc_table); + return ChannelStatsProto_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 0, 55, 2> ChannelStatsProto::_table_ = { +const ::_pbi::TcParseTable<4, 11, 0, 55, 2> +ChannelStatsProto::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_._has_bits_), 0, // no _extensions_ 11, 120, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -11773,7 +14695,7 @@ const ::_pbi::TcParseTable<4, 11, 0, 55, 2> ChannelStatsProto::_table_ = { 11, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ChannelStatsProto_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -11783,37 +14705,48 @@ const ::_pbi::TcParseTable<4, 11, 0, 55, 2> ChannelStatsProto::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.channel_name_)}}, // int64 total_bytes = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ChannelStatsProto, _impl_.total_bytes_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_bytes_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ChannelStatsProto, _impl_.total_bytes_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_bytes_)}}, // int64 total_messages = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ChannelStatsProto, _impl_.total_messages_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_messages_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ChannelStatsProto, _impl_.total_messages_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_messages_)}}, // int32 slot_size = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.slot_size_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.slot_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.slot_size_), 3>(), + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.slot_size_)}}, // int32 num_slots = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_slots_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_slots_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_slots_), 4>(), + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_slots_)}}, // int32 num_pubs = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_pubs_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_pubs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_pubs_), 5>(), + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_pubs_)}}, // int32 num_subs = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_subs_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_subs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_subs_), 6>(), + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_subs_)}}, // uint32 max_message_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.max_message_size_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.max_message_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.max_message_size_), 7>(), + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.max_message_size_)}}, // uint32 total_drops = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.total_drops_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_drops_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.total_drops_), 8>(), + {72, 8, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_drops_)}}, // int32 num_bridge_pubs = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_bridge_pubs_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_pubs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_bridge_pubs_), 9>(), + {80, 9, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_pubs_)}}, // int32 num_bridge_subs = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_bridge_subs_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_bridge_subs_), 10>(), + {88, 10, 0, + PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -11822,38 +14755,27 @@ const ::_pbi::TcParseTable<4, 11, 0, 55, 2> ChannelStatsProto::_table_ = { 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int64 total_bytes = 2; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_bytes_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_bytes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, // int64 total_messages = 3; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_messages_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_messages_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, // int32 slot_size = 4; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.slot_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.slot_size_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_slots = 5; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_slots_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_slots_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_pubs = 6; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_pubs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_pubs_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_subs = 7; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_subs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_subs_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // uint32 max_message_size = 8; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.max_message_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.max_message_size_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // uint32 total_drops = 9; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_drops_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_drops_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, // int32 num_bridge_pubs = 10; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_pubs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_pubs_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_bridge_subs = 11; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ @@ -11862,7 +14784,6 @@ const ::_pbi::TcParseTable<4, 11, 0, 55, 2> ChannelStatsProto::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void ChannelStatsProto::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ChannelStatsProto) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -11870,248 +14791,349 @@ PROTOBUF_NOINLINE void ChannelStatsProto::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - ::memset(&_impl_.total_bytes_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_bridge_subs_) - - reinterpret_cast(&_impl_.total_bytes_)) + sizeof(_impl_.num_bridge_subs_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { + ::memset(&_impl_.total_bytes_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.max_message_size_) - + reinterpret_cast(&_impl_.total_bytes_)) + sizeof(_impl_.max_message_size_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { + ::memset(&_impl_.total_drops_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_bridge_subs_) - + reinterpret_cast(&_impl_.total_drops_)) + sizeof(_impl_.num_bridge_subs_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ChannelStatsProto::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ChannelStatsProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ChannelStatsProto::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ChannelStatsProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelStatsProto) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelStatsProto.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int64 total_bytes = 2; - if (this_._internal_total_bytes() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this_._internal_total_bytes(), target); - } - - // int64 total_messages = 3; - if (this_._internal_total_messages() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<3>( - stream, this_._internal_total_messages(), target); - } - - // int32 slot_size = 4; - if (this_._internal_slot_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this_._internal_slot_size(), target); - } - - // int32 num_slots = 5; - if (this_._internal_num_slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this_._internal_num_slots(), target); - } - - // int32 num_pubs = 6; - if (this_._internal_num_pubs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<6>( - stream, this_._internal_num_pubs(), target); - } - - // int32 num_subs = 7; - if (this_._internal_num_subs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<7>( - stream, this_._internal_num_subs(), target); - } - - // uint32 max_message_size = 8; - if (this_._internal_max_message_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 8, this_._internal_max_message_size(), target); - } - - // uint32 total_drops = 9; - if (this_._internal_total_drops() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this_._internal_total_drops(), target); - } - - // int32 num_bridge_pubs = 10; - if (this_._internal_num_bridge_pubs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<10>( - stream, this_._internal_num_bridge_pubs(), target); - } - - // int32 num_bridge_subs = 11; - if (this_._internal_num_bridge_subs() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<11>( - stream, this_._internal_num_bridge_subs(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelStatsProto) - return target; - } +::uint8_t* PROTOBUF_NONNULL ChannelStatsProto::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ChannelStatsProto& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ChannelStatsProto::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ChannelStatsProto& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelStatsProto) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelStatsProto.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ChannelStatsProto::ByteSizeLong(const MessageLite& base) { - const ChannelStatsProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ChannelStatsProto::ByteSizeLong() const { - const ChannelStatsProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelStatsProto) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int64 total_bytes = 2; - if (this_._internal_total_bytes() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_total_bytes()); - } - // int64 total_messages = 3; - if (this_._internal_total_messages() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_total_messages()); - } - // int32 slot_size = 4; - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - // int32 num_slots = 5; - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - // int32 num_pubs = 6; - if (this_._internal_num_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_pubs()); - } - // int32 num_subs = 7; - if (this_._internal_num_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_subs()); - } - // uint32 max_message_size = 8; - if (this_._internal_max_message_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_max_message_size()); - } - // uint32 total_drops = 9; - if (this_._internal_total_drops() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_total_drops()); - } - // int32 num_bridge_pubs = 10; - if (this_._internal_num_bridge_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_pubs()); - } - // int32 num_bridge_subs = 11; - if (this_._internal_num_bridge_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_subs()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // int64 total_bytes = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_total_bytes() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_total_bytes(), target); + } + } -void ChannelStatsProto::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelStatsProto) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int64 total_messages = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_total_messages() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( + stream, this_._internal_total_messages(), target); + } + } + + // int32 slot_size = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_slot_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_slot_size(), target); + } + } + + // int32 num_slots = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_num_slots() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_num_slots(), target); + } + } + + // int32 num_pubs = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_num_pubs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( + stream, this_._internal_num_pubs(), target); + } + } - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + // int32 num_subs = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_num_subs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_num_subs(), target); + } } - if (from._internal_total_bytes() != 0) { - _this->_impl_.total_bytes_ = from._impl_.total_bytes_; + + // uint32 max_message_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_max_message_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 8, this_._internal_max_message_size(), target); + } } - if (from._internal_total_messages() != 0) { - _this->_impl_.total_messages_ = from._impl_.total_messages_; + + // uint32 total_drops = 9; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_total_drops() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 9, this_._internal_total_drops(), target); + } } - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; + + // int32 num_bridge_pubs = 10; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_num_bridge_pubs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( + stream, this_._internal_num_bridge_pubs(), target); + } } - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; + + // int32 num_bridge_subs = 11; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_num_bridge_subs() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( + stream, this_._internal_num_bridge_subs(), target); + } } - if (from._internal_num_pubs() != 0) { - _this->_impl_.num_pubs_ = from._impl_.num_pubs_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_num_subs() != 0) { - _this->_impl_.num_subs_ = from._impl_.num_subs_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelStatsProto) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ChannelStatsProto::ByteSizeLong(const MessageLite& base) { + const ChannelStatsProto& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ChannelStatsProto::ByteSizeLong() const { + const ChannelStatsProto& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelStatsProto) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int64 total_bytes = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_total_bytes() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_total_bytes()); + } + } + // int64 total_messages = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_total_messages() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_total_messages()); + } + } + // int32 slot_size = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_slot_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_size()); + } + } + // int32 num_slots = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_num_slots() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_slots()); + } + } + // int32 num_pubs = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_num_pubs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_pubs()); + } + } + // int32 num_subs = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_num_subs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_subs()); + } + } + // uint32 max_message_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_max_message_size() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_max_message_size()); + } + } } - if (from._internal_max_message_size() != 0) { - _this->_impl_.max_message_size_ = from._impl_.max_message_size_; + if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { + // uint32 total_drops = 9; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_total_drops() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_total_drops()); + } + } + // int32 num_bridge_pubs = 10; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_num_bridge_pubs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_bridge_pubs()); + } + } + // int32 num_bridge_subs = 11; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_num_bridge_subs() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_bridge_subs()); + } + } } - if (from._internal_total_drops() != 0) { - _this->_impl_.total_drops_ = from._impl_.total_drops_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ChannelStatsProto::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_num_bridge_pubs() != 0) { - _this->_impl_.num_bridge_pubs_ = from._impl_.num_bridge_pubs_; + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelStatsProto) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_total_bytes() != 0) { + _this->_impl_.total_bytes_ = from._impl_.total_bytes_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_total_messages() != 0) { + _this->_impl_.total_messages_ = from._impl_.total_messages_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_slot_size() != 0) { + _this->_impl_.slot_size_ = from._impl_.slot_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_num_slots() != 0) { + _this->_impl_.num_slots_ = from._impl_.num_slots_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_num_pubs() != 0) { + _this->_impl_.num_pubs_ = from._impl_.num_pubs_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_num_subs() != 0) { + _this->_impl_.num_subs_ = from._impl_.num_subs_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_max_message_size() != 0) { + _this->_impl_.max_message_size_ = from._impl_.max_message_size_; + } + } } - if (from._internal_num_bridge_subs() != 0) { - _this->_impl_.num_bridge_subs_ = from._impl_.num_bridge_subs_; + if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_total_drops() != 0) { + _this->_impl_.total_drops_ = from._impl_.total_drops_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_num_bridge_pubs() != 0) { + _this->_impl_.num_bridge_pubs_ = from._impl_.num_bridge_pubs_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_num_bridge_subs() != 0) { + _this->_impl_.num_bridge_subs_ = from._impl_.num_bridge_subs_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ChannelStatsProto::CopyFrom(const ChannelStatsProto& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelStatsProto) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelStatsProto) if (&from == this) return; Clear(); MergeFrom(from); } -void ChannelStatsProto::InternalSwap(ChannelStatsProto* PROTOBUF_RESTRICT other) { - using std::swap; +void ChannelStatsProto::InternalSwap(ChannelStatsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_) @@ -12128,29 +15150,35 @@ ::google::protobuf::Metadata ChannelStatsProto::GetMetadata() const { class Statistics::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Statistics, _impl_._has_bits_); }; -Statistics::Statistics(::google::protobuf::Arena* arena) +Statistics::Statistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Statistics_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Statistics) } -inline PROTOBUF_NDEBUG_INLINE Statistics::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Statistics& from_msg) - : channels_{visibility, arena, from.channels_}, - server_id_(arena, from.server_id_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE Statistics::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Statistics& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channels_{visibility, arena, from.channels_}, + server_id_(arena, from.server_id_) {} Statistics::Statistics( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Statistics& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Statistics_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12163,14 +15191,14 @@ Statistics::Statistics( // @@protoc_insertion_point(copy_constructor:subspace.Statistics) } -inline PROTOBUF_NDEBUG_INLINE Statistics::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channels_{visibility, arena}, - server_id_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE Statistics::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channels_{visibility, arena}, + server_id_(arena) {} -inline void Statistics::SharedCtor(::_pb::Arena* arena) { +inline void Statistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.timestamp_ = {}; } @@ -12180,14 +15208,18 @@ Statistics::~Statistics() { } inline void Statistics::SharedDtor(MessageLite& self) { Statistics& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.server_id_.Destroy(); this_._impl_.~Impl_(); } -inline void* Statistics::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Statistics::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Statistics(arena); } constexpr auto Statistics::InternalNewImpl_() { @@ -12206,37 +15238,44 @@ constexpr auto Statistics::InternalNewImpl_() { alignof(Statistics)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Statistics::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Statistics_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Statistics::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Statistics::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Statistics::ByteSizeLong, - &Statistics::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Statistics, _impl_._cached_size_), - false, - }, - &Statistics::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Statistics::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Statistics::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Statistics_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Statistics::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Statistics::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Statistics::ByteSizeLong, + &Statistics::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Statistics, _impl_._cached_size_), + false, + }, + &Statistics::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Statistics_class_data_ = + Statistics::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Statistics::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Statistics_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Statistics_class_data_.tc_table); + return Statistics_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 37, 2> Statistics::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 37, 2> +Statistics::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(Statistics, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -12245,7 +15284,7 @@ const ::_pbi::TcParseTable<2, 3, 1, 37, 2> Statistics::_table_ = { 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + Statistics_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -12255,34 +15294,35 @@ const ::_pbi::TcParseTable<2, 3, 1, 37, 2> Statistics::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string server_id = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Statistics, _impl_.server_id_)}}, + {10, 1, 0, + PROTOBUF_FIELD_OFFSET(Statistics, _impl_.server_id_)}}, // int64 timestamp = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Statistics, _impl_.timestamp_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Statistics, _impl_.timestamp_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Statistics, _impl_.timestamp_), 2>(), + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(Statistics, _impl_.timestamp_)}}, // repeated .subspace.ChannelStatsProto channels = 3; {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Statistics, _impl_.channels_)}}, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(Statistics, _impl_.channels_)}}, }}, {{ 65535, 65535 }}, {{ // string server_id = 1; - {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.server_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.server_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int64 timestamp = 2; - {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.timestamp_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt64)}, + {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.timestamp_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, // repeated .subspace.ChannelStatsProto channels = 3; - {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.channels_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelStatsProto>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ChannelStatsProto>()}, + }}, + {{ "\23\11\0\0\0\0\0\0" "subspace.Statistics" "server_id" }}, }; - PROTOBUF_NOINLINE void Statistics::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.Statistics) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -12290,137 +15330,181 @@ PROTOBUF_NOINLINE void Statistics::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channels_.Clear(); - _impl_.server_id_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.channels_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.server_id_.ClearNonDefaultToEmpty(); + } + } _impl_.timestamp_ = ::int64_t{0}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Statistics::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Statistics& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Statistics::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Statistics& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Statistics) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string server_id = 1; - if (!this_._internal_server_id().empty()) { - const std::string& _s = this_._internal_server_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Statistics.server_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int64 timestamp = 2; - if (this_._internal_timestamp() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt64ToArrayWithField<2>( - stream, this_._internal_timestamp(), target); - } - - // repeated .subspace.ChannelStatsProto channels = 3; - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Statistics) - return target; - } +::uint8_t* PROTOBUF_NONNULL Statistics::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Statistics& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Statistics::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Statistics& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Statistics) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string server_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_server_id().empty()) { + const ::std::string& _s = this_._internal_server_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Statistics.server_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int64 timestamp = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_timestamp() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( + stream, this_._internal_timestamp(), target); + } + } + + // repeated .subspace.ChannelStatsProto channels = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_channels_size()); + i < n; i++) { + const auto& repfield = this_._internal_channels().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, repfield, repfield.GetCachedSize(), + target, stream); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.Statistics) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Statistics::ByteSizeLong(const MessageLite& base) { - const Statistics& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t Statistics::ByteSizeLong() const { - const Statistics& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Statistics) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .subspace.ChannelStatsProto channels = 3; - { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // string server_id = 1; - if (!this_._internal_server_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_server_id()); - } - // int64 timestamp = 2; - if (this_._internal_timestamp() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_timestamp()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t Statistics::ByteSizeLong(const MessageLite& base) { + const Statistics& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Statistics::ByteSizeLong() const { + const Statistics& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.Statistics) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // repeated .subspace.ChannelStatsProto channels = 3; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_channels_size(); + for (const auto& msg : this_._internal_channels()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // string server_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_server_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_server_id()); + } + } + // int64 timestamp = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_timestamp() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( + this_._internal_timestamp()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void Statistics::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void Statistics::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Statistics) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_channels()->MergeFrom( - from._internal_channels()); - if (!from._internal_server_id().empty()) { - _this->_internal_set_server_id(from._internal_server_id()); - } - if (from._internal_timestamp() != 0) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_channels()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_channels()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_server_id().empty()) { + _this->_internal_set_server_id(from._internal_server_id()); + } else { + if (_this->_impl_.server_id_.IsDefault()) { + _this->_internal_set_server_id(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_timestamp() != 0) { + _this->_impl_.timestamp_ = from._impl_.timestamp_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Statistics::CopyFrom(const Statistics& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Statistics) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Statistics) if (&from == this) return; Clear(); MergeFrom(from); } -void Statistics::InternalSwap(Statistics* PROTOBUF_RESTRICT other) { - using std::swap; +void Statistics::InternalSwap(Statistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.channels_.InternalSwap(&other->_impl_.channels_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_id_, &other->_impl_.server_id_, arena); - swap(_impl_.timestamp_, other->_impl_.timestamp_); + swap(_impl_.timestamp_, other->_impl_.timestamp_); } ::google::protobuf::Metadata Statistics::GetMetadata() const { @@ -12430,28 +15514,34 @@ ::google::protobuf::Metadata Statistics::GetMetadata() const { class ChannelAddress::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_._has_bits_); }; -ChannelAddress::ChannelAddress(::google::protobuf::Arena* arena) +ChannelAddress::ChannelAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelAddress_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ChannelAddress) } -inline PROTOBUF_NDEBUG_INLINE ChannelAddress::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ChannelAddress& from_msg) - : address_(arena, from.address_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ChannelAddress::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ChannelAddress& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + address_(arena, from.address_) {} ChannelAddress::ChannelAddress( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelAddress& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ChannelAddress_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12464,13 +15554,13 @@ ChannelAddress::ChannelAddress( // @@protoc_insertion_point(copy_constructor:subspace.ChannelAddress) } -inline PROTOBUF_NDEBUG_INLINE ChannelAddress::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : address_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ChannelAddress::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + address_(arena) {} -inline void ChannelAddress::SharedCtor(::_pb::Arena* arena) { +inline void ChannelAddress::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.port_ = {}; } @@ -12480,51 +15570,62 @@ ChannelAddress::~ChannelAddress() { } inline void ChannelAddress::SharedDtor(MessageLite& self) { ChannelAddress& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.address_.Destroy(); this_._impl_.~Impl_(); } -inline void* ChannelAddress::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ChannelAddress::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ChannelAddress(arena); } constexpr auto ChannelAddress::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ChannelAddress), alignof(ChannelAddress)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ChannelAddress::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ChannelAddress_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelAddress::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelAddress::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelAddress::ByteSizeLong, - &ChannelAddress::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_._cached_size_), - false, - }, - &ChannelAddress::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ChannelAddress::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ChannelAddress::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ChannelAddress_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ChannelAddress::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ChannelAddress::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ChannelAddress::ByteSizeLong, + &ChannelAddress::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_._cached_size_), + false, + }, + &ChannelAddress::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ChannelAddress_class_data_ = + ChannelAddress::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ChannelAddress::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ChannelAddress_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ChannelAddress_class_data_.tc_table); + return ChannelAddress_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ChannelAddress::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +ChannelAddress::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -12533,7 +15634,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ChannelAddress::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ChannelAddress_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -12541,26 +15642,25 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ChannelAddress::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 port = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelAddress, _impl_.port_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.port_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelAddress, _impl_.port_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.port_)}}, // bytes address = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.address_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.address_)}}, }}, {{ 65535, 65535 }}, {{ // bytes address = 1; - {PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.address_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // int32 port = 2; - {PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.port_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void ChannelAddress::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ChannelAddress) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -12568,111 +15668,147 @@ PROTOBUF_NOINLINE void ChannelAddress::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.address_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.address_.ClearNonDefaultToEmpty(); + } _impl_.port_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ChannelAddress::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ChannelAddress& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ChannelAddress::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ChannelAddress& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelAddress) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes address = 1; - if (!this_._internal_address().empty()) { - const std::string& _s = this_._internal_address(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // int32 port = 2; - if (this_._internal_port() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_port(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelAddress) - return target; - } +::uint8_t* PROTOBUF_NONNULL ChannelAddress::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ChannelAddress& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ChannelAddress::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ChannelAddress& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelAddress) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // bytes address = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_address().empty()) { + const ::std::string& _s = this_._internal_address(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } + + // int32 port = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_port() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_port(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelAddress) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ChannelAddress::ByteSizeLong(const MessageLite& base) { - const ChannelAddress& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ChannelAddress::ByteSizeLong() const { - const ChannelAddress& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelAddress) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // bytes address = 1; - if (!this_._internal_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_address()); - } - // int32 port = 2; - if (this_._internal_port() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_port()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t ChannelAddress::ByteSizeLong(const MessageLite& base) { + const ChannelAddress& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ChannelAddress::ByteSizeLong() const { + const ChannelAddress& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelAddress) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // bytes address = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_address().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_address()); + } + } + // int32 port = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_port() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_port()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ChannelAddress::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ChannelAddress::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelAddress) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_address().empty()) { - _this->_internal_set_address(from._internal_address()); - } - if (from._internal_port() != 0) { - _this->_impl_.port_ = from._impl_.port_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_address().empty()) { + _this->_internal_set_address(from._internal_address()); + } else { + if (_this->_impl_.address_.IsDefault()) { + _this->_internal_set_address(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_port() != 0) { + _this->_impl_.port_ = from._impl_.port_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ChannelAddress::CopyFrom(const ChannelAddress& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelAddress) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelAddress) if (&from == this) return; Clear(); MergeFrom(from); } -void ChannelAddress::InternalSwap(ChannelAddress* PROTOBUF_RESTRICT other) { - using std::swap; +void ChannelAddress::InternalSwap(ChannelAddress* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); - swap(_impl_.port_, other->_impl_.port_); + swap(_impl_.port_, other->_impl_.port_); } ::google::protobuf::Metadata ChannelAddress::GetMetadata() const { @@ -12683,32 +15819,33 @@ ::google::protobuf::Metadata ChannelAddress::GetMetadata() const { class Subscribed::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Subscribed, _impl_._has_bits_); }; -Subscribed::Subscribed(::google::protobuf::Arena* arena) +Subscribed::Subscribed(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Subscribed_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Subscribed) } -inline PROTOBUF_NDEBUG_INLINE Subscribed::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Subscribed& from_msg) +PROTOBUF_NDEBUG_INLINE Subscribed::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Subscribed& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, channel_name_(arena, from.channel_name_) {} Subscribed::Subscribed( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Subscribed& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Subscribed_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12718,12 +15855,12 @@ Subscribed::Subscribed( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.retirement_socket_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::subspace::ChannelAddress>( - arena, *from._impl_.retirement_socket_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + _impl_.retirement_socket_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.retirement_socket_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, slot_size_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, slot_size_), offsetof(Impl_, metadata_size_) - offsetof(Impl_, slot_size_) + @@ -12731,15 +15868,15 @@ Subscribed::Subscribed( // @@protoc_insertion_point(copy_constructor:subspace.Subscribed) } -inline PROTOBUF_NDEBUG_INLINE Subscribed::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE Subscribed::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, channel_name_(arena) {} -inline void Subscribed::SharedCtor(::_pb::Arena* arena) { +inline void Subscribed::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, retirement_socket_), 0, offsetof(Impl_, metadata_size_) - @@ -12752,6 +15889,9 @@ Subscribed::~Subscribed() { } inline void Subscribed::SharedDtor(MessageLite& self) { Subscribed& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); @@ -12759,43 +15899,51 @@ inline void Subscribed::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* Subscribed::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Subscribed::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Subscribed(arena); } constexpr auto Subscribed::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Subscribed), alignof(Subscribed)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Subscribed::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Subscribed_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Subscribed::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Subscribed::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Subscribed::ByteSizeLong, - &Subscribed::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_._cached_size_), - false, - }, - &Subscribed::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Subscribed::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Subscribed::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Subscribed_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Subscribed::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Subscribed::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Subscribed::ByteSizeLong, + &Subscribed::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_._cached_size_), + false, + }, + &Subscribed::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Subscribed_class_data_ = + Subscribed::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Subscribed::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Subscribed_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Subscribed_class_data_.tc_table); + return Subscribed_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 1, 48, 2> Subscribed::_table_ = { +const ::_pbi::TcParseTable<4, 10, 1, 48, 2> +Subscribed::_table_ = { { PROTOBUF_FIELD_OFFSET(Subscribed, _impl_._has_bits_), 0, // no _extensions_ @@ -12806,7 +15954,7 @@ const ::_pbi::TcParseTable<4, 10, 1, 48, 2> Subscribed::_table_ = { 10, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + Subscribed_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -12816,34 +15964,44 @@ const ::_pbi::TcParseTable<4, 10, 1, 48, 2> Subscribed::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.channel_name_)}}, // int32 slot_size = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.slot_size_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.slot_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.slot_size_), 2>(), + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.slot_size_)}}, // int32 num_slots = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.num_slots_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.num_slots_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.num_slots_), 3>(), + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.num_slots_)}}, // bool reliable = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 5, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.reliable_)}}, // bool notify_retirement = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.notify_retirement_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 6, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.notify_retirement_)}}, // .subspace.ChannelAddress retirement_socket = 6; {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.retirement_socket_)}}, + {50, 1, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.retirement_socket_)}}, // int32 checksum_size = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.checksum_size_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.checksum_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.checksum_size_), 4>(), + {56, 4, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.checksum_size_)}}, // int32 metadata_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.metadata_size_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.metadata_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.metadata_size_), 9>(), + {64, 9, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.metadata_size_)}}, // bool split_buffers = 9; - {::_pbi::TcParser::SingularVarintNoZag1(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {72, 7, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_)}}, // bool split_buffers_over_bridge = 10; - {::_pbi::TcParser::SingularVarintNoZag1(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_over_bridge_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {80, 8, 0, + PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_over_bridge_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -12853,44 +16011,35 @@ const ::_pbi::TcParseTable<4, 10, 1, 48, 2> Subscribed::_table_ = { 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.channel_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 slot_size = 2; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.slot_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.slot_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_slots = 3; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.num_slots_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.num_slots_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool reliable = 4; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.reliable_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.reliable_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool notify_retirement = 5; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.notify_retirement_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // .subspace.ChannelAddress retirement_socket = 6; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.retirement_socket_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.retirement_socket_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // int32 checksum_size = 7; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.checksum_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.checksum_size_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 metadata_size = 8; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.metadata_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.metadata_size_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool split_buffers = 9; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool split_buffers_over_bridge = 10; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_over_bridge_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelAddress>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ChannelAddress>()}, + }}, + {{ "\23\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "subspace.Subscribed" "channel_name" }}, }; - PROTOBUF_NOINLINE void Subscribed::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.Subscribed) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -12898,247 +16047,326 @@ PROTOBUF_NOINLINE void Subscribed::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.retirement_socket_ != nullptr); - _impl_.retirement_socket_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.retirement_socket_ != nullptr); + _impl_.retirement_socket_->Clear(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { + ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.split_buffers_) - + reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.split_buffers_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + ::memset(&_impl_.split_buffers_over_bridge_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.metadata_size_) - + reinterpret_cast(&_impl_.split_buffers_over_bridge_)) + sizeof(_impl_.metadata_size_)); } - ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.metadata_size_) - - reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.metadata_size_)); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Subscribed::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Subscribed& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Subscribed::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Subscribed& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Subscribed) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Subscribed.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 slot_size = 2; - if (this_._internal_slot_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_slot_size(), target); - } - - // int32 num_slots = 3; - if (this_._internal_num_slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_num_slots(), target); - } - - // bool reliable = 4; - if (this_._internal_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_reliable(), target); - } - - // bool notify_retirement = 5; - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_notify_retirement(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // .subspace.ChannelAddress retirement_socket = 6; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.retirement_socket_, this_._impl_.retirement_socket_->GetCachedSize(), target, - stream); - } - - // int32 checksum_size = 7; - if (this_._internal_checksum_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<7>( - stream, this_._internal_checksum_size(), target); - } - - // int32 metadata_size = 8; - if (this_._internal_metadata_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<8>( - stream, this_._internal_metadata_size(), target); - } - - // bool split_buffers = 9; - if (this_._internal_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 9, this_._internal_split_buffers(), target); - } - - // bool split_buffers_over_bridge = 10; - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 10, this_._internal_split_buffers_over_bridge(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Subscribed) - return target; - } +::uint8_t* PROTOBUF_NONNULL Subscribed::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Subscribed& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Subscribed::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Subscribed& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Subscribed) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Subscribed.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Subscribed::ByteSizeLong(const MessageLite& base) { - const Subscribed& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t Subscribed::ByteSizeLong() const { - const Subscribed& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Subscribed) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - { - // .subspace.ChannelAddress retirement_socket = 6; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.retirement_socket_); - } - } - { - // int32 slot_size = 2; - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - // int32 num_slots = 3; - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - // int32 checksum_size = 7; - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - // bool reliable = 4; - if (this_._internal_reliable() != 0) { - total_size += 2; - } - // bool notify_retirement = 5; - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - // bool split_buffers = 9; - if (this_._internal_split_buffers() != 0) { - total_size += 2; - } - // bool split_buffers_over_bridge = 10; - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 2; - } - // int32 metadata_size = 8; - if (this_._internal_metadata_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_metadata_size()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // int32 slot_size = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_slot_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_slot_size(), target); + } + } -void Subscribed::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Subscribed) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // int32 num_slots = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_num_slots() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_num_slots(), target); + } + } - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + // bool reliable = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_reliable(), target); + } } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.retirement_socket_ != nullptr); - if (_this->_impl_.retirement_socket_ == nullptr) { - _this->_impl_.retirement_socket_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ChannelAddress>(arena, *from._impl_.retirement_socket_); - } else { - _this->_impl_.retirement_socket_->MergeFrom(*from._impl_.retirement_socket_); + + // bool notify_retirement = 5; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_notify_retirement() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_notify_retirement(), target); + } + } + + // .subspace.ChannelAddress retirement_socket = 6; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.retirement_socket_, this_._impl_.retirement_socket_->GetCachedSize(), target, + stream); + } + + // int32 checksum_size = 7; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_checksum_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( + stream, this_._internal_checksum_size(), target); + } + } + + // int32 metadata_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_metadata_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( + stream, this_._internal_metadata_size(), target); } } - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; + + // bool split_buffers = 9; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_split_buffers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 9, this_._internal_split_buffers(), target); + } } - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; + + // bool split_buffers_over_bridge = 10; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 10, this_._internal_split_buffers_over_bridge(), target); + } } - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_reliable() != 0) { - _this->_impl_.reliable_ = from._impl_.reliable_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.Subscribed) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t Subscribed::ByteSizeLong(const MessageLite& base) { + const Subscribed& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Subscribed::ByteSizeLong() const { + const Subscribed& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.Subscribed) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // .subspace.ChannelAddress retirement_socket = 6; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.retirement_socket_); + } + // int32 slot_size = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_slot_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_size()); + } + } + // int32 num_slots = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_num_slots() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_slots()); + } + } + // int32 checksum_size = 7; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_checksum_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_checksum_size()); + } + } + // bool reliable = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_reliable() != 0) { + total_size += 2; + } + } + // bool notify_retirement = 5; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_notify_retirement() != 0) { + total_size += 2; + } + } + // bool split_buffers = 9; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_split_buffers() != 0) { + total_size += 2; + } + } } - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + // bool split_buffers_over_bridge = 10; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + total_size += 2; + } + } + // int32 metadata_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_metadata_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_metadata_size()); + } + } } - if (from._internal_split_buffers() != 0) { - _this->_impl_.split_buffers_ = from._impl_.split_buffers_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void Subscribed::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + ::google::protobuf::Arena* arena = _this->GetArena(); + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Subscribed) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.retirement_socket_ != nullptr); + if (_this->_impl_.retirement_socket_ == nullptr) { + _this->_impl_.retirement_socket_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.retirement_socket_); + } else { + _this->_impl_.retirement_socket_->MergeFrom(*from._impl_.retirement_socket_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_slot_size() != 0) { + _this->_impl_.slot_size_ = from._impl_.slot_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_num_slots() != 0) { + _this->_impl_.num_slots_ = from._impl_.num_slots_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_checksum_size() != 0) { + _this->_impl_.checksum_size_ = from._impl_.checksum_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_reliable() != 0) { + _this->_impl_.reliable_ = from._impl_.reliable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_notify_retirement() != 0) { + _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_split_buffers() != 0) { + _this->_impl_.split_buffers_ = from._impl_.split_buffers_; + } + } } - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; + if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_split_buffers_over_bridge() != 0) { + _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_metadata_size() != 0) { + _this->_impl_.metadata_size_ = from._impl_.metadata_size_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Subscribed::CopyFrom(const Subscribed& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Subscribed) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Subscribed) if (&from == this) return; Clear(); MergeFrom(from); } -void Subscribed::InternalSwap(Subscribed* PROTOBUF_RESTRICT other) { - using std::swap; +void Subscribed::InternalSwap(Subscribed* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -13159,11 +16387,15 @@ ::google::protobuf::Metadata Subscribed::GetMetadata() const { class RetirementNotification::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_._has_bits_); }; -RetirementNotification::RetirementNotification(::google::protobuf::Arena* arena) +RetirementNotification::RetirementNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RetirementNotification_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -13171,16 +16403,22 @@ RetirementNotification::RetirementNotification(::google::protobuf::Arena* arena) // @@protoc_insertion_point(arena_constructor:subspace.RetirementNotification) } RetirementNotification::RetirementNotification( - ::google::protobuf::Arena* arena, const RetirementNotification& from) - : RetirementNotification(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RetirementNotification& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, RetirementNotification_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE RetirementNotification::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE RetirementNotification::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void RetirementNotification::SharedCtor(::_pb::Arena* arena) { +inline void RetirementNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.slot_id_ = {}; } @@ -13190,50 +16428,61 @@ RetirementNotification::~RetirementNotification() { } inline void RetirementNotification::SharedDtor(MessageLite& self) { RetirementNotification& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* RetirementNotification::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RetirementNotification::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RetirementNotification(arena); } constexpr auto RetirementNotification::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RetirementNotification), alignof(RetirementNotification)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RetirementNotification::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RetirementNotification_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RetirementNotification::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RetirementNotification::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RetirementNotification::ByteSizeLong, - &RetirementNotification::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_._cached_size_), - false, - }, - &RetirementNotification::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RetirementNotification::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RetirementNotification::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RetirementNotification_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RetirementNotification::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RetirementNotification::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RetirementNotification::ByteSizeLong, + &RetirementNotification::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_._cached_size_), + false, + }, + &RetirementNotification::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RetirementNotification_class_data_ = + RetirementNotification::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RetirementNotification::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RetirementNotification_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RetirementNotification_class_data_.tc_table); + return RetirementNotification_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RetirementNotification::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +RetirementNotification::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -13242,7 +16491,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RetirementNotification::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RetirementNotification_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -13250,20 +16499,19 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RetirementNotification::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 slot_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RetirementNotification, _impl_.slot_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_.slot_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RetirementNotification, _impl_.slot_id_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_.slot_id_)}}, }}, {{ 65535, 65535 }}, {{ // int32 slot_id = 1; - {PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_.slot_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_.slot_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void RetirementNotification::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RetirementNotification) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -13272,91 +16520,112 @@ PROTOBUF_NOINLINE void RetirementNotification::Clear() { (void) cached_has_bits; _impl_.slot_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RetirementNotification::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RetirementNotification& this_ = static_cast(base); +::uint8_t* PROTOBUF_NONNULL RetirementNotification::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RetirementNotification& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RetirementNotification::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RetirementNotification& this_ = *this; +::uint8_t* PROTOBUF_NONNULL RetirementNotification::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RetirementNotification& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RetirementNotification) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 slot_id = 1; - if (this_._internal_slot_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this_._internal_slot_id(), target); - } + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RetirementNotification) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // int32 slot_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_slot_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_slot_id(), target); + } + } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RetirementNotification) - return target; - } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RetirementNotification) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RetirementNotification::ByteSizeLong(const MessageLite& base) { - const RetirementNotification& this_ = static_cast(base); +::size_t RetirementNotification::ByteSizeLong(const MessageLite& base) { + const RetirementNotification& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t RetirementNotification::ByteSizeLong() const { - const RetirementNotification& this_ = *this; +::size_t RetirementNotification::ByteSizeLong() const { + const RetirementNotification& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RetirementNotification) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.RetirementNotification) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // int32 slot_id = 1; - if (this_._internal_slot_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // int32 slot_id = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_slot_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RetirementNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RetirementNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RetirementNotification) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (from._internal_slot_id() != 0) { - _this->_impl_.slot_id_ = from._impl_.slot_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_slot_id() != 0) { + _this->_impl_.slot_id_ = from._impl_.slot_id_; + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RetirementNotification::CopyFrom(const RetirementNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RetirementNotification) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RetirementNotification) if (&from == this) return; Clear(); MergeFrom(from); } -void RetirementNotification::InternalSwap(RetirementNotification* PROTOBUF_RESTRICT other) { - using std::swap; +void RetirementNotification::InternalSwap(RetirementNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.slot_id_, other->_impl_.slot_id_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.slot_id_, other->_impl_.slot_id_); } ::google::protobuf::Metadata RetirementNotification::GetMetadata() const { @@ -13366,28 +16635,34 @@ ::google::protobuf::Metadata RetirementNotification::GetMetadata() const { class Discovery_Query::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_._has_bits_); }; -Discovery_Query::Discovery_Query(::google::protobuf::Arena* arena) +Discovery_Query::Discovery_Query(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_Query_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Discovery.Query) } -inline PROTOBUF_NDEBUG_INLINE Discovery_Query::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Discovery_Query& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE Discovery_Query::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Discovery_Query& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} Discovery_Query::Discovery_Query( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Query& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_Query_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -13399,13 +16674,13 @@ Discovery_Query::Discovery_Query( // @@protoc_insertion_point(copy_constructor:subspace.Discovery.Query) } -inline PROTOBUF_NDEBUG_INLINE Discovery_Query::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE Discovery_Query::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void Discovery_Query::SharedCtor(::_pb::Arena* arena) { +inline void Discovery_Query::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } Discovery_Query::~Discovery_Query() { @@ -13414,51 +16689,62 @@ Discovery_Query::~Discovery_Query() { } inline void Discovery_Query::SharedDtor(MessageLite& self) { Discovery_Query& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* Discovery_Query::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Discovery_Query::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Discovery_Query(arena); } constexpr auto Discovery_Query::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery_Query), alignof(Discovery_Query)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Discovery_Query::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Discovery_Query_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery_Query::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery_Query::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery_Query::ByteSizeLong, - &Discovery_Query::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_._cached_size_), - false, - }, - &Discovery_Query::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Discovery_Query::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Discovery_Query::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Discovery_Query_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Discovery_Query::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Discovery_Query::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Discovery_Query::ByteSizeLong, + &Discovery_Query::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_._cached_size_), + false, + }, + &Discovery_Query::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Discovery_Query_class_data_ = + Discovery_Query::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Discovery_Query::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_Query_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Discovery_Query_class_data_.tc_table); + return Discovery_Query_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 45, 2> Discovery_Query::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 45, 2> +Discovery_Query::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -13467,7 +16753,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 45, 2> Discovery_Query::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + Discovery_Query_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -13476,13 +16762,13 @@ const ::_pbi::TcParseTable<0, 1, 0, 45, 2> Discovery_Query::_table_ = { }, {{ // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -13491,7 +16777,6 @@ const ::_pbi::TcParseTable<0, 1, 0, 45, 2> Discovery_Query::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void Discovery_Query::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.Discovery.Query) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -13499,94 +16784,122 @@ PROTOBUF_NOINLINE void Discovery_Query::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Discovery_Query::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Discovery_Query& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Discovery_Query::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Discovery_Query& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Query) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Query.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Query) - return target; - } +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL Discovery_Query::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Discovery_Query& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Discovery_Query::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Discovery_Query& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Query) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Query.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Query) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Discovery_Query::ByteSizeLong(const MessageLite& base) { - const Discovery_Query& this_ = static_cast(base); +::size_t Discovery_Query::ByteSizeLong(const MessageLite& base) { + const Discovery_Query& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t Discovery_Query::ByteSizeLong() const { - const Discovery_Query& this_ = *this; +::size_t Discovery_Query::ByteSizeLong() const { + const Discovery_Query& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Query) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Query) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // string channel_name = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void Discovery_Query::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void Discovery_Query::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery.Query) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Discovery_Query::CopyFrom(const Discovery_Query& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Query) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Query) if (&from == this) return; Clear(); MergeFrom(from); } -void Discovery_Query::InternalSwap(Discovery_Query* PROTOBUF_RESTRICT other) { - using std::swap; +void Discovery_Query::InternalSwap(Discovery_Query* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); } @@ -13597,28 +16910,34 @@ ::google::protobuf::Metadata Discovery_Query::GetMetadata() const { class Discovery_Advertise::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_._has_bits_); }; -Discovery_Advertise::Discovery_Advertise(::google::protobuf::Arena* arena) +Discovery_Advertise::Discovery_Advertise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_Advertise_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Discovery.Advertise) } -inline PROTOBUF_NDEBUG_INLINE Discovery_Advertise::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Discovery_Advertise& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE Discovery_Advertise::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Discovery_Advertise& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} Discovery_Advertise::Discovery_Advertise( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Advertise& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_Advertise_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -13627,9 +16946,9 @@ Discovery_Advertise::Discovery_Advertise( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, reliable_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, reliable_), offsetof(Impl_, split_buffers_) - offsetof(Impl_, reliable_) + @@ -13637,15 +16956,15 @@ Discovery_Advertise::Discovery_Advertise( // @@protoc_insertion_point(copy_constructor:subspace.Discovery.Advertise) } -inline PROTOBUF_NDEBUG_INLINE Discovery_Advertise::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE Discovery_Advertise::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void Discovery_Advertise::SharedCtor(::_pb::Arena* arena) { +inline void Discovery_Advertise::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, reliable_), 0, offsetof(Impl_, split_buffers_) - @@ -13658,51 +16977,62 @@ Discovery_Advertise::~Discovery_Advertise() { } inline void Discovery_Advertise::SharedDtor(MessageLite& self) { Discovery_Advertise& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* Discovery_Advertise::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Discovery_Advertise::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Discovery_Advertise(arena); } constexpr auto Discovery_Advertise::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery_Advertise), alignof(Discovery_Advertise)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Discovery_Advertise::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Discovery_Advertise_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery_Advertise::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery_Advertise::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery_Advertise::ByteSizeLong, - &Discovery_Advertise::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_._cached_size_), - false, - }, - &Discovery_Advertise::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Discovery_Advertise::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Discovery_Advertise::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Discovery_Advertise_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Discovery_Advertise::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Discovery_Advertise::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Discovery_Advertise::ByteSizeLong, + &Discovery_Advertise::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_._cached_size_), + false, + }, + &Discovery_Advertise::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Discovery_Advertise_class_data_ = + Discovery_Advertise::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Discovery_Advertise::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_Advertise_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Discovery_Advertise_class_data_.tc_table); + return Discovery_Advertise_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 49, 2> Discovery_Advertise::_table_ = { +const ::_pbi::TcParseTable<2, 4, 0, 49, 2> +Discovery_Advertise::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -13711,7 +17041,7 @@ const ::_pbi::TcParseTable<2, 4, 0, 49, 2> Discovery_Advertise::_table_ = { 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + Discovery_Advertise_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -13719,32 +17049,32 @@ const ::_pbi::TcParseTable<2, 4, 0, 49, 2> Discovery_Advertise::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool split_buffers = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_)}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.channel_name_)}}, // bool reliable = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.reliable_)}}, // bool notify_retirement = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.notify_retirement_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.notify_retirement_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool reliable = 2; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.reliable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.reliable_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool notify_retirement = 3; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.notify_retirement_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool split_buffers = 4; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -13753,7 +17083,6 @@ const ::_pbi::TcParseTable<2, 4, 0, 49, 2> Discovery_Advertise::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void Discovery_Advertise::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.Discovery.Advertise) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -13761,140 +17090,188 @@ PROTOBUF_NOINLINE void Discovery_Advertise::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } ::memset(&_impl_.reliable_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.split_buffers_) - reinterpret_cast(&_impl_.reliable_)) + sizeof(_impl_.split_buffers_)); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Discovery_Advertise::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Discovery_Advertise& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Discovery_Advertise::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Discovery_Advertise& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Advertise) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Advertise.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // bool reliable = 2; - if (this_._internal_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this_._internal_reliable(), target); - } - - // bool notify_retirement = 3; - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_notify_retirement(), target); - } - - // bool split_buffers = 4; - if (this_._internal_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_split_buffers(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Advertise) - return target; - } +::uint8_t* PROTOBUF_NONNULL Discovery_Advertise::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Discovery_Advertise& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Discovery_Advertise::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Discovery_Advertise& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Advertise) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Advertise.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // bool reliable = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_reliable(), target); + } + } + + // bool notify_retirement = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_notify_retirement() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_notify_retirement(), target); + } + } + + // bool split_buffers = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_split_buffers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_split_buffers(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Advertise) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Discovery_Advertise::ByteSizeLong(const MessageLite& base) { - const Discovery_Advertise& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t Discovery_Advertise::ByteSizeLong() const { - const Discovery_Advertise& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Advertise) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // bool reliable = 2; - if (this_._internal_reliable() != 0) { - total_size += 2; - } - // bool notify_retirement = 3; - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - // bool split_buffers = 4; - if (this_._internal_split_buffers() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t Discovery_Advertise::ByteSizeLong(const MessageLite& base) { + const Discovery_Advertise& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Discovery_Advertise::ByteSizeLong() const { + const Discovery_Advertise& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Advertise) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // bool reliable = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_reliable() != 0) { + total_size += 2; + } + } + // bool notify_retirement = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_notify_retirement() != 0) { + total_size += 2; + } + } + // bool split_buffers = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_split_buffers() != 0) { + total_size += 2; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void Discovery_Advertise::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void Discovery_Advertise::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery.Advertise) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_reliable() != 0) { - _this->_impl_.reliable_ = from._impl_.reliable_; - } - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; - } - if (from._internal_split_buffers() != 0) { - _this->_impl_.split_buffers_ = from._impl_.split_buffers_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_reliable() != 0) { + _this->_impl_.reliable_ = from._impl_.reliable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_notify_retirement() != 0) { + _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_split_buffers() != 0) { + _this->_impl_.split_buffers_ = from._impl_.split_buffers_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Discovery_Advertise::CopyFrom(const Discovery_Advertise& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Advertise) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Advertise) if (&from == this) return; Clear(); MergeFrom(from); } -void Discovery_Advertise::InternalSwap(Discovery_Advertise* PROTOBUF_RESTRICT other) { - using std::swap; +void Discovery_Advertise::InternalSwap(Discovery_Advertise* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_) @@ -13912,32 +17289,33 @@ ::google::protobuf::Metadata Discovery_Advertise::GetMetadata() const { class Discovery_Subscribe::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_._has_bits_); }; -Discovery_Subscribe::Discovery_Subscribe(::google::protobuf::Arena* arena) +Discovery_Subscribe::Discovery_Subscribe(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_Subscribe_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Discovery.Subscribe) } -inline PROTOBUF_NDEBUG_INLINE Discovery_Subscribe::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Discovery_Subscribe& from_msg) +PROTOBUF_NDEBUG_INLINE Discovery_Subscribe::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Discovery_Subscribe& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, channel_name_(arena, from.channel_name_) {} Discovery_Subscribe::Discovery_Subscribe( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Subscribe& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_Subscribe_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -13947,22 +17325,22 @@ Discovery_Subscribe::Discovery_Subscribe( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.receiver_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::subspace::ChannelAddress>( - arena, *from._impl_.receiver_) - : nullptr; + _impl_.receiver_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.receiver_) + : nullptr; _impl_.reliable_ = from._impl_.reliable_; // @@protoc_insertion_point(copy_constructor:subspace.Discovery.Subscribe) } -inline PROTOBUF_NDEBUG_INLINE Discovery_Subscribe::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE Discovery_Subscribe::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, channel_name_(arena) {} -inline void Discovery_Subscribe::SharedCtor(::_pb::Arena* arena) { +inline void Discovery_Subscribe::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, receiver_), 0, offsetof(Impl_, reliable_) - @@ -13975,6 +17353,9 @@ Discovery_Subscribe::~Discovery_Subscribe() { } inline void Discovery_Subscribe::SharedDtor(MessageLite& self) { Discovery_Subscribe& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); @@ -13982,43 +17363,51 @@ inline void Discovery_Subscribe::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* Discovery_Subscribe::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Discovery_Subscribe::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Discovery_Subscribe(arena); } constexpr auto Discovery_Subscribe::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery_Subscribe), alignof(Discovery_Subscribe)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Discovery_Subscribe::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Discovery_Subscribe_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery_Subscribe::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery_Subscribe::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery_Subscribe::ByteSizeLong, - &Discovery_Subscribe::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_._cached_size_), - false, - }, - &Discovery_Subscribe::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Discovery_Subscribe::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Discovery_Subscribe::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Discovery_Subscribe_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Discovery_Subscribe::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Discovery_Subscribe::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Discovery_Subscribe::ByteSizeLong, + &Discovery_Subscribe::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_._cached_size_), + false, + }, + &Discovery_Subscribe::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Discovery_Subscribe_class_data_ = + Discovery_Subscribe::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Discovery_Subscribe::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_Subscribe_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Discovery_Subscribe_class_data_.tc_table); + return Discovery_Subscribe_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 49, 2> Discovery_Subscribe::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 49, 2> +Discovery_Subscribe::_table_ = { { PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_._has_bits_), 0, // no _extensions_ @@ -14029,7 +17418,7 @@ const ::_pbi::TcParseTable<2, 3, 1, 49, 2> Discovery_Subscribe::_table_ = { 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + Discovery_Subscribe_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -14039,34 +17428,35 @@ const ::_pbi::TcParseTable<2, 3, 1, 49, 2> Discovery_Subscribe::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.channel_name_)}}, // .subspace.ChannelAddress receiver = 2; {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.receiver_)}}, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.receiver_)}}, // bool reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.reliable_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.channel_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .subspace.ChannelAddress receiver = 2; - {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.receiver_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.receiver_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // bool reliable = 3; - {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.reliable_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelAddress>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.reliable_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ChannelAddress>()}, + }}, + {{ "\34\14\0\0\0\0\0\0" "subspace.Discovery.Subscribe" "channel_name" }}, }; - PROTOBUF_NOINLINE void Discovery_Subscribe::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.Discovery.Subscribe) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -14074,11 +17464,15 @@ PROTOBUF_NOINLINE void Discovery_Subscribe::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.receiver_ != nullptr); - _impl_.receiver_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.receiver_ != nullptr); + _impl_.receiver_->Clear(); + } } _impl_.reliable_ = false; _impl_._has_bits_.Clear(); @@ -14086,131 +17480,153 @@ PROTOBUF_NOINLINE void Discovery_Subscribe::Clear() { } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Discovery_Subscribe::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Discovery_Subscribe& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Discovery_Subscribe::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Discovery_Subscribe& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Subscribe) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Subscribe.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // .subspace.ChannelAddress receiver = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.receiver_, this_._impl_.receiver_->GetCachedSize(), target, - stream); - } - - // bool reliable = 3; - if (this_._internal_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_reliable(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Subscribe) - return target; - } +::uint8_t* PROTOBUF_NONNULL Discovery_Subscribe::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Discovery_Subscribe& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Discovery_Subscribe::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Discovery_Subscribe& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Subscribe) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Subscribe.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // .subspace.ChannelAddress receiver = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.receiver_, this_._impl_.receiver_->GetCachedSize(), target, + stream); + } + + // bool reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_reliable(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Subscribe) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Discovery_Subscribe::ByteSizeLong(const MessageLite& base) { - const Discovery_Subscribe& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t Discovery_Subscribe::ByteSizeLong() const { - const Discovery_Subscribe& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Subscribe) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - { - // .subspace.ChannelAddress receiver = 2; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receiver_); - } - } - { - // bool reliable = 3; - if (this_._internal_reliable() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t Discovery_Subscribe::ByteSizeLong(const MessageLite& base) { + const Discovery_Subscribe& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Discovery_Subscribe::ByteSizeLong() const { + const Discovery_Subscribe& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Subscribe) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // .subspace.ChannelAddress receiver = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receiver_); + } + // bool reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_reliable() != 0) { + total_size += 2; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void Discovery_Subscribe::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void Discovery_Subscribe::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery.Subscribe) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.receiver_ != nullptr); - if (_this->_impl_.receiver_ == nullptr) { - _this->_impl_.receiver_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ChannelAddress>(arena, *from._impl_.receiver_); - } else { - _this->_impl_.receiver_->MergeFrom(*from._impl_.receiver_); + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.receiver_ != nullptr); + if (_this->_impl_.receiver_ == nullptr) { + _this->_impl_.receiver_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.receiver_); + } else { + _this->_impl_.receiver_->MergeFrom(*from._impl_.receiver_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_reliable() != 0) { + _this->_impl_.reliable_ = from._impl_.reliable_; + } } - } - if (from._internal_reliable() != 0) { - _this->_impl_.reliable_ = from._impl_.reliable_; } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Discovery_Subscribe::CopyFrom(const Discovery_Subscribe& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Subscribe) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Subscribe) if (&from == this) return; Clear(); MergeFrom(from); } -void Discovery_Subscribe::InternalSwap(Discovery_Subscribe* PROTOBUF_RESTRICT other) { - using std::swap; +void Discovery_Subscribe::InternalSwap(Discovery_Subscribe* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -14231,11 +17647,15 @@ ::google::protobuf::Metadata Discovery_Subscribe::GetMetadata() const { class Discovery::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Discovery, _impl_._has_bits_); static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_._oneof_case_); }; -void Discovery::set_allocated_query(::subspace::Discovery_Query* query) { +void Discovery::set_allocated_query(::subspace::Discovery_Query* PROTOBUF_NULLABLE query) { ::google::protobuf::Arena* message_arena = GetArena(); clear_data(); if (query) { @@ -14248,7 +17668,7 @@ void Discovery::set_allocated_query(::subspace::Discovery_Query* query) { } // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.query) } -void Discovery::set_allocated_advertise(::subspace::Discovery_Advertise* advertise) { +void Discovery::set_allocated_advertise(::subspace::Discovery_Advertise* PROTOBUF_NULLABLE advertise) { ::google::protobuf::Arena* message_arena = GetArena(); clear_data(); if (advertise) { @@ -14261,7 +17681,7 @@ void Discovery::set_allocated_advertise(::subspace::Discovery_Advertise* adverti } // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.advertise) } -void Discovery::set_allocated_subscribe(::subspace::Discovery_Subscribe* subscribe) { +void Discovery::set_allocated_subscribe(::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE subscribe) { ::google::protobuf::Arena* message_arena = GetArena(); clear_data(); if (subscribe) { @@ -14274,28 +17694,30 @@ void Discovery::set_allocated_subscribe(::subspace::Discovery_Subscribe* subscri } // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.subscribe) } -Discovery::Discovery(::google::protobuf::Arena* arena) +Discovery::Discovery(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.Discovery) } -inline PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::Discovery& from_msg) - : server_id_(arena, from.server_id_), - data_{}, +PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::Discovery& from_msg) + : _has_bits_{from._has_bits_}, _cached_size_{0}, + server_id_(arena, from.server_id_), + data_{}, _oneof_case_{from._oneof_case_[0]} {} Discovery::Discovery( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, Discovery_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -14309,27 +17731,27 @@ Discovery::Discovery( case DATA_NOT_SET: break; case kQuery: - _impl_.data_.query_ = ::google::protobuf::Message::CopyConstruct<::subspace::Discovery_Query>(arena, *from._impl_.data_.query_); + _impl_.data_.query_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.query_); break; case kAdvertise: - _impl_.data_.advertise_ = ::google::protobuf::Message::CopyConstruct<::subspace::Discovery_Advertise>(arena, *from._impl_.data_.advertise_); + _impl_.data_.advertise_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.advertise_); break; case kSubscribe: - _impl_.data_.subscribe_ = ::google::protobuf::Message::CopyConstruct<::subspace::Discovery_Subscribe>(arena, *from._impl_.data_.subscribe_); + _impl_.data_.subscribe_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.subscribe_); break; } // @@protoc_insertion_point(copy_constructor:subspace.Discovery) } -inline PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : server_id_(arena), +PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + server_id_(arena), data_{}, - _cached_size_{0}, _oneof_case_{} {} -inline void Discovery::SharedCtor(::_pb::Arena* arena) { +inline void Discovery::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.port_ = {}; } @@ -14339,6 +17761,9 @@ Discovery::~Discovery() { } inline void Discovery::SharedDtor(MessageLite& self) { Discovery& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.server_id_.Destroy(); @@ -14384,45 +17809,53 @@ void Discovery::clear_data() { } -inline void* Discovery::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL Discovery::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) Discovery(arena); } constexpr auto Discovery::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery), alignof(Discovery)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull Discovery::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_Discovery_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery::ByteSizeLong, - &Discovery::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery, _impl_._cached_size_), - false, - }, - &Discovery::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* Discovery::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto Discovery::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Discovery_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Discovery::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Discovery::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Discovery::ByteSizeLong, + &Discovery::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Discovery, _impl_._cached_size_), + false, + }, + &Discovery::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull Discovery_class_data_ = + Discovery::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Discovery::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Discovery_class_data_.tc_table); + return Discovery_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 5, 3, 36, 2> Discovery::_table_ = { +const ::_pbi::TcParseTable<1, 5, 3, 36, 2> +Discovery::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(Discovery, _impl_._has_bits_), 0, // no _extensions_ 5, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -14431,7 +17864,7 @@ const ::_pbi::TcParseTable<1, 5, 3, 36, 2> Discovery::_table_ = { 5, // num_field_entries 3, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + Discovery_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -14439,40 +17872,38 @@ const ::_pbi::TcParseTable<1, 5, 3, 36, 2> Discovery::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 port = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Discovery, _impl_.port_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery, _impl_.port_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Discovery, _impl_.port_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(Discovery, _impl_.port_)}}, // string server_id = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Discovery, _impl_.server_id_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Discovery, _impl_.server_id_)}}, }}, {{ 65535, 65535 }}, {{ // string server_id = 1; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.server_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.server_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 port = 2; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.port_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // .subspace.Discovery.Query query = 3; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.query_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.query_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.Discovery.Advertise advertise = 4; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.advertise_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.advertise_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.Discovery.Subscribe subscribe = 5; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.subscribe_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::Discovery_Query>()}, - {::_pbi::TcParser::GetTable<::subspace::Discovery_Advertise>()}, - {::_pbi::TcParser::GetTable<::subspace::Discovery_Subscribe>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.subscribe_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::Discovery_Query>()}, + {::_pbi::TcParser::GetTable<::subspace::Discovery_Advertise>()}, + {::_pbi::TcParser::GetTable<::subspace::Discovery_Subscribe>()}, + }}, + {{ "\22\11\0\0\0\0\0\0" "subspace.Discovery" "server_id" }}, }; - PROTOBUF_NOINLINE void Discovery::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.Discovery) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -14480,143 +17911,178 @@ PROTOBUF_NOINLINE void Discovery::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.server_id_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.server_id_.ClearNonDefaultToEmpty(); + } _impl_.port_ = 0; clear_data(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* Discovery::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const Discovery& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* Discovery::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const Discovery& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string server_id = 1; - if (!this_._internal_server_id().empty()) { - const std::string& _s = this_._internal_server_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.server_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 port = 2; - if (this_._internal_port() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_port(), target); - } - - switch (this_.data_case()) { - case kQuery: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.data_.query_, this_._impl_.data_.query_->GetCachedSize(), target, - stream); - break; - } - case kAdvertise: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.data_.advertise_, this_._impl_.data_.advertise_->GetCachedSize(), target, - stream); - break; - } - case kSubscribe: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.data_.subscribe_, this_._impl_.data_.subscribe_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery) - return target; - } +::uint8_t* PROTOBUF_NONNULL Discovery::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const Discovery& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL Discovery::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const Discovery& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string server_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_server_id().empty()) { + const ::std::string& _s = this_._internal_server_id(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.server_id"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 port = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_port() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_port(), target); + } + } + + switch (this_.data_case()) { + case kQuery: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.data_.query_, this_._impl_.data_.query_->GetCachedSize(), target, + stream); + break; + } + case kAdvertise: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.data_.advertise_, this_._impl_.data_.advertise_->GetCachedSize(), target, + stream); + break; + } + case kSubscribe: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.data_.subscribe_, this_._impl_.data_.subscribe_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t Discovery::ByteSizeLong(const MessageLite& base) { - const Discovery& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t Discovery::ByteSizeLong() const { - const Discovery& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string server_id = 1; - if (!this_._internal_server_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_server_id()); - } - // int32 port = 2; - if (this_._internal_port() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_port()); - } - } - switch (this_.data_case()) { - // .subspace.Discovery.Query query = 3; - case kQuery: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.query_); - break; - } - // .subspace.Discovery.Advertise advertise = 4; - case kAdvertise: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.advertise_); - break; - } - // .subspace.Discovery.Subscribe subscribe = 5; - case kSubscribe: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.subscribe_); - break; - } - case DATA_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t Discovery::ByteSizeLong(const MessageLite& base) { + const Discovery& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t Discovery::ByteSizeLong() const { + const Discovery& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // string server_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_server_id().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_server_id()); + } + } + // int32 port = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_port() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_port()); + } + } + } + switch (this_.data_case()) { + // .subspace.Discovery.Query query = 3; + case kQuery: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.query_); + break; + } + // .subspace.Discovery.Advertise advertise = 4; + case kAdvertise: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.advertise_); + break; + } + // .subspace.Discovery.Subscribe subscribe = 5; + case kSubscribe: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.subscribe_); + break; + } + case DATA_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void Discovery::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void Discovery::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_server_id().empty()) { - _this->_internal_set_server_id(from._internal_server_id()); - } - if (from._internal_port() != 0) { - _this->_impl_.port_ = from._impl_.port_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_server_id().empty()) { + _this->_internal_set_server_id(from._internal_server_id()); + } else { + if (_this->_impl_.server_id_.IsDefault()) { + _this->_internal_set_server_id(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_port() != 0) { + _this->_impl_.port_ = from._impl_.port_; + } + } } - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { @@ -14629,28 +18095,25 @@ void Discovery::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl switch (oneof_from_case) { case kQuery: { if (oneof_needs_init) { - _this->_impl_.data_.query_ = - ::google::protobuf::Message::CopyConstruct<::subspace::Discovery_Query>(arena, *from._impl_.data_.query_); + _this->_impl_.data_.query_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.query_); } else { - _this->_impl_.data_.query_->MergeFrom(from._internal_query()); + _this->_impl_.data_.query_->MergeFrom(*from._impl_.data_.query_); } break; } case kAdvertise: { if (oneof_needs_init) { - _this->_impl_.data_.advertise_ = - ::google::protobuf::Message::CopyConstruct<::subspace::Discovery_Advertise>(arena, *from._impl_.data_.advertise_); + _this->_impl_.data_.advertise_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.advertise_); } else { - _this->_impl_.data_.advertise_->MergeFrom(from._internal_advertise()); + _this->_impl_.data_.advertise_->MergeFrom(*from._impl_.data_.advertise_); } break; } case kSubscribe: { if (oneof_needs_init) { - _this->_impl_.data_.subscribe_ = - ::google::protobuf::Message::CopyConstruct<::subspace::Discovery_Subscribe>(arena, *from._impl_.data_.subscribe_); + _this->_impl_.data_.subscribe_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.subscribe_); } else { - _this->_impl_.data_.subscribe_->MergeFrom(from._internal_subscribe()); + _this->_impl_.data_.subscribe_->MergeFrom(*from._impl_.data_.subscribe_); } break; } @@ -14658,24 +18121,26 @@ void Discovery::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Discovery::CopyFrom(const Discovery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery) if (&from == this) return; Clear(); MergeFrom(from); } -void Discovery::InternalSwap(Discovery* PROTOBUF_RESTRICT other) { - using std::swap; +void Discovery::InternalSwap(Discovery* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_id_, &other->_impl_.server_id_, arena); - swap(_impl_.port_, other->_impl_.port_); + swap(_impl_.port_, other->_impl_.port_); swap(_impl_.data_, other->_impl_.data_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } @@ -14689,19 +18154,19 @@ class RpcOpenRequest::_Internal { public: }; -RpcOpenRequest::RpcOpenRequest(::google::protobuf::Arena* arena) +RpcOpenRequest::RpcOpenRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcOpenRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenRequest) } RpcOpenRequest::RpcOpenRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcOpenRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -14713,43 +18178,51 @@ RpcOpenRequest::RpcOpenRequest( // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenRequest) } -inline void* RpcOpenRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcOpenRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcOpenRequest(arena); } constexpr auto RpcOpenRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcOpenRequest), alignof(RpcOpenRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcOpenRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcOpenRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenRequest::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenRequest::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &RpcOpenRequest::ByteSizeLong, - &RpcOpenRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenRequest, _impl_._cached_size_), - false, - }, - &RpcOpenRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcOpenRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcOpenRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcOpenRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcOpenRequest::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcOpenRequest::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &RpcOpenRequest::ByteSizeLong, + &RpcOpenRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcOpenRequest, _impl_._cached_size_), + false, + }, + &RpcOpenRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcOpenRequest_class_data_ = + RpcOpenRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcOpenRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenRequest_class_data_.tc_table); + return RpcOpenRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcOpenRequest::_table_ = { +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +RpcOpenRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -14760,7 +18233,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcOpenRequest::_table_ = { 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RpcOpenRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -14770,8 +18243,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcOpenRequest::_table_ = { {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 - }}, - // no field_entries, or aux_entries + }}, // no field_entries, or aux_entries {{ }}, }; @@ -14782,7 +18254,6 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcOpenRequest::_table_ = { - ::google::protobuf::Metadata RpcOpenRequest::GetMetadata() const { return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } @@ -14790,29 +18261,35 @@ ::google::protobuf::Metadata RpcOpenRequest::GetMetadata() const { class RpcOpenResponse_RequestChannel::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_._has_bits_); }; -RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel(::google::protobuf::Arena* arena) +RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_RequestChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse.RequestChannel) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse_RequestChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcOpenResponse_RequestChannel& from_msg) - : name_(arena, from.name_), - type_(arena, from.type_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RpcOpenResponse_RequestChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcOpenResponse_RequestChannel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_), + type_(arena, from.type_) {} RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_RequestChannel& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_RequestChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -14821,9 +18298,9 @@ RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, slot_size_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, slot_size_), offsetof(Impl_, num_slots_) - offsetof(Impl_, slot_size_) + @@ -14831,16 +18308,16 @@ RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel( // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse.RequestChannel) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse_RequestChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - type_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RpcOpenResponse_RequestChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + name_(arena), + type_(arena) {} -inline void RpcOpenResponse_RequestChannel::SharedCtor(::_pb::Arena* arena) { +inline void RpcOpenResponse_RequestChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, slot_size_), 0, offsetof(Impl_, num_slots_) - @@ -14853,6 +18330,9 @@ RpcOpenResponse_RequestChannel::~RpcOpenResponse_RequestChannel() { } inline void RpcOpenResponse_RequestChannel::SharedDtor(MessageLite& self) { RpcOpenResponse_RequestChannel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -14860,45 +18340,53 @@ inline void RpcOpenResponse_RequestChannel::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* RpcOpenResponse_RequestChannel::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcOpenResponse_RequestChannel(arena); } constexpr auto RpcOpenResponse_RequestChannel::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcOpenResponse_RequestChannel), alignof(RpcOpenResponse_RequestChannel)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_RequestChannel::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_RequestChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse_RequestChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse_RequestChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_RequestChannel::ByteSizeLong, - &RpcOpenResponse_RequestChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_._cached_size_), - false, - }, - &RpcOpenResponse_RequestChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcOpenResponse_RequestChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcOpenResponse_RequestChannel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcOpenResponse_RequestChannel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcOpenResponse_RequestChannel::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcOpenResponse_RequestChannel::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_RequestChannel::ByteSizeLong, + &RpcOpenResponse_RequestChannel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_._cached_size_), + false, + }, + &RpcOpenResponse_RequestChannel::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcOpenResponse_RequestChannel_class_data_ = + RpcOpenResponse_RequestChannel::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcOpenResponse_RequestChannel::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_RequestChannel_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_RequestChannel_class_data_.tc_table); + return RpcOpenResponse_RequestChannel_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 56, 2> RpcOpenResponse_RequestChannel::_table_ = { +const ::_pbi::TcParseTable<2, 4, 0, 56, 2> +RpcOpenResponse_RequestChannel::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_._has_bits_), 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -14907,7 +18395,7 @@ const ::_pbi::TcParseTable<2, 4, 0, 56, 2> RpcOpenResponse_RequestChannel::_tabl 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RpcOpenResponse_RequestChannel_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -14916,31 +18404,31 @@ const ::_pbi::TcParseTable<2, 4, 0, 56, 2> RpcOpenResponse_RequestChannel::_tabl }, {{ // string type = 4; {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.type_)}}, + {34, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.type_)}}, // string name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.name_)}}, // int32 slot_size = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_RequestChannel, _impl_.slot_size_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.slot_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_RequestChannel, _impl_.slot_size_), 2>(), + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.slot_size_)}}, // int32 num_slots = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_RequestChannel, _impl_.num_slots_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.num_slots_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_RequestChannel, _impl_.num_slots_), 3>(), + {24, 3, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.num_slots_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 slot_size = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.slot_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.slot_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_slots = 3; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.num_slots_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.num_slots_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // string type = 4; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -14950,7 +18438,6 @@ const ::_pbi::TcParseTable<2, 4, 0, 56, 2> RpcOpenResponse_RequestChannel::_tabl "type" }}, }; - PROTOBUF_NOINLINE void RpcOpenResponse_RequestChannel::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse.RequestChannel) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -14958,145 +18445,203 @@ PROTOBUF_NOINLINE void RpcOpenResponse_RequestChannel::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_slots_) - - reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.num_slots_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) { + ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_slots_) - + reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.num_slots_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcOpenResponse_RequestChannel::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcOpenResponse_RequestChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcOpenResponse_RequestChannel::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcOpenResponse_RequestChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.RequestChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.RequestChannel.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 slot_size = 2; - if (this_._internal_slot_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_slot_size(), target); - } - - // int32 num_slots = 3; - if (this_._internal_num_slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_num_slots(), target); - } - - // string type = 4; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.RequestChannel.type"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.RequestChannel) - return target; - } +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcOpenResponse_RequestChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcOpenResponse_RequestChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.RequestChannel) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + const ::std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.RequestChannel.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 slot_size = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_slot_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_slot_size(), target); + } + } + + // int32 num_slots = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_num_slots() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_num_slots(), target); + } + } + + // string type = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.RequestChannel.type"); + target = stream->WriteStringMaybeAliased(4, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.RequestChannel) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcOpenResponse_RequestChannel::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse_RequestChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcOpenResponse_RequestChannel::ByteSizeLong() const { - const RpcOpenResponse_RequestChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.RequestChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string name = 1; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // string type = 4; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_type()); - } - // int32 slot_size = 2; - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - // int32 num_slots = 3; - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RpcOpenResponse_RequestChannel::ByteSizeLong(const MessageLite& base) { + const RpcOpenResponse_RequestChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcOpenResponse_RequestChannel::ByteSizeLong() const { + const RpcOpenResponse_RequestChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.RequestChannel) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + } + // string type = 4; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_type()); + } + } + // int32 slot_size = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_slot_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_size()); + } + } + // int32 num_slots = 3; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_num_slots() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_slots()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcOpenResponse_RequestChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcOpenResponse_RequestChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse.RequestChannel) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } else { + if (_this->_impl_.name_.IsDefault()) { + _this->_internal_set_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_slot_size() != 0) { + _this->_impl_.slot_size_ = from._impl_.slot_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_num_slots() != 0) { + _this->_impl_.num_slots_ = from._impl_.num_slots_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcOpenResponse_RequestChannel::CopyFrom(const RpcOpenResponse_RequestChannel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.RequestChannel) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.RequestChannel) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcOpenResponse_RequestChannel::InternalSwap(RpcOpenResponse_RequestChannel* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcOpenResponse_RequestChannel::InternalSwap(RpcOpenResponse_RequestChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); ::google::protobuf::internal::memswap< @@ -15114,29 +18659,35 @@ ::google::protobuf::Metadata RpcOpenResponse_RequestChannel::GetMetadata() const class RpcOpenResponse_ResponseChannel::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_._has_bits_); }; -RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* arena) +RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_ResponseChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse.ResponseChannel) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse_ResponseChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcOpenResponse_ResponseChannel& from_msg) - : name_(arena, from.name_), - type_(arena, from.type_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RpcOpenResponse_ResponseChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcOpenResponse_ResponseChannel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_(arena, from.name_), + type_(arena, from.type_) {} RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_ResponseChannel& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_ResponseChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -15148,14 +18699,14 @@ RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel( // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse.ResponseChannel) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse_ResponseChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : name_(arena), - type_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RpcOpenResponse_ResponseChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + name_(arena), + type_(arena) {} -inline void RpcOpenResponse_ResponseChannel::SharedCtor(::_pb::Arena* arena) { +inline void RpcOpenResponse_ResponseChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } RpcOpenResponse_ResponseChannel::~RpcOpenResponse_ResponseChannel() { @@ -15164,6 +18715,9 @@ RpcOpenResponse_ResponseChannel::~RpcOpenResponse_ResponseChannel() { } inline void RpcOpenResponse_ResponseChannel::SharedDtor(MessageLite& self) { RpcOpenResponse_ResponseChannel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -15171,45 +18725,53 @@ inline void RpcOpenResponse_ResponseChannel::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* RpcOpenResponse_ResponseChannel::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcOpenResponse_ResponseChannel(arena); } constexpr auto RpcOpenResponse_ResponseChannel::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcOpenResponse_ResponseChannel), alignof(RpcOpenResponse_ResponseChannel)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_ResponseChannel::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_ResponseChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse_ResponseChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse_ResponseChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_ResponseChannel::ByteSizeLong, - &RpcOpenResponse_ResponseChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_._cached_size_), - false, - }, - &RpcOpenResponse_ResponseChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcOpenResponse_ResponseChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcOpenResponse_ResponseChannel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcOpenResponse_ResponseChannel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcOpenResponse_ResponseChannel::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcOpenResponse_ResponseChannel::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_ResponseChannel::ByteSizeLong, + &RpcOpenResponse_ResponseChannel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_._cached_size_), + false, + }, + &RpcOpenResponse_ResponseChannel::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcOpenResponse_ResponseChannel_class_data_ = + RpcOpenResponse_ResponseChannel::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcOpenResponse_ResponseChannel::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_ResponseChannel_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_ResponseChannel_class_data_.tc_table); + return RpcOpenResponse_ResponseChannel_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 57, 2> RpcOpenResponse_ResponseChannel::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 57, 2> +RpcOpenResponse_ResponseChannel::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -15218,7 +18780,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 57, 2> RpcOpenResponse_ResponseChannel::_tab 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RpcOpenResponse_ResponseChannel_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -15227,19 +18789,19 @@ const ::_pbi::TcParseTable<1, 2, 0, 57, 2> RpcOpenResponse_ResponseChannel::_tab }, {{ // string type = 2; {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.type_)}}, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.type_)}}, // string name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.name_)}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // string type = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, }}, // no aux_entries {{ @@ -15249,7 +18811,6 @@ const ::_pbi::TcParseTable<1, 2, 0, 57, 2> RpcOpenResponse_ResponseChannel::_tab "type" }}, }; - PROTOBUF_NOINLINE void RpcOpenResponse_ResponseChannel::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse.ResponseChannel) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -15257,112 +18818,156 @@ PROTOBUF_NOINLINE void RpcOpenResponse_ResponseChannel::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcOpenResponse_ResponseChannel::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcOpenResponse_ResponseChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcOpenResponse_ResponseChannel::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcOpenResponse_ResponseChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.ResponseChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.ResponseChannel.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // string type = 2; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.ResponseChannel.type"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.ResponseChannel) - return target; - } +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcOpenResponse_ResponseChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcOpenResponse_ResponseChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.ResponseChannel) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + const ::std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.ResponseChannel.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // string type = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.ResponseChannel.type"); + target = stream->WriteStringMaybeAliased(2, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.ResponseChannel) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcOpenResponse_ResponseChannel::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse_ResponseChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcOpenResponse_ResponseChannel::ByteSizeLong() const { - const RpcOpenResponse_ResponseChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.ResponseChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string name = 1; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // string type = 2; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_type()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RpcOpenResponse_ResponseChannel::ByteSizeLong(const MessageLite& base) { + const RpcOpenResponse_ResponseChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcOpenResponse_ResponseChannel::ByteSizeLong() const { + const RpcOpenResponse_ResponseChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.ResponseChannel) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + } + // string type = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_type()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcOpenResponse_ResponseChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcOpenResponse_ResponseChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse.ResponseChannel) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } else { + if (_this->_impl_.name_.IsDefault()) { + _this->_internal_set_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcOpenResponse_ResponseChannel::CopyFrom(const RpcOpenResponse_ResponseChannel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.ResponseChannel) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.ResponseChannel) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcOpenResponse_ResponseChannel::InternalSwap(RpcOpenResponse_ResponseChannel* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcOpenResponse_ResponseChannel::InternalSwap(RpcOpenResponse_ResponseChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); } @@ -15375,33 +18980,34 @@ ::google::protobuf::Metadata RpcOpenResponse_ResponseChannel::GetMetadata() cons class RpcOpenResponse_Method::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_._has_bits_); }; -RpcOpenResponse_Method::RpcOpenResponse_Method(::google::protobuf::Arena* arena) +RpcOpenResponse_Method::RpcOpenResponse_Method(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_Method_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse.Method) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse_Method::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcOpenResponse_Method& from_msg) +PROTOBUF_NDEBUG_INLINE RpcOpenResponse_Method::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcOpenResponse_Method& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_), cancel_channel_(arena, from.cancel_channel_) {} RpcOpenResponse_Method::RpcOpenResponse_Method( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_Method& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_Method_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -15411,26 +19017,26 @@ RpcOpenResponse_Method::RpcOpenResponse_Method( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.request_channel_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenResponse_RequestChannel>( - arena, *from._impl_.request_channel_) - : nullptr; - _impl_.response_channel_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenResponse_ResponseChannel>( - arena, *from._impl_.response_channel_) - : nullptr; + _impl_.request_channel_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_channel_) + : nullptr; + _impl_.response_channel_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_channel_) + : nullptr; _impl_.id_ = from._impl_.id_; // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse.Method) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse_Method::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE RpcOpenResponse_Method::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, name_(arena), cancel_channel_(arena) {} -inline void RpcOpenResponse_Method::SharedCtor(::_pb::Arena* arena) { +inline void RpcOpenResponse_Method::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, request_channel_), 0, offsetof(Impl_, id_) - @@ -15443,6 +19049,9 @@ RpcOpenResponse_Method::~RpcOpenResponse_Method() { } inline void RpcOpenResponse_Method::SharedDtor(MessageLite& self) { RpcOpenResponse_Method& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -15452,43 +19061,51 @@ inline void RpcOpenResponse_Method::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* RpcOpenResponse_Method::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcOpenResponse_Method::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcOpenResponse_Method(arena); } constexpr auto RpcOpenResponse_Method::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcOpenResponse_Method), alignof(RpcOpenResponse_Method)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_Method::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_Method_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse_Method::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse_Method::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_Method::ByteSizeLong, - &RpcOpenResponse_Method::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_._cached_size_), - false, - }, - &RpcOpenResponse_Method::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcOpenResponse_Method::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcOpenResponse_Method::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcOpenResponse_Method_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcOpenResponse_Method::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcOpenResponse_Method::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_Method::ByteSizeLong, + &RpcOpenResponse_Method::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_._cached_size_), + false, + }, + &RpcOpenResponse_Method::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcOpenResponse_Method_class_data_ = + RpcOpenResponse_Method::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcOpenResponse_Method::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_Method_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_Method_class_data_.tc_table); + return RpcOpenResponse_Method_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 58, 2> RpcOpenResponse_Method::_table_ = { +const ::_pbi::TcParseTable<3, 5, 2, 58, 2> +RpcOpenResponse_Method::_table_ = { { PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_._has_bits_), 0, // no _extensions_ @@ -15499,7 +19116,7 @@ const ::_pbi::TcParseTable<3, 5, 2, 58, 2> RpcOpenResponse_Method::_table_ = { 5, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + RpcOpenResponse_Method_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -15509,50 +19126,51 @@ const ::_pbi::TcParseTable<3, 5, 2, 58, 2> RpcOpenResponse_Method::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.name_)}}, // int32 id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_Method, _impl_.id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_Method, _impl_.id_), 4>(), + {16, 4, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.id_)}}, // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.request_channel_)}}, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.request_channel_)}}, // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.response_channel_)}}, + {34, 3, 1, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.response_channel_)}}, // string cancel_channel = 5; {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.cancel_channel_)}}, + {42, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.cancel_channel_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string name = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 id = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.request_channel_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.request_channel_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.response_channel_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.response_channel_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // string cancel_channel = 5; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.cancel_channel_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_RequestChannel>()}, - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_ResponseChannel>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.cancel_channel_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_RequestChannel>()}, + {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_ResponseChannel>()}, + }}, + {{ "\37\4\0\0\0\16\0\0" "subspace.RpcOpenResponse.Method" "name" "cancel_channel" }}, }; - PROTOBUF_NOINLINE void RpcOpenResponse_Method::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse.Method) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -15560,15 +19178,19 @@ PROTOBUF_NOINLINE void RpcOpenResponse_Method::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.cancel_channel_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.cancel_channel_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(_impl_.request_channel_ != nullptr); _impl_.request_channel_->Clear(); } - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { ABSL_DCHECK(_impl_.response_channel_ != nullptr); _impl_.response_channel_->Clear(); } @@ -15579,171 +19201,200 @@ PROTOBUF_NOINLINE void RpcOpenResponse_Method::Clear() { } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcOpenResponse_Method::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcOpenResponse_Method& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcOpenResponse_Method::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcOpenResponse_Method& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.Method) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 1; - if (!this_._internal_name().empty()) { - const std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.Method.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 id = 2; - if (this_._internal_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_id(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.request_channel_, this_._impl_.request_channel_->GetCachedSize(), target, - stream); - } - - // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.response_channel_, this_._impl_.response_channel_->GetCachedSize(), target, - stream); - } - - // string cancel_channel = 5; - if (!this_._internal_cancel_channel().empty()) { - const std::string& _s = this_._internal_cancel_channel(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.Method.cancel_channel"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.Method) - return target; - } +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_Method::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcOpenResponse_Method& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_Method::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcOpenResponse_Method& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.Method) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + const ::std::string& _s = this_._internal_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.Method.name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 id = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_id(), target); + } + } + + // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.request_channel_, this_._impl_.request_channel_->GetCachedSize(), target, + stream); + } + + // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.response_channel_, this_._impl_.response_channel_->GetCachedSize(), target, + stream); + } + + // string cancel_channel = 5; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_cancel_channel().empty()) { + const ::std::string& _s = this_._internal_cancel_channel(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.Method.cancel_channel"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.Method) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcOpenResponse_Method::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse_Method& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcOpenResponse_Method::ByteSizeLong() const { - const RpcOpenResponse_Method& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.Method) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string name = 1; - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - // string cancel_channel = 5; - if (!this_._internal_cancel_channel().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_cancel_channel()); - } - } - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_channel_); - } - // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_channel_); - } - } - { - // int32 id = 2; - if (this_._internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RpcOpenResponse_Method::ByteSizeLong(const MessageLite& base) { + const RpcOpenResponse_Method& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcOpenResponse_Method::ByteSizeLong() const { + const RpcOpenResponse_Method& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.Method) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + // string name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); + } + } + // string cancel_channel = 5; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_cancel_channel().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_cancel_channel()); + } + } + // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_channel_); + } + // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_channel_); + } + // int32 id = 2; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcOpenResponse_Method::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcOpenResponse_Method::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse.Method) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (!from._internal_cancel_channel().empty()) { - _this->_internal_set_cancel_channel(from._internal_cancel_channel()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } else { + if (_this->_impl_.name_.IsDefault()) { + _this->_internal_set_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_cancel_channel().empty()) { + _this->_internal_set_cancel_channel(from._internal_cancel_channel()); + } else { + if (_this->_impl_.cancel_channel_.IsDefault()) { + _this->_internal_set_cancel_channel(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(from._impl_.request_channel_ != nullptr); if (_this->_impl_.request_channel_ == nullptr) { - _this->_impl_.request_channel_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenResponse_RequestChannel>(arena, *from._impl_.request_channel_); + _this->_impl_.request_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_channel_); } else { _this->_impl_.request_channel_->MergeFrom(*from._impl_.request_channel_); } } - if (cached_has_bits & 0x00000002u) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { ABSL_DCHECK(from._impl_.response_channel_ != nullptr); if (_this->_impl_.response_channel_ == nullptr) { - _this->_impl_.response_channel_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenResponse_ResponseChannel>(arena, *from._impl_.response_channel_); + _this->_impl_.response_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_channel_); } else { _this->_impl_.response_channel_->MergeFrom(*from._impl_.response_channel_); } } - } - if (from._internal_id() != 0) { - _this->_impl_.id_ = from._impl_.id_; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_id() != 0) { + _this->_impl_.id_ = from._impl_.id_; + } + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcOpenResponse_Method::CopyFrom(const RpcOpenResponse_Method& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.Method) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.Method) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcOpenResponse_Method::InternalSwap(RpcOpenResponse_Method* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcOpenResponse_Method::InternalSwap(RpcOpenResponse_Method* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -15765,28 +19416,34 @@ ::google::protobuf::Metadata RpcOpenResponse_Method::GetMetadata() const { class RpcOpenResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_._has_bits_); }; -RpcOpenResponse::RpcOpenResponse(::google::protobuf::Arena* arena) +RpcOpenResponse::RpcOpenResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcOpenResponse& from_msg) - : methods_{visibility, arena, from.methods_}, - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RpcOpenResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcOpenResponse& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + methods_{visibility, arena, from.methods_} {} RpcOpenResponse::RpcOpenResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcOpenResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -15795,9 +19452,9 @@ RpcOpenResponse::RpcOpenResponse( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, client_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, client_id_), offsetof(Impl_, session_id_) - offsetof(Impl_, client_id_) + @@ -15805,15 +19462,15 @@ RpcOpenResponse::RpcOpenResponse( // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse) } -inline PROTOBUF_NDEBUG_INLINE RpcOpenResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : methods_{visibility, arena}, - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RpcOpenResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + methods_{visibility, arena} {} -inline void RpcOpenResponse::SharedCtor(::_pb::Arena* arena) { +inline void RpcOpenResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, client_id_), 0, offsetof(Impl_, session_id_) - @@ -15826,13 +19483,17 @@ RpcOpenResponse::~RpcOpenResponse() { } inline void RpcOpenResponse::SharedDtor(MessageLite& self) { RpcOpenResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* RpcOpenResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcOpenResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcOpenResponse(arena); } constexpr auto RpcOpenResponse::InternalNewImpl_() { @@ -15851,37 +19512,44 @@ constexpr auto RpcOpenResponse::InternalNewImpl_() { alignof(RpcOpenResponse)); } } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcOpenResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse::ByteSizeLong, - &RpcOpenResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_._cached_size_), - false, - }, - &RpcOpenResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcOpenResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcOpenResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcOpenResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcOpenResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcOpenResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse::ByteSizeLong, + &RpcOpenResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_._cached_size_), + false, + }, + &RpcOpenResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcOpenResponse_class_data_ = + RpcOpenResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcOpenResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_class_data_.tc_table); + return RpcOpenResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> RpcOpenResponse::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +RpcOpenResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -15890,7 +19558,7 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> RpcOpenResponse::_table_ = { 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + RpcOpenResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -15899,32 +19567,33 @@ const ::_pbi::TcParseTable<2, 3, 1, 0, 2> RpcOpenResponse::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // int32 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse, _impl_.session_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse, _impl_.session_id_), 2>(), + {8, 2, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_)}}, // repeated .subspace.RpcOpenResponse.Method methods = 2; {::_pbi::TcParser::FastMtR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.methods_)}}, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.methods_)}}, // uint64 client_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcOpenResponse, _impl_.client_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.client_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcOpenResponse, _impl_.client_id_), 1>(), + {24, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.client_id_)}}, }}, {{ 65535, 65535 }}, {{ // int32 session_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // repeated .subspace.RpcOpenResponse.Method methods = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.methods_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.methods_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, // uint64 client_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.client_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_Method>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.client_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_Method>()}, + }}, + {{ }}, }; - PROTOBUF_NOINLINE void RpcOpenResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -15932,132 +19601,170 @@ PROTOBUF_NOINLINE void RpcOpenResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.methods_.Clear(); - ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.session_id_) - - reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.session_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _impl_.methods_.Clear(); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.session_id_) - + reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.session_id_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcOpenResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcOpenResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcOpenResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcOpenResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 session_id = 1; - if (this_._internal_session_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this_._internal_session_id(), target); - } - - // repeated .subspace.RpcOpenResponse.Method methods = 2; - for (unsigned i = 0, n = static_cast( - this_._internal_methods_size()); - i < n; i++) { - const auto& repfield = this_._internal_methods().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - - // uint64 client_id = 3; - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this_._internal_client_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse) - return target; - } +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcOpenResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcOpenResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcOpenResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // int32 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_session_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_session_id(), target); + } + } + + // repeated .subspace.RpcOpenResponse.Method methods = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + for (unsigned i = 0, n = static_cast( + this_._internal_methods_size()); + i < n; i++) { + const auto& repfield = this_._internal_methods().Get(i); + target = + ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, repfield, repfield.GetCachedSize(), + target, stream); + } + } + + // uint64 client_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_client_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_client_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcOpenResponse::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcOpenResponse::ByteSizeLong() const { - const RpcOpenResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // repeated .subspace.RpcOpenResponse.Method methods = 2; - { - total_size += 1UL * this_._internal_methods_size(); - for (const auto& msg : this_._internal_methods()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - } - { - // uint64 client_id = 3; - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - // int32 session_id = 1; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RpcOpenResponse::ByteSizeLong(const MessageLite& base) { + const RpcOpenResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcOpenResponse::ByteSizeLong() const { + const RpcOpenResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // repeated .subspace.RpcOpenResponse.Method methods = 2; + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + total_size += 1UL * this_._internal_methods_size(); + for (const auto& msg : this_._internal_methods()) { + total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); + } + } + // uint64 client_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_client_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_client_id()); + } + } + // int32 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_session_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcOpenResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcOpenResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_methods()->MergeFrom( - from._internal_methods()); - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_methods()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_methods()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_client_id() != 0) { + _this->_impl_.client_id_ = from._impl_.client_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcOpenResponse::CopyFrom(const RpcOpenResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcOpenResponse::InternalSwap(RpcOpenResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcOpenResponse::InternalSwap(RpcOpenResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.methods_.InternalSwap(&other->_impl_.methods_); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_) @@ -16074,11 +19781,15 @@ ::google::protobuf::Metadata RpcOpenResponse::GetMetadata() const { class RpcCloseRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_._has_bits_); }; -RpcCloseRequest::RpcCloseRequest(::google::protobuf::Arena* arena) +RpcCloseRequest::RpcCloseRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcCloseRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -16086,16 +19797,22 @@ RpcCloseRequest::RpcCloseRequest(::google::protobuf::Arena* arena) // @@protoc_insertion_point(arena_constructor:subspace.RpcCloseRequest) } RpcCloseRequest::RpcCloseRequest( - ::google::protobuf::Arena* arena, const RpcCloseRequest& from) - : RpcCloseRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCloseRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, RpcCloseRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE RpcCloseRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE RpcCloseRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void RpcCloseRequest::SharedCtor(::_pb::Arena* arena) { +inline void RpcCloseRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.session_id_ = {}; } @@ -16105,50 +19822,61 @@ RpcCloseRequest::~RpcCloseRequest() { } inline void RpcCloseRequest::SharedDtor(MessageLite& self) { RpcCloseRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* RpcCloseRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcCloseRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcCloseRequest(arena); } constexpr auto RpcCloseRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcCloseRequest), alignof(RpcCloseRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcCloseRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcCloseRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcCloseRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcCloseRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcCloseRequest::ByteSizeLong, - &RpcCloseRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_._cached_size_), - false, - }, - &RpcCloseRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcCloseRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcCloseRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcCloseRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcCloseRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcCloseRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcCloseRequest::ByteSizeLong, + &RpcCloseRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_._cached_size_), + false, + }, + &RpcCloseRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcCloseRequest_class_data_ = + RpcCloseRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcCloseRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcCloseRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcCloseRequest_class_data_.tc_table); + return RpcCloseRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RpcCloseRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +RpcCloseRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -16157,7 +19885,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RpcCloseRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RpcCloseRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -16165,20 +19893,19 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RpcCloseRequest::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCloseRequest, _impl_.session_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCloseRequest, _impl_.session_id_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_.session_id_)}}, }}, {{ 65535, 65535 }}, {{ // int32 session_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void RpcCloseRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcCloseRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -16187,91 +19914,112 @@ PROTOBUF_NOINLINE void RpcCloseRequest::Clear() { (void) cached_has_bits; _impl_.session_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcCloseRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcCloseRequest& this_ = static_cast(base); +::uint8_t* PROTOBUF_NONNULL RpcCloseRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcCloseRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcCloseRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcCloseRequest& this_ = *this; +::uint8_t* PROTOBUF_NONNULL RpcCloseRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcCloseRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcCloseRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 session_id = 1; - if (this_._internal_session_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this_._internal_session_id(), target); - } + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcCloseRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // int32 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_session_id(), target); + } + } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcCloseRequest) - return target; - } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcCloseRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcCloseRequest::ByteSizeLong(const MessageLite& base) { - const RpcCloseRequest& this_ = static_cast(base); +::size_t RpcCloseRequest::ByteSizeLong(const MessageLite& base) { + const RpcCloseRequest& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcCloseRequest::ByteSizeLong() const { - const RpcCloseRequest& this_ = *this; +::size_t RpcCloseRequest::ByteSizeLong() const { + const RpcCloseRequest& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcCloseRequest) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcCloseRequest) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // int32 session_id = 1; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // int32 session_id = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_session_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcCloseRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcCloseRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcCloseRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcCloseRequest::CopyFrom(const RpcCloseRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcCloseRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcCloseRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcCloseRequest::InternalSwap(RpcCloseRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcCloseRequest::InternalSwap(RpcCloseRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.session_id_, other->_impl_.session_id_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.session_id_, other->_impl_.session_id_); } ::google::protobuf::Metadata RpcCloseRequest::GetMetadata() const { @@ -16283,19 +20031,19 @@ class RpcCloseResponse::_Internal { public: }; -RpcCloseResponse::RpcCloseResponse(::google::protobuf::Arena* arena) +RpcCloseResponse::RpcCloseResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcCloseResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:subspace.RpcCloseResponse) } RpcCloseResponse::RpcCloseResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCloseResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcCloseResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -16307,43 +20055,51 @@ RpcCloseResponse::RpcCloseResponse( // @@protoc_insertion_point(copy_constructor:subspace.RpcCloseResponse) } -inline void* RpcCloseResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcCloseResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcCloseResponse(arena); } constexpr auto RpcCloseResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcCloseResponse), alignof(RpcCloseResponse)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcCloseResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcCloseResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcCloseResponse::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcCloseResponse::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &RpcCloseResponse::ByteSizeLong, - &RpcCloseResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcCloseResponse, _impl_._cached_size_), - false, - }, - &RpcCloseResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcCloseResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcCloseResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcCloseResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcCloseResponse::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcCloseResponse::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &RpcCloseResponse::ByteSizeLong, + &RpcCloseResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcCloseResponse, _impl_._cached_size_), + false, + }, + &RpcCloseResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcCloseResponse_class_data_ = + RpcCloseResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcCloseResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcCloseResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcCloseResponse_class_data_.tc_table); + return RpcCloseResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcCloseResponse::_table_ = { +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +RpcCloseResponse::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -16354,7 +20110,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcCloseResponse::_table_ = { 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RpcCloseResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -16364,8 +20120,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcCloseResponse::_table_ = { {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 - }}, - // no field_entries, or aux_entries + }}, // no field_entries, or aux_entries {{ }}, }; @@ -16376,7 +20131,6 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> RpcCloseResponse::_table_ = { - ::google::protobuf::Metadata RpcCloseResponse::GetMetadata() const { return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } @@ -16384,11 +20138,15 @@ ::google::protobuf::Metadata RpcCloseResponse::GetMetadata() const { class RpcServerRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_._has_bits_); static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_._oneof_case_); }; -void RpcServerRequest::set_allocated_open(::subspace::RpcOpenRequest* open) { +void RpcServerRequest::set_allocated_open(::subspace::RpcOpenRequest* PROTOBUF_NULLABLE open) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (open) { @@ -16401,7 +20159,7 @@ void RpcServerRequest::set_allocated_open(::subspace::RpcOpenRequest* open) { } // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerRequest.open) } -void RpcServerRequest::set_allocated_close(::subspace::RpcCloseRequest* close) { +void RpcServerRequest::set_allocated_close(::subspace::RpcCloseRequest* PROTOBUF_NULLABLE close) { ::google::protobuf::Arena* message_arena = GetArena(); clear_request(); if (close) { @@ -16414,27 +20172,29 @@ void RpcServerRequest::set_allocated_close(::subspace::RpcCloseRequest* close) { } // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerRequest.close) } -RpcServerRequest::RpcServerRequest(::google::protobuf::Arena* arena) +RpcServerRequest::RpcServerRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcServerRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcServerRequest) } -inline PROTOBUF_NDEBUG_INLINE RpcServerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcServerRequest& from_msg) - : request_{}, +PROTOBUF_NDEBUG_INLINE RpcServerRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcServerRequest& from_msg) + : _has_bits_{from._has_bits_}, _cached_size_{0}, + request_{}, _oneof_case_{from._oneof_case_[0]} {} RpcServerRequest::RpcServerRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcServerRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcServerRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -16443,9 +20203,9 @@ RpcServerRequest::RpcServerRequest( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, client_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, client_id_), offsetof(Impl_, request_id_) - offsetof(Impl_, client_id_) + @@ -16454,25 +20214,25 @@ RpcServerRequest::RpcServerRequest( case REQUEST_NOT_SET: break; case kOpen: - _impl_.request_.open_ = ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenRequest>(arena, *from._impl_.request_.open_); + _impl_.request_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.open_); break; case kClose: - _impl_.request_.close_ = ::google::protobuf::Message::CopyConstruct<::subspace::RpcCloseRequest>(arena, *from._impl_.request_.close_); + _impl_.request_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.close_); break; } // @@protoc_insertion_point(copy_constructor:subspace.RpcServerRequest) } -inline PROTOBUF_NDEBUG_INLINE RpcServerRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : request_{}, - _cached_size_{0}, +PROTOBUF_NDEBUG_INLINE RpcServerRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + request_{}, _oneof_case_{} {} -inline void RpcServerRequest::SharedCtor(::_pb::Arena* arena) { +inline void RpcServerRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, client_id_), 0, offsetof(Impl_, request_id_) - @@ -16485,6 +20245,9 @@ RpcServerRequest::~RpcServerRequest() { } inline void RpcServerRequest::SharedDtor(MessageLite& self) { RpcServerRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); if (this_.has_request()) { @@ -16521,45 +20284,53 @@ void RpcServerRequest::clear_request() { } -inline void* RpcServerRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcServerRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcServerRequest(arena); } constexpr auto RpcServerRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcServerRequest), alignof(RpcServerRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcServerRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcServerRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcServerRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcServerRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcServerRequest::ByteSizeLong, - &RpcServerRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_._cached_size_), - false, - }, - &RpcServerRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcServerRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcServerRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcServerRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcServerRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcServerRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcServerRequest::ByteSizeLong, + &RpcServerRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_._cached_size_), + false, + }, + &RpcServerRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcServerRequest_class_data_ = + RpcServerRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcServerRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcServerRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcServerRequest_class_data_.tc_table); + return RpcServerRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 4, 2, 0, 2> RpcServerRequest::_table_ = { +const ::_pbi::TcParseTable<1, 4, 2, 0, 2> +RpcServerRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_._has_bits_), 0, // no _extensions_ 4, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -16568,7 +20339,7 @@ const ::_pbi::TcParseTable<1, 4, 2, 0, 2> RpcServerRequest::_table_ = { 4, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + RpcServerRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -16576,33 +20347,32 @@ const ::_pbi::TcParseTable<1, 4, 2, 0, 2> RpcServerRequest::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 request_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcServerRequest, _impl_.request_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcServerRequest, _impl_.request_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_)}}, // uint64 client_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcServerRequest, _impl_.client_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.client_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcServerRequest, _impl_.client_id_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.client_id_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 client_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.client_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.client_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // int32 request_id = 2; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // .subspace.RpcOpenRequest open = 3; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_.open_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_.open_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.RpcCloseRequest close = 4; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_.close_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RpcCloseRequest>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_.close_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::RpcOpenRequest>()}, + {::_pbi::TcParser::GetTable<::subspace::RpcCloseRequest>()}, + }}, + {{ }}, }; - PROTOBUF_NOINLINE void RpcServerRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcServerRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -16610,131 +20380,162 @@ PROTOBUF_NOINLINE void RpcServerRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.request_id_) - - reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.request_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.request_id_) - + reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.request_id_)); + } clear_request(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcServerRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcServerRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcServerRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcServerRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcServerRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 client_id = 1; - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_client_id(), target); - } - - // int32 request_id = 2; - if (this_._internal_request_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_request_id(), target); - } - - switch (this_.request_case()) { - case kOpen: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.request_.open_, this_._impl_.request_.open_->GetCachedSize(), target, - stream); - break; - } - case kClose: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.request_.close_, this_._impl_.request_.close_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcServerRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL RpcServerRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcServerRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcServerRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcServerRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcServerRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // uint64 client_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_client_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_client_id(), target); + } + } + + // int32 request_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_request_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_request_id(), target); + } + } + + switch (this_.request_case()) { + case kOpen: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.request_.open_, this_._impl_.request_.open_->GetCachedSize(), target, + stream); + break; + } + case kClose: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.request_.close_, this_._impl_.request_.close_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcServerRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcServerRequest::ByteSizeLong(const MessageLite& base) { - const RpcServerRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcServerRequest::ByteSizeLong() const { - const RpcServerRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcServerRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // uint64 client_id = 1; - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - // int32 request_id = 2; - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - switch (this_.request_case()) { - // .subspace.RpcOpenRequest open = 3; - case kOpen: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.open_); - break; - } - // .subspace.RpcCloseRequest close = 4; - case kClose: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.close_); - break; - } - case REQUEST_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RpcServerRequest::ByteSizeLong(const MessageLite& base) { + const RpcServerRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcServerRequest::ByteSizeLong() const { + const RpcServerRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcServerRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // uint64 client_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_client_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_client_id()); + } + } + // int32 request_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_request_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_request_id()); + } + } + } + switch (this_.request_case()) { + // .subspace.RpcOpenRequest open = 3; + case kOpen: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.open_); + break; + } + // .subspace.RpcCloseRequest close = 4; + case kClose: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.close_); + break; + } + case REQUEST_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcServerRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcServerRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcServerRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_client_id() != 0) { + _this->_impl_.client_id_ = from._impl_.client_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_request_id() != 0) { + _this->_impl_.request_id_ = from._impl_.request_id_; + } + } } - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { @@ -16747,19 +20548,17 @@ void RpcServerRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const switch (oneof_from_case) { case kOpen: { if (oneof_needs_init) { - _this->_impl_.request_.open_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenRequest>(arena, *from._impl_.request_.open_); + _this->_impl_.request_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.open_); } else { - _this->_impl_.request_.open_->MergeFrom(from._internal_open()); + _this->_impl_.request_.open_->MergeFrom(*from._impl_.request_.open_); } break; } case kClose: { if (oneof_needs_init) { - _this->_impl_.request_.close_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RpcCloseRequest>(arena, *from._impl_.request_.close_); + _this->_impl_.request_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.close_); } else { - _this->_impl_.request_.close_->MergeFrom(from._internal_close()); + _this->_impl_.request_.close_->MergeFrom(*from._impl_.request_.close_); } break; } @@ -16767,20 +20566,22 @@ void RpcServerRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcServerRequest::CopyFrom(const RpcServerRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcServerRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcServerRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcServerRequest::InternalSwap(RpcServerRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcServerRequest::InternalSwap(RpcServerRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_) + sizeof(RpcServerRequest::_impl_.request_id_) @@ -16798,11 +20599,15 @@ ::google::protobuf::Metadata RpcServerRequest::GetMetadata() const { class RpcServerResponse::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_._has_bits_); static constexpr ::int32_t kOneofCaseOffset = PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_._oneof_case_); }; -void RpcServerResponse::set_allocated_open(::subspace::RpcOpenResponse* open) { +void RpcServerResponse::set_allocated_open(::subspace::RpcOpenResponse* PROTOBUF_NULLABLE open) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (open) { @@ -16815,7 +20620,7 @@ void RpcServerResponse::set_allocated_open(::subspace::RpcOpenResponse* open) { } // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerResponse.open) } -void RpcServerResponse::set_allocated_close(::subspace::RpcCloseResponse* close) { +void RpcServerResponse::set_allocated_close(::subspace::RpcCloseResponse* PROTOBUF_NULLABLE close) { ::google::protobuf::Arena* message_arena = GetArena(); clear_response(); if (close) { @@ -16828,28 +20633,30 @@ void RpcServerResponse::set_allocated_close(::subspace::RpcCloseResponse* close) } // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerResponse.close) } -RpcServerResponse::RpcServerResponse(::google::protobuf::Arena* arena) +RpcServerResponse::RpcServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcServerResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcServerResponse) } -inline PROTOBUF_NDEBUG_INLINE RpcServerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcServerResponse& from_msg) - : error_(arena, from.error_), - response_{}, +PROTOBUF_NDEBUG_INLINE RpcServerResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcServerResponse& from_msg) + : _has_bits_{from._has_bits_}, _cached_size_{0}, + error_(arena, from.error_), + response_{}, _oneof_case_{from._oneof_case_[0]} {} RpcServerResponse::RpcServerResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcServerResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcServerResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -16858,9 +20665,9 @@ RpcServerResponse::RpcServerResponse( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, client_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, client_id_), offsetof(Impl_, request_id_) - offsetof(Impl_, client_id_) + @@ -16869,26 +20676,26 @@ RpcServerResponse::RpcServerResponse( case RESPONSE_NOT_SET: break; case kOpen: - _impl_.response_.open_ = ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenResponse>(arena, *from._impl_.response_.open_); + _impl_.response_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.open_); break; case kClose: - _impl_.response_.close_ = ::google::protobuf::Message::CopyConstruct<::subspace::RpcCloseResponse>(arena, *from._impl_.response_.close_); + _impl_.response_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.close_); break; } // @@protoc_insertion_point(copy_constructor:subspace.RpcServerResponse) } -inline PROTOBUF_NDEBUG_INLINE RpcServerResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : error_(arena), +PROTOBUF_NDEBUG_INLINE RpcServerResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + error_(arena), response_{}, - _cached_size_{0}, _oneof_case_{} {} -inline void RpcServerResponse::SharedCtor(::_pb::Arena* arena) { +inline void RpcServerResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, client_id_), 0, offsetof(Impl_, request_id_) - @@ -16901,6 +20708,9 @@ RpcServerResponse::~RpcServerResponse() { } inline void RpcServerResponse::SharedDtor(MessageLite& self) { RpcServerResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); @@ -16938,45 +20748,53 @@ void RpcServerResponse::clear_response() { } -inline void* RpcServerResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcServerResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcServerResponse(arena); } constexpr auto RpcServerResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcServerResponse), alignof(RpcServerResponse)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcServerResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcServerResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcServerResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcServerResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcServerResponse::ByteSizeLong, - &RpcServerResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_._cached_size_), - false, - }, - &RpcServerResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcServerResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcServerResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcServerResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcServerResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcServerResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcServerResponse::ByteSizeLong, + &RpcServerResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_._cached_size_), + false, + }, + &RpcServerResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcServerResponse_class_data_ = + RpcServerResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcServerResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcServerResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcServerResponse_class_data_.tc_table); + return RpcServerResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 40, 2> RpcServerResponse::_table_ = { +const ::_pbi::TcParseTable<3, 5, 2, 40, 2> +RpcServerResponse::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_._has_bits_), 0, // no _extensions_ 5, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -16985,7 +20803,7 @@ const ::_pbi::TcParseTable<3, 5, 2, 40, 2> RpcServerResponse::_table_ = { 5, // num_field_entries 2, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + RpcServerResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -16994,46 +20812,45 @@ const ::_pbi::TcParseTable<3, 5, 2, 40, 2> RpcServerResponse::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint64 client_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcServerResponse, _impl_.client_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.client_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcServerResponse, _impl_.client_id_), 1>(), + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.client_id_)}}, // int32 request_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcServerResponse, _impl_.request_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcServerResponse, _impl_.request_id_), 2>(), + {16, 2, 0, + PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, // string error = 5; {::_pbi::TcParser::FastUS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.error_)}}, + {42, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.error_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // uint64 client_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.client_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.client_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // int32 request_id = 2; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // .subspace.RpcOpenResponse open = 3; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.response_.open_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.response_.open_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // .subspace.RpcCloseResponse close = 4; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.response_.close_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.response_.close_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, // string error = 5; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.error_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::RpcCloseResponse>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse>()}, + {::_pbi::TcParser::GetTable<::subspace::RpcCloseResponse>()}, + }}, + {{ "\32\0\0\0\0\5\0\0" "subspace.RpcServerResponse" "error" }}, }; - PROTOBUF_NOINLINE void RpcServerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcServerResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -17041,148 +20858,191 @@ PROTOBUF_NOINLINE void RpcServerResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.error_.ClearToEmpty(); - ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.request_id_) - - reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.request_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.request_id_) - + reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.request_id_)); + } clear_response(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcServerResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcServerResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcServerResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcServerResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcServerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 client_id = 1; - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_client_id(), target); - } - - // int32 request_id = 2; - if (this_._internal_request_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_request_id(), target); - } - - switch (this_.response_case()) { - case kOpen: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.response_.open_, this_._impl_.response_.open_->GetCachedSize(), target, - stream); - break; - } - case kClose: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.response_.close_, this_._impl_.response_.close_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - // string error = 5; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcServerResponse.error"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcServerResponse) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcServerResponse::ByteSizeLong(const MessageLite& base) { - const RpcServerResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcServerResponse::ByteSizeLong() const { - const RpcServerResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcServerResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string error = 5; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - // uint64 client_id = 1; - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - // int32 request_id = 2; - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - switch (this_.response_case()) { - // .subspace.RpcOpenResponse open = 3; - case kOpen: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.open_); - break; - } - // .subspace.RpcCloseResponse close = 4; - case kClose: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.close_); - break; - } - case RESPONSE_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void RpcServerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL RpcServerResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcServerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcServerResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcServerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcServerResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // uint64 client_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_client_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_client_id(), target); + } + } + + // int32 request_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_request_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_request_id(), target); + } + } + + switch (this_.response_case()) { + case kOpen: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.response_.open_, this_._impl_.response_.open_->GetCachedSize(), target, + stream); + break; + } + case kClose: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.response_.close_, this_._impl_.response_.close_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + // string error = 5; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcServerResponse.error"); + target = stream->WriteStringMaybeAliased(5, _s, target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcServerResponse) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RpcServerResponse::ByteSizeLong(const MessageLite& base) { + const RpcServerResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcServerResponse::ByteSizeLong() const { + const RpcServerResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcServerResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // string error = 5; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + // uint64 client_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_client_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_client_id()); + } + } + // int32 request_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_request_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_request_id()); + } + } + } + switch (this_.response_case()) { + // .subspace.RpcOpenResponse open = 3; + case kOpen: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.open_); + break; + } + // .subspace.RpcCloseResponse close = 4; + case kClose: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.close_); + break; + } + case RESPONSE_NOT_SET: { + break; + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void RpcServerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcServerResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_client_id() != 0) { + _this->_impl_.client_id_ = from._impl_.client_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_request_id() != 0) { + _this->_impl_.request_id_ = from._impl_.request_id_; + } + } } - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + _this->_impl_._has_bits_[0] |= cached_has_bits; + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { @@ -17195,19 +21055,17 @@ void RpcServerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const switch (oneof_from_case) { case kOpen: { if (oneof_needs_init) { - _this->_impl_.response_.open_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RpcOpenResponse>(arena, *from._impl_.response_.open_); + _this->_impl_.response_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.open_); } else { - _this->_impl_.response_.open_->MergeFrom(from._internal_open()); + _this->_impl_.response_.open_->MergeFrom(*from._impl_.response_.open_); } break; } case kClose: { if (oneof_needs_init) { - _this->_impl_.response_.close_ = - ::google::protobuf::Message::CopyConstruct<::subspace::RpcCloseResponse>(arena, *from._impl_.response_.close_); + _this->_impl_.response_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.close_); } else { - _this->_impl_.response_.close_->MergeFrom(from._internal_close()); + _this->_impl_.response_.close_->MergeFrom(*from._impl_.response_.close_); } break; } @@ -17215,22 +21073,24 @@ void RpcServerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcServerResponse::CopyFrom(const RpcServerResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcServerResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcServerResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcServerResponse::InternalSwap(RpcServerResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcServerResponse::InternalSwap(RpcServerResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_) @@ -17250,7 +21110,7 @@ ::google::protobuf::Metadata RpcServerResponse::GetMetadata() const { class RpcRequest::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_._has_bits_); }; @@ -17258,28 +21118,30 @@ class RpcRequest::_Internal { void RpcRequest::clear_argument() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.argument_ != nullptr) _impl_.argument_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -RpcRequest::RpcRequest(::google::protobuf::Arena* arena) +RpcRequest::RpcRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcRequest) } -inline PROTOBUF_NDEBUG_INLINE RpcRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcRequest& from_msg) +PROTOBUF_NDEBUG_INLINE RpcRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcRequest& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} RpcRequest::RpcRequest( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcRequest& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -17289,12 +21151,12 @@ RpcRequest::RpcRequest( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.argument_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>( - arena, *from._impl_.argument_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + _impl_.argument_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.argument_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, method_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, method_), offsetof(Impl_, request_id_) - offsetof(Impl_, method_) + @@ -17302,14 +21164,14 @@ RpcRequest::RpcRequest( // @@protoc_insertion_point(copy_constructor:subspace.RpcRequest) } -inline PROTOBUF_NDEBUG_INLINE RpcRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE RpcRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void RpcRequest::SharedCtor(::_pb::Arena* arena) { +inline void RpcRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, argument_), 0, offsetof(Impl_, request_id_) - @@ -17322,49 +21184,60 @@ RpcRequest::~RpcRequest() { } inline void RpcRequest::SharedDtor(MessageLite& self) { RpcRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.argument_; this_._impl_.~Impl_(); } -inline void* RpcRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcRequest(arena); } constexpr auto RpcRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcRequest), alignof(RpcRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcRequest::ByteSizeLong, - &RpcRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_._cached_size_), - false, - }, - &RpcRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcRequest::ByteSizeLong, + &RpcRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_._cached_size_), + false, + }, + &RpcRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcRequest_class_data_ = + RpcRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcRequest_class_data_.tc_table); + return RpcRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 0, 2> RpcRequest::_table_ = { +const ::_pbi::TcParseTable<3, 5, 1, 0, 2> +RpcRequest::_table_ = { { PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_._has_bits_), 0, // no _extensions_ @@ -17375,7 +21248,7 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> RpcRequest::_table_ = { 5, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + RpcRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -17384,46 +21257,47 @@ const ::_pbi::TcParseTable<3, 5, 1, 0, 2> RpcRequest::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // int32 method = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.method_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.method_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.method_), 1>(), + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.method_)}}, // .google.protobuf.Any argument = 2; {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.argument_)}}, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.argument_)}}, // int32 session_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.session_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.session_id_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.session_id_)}}, // int32 request_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.request_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.request_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.request_id_), 4>(), + {32, 4, 0, + PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.request_id_)}}, // uint64 client_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcRequest, _impl_.client_id_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.client_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcRequest, _impl_.client_id_), 3>(), + {40, 3, 0, + PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.client_id_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // int32 method = 1; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.method_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.method_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // .google.protobuf.Any argument = 2; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.argument_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.argument_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // int32 session_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.session_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 request_id = 4; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.request_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.request_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // uint64 client_id = 5; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.client_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.client_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, + }}, + {{ }}, }; - PROTOBUF_NOINLINE void RpcRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -17432,171 +21306,205 @@ PROTOBUF_NOINLINE void RpcRequest::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(_impl_.argument_ != nullptr); _impl_.argument_->Clear(); } - ::memset(&_impl_.method_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.request_id_) - - reinterpret_cast(&_impl_.method_)) + sizeof(_impl_.request_id_)); + if (BatchCheckHasBit(cached_has_bits, 0x0000001eU)) { + ::memset(&_impl_.method_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.request_id_) - + reinterpret_cast(&_impl_.method_)) + sizeof(_impl_.request_id_)); + } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 method = 1; - if (this_._internal_method() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this_._internal_method(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // .google.protobuf.Any argument = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.argument_, this_._impl_.argument_->GetCachedSize(), target, - stream); - } - - // int32 session_id = 3; - if (this_._internal_session_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_session_id(), target); - } - - // int32 request_id = 4; - if (this_._internal_request_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this_._internal_request_id(), target); - } - - // uint64 client_id = 5; - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this_._internal_client_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcRequest) - return target; - } +::uint8_t* PROTOBUF_NONNULL RpcRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // int32 method = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_method() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_method(), target); + } + } + + // .google.protobuf.Any argument = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.argument_, this_._impl_.argument_->GetCachedSize(), target, + stream); + } + + // int32 session_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_session_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_session_id(), target); + } + } + + // int32 request_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_request_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_request_id(), target); + } + } + + // uint64 client_id = 5; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_client_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_client_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcRequest) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcRequest::ByteSizeLong(const MessageLite& base) { - const RpcRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcRequest::ByteSizeLong() const { - const RpcRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // .google.protobuf.Any argument = 2; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.argument_); - } - } - { - // int32 method = 1; - if (this_._internal_method() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_method()); - } - // int32 session_id = 3; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - // uint64 client_id = 5; - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - // int32 request_id = 4; - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RpcRequest::ByteSizeLong(const MessageLite& base) { + const RpcRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcRequest::ByteSizeLong() const { + const RpcRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + // .google.protobuf.Any argument = 2; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.argument_); + } + // int32 method = 1; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_method() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_method()); + } + } + // int32 session_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_session_id()); + } + } + // uint64 client_id = 5; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_client_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_client_id()); + } + } + // int32 request_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_request_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_request_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.argument_ != nullptr); - if (_this->_impl_.argument_ == nullptr) { - _this->_impl_.argument_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.argument_); - } else { - _this->_impl_.argument_->MergeFrom(*from._impl_.argument_); + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.argument_ != nullptr); + if (_this->_impl_.argument_ == nullptr) { + _this->_impl_.argument_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.argument_); + } else { + _this->_impl_.argument_->MergeFrom(*from._impl_.argument_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_method() != 0) { + _this->_impl_.method_ = from._impl_.method_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_client_id() != 0) { + _this->_impl_.client_id_ = from._impl_.client_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_request_id() != 0) { + _this->_impl_.request_id_ = from._impl_.request_id_; + } } - } - if (from._internal_method() != 0) { - _this->_impl_.method_ = from._impl_.method_; - } - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcRequest::CopyFrom(const RpcRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcRequest::InternalSwap(RpcRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcRequest::InternalSwap(RpcRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< @@ -17615,7 +21523,7 @@ ::google::protobuf::Metadata RpcRequest::GetMetadata() const { class RpcResponse::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_._has_bits_); }; @@ -17623,29 +21531,31 @@ class RpcResponse::_Internal { void RpcResponse::clear_result() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.result_ != nullptr) _impl_.result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -RpcResponse::RpcResponse(::google::protobuf::Arena* arena) +RpcResponse::RpcResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RpcResponse) } -inline PROTOBUF_NDEBUG_INLINE RpcResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RpcResponse& from_msg) +PROTOBUF_NDEBUG_INLINE RpcResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RpcResponse& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, error_(arena, from.error_) {} RpcResponse::RpcResponse( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcResponse& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcResponse_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -17655,12 +21565,12 @@ RpcResponse::RpcResponse( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.result_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>( - arena, *from._impl_.result_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + _impl_.result_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.result_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, session_id_), offsetof(Impl_, is_cancelled_) - offsetof(Impl_, session_id_) + @@ -17668,15 +21578,15 @@ RpcResponse::RpcResponse( // @@protoc_insertion_point(copy_constructor:subspace.RpcResponse) } -inline PROTOBUF_NDEBUG_INLINE RpcResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE RpcResponse::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, error_(arena) {} -inline void RpcResponse::SharedCtor(::_pb::Arena* arena) { +inline void RpcResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, result_), 0, offsetof(Impl_, is_cancelled_) - @@ -17689,6 +21599,9 @@ RpcResponse::~RpcResponse() { } inline void RpcResponse::SharedDtor(MessageLite& self) { RpcResponse& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.error_.Destroy(); @@ -17696,43 +21609,51 @@ inline void RpcResponse::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* RpcResponse::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcResponse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcResponse(arena); } constexpr auto RpcResponse::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcResponse), alignof(RpcResponse)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcResponse::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcResponse::ByteSizeLong, - &RpcResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_._cached_size_), - false, - }, - &RpcResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcResponse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcResponse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcResponse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcResponse::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcResponse::ByteSizeLong, + &RpcResponse::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_._cached_size_), + false, + }, + &RpcResponse::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcResponse_class_data_ = + RpcResponse::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcResponse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcResponse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcResponse_class_data_.tc_table); + return RpcResponse_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 34, 2> RpcResponse::_table_ = { +const ::_pbi::TcParseTable<3, 7, 1, 34, 2> +RpcResponse::_table_ = { { PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_._has_bits_), 0, // no _extensions_ @@ -17743,7 +21664,7 @@ const ::_pbi::TcParseTable<3, 7, 1, 34, 2> RpcResponse::_table_ = { 7, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + RpcResponse_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -17753,58 +21674,59 @@ const ::_pbi::TcParseTable<3, 7, 1, 34, 2> RpcResponse::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string error = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.error_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.error_)}}, // .google.protobuf.Any result = 2; {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.result_)}}, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.result_)}}, // int32 session_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcResponse, _impl_.session_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcResponse, _impl_.session_id_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.session_id_)}}, // int32 request_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcResponse, _impl_.request_id_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.request_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcResponse, _impl_.request_id_), 3>(), + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.request_id_)}}, // uint64 client_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcResponse, _impl_.client_id_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.client_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcResponse, _impl_.client_id_), 4>(), + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.client_id_)}}, // bool is_last = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_last_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_last_)}}, // bool is_cancelled = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_cancelled_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_cancelled_)}}, }}, {{ 65535, 65535 }}, {{ // string error = 1; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.error_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // .google.protobuf.Any result = 2; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.result_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, // int32 session_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.session_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 request_id = 4; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.request_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.request_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // uint64 client_id = 5; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.client_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.client_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // bool is_last = 6; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_last_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_last_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_cancelled = 7; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_cancelled_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_cancelled_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, + }}, + {{ "\24\5\0\0\0\0\0\0" "subspace.RpcResponse" "error" }}, }; - PROTOBUF_NOINLINE void RpcResponse::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcResponse) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -17812,204 +21734,256 @@ PROTOBUF_NOINLINE void RpcResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.error_.ClearToEmpty(); cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.result_ != nullptr); - _impl_.result_->Clear(); + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.error_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(_impl_.result_ != nullptr); + _impl_.result_->Clear(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000007cU)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_cancelled_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.is_cancelled_)); } - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_cancelled_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.is_cancelled_)); _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcResponse::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string error = 1; - if (!this_._internal_error().empty()) { - const std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // .google.protobuf.Any result = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.result_, this_._impl_.result_->GetCachedSize(), target, - stream); - } - - // int32 session_id = 3; - if (this_._internal_session_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_session_id(), target); - } - - // int32 request_id = 4; - if (this_._internal_request_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this_._internal_request_id(), target); - } - - // uint64 client_id = 5; - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this_._internal_client_id(), target); - } - - // bool is_last = 6; - if (this_._internal_is_last() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_last(), target); - } - - // bool is_cancelled = 7; - if (this_._internal_is_cancelled() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this_._internal_is_cancelled(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcResponse) - return target; - } +::uint8_t* PROTOBUF_NONNULL RpcResponse::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcResponse::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcResponse) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + const ::std::string& _s = this_._internal_error(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcResponse.error"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // .google.protobuf.Any result = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.result_, this_._impl_.result_->GetCachedSize(), target, + stream); + } + + // int32 session_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_session_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_session_id(), target); + } + } + + // int32 request_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_request_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_request_id(), target); + } + } + + // uint64 client_id = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_client_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 5, this_._internal_client_id(), target); + } + } + + // bool is_last = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_last() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_is_last(), target); + } + } + + // bool is_cancelled = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_is_cancelled() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_is_cancelled(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcResponse) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcResponse::ByteSizeLong(const MessageLite& base) { - const RpcResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcResponse::ByteSizeLong() const { - const RpcResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string error = 1; - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - { - // .google.protobuf.Any result = 2; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.result_); - } - } - { - // int32 session_id = 3; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - // int32 request_id = 4; - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - // uint64 client_id = 5; - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - // bool is_last = 6; - if (this_._internal_is_last() != 0) { - total_size += 2; - } - // bool is_cancelled = 7; - if (this_._internal_is_cancelled() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t RpcResponse::ByteSizeLong(const MessageLite& base) { + const RpcResponse& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcResponse::ByteSizeLong() const { + const RpcResponse& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcResponse) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + // string error = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_error().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_error()); + } + } + // .google.protobuf.Any result = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.result_); + } + // int32 session_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_session_id()); + } + } + // int32 request_id = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_request_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_request_id()); + } + } + // uint64 client_id = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_client_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_client_id()); + } + } + // bool is_last = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_last() != 0) { + total_size += 2; + } + } + // bool is_cancelled = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_is_cancelled() != 0) { + total_size += 2; + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RpcResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RpcResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.result_ != nullptr); - if (_this->_impl_.result_ == nullptr) { - _this->_impl_.result_ = - ::google::protobuf::Message::CopyConstruct<::google::protobuf::Any>(arena, *from._impl_.result_); - } else { - _this->_impl_.result_->MergeFrom(*from._impl_.result_); + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_error().empty()) { + _this->_internal_set_error(from._internal_error()); + } else { + if (_this->_impl_.error_.IsDefault()) { + _this->_internal_set_error(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + ABSL_DCHECK(from._impl_.result_ != nullptr); + if (_this->_impl_.result_ == nullptr) { + _this->_impl_.result_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.result_); + } else { + _this->_impl_.result_->MergeFrom(*from._impl_.result_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_request_id() != 0) { + _this->_impl_.request_id_ = from._impl_.request_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_client_id() != 0) { + _this->_impl_.client_id_ = from._impl_.client_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_is_last() != 0) { + _this->_impl_.is_last_ = from._impl_.is_last_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_is_cancelled() != 0) { + _this->_impl_.is_cancelled_ = from._impl_.is_cancelled_; + } } - } - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; - } - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - if (from._internal_is_last() != 0) { - _this->_impl_.is_last_ = from._impl_.is_last_; - } - if (from._internal_is_cancelled() != 0) { - _this->_impl_.is_cancelled_ = from._impl_.is_cancelled_; } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcResponse::CopyFrom(const RpcResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcResponse) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcResponse::InternalSwap(RpcResponse* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcResponse::InternalSwap(RpcResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); @@ -18030,11 +22004,15 @@ ::google::protobuf::Metadata RpcResponse::GetMetadata() const { class RpcCancelRequest::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_._has_bits_); }; -RpcCancelRequest::RpcCancelRequest(::google::protobuf::Arena* arena) +RpcCancelRequest::RpcCancelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RpcCancelRequest_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -18042,18 +22020,24 @@ RpcCancelRequest::RpcCancelRequest(::google::protobuf::Arena* arena) // @@protoc_insertion_point(arena_constructor:subspace.RpcCancelRequest) } RpcCancelRequest::RpcCancelRequest( - ::google::protobuf::Arena* arena, const RpcCancelRequest& from) - : RpcCancelRequest(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCancelRequest& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, RpcCancelRequest_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE RpcCancelRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE RpcCancelRequest::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void RpcCancelRequest::SharedCtor(::_pb::Arena* arena) { +inline void RpcCancelRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, session_id_), 0, offsetof(Impl_, client_id_) - @@ -18066,50 +22050,61 @@ RpcCancelRequest::~RpcCancelRequest() { } inline void RpcCancelRequest::SharedDtor(MessageLite& self) { RpcCancelRequest& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* RpcCancelRequest::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RpcCancelRequest::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RpcCancelRequest(arena); } constexpr auto RpcCancelRequest::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcCancelRequest), alignof(RpcCancelRequest)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RpcCancelRequest::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RpcCancelRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcCancelRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcCancelRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcCancelRequest::ByteSizeLong, - &RpcCancelRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_._cached_size_), - false, - }, - &RpcCancelRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RpcCancelRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RpcCancelRequest::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RpcCancelRequest_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RpcCancelRequest::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RpcCancelRequest::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RpcCancelRequest::ByteSizeLong, + &RpcCancelRequest::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_._cached_size_), + false, + }, + &RpcCancelRequest::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RpcCancelRequest_class_data_ = + RpcCancelRequest::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RpcCancelRequest::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RpcCancelRequest_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RpcCancelRequest_class_data_.tc_table); + return RpcCancelRequest_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RpcCancelRequest::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 0, 2> +RpcCancelRequest::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -18118,7 +22113,7 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RpcCancelRequest::_table_ = { 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RpcCancelRequest_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -18127,32 +22122,31 @@ const ::_pbi::TcParseTable<2, 3, 0, 0, 2> RpcCancelRequest::_table_ = { }, {{ {::_pbi::TcParser::MiniParse, {}}, // int32 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCancelRequest, _impl_.session_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCancelRequest, _impl_.session_id_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.session_id_)}}, // int32 request_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCancelRequest, _impl_.request_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.request_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCancelRequest, _impl_.request_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.request_id_)}}, // uint64 client_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcCancelRequest, _impl_.client_id_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcCancelRequest, _impl_.client_id_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_)}}, }}, {{ 65535, 65535 }}, {{ // int32 session_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 request_id = 2; - {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.request_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.request_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // uint64 client_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void RpcCancelRequest::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RpcCancelRequest) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -18160,124 +22154,162 @@ PROTOBUF_NOINLINE void RpcCancelRequest::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.client_id_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.client_id_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.client_id_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.client_id_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RpcCancelRequest::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RpcCancelRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RpcCancelRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RpcCancelRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcCancelRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // int32 session_id = 1; - if (this_._internal_session_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<1>( - stream, this_._internal_session_id(), target); - } - - // int32 request_id = 2; - if (this_._internal_request_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_request_id(), target); - } - - // uint64 client_id = 3; - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this_._internal_client_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcCancelRequest) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RpcCancelRequest::ByteSizeLong(const MessageLite& base) { - const RpcCancelRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t RpcCancelRequest::ByteSizeLong() const { - const RpcCancelRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcCancelRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // int32 session_id = 1; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - // int32 request_id = 2; - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - // uint64 client_id = 3; - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void RpcCancelRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL RpcCancelRequest::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RpcCancelRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL RpcCancelRequest::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RpcCancelRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcCancelRequest) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // int32 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( + stream, this_._internal_session_id(), target); + } + } + + // int32 request_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_request_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_request_id(), target); + } + } + + // uint64 client_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_client_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 3, this_._internal_client_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcCancelRequest) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t RpcCancelRequest::ByteSizeLong(const MessageLite& base) { + const RpcCancelRequest& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t RpcCancelRequest::ByteSizeLong() const { + const RpcCancelRequest& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.RpcCancelRequest) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // int32 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_session_id()); + } + } + // int32 request_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_request_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_request_id()); + } + } + // uint64 client_id = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_client_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_client_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void RpcCancelRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcCancelRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; - } - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_request_id() != 0) { + _this->_impl_.request_id_ = from._impl_.request_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_client_id() != 0) { + _this->_impl_.client_id_ = from._impl_.client_id_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RpcCancelRequest::CopyFrom(const RpcCancelRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcCancelRequest) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcCancelRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void RpcCancelRequest::InternalSwap(RpcCancelRequest* PROTOBUF_RESTRICT other) { - using std::swap; +void RpcCancelRequest::InternalSwap(RpcCancelRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_) + sizeof(RpcCancelRequest::_impl_.client_id_) @@ -18293,28 +22325,34 @@ ::google::protobuf::Metadata RpcCancelRequest::GetMetadata() const { class RawMessage::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(RawMessage, _impl_._has_bits_); }; -RawMessage::RawMessage(::google::protobuf::Arena* arena) +RawMessage::RawMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RawMessage_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.RawMessage) } -inline PROTOBUF_NDEBUG_INLINE RawMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::RawMessage& from_msg) - : data_(arena, from.data_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RawMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::RawMessage& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + data_(arena, from.data_) {} RawMessage::RawMessage( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RawMessage& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, RawMessage_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -18326,13 +22364,13 @@ RawMessage::RawMessage( // @@protoc_insertion_point(copy_constructor:subspace.RawMessage) } -inline PROTOBUF_NDEBUG_INLINE RawMessage::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : data_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE RawMessage::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + data_(arena) {} -inline void RawMessage::SharedCtor(::_pb::Arena* arena) { +inline void RawMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } RawMessage::~RawMessage() { @@ -18341,51 +22379,62 @@ RawMessage::~RawMessage() { } inline void RawMessage::SharedDtor(MessageLite& self) { RawMessage& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.data_.Destroy(); this_._impl_.~Impl_(); } -inline void* RawMessage::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL RawMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) RawMessage(arena); } constexpr auto RawMessage::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RawMessage), alignof(RawMessage)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull RawMessage::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_RawMessage_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RawMessage::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RawMessage::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RawMessage::ByteSizeLong, - &RawMessage::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RawMessage, _impl_._cached_size_), - false, - }, - &RawMessage::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* RawMessage::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto RawMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_RawMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &RawMessage::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &RawMessage::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &RawMessage::ByteSizeLong, + &RawMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(RawMessage, _impl_._cached_size_), + false, + }, + &RawMessage::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull RawMessage_class_data_ = + RawMessage::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +RawMessage::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&RawMessage_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(RawMessage_class_data_.tc_table); + return RawMessage_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RawMessage::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +RawMessage::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(RawMessage, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -18394,7 +22443,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RawMessage::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + RawMessage_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -18403,19 +22452,18 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RawMessage::_table_ = { }, {{ // bytes data = 1; {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RawMessage, _impl_.data_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(RawMessage, _impl_.data_)}}, }}, {{ 65535, 65535 }}, {{ // bytes data = 1; - {PROTOBUF_FIELD_OFFSET(RawMessage, _impl_.data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(RawMessage, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void RawMessage::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.RawMessage) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -18423,92 +22471,120 @@ PROTOBUF_NOINLINE void RawMessage::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.data_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.data_.ClearNonDefaultToEmpty(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* RawMessage::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const RawMessage& this_ = static_cast(base); +::uint8_t* PROTOBUF_NONNULL RawMessage::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const RawMessage& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* RawMessage::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const RawMessage& this_ = *this; +::uint8_t* PROTOBUF_NONNULL RawMessage::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const RawMessage& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.RawMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes data = 1; - if (!this_._internal_data().empty()) { - const std::string& _s = this_._internal_data(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.RawMessage) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // bytes data = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_data().empty()) { + const ::std::string& _s = this_._internal_data(); + target = stream->WriteBytesMaybeAliased(1, _s, target); + } + } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RawMessage) - return target; - } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.RawMessage) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t RawMessage::ByteSizeLong(const MessageLite& base) { - const RawMessage& this_ = static_cast(base); +::size_t RawMessage::ByteSizeLong(const MessageLite& base) { + const RawMessage& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t RawMessage::ByteSizeLong() const { - const RawMessage& this_ = *this; +::size_t RawMessage::ByteSizeLong() const { + const RawMessage& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RawMessage) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.RawMessage) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // bytes data = 1; - if (!this_._internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_data()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // bytes data = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_data().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_data()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void RawMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void RawMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RawMessage) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_data().empty()) { + _this->_internal_set_data(from._internal_data()); + } else { + if (_this->_impl_.data_.IsDefault()) { + _this->_internal_set_data(""); + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void RawMessage::CopyFrom(const RawMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.RawMessage) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RawMessage) if (&from == this) return; Clear(); MergeFrom(from); } -void RawMessage::InternalSwap(RawMessage* PROTOBUF_RESTRICT other) { - using std::swap; +void RawMessage::InternalSwap(RawMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); } @@ -18521,19 +22597,19 @@ class VoidMessage::_Internal { public: }; -VoidMessage::VoidMessage(::google::protobuf::Arena* arena) +VoidMessage::VoidMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, VoidMessage_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:subspace.VoidMessage) } VoidMessage::VoidMessage( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const VoidMessage& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, VoidMessage_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -18545,43 +22621,51 @@ VoidMessage::VoidMessage( // @@protoc_insertion_point(copy_constructor:subspace.VoidMessage) } -inline void* VoidMessage::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL VoidMessage::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) VoidMessage(arena); } constexpr auto VoidMessage::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(VoidMessage), alignof(VoidMessage)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull VoidMessage::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_VoidMessage_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &VoidMessage::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &VoidMessage::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &VoidMessage::ByteSizeLong, - &VoidMessage::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(VoidMessage, _impl_._cached_size_), - false, - }, - &VoidMessage::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* VoidMessage::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto VoidMessage::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_VoidMessage_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &VoidMessage::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &VoidMessage::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &VoidMessage::ByteSizeLong, + &VoidMessage::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(VoidMessage, _impl_._cached_size_), + false, + }, + &VoidMessage::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull VoidMessage_class_data_ = + VoidMessage::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +VoidMessage::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&VoidMessage_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(VoidMessage_class_data_.tc_table); + return VoidMessage_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> VoidMessage::_table_ = { +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +VoidMessage::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -18592,7 +22676,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> VoidMessage::_table_ = { 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + VoidMessage_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -18602,8 +22686,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> VoidMessage::_table_ = { {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 - }}, - // no field_entries, or aux_entries + }}, // no field_entries, or aux_entries {{ }}, }; @@ -18614,7 +22697,6 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> VoidMessage::_table_ = { - ::google::protobuf::Metadata VoidMessage::GetMetadata() const { return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } @@ -18626,7 +22708,7 @@ class ShadowEvent::_Internal { PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_._oneof_case_); }; -void ShadowEvent::set_allocated_init(::subspace::ShadowInit* init) { +void ShadowEvent::set_allocated_init(::subspace::ShadowInit* PROTOBUF_NULLABLE init) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (init) { @@ -18639,7 +22721,7 @@ void ShadowEvent::set_allocated_init(::subspace::ShadowInit* init) { } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.init) } -void ShadowEvent::set_allocated_create_channel(::subspace::ShadowCreateChannel* create_channel) { +void ShadowEvent::set_allocated_create_channel(::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE create_channel) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (create_channel) { @@ -18652,7 +22734,7 @@ void ShadowEvent::set_allocated_create_channel(::subspace::ShadowCreateChannel* } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.create_channel) } -void ShadowEvent::set_allocated_remove_channel(::subspace::ShadowRemoveChannel* remove_channel) { +void ShadowEvent::set_allocated_remove_channel(::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE remove_channel) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (remove_channel) { @@ -18665,7 +22747,7 @@ void ShadowEvent::set_allocated_remove_channel(::subspace::ShadowRemoveChannel* } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.remove_channel) } -void ShadowEvent::set_allocated_add_publisher(::subspace::ShadowAddPublisher* add_publisher) { +void ShadowEvent::set_allocated_add_publisher(::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE add_publisher) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (add_publisher) { @@ -18678,7 +22760,7 @@ void ShadowEvent::set_allocated_add_publisher(::subspace::ShadowAddPublisher* ad } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.add_publisher) } -void ShadowEvent::set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* remove_publisher) { +void ShadowEvent::set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE remove_publisher) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (remove_publisher) { @@ -18691,7 +22773,7 @@ void ShadowEvent::set_allocated_remove_publisher(::subspace::ShadowRemovePublish } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.remove_publisher) } -void ShadowEvent::set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* add_subscriber) { +void ShadowEvent::set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE add_subscriber) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (add_subscriber) { @@ -18704,7 +22786,7 @@ void ShadowEvent::set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.add_subscriber) } -void ShadowEvent::set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* remove_subscriber) { +void ShadowEvent::set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE remove_subscriber) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (remove_subscriber) { @@ -18717,7 +22799,7 @@ void ShadowEvent::set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscr } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.remove_subscriber) } -void ShadowEvent::set_allocated_state_dump(::subspace::ShadowStateDump* state_dump) { +void ShadowEvent::set_allocated_state_dump(::subspace::ShadowStateDump* PROTOBUF_NULLABLE state_dump) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (state_dump) { @@ -18730,7 +22812,7 @@ void ShadowEvent::set_allocated_state_dump(::subspace::ShadowStateDump* state_du } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.state_dump) } -void ShadowEvent::set_allocated_state_done(::subspace::ShadowStateDone* state_done) { +void ShadowEvent::set_allocated_state_done(::subspace::ShadowStateDone* PROTOBUF_NULLABLE state_done) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (state_done) { @@ -18743,7 +22825,7 @@ void ShadowEvent::set_allocated_state_done(::subspace::ShadowStateDone* state_do } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.state_done) } -void ShadowEvent::set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* register_client_buffer) { +void ShadowEvent::set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE register_client_buffer) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (register_client_buffer) { @@ -18756,7 +22838,7 @@ void ShadowEvent::set_allocated_register_client_buffer(::subspace::ShadowRegiste } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.register_client_buffer) } -void ShadowEvent::set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* unregister_client_buffer) { +void ShadowEvent::set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE unregister_client_buffer) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (unregister_client_buffer) { @@ -18769,7 +22851,7 @@ void ShadowEvent::set_allocated_unregister_client_buffer(::subspace::ShadowUnreg } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.unregister_client_buffer) } -void ShadowEvent::set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* update_channel_options) { +void ShadowEvent::set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE update_channel_options) { ::google::protobuf::Arena* message_arena = GetArena(); clear_event(); if (update_channel_options) { @@ -18782,27 +22864,28 @@ void ShadowEvent::set_allocated_update_channel_options(::subspace::ShadowUpdateC } // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.update_channel_options) } -ShadowEvent::ShadowEvent(::google::protobuf::Arena* arena) +ShadowEvent::ShadowEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowEvent_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowEvent) } -inline PROTOBUF_NDEBUG_INLINE ShadowEvent::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowEvent& from_msg) +PROTOBUF_NDEBUG_INLINE ShadowEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowEvent& from_msg) : event_{}, _cached_size_{0}, _oneof_case_{from._oneof_case_[0]} {} ShadowEvent::ShadowEvent( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowEvent& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowEvent_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -18815,53 +22898,53 @@ ShadowEvent::ShadowEvent( case EVENT_NOT_SET: break; case kInit: - _impl_.event_.init_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowInit>(arena, *from._impl_.event_.init_); + _impl_.event_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.init_); break; case kCreateChannel: - _impl_.event_.create_channel_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowCreateChannel>(arena, *from._impl_.event_.create_channel_); + _impl_.event_.create_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.create_channel_); break; case kRemoveChannel: - _impl_.event_.remove_channel_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRemoveChannel>(arena, *from._impl_.event_.remove_channel_); + _impl_.event_.remove_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_channel_); break; case kAddPublisher: - _impl_.event_.add_publisher_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowAddPublisher>(arena, *from._impl_.event_.add_publisher_); + _impl_.event_.add_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_publisher_); break; case kRemovePublisher: - _impl_.event_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRemovePublisher>(arena, *from._impl_.event_.remove_publisher_); + _impl_.event_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_publisher_); break; case kAddSubscriber: - _impl_.event_.add_subscriber_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowAddSubscriber>(arena, *from._impl_.event_.add_subscriber_); + _impl_.event_.add_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_subscriber_); break; case kRemoveSubscriber: - _impl_.event_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRemoveSubscriber>(arena, *from._impl_.event_.remove_subscriber_); + _impl_.event_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_subscriber_); break; case kStateDump: - _impl_.event_.state_dump_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowStateDump>(arena, *from._impl_.event_.state_dump_); + _impl_.event_.state_dump_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_dump_); break; case kStateDone: - _impl_.event_.state_done_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowStateDone>(arena, *from._impl_.event_.state_done_); + _impl_.event_.state_done_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_done_); break; case kRegisterClientBuffer: - _impl_.event_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRegisterClientBuffer>(arena, *from._impl_.event_.register_client_buffer_); + _impl_.event_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.register_client_buffer_); break; case kUnregisterClientBuffer: - _impl_.event_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowUnregisterClientBuffer>(arena, *from._impl_.event_.unregister_client_buffer_); + _impl_.event_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.unregister_client_buffer_); break; case kUpdateChannelOptions: - _impl_.event_.update_channel_options_ = ::google::protobuf::Message::CopyConstruct<::subspace::ShadowUpdateChannelOptions>(arena, *from._impl_.event_.update_channel_options_); + _impl_.event_.update_channel_options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.update_channel_options_); break; } // @@protoc_insertion_point(copy_constructor:subspace.ShadowEvent) } -inline PROTOBUF_NDEBUG_INLINE ShadowEvent::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE ShadowEvent::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : event_{}, _cached_size_{0}, _oneof_case_{} {} -inline void ShadowEvent::SharedCtor(::_pb::Arena* arena) { +inline void ShadowEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); } ShadowEvent::~ShadowEvent() { @@ -18870,6 +22953,9 @@ ShadowEvent::~ShadowEvent() { } inline void ShadowEvent::SharedDtor(MessageLite& self) { ShadowEvent& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); if (this_.has_event()) { @@ -18955,364 +23041,370 @@ void ShadowEvent::clear_event() { break; } case kRegisterClientBuffer: { - if (GetArena() == nullptr) { - delete _impl_.event_.register_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.register_client_buffer_); - } + if (GetArena() == nullptr) { + delete _impl_.event_.register_client_buffer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.register_client_buffer_); + } + break; + } + case kUnregisterClientBuffer: { + if (GetArena() == nullptr) { + delete _impl_.event_.unregister_client_buffer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.unregister_client_buffer_); + } + break; + } + case kUpdateChannelOptions: { + if (GetArena() == nullptr) { + delete _impl_.event_.update_channel_options_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.update_channel_options_); + } + break; + } + case EVENT_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = EVENT_NOT_SET; +} + + +inline void* PROTOBUF_NONNULL ShadowEvent::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ShadowEvent(arena); +} +constexpr auto ShadowEvent::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowEvent), + alignof(ShadowEvent)); +} +constexpr auto ShadowEvent::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowEvent_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowEvent::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowEvent::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowEvent::ByteSizeLong, + &ShadowEvent::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_._cached_size_), + false, + }, + &ShadowEvent::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowEvent_class_data_ = + ShadowEvent::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowEvent::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowEvent_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowEvent_class_data_.tc_table); + return ShadowEvent_class_data_.base(); +} +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 12, 12, 0, 2> +ShadowEvent::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 12, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294963200, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 12, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + ShadowEvent_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::subspace::ShadowEvent>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // .subspace.ShadowInit init = 1; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.init_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowCreateChannel create_channel = 2; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.create_channel_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowRemoveChannel remove_channel = 3; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_channel_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowAddPublisher add_publisher = 4; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.add_publisher_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowRemovePublisher remove_publisher = 5; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowAddSubscriber add_subscriber = 6; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.add_subscriber_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowStateDump state_dump = 8; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.state_dump_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowStateDone state_done = 9; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.state_done_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.unregister_client_buffer_), _Internal::kOneofCaseOffset + 0, 10, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; + {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.update_channel_options_), _Internal::kOneofCaseOffset + 0, 11, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ShadowInit>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowCreateChannel>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowRemoveChannel>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowAddPublisher>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowRemovePublisher>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowAddSubscriber>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowRemoveSubscriber>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowStateDump>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowStateDone>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowRegisterClientBuffer>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowUnregisterClientBuffer>()}, + {::_pbi::TcParser::GetTable<::subspace::ShadowUpdateChannelOptions>()}, + }}, + {{ + }}, +}; +PROTOBUF_NOINLINE void ShadowEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:subspace.ShadowEvent) + ::google::protobuf::internal::TSanWrite(&_impl_); + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_event(); + _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ShadowEvent::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowEvent::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowEvent) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + switch (this_.event_case()) { + case kInit: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.event_.init_, this_._impl_.event_.init_->GetCachedSize(), target, + stream); + break; + } + case kCreateChannel: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, *this_._impl_.event_.create_channel_, this_._impl_.event_.create_channel_->GetCachedSize(), target, + stream); + break; + } + case kRemoveChannel: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, *this_._impl_.event_.remove_channel_, this_._impl_.event_.remove_channel_->GetCachedSize(), target, + stream); + break; + } + case kAddPublisher: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 4, *this_._impl_.event_.add_publisher_, this_._impl_.event_.add_publisher_->GetCachedSize(), target, + stream); + break; + } + case kRemovePublisher: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 5, *this_._impl_.event_.remove_publisher_, this_._impl_.event_.remove_publisher_->GetCachedSize(), target, + stream); + break; + } + case kAddSubscriber: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, *this_._impl_.event_.add_subscriber_, this_._impl_.event_.add_subscriber_->GetCachedSize(), target, + stream); + break; + } + case kRemoveSubscriber: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 7, *this_._impl_.event_.remove_subscriber_, this_._impl_.event_.remove_subscriber_->GetCachedSize(), target, + stream); + break; + } + case kStateDump: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 8, *this_._impl_.event_.state_dump_, this_._impl_.event_.state_dump_->GetCachedSize(), target, + stream); + break; + } + case kStateDone: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 9, *this_._impl_.event_.state_done_, this_._impl_.event_.state_done_->GetCachedSize(), target, + stream); + break; + } + case kRegisterClientBuffer: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 10, *this_._impl_.event_.register_client_buffer_, this_._impl_.event_.register_client_buffer_->GetCachedSize(), target, + stream); + break; + } + case kUnregisterClientBuffer: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 11, *this_._impl_.event_.unregister_client_buffer_, this_._impl_.event_.unregister_client_buffer_->GetCachedSize(), target, + stream); + break; + } + case kUpdateChannelOptions: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 12, *this_._impl_.event_.update_channel_options_, this_._impl_.event_.update_channel_options_->GetCachedSize(), target, + stream); + break; + } + default: + break; + } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowEvent) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShadowEvent::ByteSizeLong(const MessageLite& base) { + const ShadowEvent& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowEvent::ByteSizeLong() const { + const ShadowEvent& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowEvent) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + switch (this_.event_case()) { + // .subspace.ShadowInit init = 1; + case kInit: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.init_); + break; + } + // .subspace.ShadowCreateChannel create_channel = 2; + case kCreateChannel: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.create_channel_); + break; + } + // .subspace.ShadowRemoveChannel remove_channel = 3; + case kRemoveChannel: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_channel_); + break; + } + // .subspace.ShadowAddPublisher add_publisher = 4; + case kAddPublisher: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.add_publisher_); + break; + } + // .subspace.ShadowRemovePublisher remove_publisher = 5; + case kRemovePublisher: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_publisher_); + break; + } + // .subspace.ShadowAddSubscriber add_subscriber = 6; + case kAddSubscriber: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.add_subscriber_); + break; + } + // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; + case kRemoveSubscriber: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_subscriber_); + break; + } + // .subspace.ShadowStateDump state_dump = 8; + case kStateDump: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.state_dump_); + break; + } + // .subspace.ShadowStateDone state_done = 9; + case kStateDone: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.state_done_); + break; + } + // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; + case kRegisterClientBuffer: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.register_client_buffer_); break; } + // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; case kUnregisterClientBuffer: { - if (GetArena() == nullptr) { - delete _impl_.event_.unregister_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.unregister_client_buffer_); - } + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.unregister_client_buffer_); break; } + // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; case kUpdateChannelOptions: { - if (GetArena() == nullptr) { - delete _impl_.event_.update_channel_options_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.update_channel_options_); - } + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.update_channel_options_); break; } case EVENT_NOT_SET: { break; } } - _impl_._oneof_case_[0] = EVENT_NOT_SET; -} - - -inline void* ShadowEvent::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { - return ::new (mem) ShadowEvent(arena); -} -constexpr auto ShadowEvent::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowEvent), - alignof(ShadowEvent)); -} -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowEvent::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowEvent_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowEvent::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowEvent::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowEvent::ByteSizeLong, - &ShadowEvent::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_._cached_size_), - false, - }, - &ShadowEvent::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowEvent::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 12, 12, 0, 2> ShadowEvent::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963200, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 12, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - _class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowEvent>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .subspace.ShadowInit init = 1; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.init_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowCreateChannel create_channel = 2; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.create_channel_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRemoveChannel remove_channel = 3; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_channel_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowAddPublisher add_publisher = 4; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.add_publisher_), _Internal::kOneofCaseOffset + 0, 3, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRemovePublisher remove_publisher = 5; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowAddSubscriber add_subscriber = 6; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.add_subscriber_), _Internal::kOneofCaseOffset + 0, 5, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 6, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowStateDump state_dump = 8; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.state_dump_), _Internal::kOneofCaseOffset + 0, 7, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowStateDone state_done = 9; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.state_done_), _Internal::kOneofCaseOffset + 0, 8, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.unregister_client_buffer_), _Internal::kOneofCaseOffset + 0, 10, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.update_channel_options_), _Internal::kOneofCaseOffset + 0, 11, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ShadowInit>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowCreateChannel>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRemoveChannel>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowAddPublisher>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRemovePublisher>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowAddSubscriber>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRemoveSubscriber>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowStateDump>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowStateDone>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRegisterClientBuffer>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowUnregisterClientBuffer>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowUpdateChannelOptions>()}, - }}, {{ - }}, -}; - -PROTOBUF_NOINLINE void ShadowEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowEvent) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_event(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowEvent::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowEvent& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowEvent::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowEvent& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowEvent) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (this_.event_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.event_.init_, this_._impl_.event_.init_->GetCachedSize(), target, - stream); - break; - } - case kCreateChannel: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.event_.create_channel_, this_._impl_.event_.create_channel_->GetCachedSize(), target, - stream); - break; - } - case kRemoveChannel: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.event_.remove_channel_, this_._impl_.event_.remove_channel_->GetCachedSize(), target, - stream); - break; - } - case kAddPublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.event_.add_publisher_, this_._impl_.event_.add_publisher_->GetCachedSize(), target, - stream); - break; - } - case kRemovePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.event_.remove_publisher_, this_._impl_.event_.remove_publisher_->GetCachedSize(), target, - stream); - break; - } - case kAddSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.event_.add_subscriber_, this_._impl_.event_.add_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kRemoveSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *this_._impl_.event_.remove_subscriber_, this_._impl_.event_.remove_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kStateDump: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, *this_._impl_.event_.state_dump_, this_._impl_.event_.state_dump_->GetCachedSize(), target, - stream); - break; - } - case kStateDone: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *this_._impl_.event_.state_done_, this_._impl_.event_.state_done_->GetCachedSize(), target, - stream); - break; - } - case kRegisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, *this_._impl_.event_.register_client_buffer_, this_._impl_.event_.register_client_buffer_->GetCachedSize(), target, - stream); - break; - } - case kUnregisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, *this_._impl_.event_.unregister_client_buffer_, this_._impl_.event_.unregister_client_buffer_->GetCachedSize(), target, - stream); - break; - } - case kUpdateChannelOptions: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *this_._impl_.event_.update_channel_options_, this_._impl_.event_.update_channel_options_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowEvent) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowEvent::ByteSizeLong(const MessageLite& base) { - const ShadowEvent& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowEvent::ByteSizeLong() const { - const ShadowEvent& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowEvent) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - switch (this_.event_case()) { - // .subspace.ShadowInit init = 1; - case kInit: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.init_); - break; - } - // .subspace.ShadowCreateChannel create_channel = 2; - case kCreateChannel: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.create_channel_); - break; - } - // .subspace.ShadowRemoveChannel remove_channel = 3; - case kRemoveChannel: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_channel_); - break; - } - // .subspace.ShadowAddPublisher add_publisher = 4; - case kAddPublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.add_publisher_); - break; - } - // .subspace.ShadowRemovePublisher remove_publisher = 5; - case kRemovePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_publisher_); - break; - } - // .subspace.ShadowAddSubscriber add_subscriber = 6; - case kAddSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.add_subscriber_); - break; - } - // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; - case kRemoveSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_subscriber_); - break; - } - // .subspace.ShadowStateDump state_dump = 8; - case kStateDump: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.state_dump_); - break; - } - // .subspace.ShadowStateDone state_done = 9; - case kStateDone: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.state_done_); - break; - } - // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; - case kRegisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.register_client_buffer_); - break; - } - // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; - case kUnregisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.unregister_client_buffer_); - break; - } - // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; - case kUpdateChannelOptions: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.update_channel_options_); - break; - } - case EVENT_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void ShadowEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowEvent) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + if (const uint32_t oneof_from_case = + from._impl_._oneof_case_[0]) { const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; const bool oneof_needs_init = oneof_to_case != oneof_from_case; if (oneof_needs_init) { @@ -19325,109 +23417,97 @@ void ShadowEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo switch (oneof_from_case) { case kInit: { if (oneof_needs_init) { - _this->_impl_.event_.init_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowInit>(arena, *from._impl_.event_.init_); + _this->_impl_.event_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.init_); } else { - _this->_impl_.event_.init_->MergeFrom(from._internal_init()); + _this->_impl_.event_.init_->MergeFrom(*from._impl_.event_.init_); } break; } case kCreateChannel: { if (oneof_needs_init) { - _this->_impl_.event_.create_channel_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowCreateChannel>(arena, *from._impl_.event_.create_channel_); + _this->_impl_.event_.create_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.create_channel_); } else { - _this->_impl_.event_.create_channel_->MergeFrom(from._internal_create_channel()); + _this->_impl_.event_.create_channel_->MergeFrom(*from._impl_.event_.create_channel_); } break; } case kRemoveChannel: { if (oneof_needs_init) { - _this->_impl_.event_.remove_channel_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRemoveChannel>(arena, *from._impl_.event_.remove_channel_); + _this->_impl_.event_.remove_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_channel_); } else { - _this->_impl_.event_.remove_channel_->MergeFrom(from._internal_remove_channel()); + _this->_impl_.event_.remove_channel_->MergeFrom(*from._impl_.event_.remove_channel_); } break; } case kAddPublisher: { if (oneof_needs_init) { - _this->_impl_.event_.add_publisher_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowAddPublisher>(arena, *from._impl_.event_.add_publisher_); + _this->_impl_.event_.add_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_publisher_); } else { - _this->_impl_.event_.add_publisher_->MergeFrom(from._internal_add_publisher()); + _this->_impl_.event_.add_publisher_->MergeFrom(*from._impl_.event_.add_publisher_); } break; } case kRemovePublisher: { if (oneof_needs_init) { - _this->_impl_.event_.remove_publisher_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRemovePublisher>(arena, *from._impl_.event_.remove_publisher_); + _this->_impl_.event_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_publisher_); } else { - _this->_impl_.event_.remove_publisher_->MergeFrom(from._internal_remove_publisher()); + _this->_impl_.event_.remove_publisher_->MergeFrom(*from._impl_.event_.remove_publisher_); } break; } case kAddSubscriber: { if (oneof_needs_init) { - _this->_impl_.event_.add_subscriber_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowAddSubscriber>(arena, *from._impl_.event_.add_subscriber_); + _this->_impl_.event_.add_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_subscriber_); } else { - _this->_impl_.event_.add_subscriber_->MergeFrom(from._internal_add_subscriber()); + _this->_impl_.event_.add_subscriber_->MergeFrom(*from._impl_.event_.add_subscriber_); } break; } case kRemoveSubscriber: { if (oneof_needs_init) { - _this->_impl_.event_.remove_subscriber_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRemoveSubscriber>(arena, *from._impl_.event_.remove_subscriber_); + _this->_impl_.event_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_subscriber_); } else { - _this->_impl_.event_.remove_subscriber_->MergeFrom(from._internal_remove_subscriber()); + _this->_impl_.event_.remove_subscriber_->MergeFrom(*from._impl_.event_.remove_subscriber_); } break; } case kStateDump: { if (oneof_needs_init) { - _this->_impl_.event_.state_dump_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowStateDump>(arena, *from._impl_.event_.state_dump_); + _this->_impl_.event_.state_dump_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_dump_); } else { - _this->_impl_.event_.state_dump_->MergeFrom(from._internal_state_dump()); + _this->_impl_.event_.state_dump_->MergeFrom(*from._impl_.event_.state_dump_); } break; } case kStateDone: { if (oneof_needs_init) { - _this->_impl_.event_.state_done_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowStateDone>(arena, *from._impl_.event_.state_done_); + _this->_impl_.event_.state_done_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_done_); } else { - _this->_impl_.event_.state_done_->MergeFrom(from._internal_state_done()); + _this->_impl_.event_.state_done_->MergeFrom(*from._impl_.event_.state_done_); } break; } case kRegisterClientBuffer: { if (oneof_needs_init) { - _this->_impl_.event_.register_client_buffer_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowRegisterClientBuffer>(arena, *from._impl_.event_.register_client_buffer_); + _this->_impl_.event_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.register_client_buffer_); } else { - _this->_impl_.event_.register_client_buffer_->MergeFrom(from._internal_register_client_buffer()); + _this->_impl_.event_.register_client_buffer_->MergeFrom(*from._impl_.event_.register_client_buffer_); } break; } case kUnregisterClientBuffer: { if (oneof_needs_init) { - _this->_impl_.event_.unregister_client_buffer_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowUnregisterClientBuffer>(arena, *from._impl_.event_.unregister_client_buffer_); + _this->_impl_.event_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.unregister_client_buffer_); } else { - _this->_impl_.event_.unregister_client_buffer_->MergeFrom(from._internal_unregister_client_buffer()); + _this->_impl_.event_.unregister_client_buffer_->MergeFrom(*from._impl_.event_.unregister_client_buffer_); } break; } case kUpdateChannelOptions: { if (oneof_needs_init) { - _this->_impl_.event_.update_channel_options_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ShadowUpdateChannelOptions>(arena, *from._impl_.event_.update_channel_options_); + _this->_impl_.event_.update_channel_options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.update_channel_options_); } else { - _this->_impl_.event_.update_channel_options_->MergeFrom(from._internal_update_channel_options()); + _this->_impl_.event_.update_channel_options_->MergeFrom(*from._impl_.event_.update_channel_options_); } break; } @@ -19435,19 +23515,20 @@ void ShadowEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goo break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowEvent::CopyFrom(const ShadowEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowEvent) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowEvent) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowEvent::InternalSwap(ShadowEvent* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowEvent::InternalSwap(ShadowEvent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.event_, other->_impl_.event_); swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); @@ -19460,11 +23541,15 @@ ::google::protobuf::Metadata ShadowEvent::GetMetadata() const { class ShadowInit::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_._has_bits_); }; -ShadowInit::ShadowInit(::google::protobuf::Arena* arena) +ShadowInit::ShadowInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowInit_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -19472,16 +23557,22 @@ ShadowInit::ShadowInit(::google::protobuf::Arena* arena) // @@protoc_insertion_point(arena_constructor:subspace.ShadowInit) } ShadowInit::ShadowInit( - ::google::protobuf::Arena* arena, const ShadowInit& from) - : ShadowInit(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowInit& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ShadowInit_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE ShadowInit::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE ShadowInit::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void ShadowInit::SharedCtor(::_pb::Arena* arena) { +inline void ShadowInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.session_id_ = {}; } @@ -19491,50 +23582,61 @@ ShadowInit::~ShadowInit() { } inline void ShadowInit::SharedDtor(MessageLite& self) { ShadowInit& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* ShadowInit::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowInit::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowInit(arena); } constexpr auto ShadowInit::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowInit), alignof(ShadowInit)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowInit::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowInit_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowInit::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowInit::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowInit::ByteSizeLong, - &ShadowInit::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_._cached_size_), - false, - }, - &ShadowInit::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowInit::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowInit::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowInit_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowInit::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowInit::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowInit::ByteSizeLong, + &ShadowInit::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_._cached_size_), + false, + }, + &ShadowInit::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowInit_class_data_ = + ShadowInit::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowInit::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowInit_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowInit_class_data_.tc_table); + return ShadowInit_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ShadowInit::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +ShadowInit::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -19543,7 +23645,7 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ShadowInit::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowInit_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -19551,20 +23653,19 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ShadowInit::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // uint64 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowInit, _impl_.session_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowInit, _impl_.session_id_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_.session_id_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 session_id = 1; - {PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void ShadowInit::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowInit) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -19573,91 +23674,112 @@ PROTOBUF_NOINLINE void ShadowInit::Clear() { (void) cached_has_bits; _impl_.session_id_ = ::uint64_t{0u}; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowInit::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowInit& this_ = static_cast(base); +::uint8_t* PROTOBUF_NONNULL ShadowInit::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowInit& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowInit::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowInit& this_ = *this; +::uint8_t* PROTOBUF_NONNULL ShadowInit::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowInit& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowInit) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 session_id = 1; - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_session_id(), target); - } + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowInit) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // uint64 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_session_id(), target); + } + } - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowInit) - return target; - } + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowInit) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowInit::ByteSizeLong(const MessageLite& base) { - const ShadowInit& this_ = static_cast(base); +::size_t ShadowInit::ByteSizeLong(const MessageLite& base) { + const ShadowInit& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowInit::ByteSizeLong() const { - const ShadowInit& this_ = *this; +::size_t ShadowInit::ByteSizeLong() const { + const ShadowInit& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowInit) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowInit) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // uint64 session_id = 1; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + { + // uint64 session_id = 1; + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_session_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ShadowInit::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowInit::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowInit) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowInit::CopyFrom(const ShadowInit& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowInit) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowInit) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowInit::InternalSwap(ShadowInit* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowInit::InternalSwap(ShadowInit* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.session_id_, other->_impl_.session_id_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + swap(_impl_.session_id_, other->_impl_.session_id_); } ::google::protobuf::Metadata ShadowInit::GetMetadata() const { @@ -19667,30 +23789,36 @@ ::google::protobuf::Metadata ShadowInit::GetMetadata() const { class ShadowCreateChannel::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_._has_bits_); }; -ShadowCreateChannel::ShadowCreateChannel(::google::protobuf::Arena* arena) +ShadowCreateChannel::ShadowCreateChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowCreateChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowCreateChannel) } -inline PROTOBUF_NDEBUG_INLINE ShadowCreateChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowCreateChannel& from_msg) - : channel_name_(arena, from.channel_name_), +PROTOBUF_NDEBUG_INLINE ShadowCreateChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowCreateChannel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_), type_(arena, from.type_), - mux_(arena, from.mux_), - _cached_size_{0} {} + mux_(arena, from.mux_) {} ShadowCreateChannel::ShadowCreateChannel( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowCreateChannel& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowCreateChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -19699,9 +23827,9 @@ ShadowCreateChannel::ShadowCreateChannel( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, channel_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, channel_id_), offsetof(Impl_, max_publishers_) - offsetof(Impl_, channel_id_) + @@ -19709,17 +23837,17 @@ ShadowCreateChannel::ShadowCreateChannel( // @@protoc_insertion_point(copy_constructor:subspace.ShadowCreateChannel) } -inline PROTOBUF_NDEBUG_INLINE ShadowCreateChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), +PROTOBUF_NDEBUG_INLINE ShadowCreateChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena), type_(arena), - mux_(arena), - _cached_size_{0} {} + mux_(arena) {} -inline void ShadowCreateChannel::SharedCtor(::_pb::Arena* arena) { +inline void ShadowCreateChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, channel_id_), 0, offsetof(Impl_, max_publishers_) - @@ -19732,6 +23860,9 @@ ShadowCreateChannel::~ShadowCreateChannel() { } inline void ShadowCreateChannel::SharedDtor(MessageLite& self) { ShadowCreateChannel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); @@ -19740,45 +23871,53 @@ inline void ShadowCreateChannel::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* ShadowCreateChannel::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowCreateChannel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowCreateChannel(arena); } constexpr auto ShadowCreateChannel::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowCreateChannel), alignof(ShadowCreateChannel)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowCreateChannel::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowCreateChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowCreateChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowCreateChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowCreateChannel::ByteSizeLong, - &ShadowCreateChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_._cached_size_), - false, - }, - &ShadowCreateChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowCreateChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowCreateChannel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowCreateChannel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowCreateChannel::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowCreateChannel::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowCreateChannel::ByteSizeLong, + &ShadowCreateChannel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_._cached_size_), + false, + }, + &ShadowCreateChannel::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowCreateChannel_class_data_ = + ShadowCreateChannel::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowCreateChannel::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowCreateChannel_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowCreateChannel_class_data_.tc_table); + return ShadowCreateChannel_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 17, 0, 68, 2> ShadowCreateChannel::_table_ = { +const ::_pbi::TcParseTable<5, 17, 0, 68, 2> +ShadowCreateChannel::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_._has_bits_), 0, // no _extensions_ 17, 248, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -19787,7 +23926,7 @@ const ::_pbi::TcParseTable<5, 17, 0, 68, 2> ShadowCreateChannel::_table_ = { 17, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowCreateChannel_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -19797,55 +23936,72 @@ const ::_pbi::TcParseTable<5, 17, 0, 68, 2> ShadowCreateChannel::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_name_)}}, // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.channel_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.channel_id_), 3>(), + {16, 3, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_id_)}}, // int32 slot_size = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.slot_size_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.slot_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.slot_size_), 4>(), + {24, 4, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.slot_size_)}}, // int32 num_slots = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.num_slots_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.num_slots_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.num_slots_), 5>(), + {32, 5, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.num_slots_)}}, // bytes type = 5; {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.type_)}}, + {42, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.type_)}}, // bool is_local = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_local_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 6, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_local_)}}, // bool is_reliable = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {56, 7, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_reliable_)}}, // bool is_fixed_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_fixed_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {64, 8, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_fixed_size_)}}, // int32 checksum_size = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.checksum_size_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.checksum_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.checksum_size_), 10>(), + {72, 10, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.checksum_size_)}}, // int32 metadata_size = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.metadata_size_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.metadata_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.metadata_size_), 11>(), + {80, 11, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.metadata_size_)}}, // string mux = 11; {::_pbi::TcParser::FastUS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.mux_)}}, + {90, 2, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.mux_)}}, // int32 vchan_id = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.vchan_id_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.vchan_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.vchan_id_), 12>(), + {96, 12, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.vchan_id_)}}, // bool has_split_buffer_options = 13; - {::_pbi::TcParser::SingularVarintNoZag1(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_split_buffer_options_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {104, 9, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_split_buffer_options_)}}, // bool use_split_buffers = 14; - {::_pbi::TcParser::SingularVarintNoZag1(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.use_split_buffers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {112, 13, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.use_split_buffers_)}}, // bool has_max_publishers = 15; - {::_pbi::TcParser::SingularVarintNoZag1(), - {120, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_max_publishers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {120, 14, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_max_publishers_)}}, // int32 max_publishers = 16; {::_pbi::TcParser::FastV32S2, - {384, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.max_publishers_)}}, + {384, 16, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.max_publishers_)}}, // bool split_buffers_over_bridge = 17; {::_pbi::TcParser::FastV8S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.split_buffers_over_bridge_)}}, + {392, 15, 0, + PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.split_buffers_over_bridge_)}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, {::_pbi::TcParser::MiniParse, {}}, @@ -19864,56 +24020,39 @@ const ::_pbi::TcParseTable<5, 17, 0, 68, 2> ShadowCreateChannel::_table_ = { 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 slot_size = 3; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.slot_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.slot_size_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 num_slots = 4; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.num_slots_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.num_slots_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bytes type = 5; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, // bool is_local = 6; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_local_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_local_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_reliable = 7; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_reliable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_reliable_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_fixed_size = 8; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_fixed_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_fixed_size_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // int32 checksum_size = 9; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.checksum_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.checksum_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // int32 metadata_size = 10; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.metadata_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.metadata_size_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // string mux = 11; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.mux_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 vchan_id = 12; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.vchan_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.vchan_id_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool has_split_buffer_options = 13; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_split_buffer_options_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_split_buffer_options_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool use_split_buffers = 14; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.use_split_buffers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool has_max_publishers = 15; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_max_publishers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_max_publishers_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // int32 max_publishers = 16; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.max_publishers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.max_publishers_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool split_buffers_over_bridge = 17; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.split_buffers_over_bridge_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -19923,7 +24062,6 @@ const ::_pbi::TcParseTable<5, 17, 0, 68, 2> ShadowCreateChannel::_table_ = { "mux" }}, }; - PROTOBUF_NOINLINE void ShadowCreateChannel::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowCreateChannel) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -19931,333 +24069,487 @@ PROTOBUF_NOINLINE void ShadowCreateChannel::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - _impl_.type_.ClearToEmpty(); - _impl_.mux_.ClearToEmpty(); - ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_publishers_) - - reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.max_publishers_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.type_.ClearNonDefaultToEmpty(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.mux_.ClearNonDefaultToEmpty(); + } + } + if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { + ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.is_reliable_) - + reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.is_reliable_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + ::memset(&_impl_.is_fixed_size_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.split_buffers_over_bridge_) - + reinterpret_cast(&_impl_.is_fixed_size_)) + sizeof(_impl_.split_buffers_over_bridge_)); + } + _impl_.max_publishers_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowCreateChannel::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowCreateChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowCreateChannel::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowCreateChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowCreateChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowCreateChannel.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - - // int32 slot_size = 3; - if (this_._internal_slot_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<3>( - stream, this_._internal_slot_size(), target); - } - - // int32 num_slots = 4; - if (this_._internal_num_slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<4>( - stream, this_._internal_num_slots(), target); - } - - // bytes type = 5; - if (!this_._internal_type().empty()) { - const std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // bool is_local = 6; - if (this_._internal_is_local() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_local(), target); - } - - // bool is_reliable = 7; - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this_._internal_is_reliable(), target); - } - - // bool is_fixed_size = 8; - if (this_._internal_is_fixed_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this_._internal_is_fixed_size(), target); - } - - // int32 checksum_size = 9; - if (this_._internal_checksum_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<9>( - stream, this_._internal_checksum_size(), target); - } - - // int32 metadata_size = 10; - if (this_._internal_metadata_size() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<10>( - stream, this_._internal_metadata_size(), target); - } - - // string mux = 11; - if (!this_._internal_mux().empty()) { - const std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowCreateChannel.mux"); - target = stream->WriteStringMaybeAliased(11, _s, target); - } - - // int32 vchan_id = 12; - if (this_._internal_vchan_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<12>( - stream, this_._internal_vchan_id(), target); - } - - // bool has_split_buffer_options = 13; - if (this_._internal_has_split_buffer_options() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 13, this_._internal_has_split_buffer_options(), target); - } - - // bool use_split_buffers = 14; - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 14, this_._internal_use_split_buffers(), target); - } - - // bool has_max_publishers = 15; - if (this_._internal_has_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 15, this_._internal_has_max_publishers(), target); - } - - // int32 max_publishers = 16; - if (this_._internal_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 16, this_._internal_max_publishers(), target); - } - - // bool split_buffers_over_bridge = 17; - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 17, this_._internal_split_buffers_over_bridge(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowCreateChannel) - return target; - } - -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowCreateChannel::ByteSizeLong(const MessageLite& base) { - const ShadowCreateChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowCreateChannel::ByteSizeLong() const { - const ShadowCreateChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowCreateChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // bytes type = 5; - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - // string mux = 11; - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - // int32 slot_size = 3; - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - // int32 num_slots = 4; - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - // bool is_local = 6; - if (this_._internal_is_local() != 0) { - total_size += 2; - } - // bool is_reliable = 7; - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - // bool is_fixed_size = 8; - if (this_._internal_is_fixed_size() != 0) { - total_size += 2; - } - // bool has_split_buffer_options = 13; - if (this_._internal_has_split_buffer_options() != 0) { - total_size += 2; - } - // int32 checksum_size = 9; - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - // int32 metadata_size = 10; - if (this_._internal_metadata_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_metadata_size()); - } - // int32 vchan_id = 12; - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - // bool use_split_buffers = 14; - if (this_._internal_use_split_buffers() != 0) { - total_size += 2; - } - // bool has_max_publishers = 15; - if (this_._internal_has_max_publishers() != 0) { - total_size += 2; - } - // bool split_buffers_over_bridge = 17; - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 3; - } - // int32 max_publishers = 16; - if (this_._internal_max_publishers() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_max_publishers()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } - -void ShadowCreateChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +#if defined(PROTOBUF_CUSTOM_VTABLE) +::uint8_t* PROTOBUF_NONNULL ShadowCreateChannel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowCreateChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowCreateChannel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowCreateChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowCreateChannel) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowCreateChannel.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_channel_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_channel_id(), target); + } + } + + // int32 slot_size = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_slot_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_slot_size(), target); + } + } + + // int32 num_slots = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_num_slots() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( + stream, this_._internal_num_slots(), target); + } + } + + // bytes type = 5; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + const ::std::string& _s = this_._internal_type(); + target = stream->WriteBytesMaybeAliased(5, _s, target); + } + } + + // bool is_local = 6; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_is_local() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_is_local(), target); + } + } + + // bool is_reliable = 7; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_is_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_is_reliable(), target); + } + } + + // bool is_fixed_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_is_fixed_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_is_fixed_size(), target); + } + } + + // int32 checksum_size = 9; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_checksum_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( + stream, this_._internal_checksum_size(), target); + } + } + + // int32 metadata_size = 10; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_metadata_size() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( + stream, this_._internal_metadata_size(), target); + } + } + + // string mux = 11; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + const ::std::string& _s = this_._internal_mux(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowCreateChannel.mux"); + target = stream->WriteStringMaybeAliased(11, _s, target); + } + } + + // int32 vchan_id = 12; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_vchan_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>( + stream, this_._internal_vchan_id(), target); + } + } + + // bool has_split_buffer_options = 13; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_has_split_buffer_options() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 13, this_._internal_has_split_buffer_options(), target); + } + } + + // bool use_split_buffers = 14; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_use_split_buffers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 14, this_._internal_use_split_buffers(), target); + } + } + + // bool has_max_publishers = 15; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_has_max_publishers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 15, this_._internal_has_max_publishers(), target); + } + } + + // int32 max_publishers = 16; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_max_publishers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray( + 16, this_._internal_max_publishers(), target); + } + } + + // bool split_buffers_over_bridge = 17; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 17, this_._internal_split_buffers_over_bridge(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowCreateChannel) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShadowCreateChannel::ByteSizeLong(const MessageLite& base) { + const ShadowCreateChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowCreateChannel::ByteSizeLong() const { + const ShadowCreateChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowCreateChannel) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // bytes type = 5; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!this_._internal_type().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( + this_._internal_type()); + } + } + // string mux = 11; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_mux().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_mux()); + } + } + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_channel_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_channel_id()); + } + } + // int32 slot_size = 3; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_slot_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_slot_size()); + } + } + // int32 num_slots = 4; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_num_slots() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_slots()); + } + } + // bool is_local = 6; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_is_local() != 0) { + total_size += 2; + } + } + // bool is_reliable = 7; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_is_reliable() != 0) { + total_size += 2; + } + } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + // bool is_fixed_size = 8; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (this_._internal_is_fixed_size() != 0) { + total_size += 2; + } + } + // bool has_split_buffer_options = 13; + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (this_._internal_has_split_buffer_options() != 0) { + total_size += 2; + } + } + // int32 checksum_size = 9; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (this_._internal_checksum_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_checksum_size()); + } + } + // int32 metadata_size = 10; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (this_._internal_metadata_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_metadata_size()); + } + } + // int32 vchan_id = 12; + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (this_._internal_vchan_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_vchan_id()); + } + } + // bool use_split_buffers = 14; + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (this_._internal_use_split_buffers() != 0) { + total_size += 2; + } + } + // bool has_max_publishers = 15; + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (this_._internal_has_max_publishers() != 0) { + total_size += 2; + } + } + // bool split_buffers_over_bridge = 17; + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + total_size += 3; + } + } + } + { + // int32 max_publishers = 16; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (this_._internal_max_publishers() != 0) { + total_size += 2 + ::_pbi::WireFormatLite::Int32Size( + this_._internal_max_publishers()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ShadowCreateChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowCreateChannel) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); - } - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; - } - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - if (from._internal_is_local() != 0) { - _this->_impl_.is_local_ = from._impl_.is_local_; - } - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; - } - if (from._internal_is_fixed_size() != 0) { - _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; - } - if (from._internal_has_split_buffer_options() != 0) { - _this->_impl_.has_split_buffer_options_ = from._impl_.has_split_buffer_options_; - } - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; - } - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; - } - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; - } - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; - } - if (from._internal_has_max_publishers() != 0) { - _this->_impl_.has_max_publishers_ = from._impl_.has_max_publishers_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (!from._internal_type().empty()) { + _this->_internal_set_type(from._internal_type()); + } else { + if (_this->_impl_.type_.IsDefault()) { + _this->_internal_set_type(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!from._internal_mux().empty()) { + _this->_internal_set_mux(from._internal_mux()); + } else { + if (_this->_impl_.mux_.IsDefault()) { + _this->_internal_set_mux(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_channel_id() != 0) { + _this->_impl_.channel_id_ = from._impl_.channel_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_slot_size() != 0) { + _this->_impl_.slot_size_ = from._impl_.slot_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_num_slots() != 0) { + _this->_impl_.num_slots_ = from._impl_.num_slots_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_is_local() != 0) { + _this->_impl_.is_local_ = from._impl_.is_local_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_is_reliable() != 0) { + _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + } + } } - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (from._internal_is_fixed_size() != 0) { + _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if (from._internal_has_split_buffer_options() != 0) { + _this->_impl_.has_split_buffer_options_ = from._impl_.has_split_buffer_options_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (from._internal_checksum_size() != 0) { + _this->_impl_.checksum_size_ = from._impl_.checksum_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (from._internal_metadata_size() != 0) { + _this->_impl_.metadata_size_ = from._impl_.metadata_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if (from._internal_vchan_id() != 0) { + _this->_impl_.vchan_id_ = from._impl_.vchan_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if (from._internal_use_split_buffers() != 0) { + _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; + } + } + if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if (from._internal_has_max_publishers() != 0) { + _this->_impl_.has_max_publishers_ = from._impl_.has_max_publishers_; + } + } + if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if (from._internal_split_buffers_over_bridge() != 0) { + _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + } + } } - if (from._internal_max_publishers() != 0) { - _this->_impl_.max_publishers_ = from._impl_.max_publishers_; + if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if (from._internal_max_publishers() != 0) { + _this->_impl_.max_publishers_ = from._impl_.max_publishers_; + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowCreateChannel::CopyFrom(const ShadowCreateChannel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowCreateChannel) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowCreateChannel) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowCreateChannel::InternalSwap(ShadowCreateChannel* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowCreateChannel::InternalSwap(ShadowCreateChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); @@ -20276,28 +24568,34 @@ ::google::protobuf::Metadata ShadowCreateChannel::GetMetadata() const { class ShadowRemoveChannel::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_._has_bits_); }; -ShadowRemoveChannel::ShadowRemoveChannel(::google::protobuf::Arena* arena) +ShadowRemoveChannel::ShadowRemoveChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRemoveChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowRemoveChannel) } -inline PROTOBUF_NDEBUG_INLINE ShadowRemoveChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowRemoveChannel& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowRemoveChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowRemoveChannel& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ShadowRemoveChannel::ShadowRemoveChannel( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemoveChannel& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRemoveChannel_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -20310,13 +24608,13 @@ ShadowRemoveChannel::ShadowRemoveChannel( // @@protoc_insertion_point(copy_constructor:subspace.ShadowRemoveChannel) } -inline PROTOBUF_NDEBUG_INLINE ShadowRemoveChannel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowRemoveChannel::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ShadowRemoveChannel::SharedCtor(::_pb::Arena* arena) { +inline void ShadowRemoveChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.channel_id_ = {}; } @@ -20326,51 +24624,62 @@ ShadowRemoveChannel::~ShadowRemoveChannel() { } inline void ShadowRemoveChannel::SharedDtor(MessageLite& self) { ShadowRemoveChannel& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ShadowRemoveChannel::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowRemoveChannel::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowRemoveChannel(arena); } constexpr auto ShadowRemoveChannel::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowRemoveChannel), alignof(ShadowRemoveChannel)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowRemoveChannel::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowRemoveChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRemoveChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRemoveChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRemoveChannel::ByteSizeLong, - &ShadowRemoveChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_._cached_size_), - false, - }, - &ShadowRemoveChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowRemoveChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowRemoveChannel::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowRemoveChannel_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowRemoveChannel::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowRemoveChannel::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowRemoveChannel::ByteSizeLong, + &ShadowRemoveChannel::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_._cached_size_), + false, + }, + &ShadowRemoveChannel::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowRemoveChannel_class_data_ = + ShadowRemoveChannel::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowRemoveChannel::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRemoveChannel_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowRemoveChannel_class_data_.tc_table); + return ShadowRemoveChannel_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ShadowRemoveChannel::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 49, 2> +ShadowRemoveChannel::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -20379,7 +24688,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ShadowRemoveChannel::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowRemoveChannel_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -20387,20 +24696,20 @@ const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ShadowRemoveChannel::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemoveChannel, _impl_.channel_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemoveChannel, _impl_.channel_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_id_)}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ @@ -20409,7 +24718,6 @@ const ::_pbi::TcParseTable<1, 2, 0, 49, 2> ShadowRemoveChannel::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void ShadowRemoveChannel::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowRemoveChannel) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -20417,113 +24725,149 @@ PROTOBUF_NOINLINE void ShadowRemoveChannel::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } _impl_.channel_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowRemoveChannel::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowRemoveChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowRemoveChannel::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowRemoveChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemoveChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemoveChannel.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemoveChannel) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowRemoveChannel::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowRemoveChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowRemoveChannel::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowRemoveChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemoveChannel) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemoveChannel.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_channel_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_channel_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemoveChannel) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowRemoveChannel::ByteSizeLong(const MessageLite& base) { - const ShadowRemoveChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowRemoveChannel::ByteSizeLong() const { - const ShadowRemoveChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemoveChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int32 channel_id = 2; - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t ShadowRemoveChannel::ByteSizeLong(const MessageLite& base) { + const ShadowRemoveChannel& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowRemoveChannel::ByteSizeLong() const { + const ShadowRemoveChannel& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemoveChannel) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int32 channel_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_channel_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_channel_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ShadowRemoveChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowRemoveChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRemoveChannel) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_channel_id() != 0) { + _this->_impl_.channel_id_ = from._impl_.channel_id_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowRemoveChannel::CopyFrom(const ShadowRemoveChannel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemoveChannel) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemoveChannel) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowRemoveChannel::InternalSwap(ShadowRemoveChannel* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowRemoveChannel::InternalSwap(ShadowRemoveChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.channel_id_, other->_impl_.channel_id_); + swap(_impl_.channel_id_, other->_impl_.channel_id_); } ::google::protobuf::Metadata ShadowRemoveChannel::GetMetadata() const { @@ -20533,28 +24877,34 @@ ::google::protobuf::Metadata ShadowRemoveChannel::GetMetadata() const { class ShadowAddPublisher::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_._has_bits_); }; -ShadowAddPublisher::ShadowAddPublisher(::google::protobuf::Arena* arena) +ShadowAddPublisher::ShadowAddPublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowAddPublisher_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowAddPublisher) } -inline PROTOBUF_NDEBUG_INLINE ShadowAddPublisher::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowAddPublisher& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowAddPublisher::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowAddPublisher& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ShadowAddPublisher::ShadowAddPublisher( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowAddPublisher& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowAddPublisher_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -20563,9 +24913,9 @@ ShadowAddPublisher::ShadowAddPublisher( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, publisher_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, publisher_id_), offsetof(Impl_, for_tunnel_) - offsetof(Impl_, publisher_id_) + @@ -20573,15 +24923,15 @@ ShadowAddPublisher::ShadowAddPublisher( // @@protoc_insertion_point(copy_constructor:subspace.ShadowAddPublisher) } -inline PROTOBUF_NDEBUG_INLINE ShadowAddPublisher::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowAddPublisher::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ShadowAddPublisher::SharedCtor(::_pb::Arena* arena) { +inline void ShadowAddPublisher::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, publisher_id_), 0, offsetof(Impl_, for_tunnel_) - @@ -20594,51 +24944,62 @@ ShadowAddPublisher::~ShadowAddPublisher() { } inline void ShadowAddPublisher::SharedDtor(MessageLite& self) { ShadowAddPublisher& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ShadowAddPublisher::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowAddPublisher::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowAddPublisher(arena); } constexpr auto ShadowAddPublisher::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowAddPublisher), alignof(ShadowAddPublisher)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowAddPublisher::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowAddPublisher_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowAddPublisher::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowAddPublisher::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowAddPublisher::ByteSizeLong, - &ShadowAddPublisher::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_._cached_size_), - false, - }, - &ShadowAddPublisher::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowAddPublisher::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowAddPublisher::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowAddPublisher_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowAddPublisher::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowAddPublisher::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowAddPublisher::ByteSizeLong, + &ShadowAddPublisher::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_._cached_size_), + false, + }, + &ShadowAddPublisher::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowAddPublisher_class_data_ = + ShadowAddPublisher::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowAddPublisher::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowAddPublisher_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowAddPublisher_class_data_.tc_table); + return ShadowAddPublisher_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 0, 56, 2> ShadowAddPublisher::_table_ = { +const ::_pbi::TcParseTable<3, 8, 0, 56, 2> +ShadowAddPublisher::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_._has_bits_), 0, // no _extensions_ 8, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -20647,7 +25008,7 @@ const ::_pbi::TcParseTable<3, 8, 0, 56, 2> ShadowAddPublisher::_table_ = { 8, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowAddPublisher_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -20655,56 +25016,56 @@ const ::_pbi::TcParseTable<3, 8, 0, 56, 2> ShadowAddPublisher::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // bool for_tunnel = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {64, 7, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_)}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.channel_name_)}}, // int32 publisher_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddPublisher, _impl_.publisher_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.publisher_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddPublisher, _impl_.publisher_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.publisher_id_)}}, // bool is_reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_reliable_)}}, // bool is_local = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_local_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_local_)}}, // bool is_bridge = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_bridge_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_bridge_)}}, // bool is_fixed_size = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_fixed_size_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_fixed_size_)}}, // bool notify_retirement = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.notify_retirement_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.notify_retirement_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 publisher_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.publisher_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.publisher_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool is_reliable = 3; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_reliable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_reliable_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_local = 4; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_local_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_local_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_bridge = 5; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_bridge_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_bridge_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_fixed_size = 6; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_fixed_size_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_fixed_size_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool notify_retirement = 7; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.notify_retirement_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool for_tunnel = 8; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -20713,7 +25074,6 @@ const ::_pbi::TcParseTable<3, 8, 0, 56, 2> ShadowAddPublisher::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void ShadowAddPublisher::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowAddPublisher) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -20721,197 +25081,271 @@ PROTOBUF_NOINLINE void ShadowAddPublisher::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - ::memset(&_impl_.publisher_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.for_tunnel_) - - reinterpret_cast(&_impl_.publisher_id_)) + sizeof(_impl_.for_tunnel_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { + ::memset(&_impl_.publisher_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.for_tunnel_) - + reinterpret_cast(&_impl_.publisher_id_)) + sizeof(_impl_.for_tunnel_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowAddPublisher::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowAddPublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowAddPublisher::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowAddPublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowAddPublisher) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowAddPublisher.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 publisher_id = 2; - if (this_._internal_publisher_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_publisher_id(), target); - } - - // bool is_reliable = 3; - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_is_reliable(), target); - } - - // bool is_local = 4; - if (this_._internal_is_local() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_local(), target); - } - - // bool is_bridge = 5; - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_is_bridge(), target); - } - - // bool is_fixed_size = 6; - if (this_._internal_is_fixed_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_fixed_size(), target); - } - - // bool notify_retirement = 7; - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this_._internal_notify_retirement(), target); - } - - // bool for_tunnel = 8; - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this_._internal_for_tunnel(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowAddPublisher) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowAddPublisher::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowAddPublisher& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowAddPublisher::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowAddPublisher& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowAddPublisher) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowAddPublisher.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowAddPublisher::ByteSizeLong(const MessageLite& base) { - const ShadowAddPublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowAddPublisher::ByteSizeLong() const { - const ShadowAddPublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowAddPublisher) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int32 publisher_id = 2; - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - // bool is_reliable = 3; - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - // bool is_local = 4; - if (this_._internal_is_local() != 0) { - total_size += 2; - } - // bool is_bridge = 5; - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - // bool is_fixed_size = 6; - if (this_._internal_is_fixed_size() != 0) { - total_size += 2; - } - // bool notify_retirement = 7; - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - // bool for_tunnel = 8; - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // int32 publisher_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_publisher_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_publisher_id(), target); + } + } -void ShadowAddPublisher::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowAddPublisher) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool is_reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_is_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_is_reliable(), target); + } + } + + // bool is_local = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_is_local() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_local(), target); + } + } - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + // bool is_bridge = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_is_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 5, this_._internal_is_bridge(), target); + } } - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + + // bool is_fixed_size = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_fixed_size() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_is_fixed_size(), target); + } } - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + + // bool notify_retirement = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_notify_retirement() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 7, this_._internal_notify_retirement(), target); + } } - if (from._internal_is_local() != 0) { - _this->_impl_.is_local_ = from._impl_.is_local_; + + // bool for_tunnel = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_for_tunnel() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 8, this_._internal_for_tunnel(), target); + } } - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_is_fixed_size() != 0) { - _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowAddPublisher) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShadowAddPublisher::ByteSizeLong(const MessageLite& base) { + const ShadowAddPublisher& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowAddPublisher::ByteSizeLong() const { + const ShadowAddPublisher& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowAddPublisher) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int32 publisher_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_publisher_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_publisher_id()); + } + } + // bool is_reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_is_reliable() != 0) { + total_size += 2; + } + } + // bool is_local = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_is_local() != 0) { + total_size += 2; + } + } + // bool is_bridge = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_is_bridge() != 0) { + total_size += 2; + } + } + // bool is_fixed_size = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_is_fixed_size() != 0) { + total_size += 2; + } + } + // bool notify_retirement = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (this_._internal_notify_retirement() != 0) { + total_size += 2; + } + } + // bool for_tunnel = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (this_._internal_for_tunnel() != 0) { + total_size += 2; + } + } } - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ShadowAddPublisher::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowAddPublisher) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_publisher_id() != 0) { + _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_is_reliable() != 0) { + _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_is_local() != 0) { + _this->_impl_.is_local_ = from._impl_.is_local_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_is_bridge() != 0) { + _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_is_fixed_size() != 0) { + _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (from._internal_notify_retirement() != 0) { + _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (from._internal_for_tunnel() != 0) { + _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowAddPublisher::CopyFrom(const ShadowAddPublisher& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowAddPublisher) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowAddPublisher) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowAddPublisher::InternalSwap(ShadowAddPublisher* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowAddPublisher::InternalSwap(ShadowAddPublisher* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_) @@ -20928,28 +25362,34 @@ ::google::protobuf::Metadata ShadowAddPublisher::GetMetadata() const { class ShadowRemovePublisher::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_._has_bits_); }; -ShadowRemovePublisher::ShadowRemovePublisher(::google::protobuf::Arena* arena) +ShadowRemovePublisher::ShadowRemovePublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRemovePublisher_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowRemovePublisher) } -inline PROTOBUF_NDEBUG_INLINE ShadowRemovePublisher::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowRemovePublisher& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowRemovePublisher::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowRemovePublisher& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ShadowRemovePublisher::ShadowRemovePublisher( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemovePublisher& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRemovePublisher_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -20962,13 +25402,13 @@ ShadowRemovePublisher::ShadowRemovePublisher( // @@protoc_insertion_point(copy_constructor:subspace.ShadowRemovePublisher) } -inline PROTOBUF_NDEBUG_INLINE ShadowRemovePublisher::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowRemovePublisher::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ShadowRemovePublisher::SharedCtor(::_pb::Arena* arena) { +inline void ShadowRemovePublisher::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.publisher_id_ = {}; } @@ -20978,51 +25418,62 @@ ShadowRemovePublisher::~ShadowRemovePublisher() { } inline void ShadowRemovePublisher::SharedDtor(MessageLite& self) { ShadowRemovePublisher& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ShadowRemovePublisher::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowRemovePublisher::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowRemovePublisher(arena); } constexpr auto ShadowRemovePublisher::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowRemovePublisher), alignof(ShadowRemovePublisher)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowRemovePublisher::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowRemovePublisher_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRemovePublisher::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRemovePublisher::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRemovePublisher::ByteSizeLong, - &ShadowRemovePublisher::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_._cached_size_), - false, - }, - &ShadowRemovePublisher::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowRemovePublisher::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowRemovePublisher::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowRemovePublisher_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowRemovePublisher::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowRemovePublisher::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowRemovePublisher::ByteSizeLong, + &ShadowRemovePublisher::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_._cached_size_), + false, + }, + &ShadowRemovePublisher::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowRemovePublisher_class_data_ = + ShadowRemovePublisher::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowRemovePublisher::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRemovePublisher_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowRemovePublisher_class_data_.tc_table); + return ShadowRemovePublisher_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 51, 2> ShadowRemovePublisher::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 51, 2> +ShadowRemovePublisher::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -21031,7 +25482,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 51, 2> ShadowRemovePublisher::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowRemovePublisher_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -21039,20 +25490,20 @@ const ::_pbi::TcParseTable<1, 2, 0, 51, 2> ShadowRemovePublisher::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 publisher_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemovePublisher, _impl_.publisher_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.publisher_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemovePublisher, _impl_.publisher_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.publisher_id_)}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 publisher_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.publisher_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.publisher_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ @@ -21061,7 +25512,6 @@ const ::_pbi::TcParseTable<1, 2, 0, 51, 2> ShadowRemovePublisher::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void ShadowRemovePublisher::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowRemovePublisher) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -21069,113 +25519,149 @@ PROTOBUF_NOINLINE void ShadowRemovePublisher::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } _impl_.publisher_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowRemovePublisher::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowRemovePublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowRemovePublisher::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowRemovePublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemovePublisher) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemovePublisher.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 publisher_id = 2; - if (this_._internal_publisher_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_publisher_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemovePublisher) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowRemovePublisher::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowRemovePublisher& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowRemovePublisher::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowRemovePublisher& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemovePublisher) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemovePublisher.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 publisher_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_publisher_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_publisher_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemovePublisher) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowRemovePublisher::ByteSizeLong(const MessageLite& base) { - const ShadowRemovePublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowRemovePublisher::ByteSizeLong() const { - const ShadowRemovePublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemovePublisher) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int32 publisher_id = 2; - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t ShadowRemovePublisher::ByteSizeLong(const MessageLite& base) { + const ShadowRemovePublisher& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowRemovePublisher::ByteSizeLong() const { + const ShadowRemovePublisher& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemovePublisher) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int32 publisher_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_publisher_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_publisher_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ShadowRemovePublisher::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowRemovePublisher::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRemovePublisher) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_publisher_id() != 0) { + _this->_impl_.publisher_id_ = from._impl_.publisher_id_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowRemovePublisher::CopyFrom(const ShadowRemovePublisher& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemovePublisher) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemovePublisher) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowRemovePublisher::InternalSwap(ShadowRemovePublisher* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowRemovePublisher::InternalSwap(ShadowRemovePublisher* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.publisher_id_, other->_impl_.publisher_id_); + swap(_impl_.publisher_id_, other->_impl_.publisher_id_); } ::google::protobuf::Metadata ShadowRemovePublisher::GetMetadata() const { @@ -21185,28 +25671,34 @@ ::google::protobuf::Metadata ShadowRemovePublisher::GetMetadata() const { class ShadowAddSubscriber::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_._has_bits_); }; -ShadowAddSubscriber::ShadowAddSubscriber(::google::protobuf::Arena* arena) +ShadowAddSubscriber::ShadowAddSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowAddSubscriber_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowAddSubscriber) } -inline PROTOBUF_NDEBUG_INLINE ShadowAddSubscriber::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowAddSubscriber& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowAddSubscriber::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowAddSubscriber& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ShadowAddSubscriber::ShadowAddSubscriber( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowAddSubscriber& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowAddSubscriber_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -21215,9 +25707,9 @@ ShadowAddSubscriber::ShadowAddSubscriber( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, subscriber_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, subscriber_id_), offsetof(Impl_, max_active_messages_) - offsetof(Impl_, subscriber_id_) + @@ -21225,15 +25717,15 @@ ShadowAddSubscriber::ShadowAddSubscriber( // @@protoc_insertion_point(copy_constructor:subspace.ShadowAddSubscriber) } -inline PROTOBUF_NDEBUG_INLINE ShadowAddSubscriber::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowAddSubscriber::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ShadowAddSubscriber::SharedCtor(::_pb::Arena* arena) { +inline void ShadowAddSubscriber::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, subscriber_id_), 0, offsetof(Impl_, max_active_messages_) - @@ -21246,51 +25738,62 @@ ShadowAddSubscriber::~ShadowAddSubscriber() { } inline void ShadowAddSubscriber::SharedDtor(MessageLite& self) { ShadowAddSubscriber& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ShadowAddSubscriber::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowAddSubscriber::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowAddSubscriber(arena); } constexpr auto ShadowAddSubscriber::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowAddSubscriber), alignof(ShadowAddSubscriber)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowAddSubscriber::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowAddSubscriber_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowAddSubscriber::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowAddSubscriber::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowAddSubscriber::ByteSizeLong, - &ShadowAddSubscriber::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_._cached_size_), - false, - }, - &ShadowAddSubscriber::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowAddSubscriber::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowAddSubscriber::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowAddSubscriber_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowAddSubscriber::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowAddSubscriber::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowAddSubscriber::ByteSizeLong, + &ShadowAddSubscriber::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_._cached_size_), + false, + }, + &ShadowAddSubscriber::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowAddSubscriber_class_data_ = + ShadowAddSubscriber::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowAddSubscriber::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowAddSubscriber_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowAddSubscriber_class_data_.tc_table); + return ShadowAddSubscriber_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 49, 2> ShadowAddSubscriber::_table_ = { +const ::_pbi::TcParseTable<3, 6, 0, 49, 2> +ShadowAddSubscriber::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_._has_bits_), 0, // no _extensions_ 6, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -21299,7 +25802,7 @@ const ::_pbi::TcParseTable<3, 6, 0, 49, 2> ShadowAddSubscriber::_table_ = { 6, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowAddSubscriber_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -21309,44 +25812,44 @@ const ::_pbi::TcParseTable<3, 6, 0, 49, 2> ShadowAddSubscriber::_table_ = { {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.channel_name_)}}, // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddSubscriber, _impl_.subscriber_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.subscriber_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddSubscriber, _impl_.subscriber_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.subscriber_id_)}}, // bool is_reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_reliable_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_reliable_)}}, // bool is_bridge = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_bridge_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_bridge_)}}, // int32 max_active_messages = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddSubscriber, _impl_.max_active_messages_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddSubscriber, _impl_.max_active_messages_), 5>(), + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_)}}, // bool for_tunnel = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.for_tunnel_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 4, 0, + PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.for_tunnel_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.subscriber_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool is_reliable = 3; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_reliable_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_reliable_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool is_bridge = 4; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_bridge_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_bridge_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // int32 max_active_messages = 5; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool for_tunnel = 6; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.for_tunnel_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -21355,7 +25858,6 @@ const ::_pbi::TcParseTable<3, 6, 0, 49, 2> ShadowAddSubscriber::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void ShadowAddSubscriber::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowAddSubscriber) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -21363,170 +25865,232 @@ PROTOBUF_NOINLINE void ShadowAddSubscriber::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - ::memset(&_impl_.subscriber_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_active_messages_) - - reinterpret_cast(&_impl_.subscriber_id_)) + sizeof(_impl_.max_active_messages_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) { + ::memset(&_impl_.subscriber_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.max_active_messages_) - + reinterpret_cast(&_impl_.subscriber_id_)) + sizeof(_impl_.max_active_messages_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowAddSubscriber::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowAddSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowAddSubscriber::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowAddSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowAddSubscriber) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowAddSubscriber.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - - // bool is_reliable = 3; - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_is_reliable(), target); - } - - // bool is_bridge = 4; - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_bridge(), target); - } - - // int32 max_active_messages = 5; - if (this_._internal_max_active_messages() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this_._internal_max_active_messages(), target); - } - - // bool for_tunnel = 6; - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_for_tunnel(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowAddSubscriber) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowAddSubscriber::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowAddSubscriber& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowAddSubscriber::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowAddSubscriber& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowAddSubscriber) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowAddSubscriber.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowAddSubscriber::ByteSizeLong(const MessageLite& base) { - const ShadowAddSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowAddSubscriber::ByteSizeLong() const { - const ShadowAddSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowAddSubscriber) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - // bool is_reliable = 3; - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - // bool is_bridge = 4; - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - // bool for_tunnel = 6; - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - // int32 max_active_messages = 5; - if (this_._internal_max_active_messages() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_max_active_messages()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_subscriber_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_subscriber_id(), target); + } + } -void ShadowAddSubscriber::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowAddSubscriber) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool is_reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_is_reliable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_is_reliable(), target); + } + } + + // bool is_bridge = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_is_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_is_bridge(), target); + } + } - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + // int32 max_active_messages = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_max_active_messages() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_max_active_messages(), target); + } } - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + + // bool for_tunnel = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_for_tunnel() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_for_tunnel(), target); + } } - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowAddSubscriber) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShadowAddSubscriber::ByteSizeLong(const MessageLite& base) { + const ShadowAddSubscriber& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowAddSubscriber::ByteSizeLong() const { + const ShadowAddSubscriber& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowAddSubscriber) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_subscriber_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_subscriber_id()); + } + } + // bool is_reliable = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_is_reliable() != 0) { + total_size += 2; + } + } + // bool is_bridge = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_is_bridge() != 0) { + total_size += 2; + } + } + // bool for_tunnel = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_for_tunnel() != 0) { + total_size += 2; + } + } + // int32 max_active_messages = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_max_active_messages() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_max_active_messages()); + } + } } - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ShadowAddSubscriber::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_max_active_messages() != 0) { - _this->_impl_.max_active_messages_ = from._impl_.max_active_messages_; + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowAddSubscriber) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_subscriber_id() != 0) { + _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_is_reliable() != 0) { + _this->_impl_.is_reliable_ = from._impl_.is_reliable_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_is_bridge() != 0) { + _this->_impl_.is_bridge_ = from._impl_.is_bridge_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_for_tunnel() != 0) { + _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_max_active_messages() != 0) { + _this->_impl_.max_active_messages_ = from._impl_.max_active_messages_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowAddSubscriber::CopyFrom(const ShadowAddSubscriber& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowAddSubscriber) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowAddSubscriber) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowAddSubscriber::InternalSwap(ShadowAddSubscriber* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowAddSubscriber::InternalSwap(ShadowAddSubscriber* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_) @@ -21543,28 +26107,34 @@ ::google::protobuf::Metadata ShadowAddSubscriber::GetMetadata() const { class ShadowRemoveSubscriber::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_._has_bits_); }; -ShadowRemoveSubscriber::ShadowRemoveSubscriber(::google::protobuf::Arena* arena) +ShadowRemoveSubscriber::ShadowRemoveSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRemoveSubscriber_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowRemoveSubscriber) } -inline PROTOBUF_NDEBUG_INLINE ShadowRemoveSubscriber::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowRemoveSubscriber& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowRemoveSubscriber::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowRemoveSubscriber& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ShadowRemoveSubscriber::ShadowRemoveSubscriber( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemoveSubscriber& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRemoveSubscriber_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -21577,13 +26147,13 @@ ShadowRemoveSubscriber::ShadowRemoveSubscriber( // @@protoc_insertion_point(copy_constructor:subspace.ShadowRemoveSubscriber) } -inline PROTOBUF_NDEBUG_INLINE ShadowRemoveSubscriber::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowRemoveSubscriber::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ShadowRemoveSubscriber::SharedCtor(::_pb::Arena* arena) { +inline void ShadowRemoveSubscriber::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.subscriber_id_ = {}; } @@ -21593,51 +26163,62 @@ ShadowRemoveSubscriber::~ShadowRemoveSubscriber() { } inline void ShadowRemoveSubscriber::SharedDtor(MessageLite& self) { ShadowRemoveSubscriber& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ShadowRemoveSubscriber::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowRemoveSubscriber::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowRemoveSubscriber(arena); } constexpr auto ShadowRemoveSubscriber::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowRemoveSubscriber), alignof(ShadowRemoveSubscriber)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowRemoveSubscriber::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowRemoveSubscriber_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRemoveSubscriber::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRemoveSubscriber::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRemoveSubscriber::ByteSizeLong, - &ShadowRemoveSubscriber::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_._cached_size_), - false, - }, - &ShadowRemoveSubscriber::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowRemoveSubscriber::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowRemoveSubscriber::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowRemoveSubscriber_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowRemoveSubscriber::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowRemoveSubscriber::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowRemoveSubscriber::ByteSizeLong, + &ShadowRemoveSubscriber::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_._cached_size_), + false, + }, + &ShadowRemoveSubscriber::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowRemoveSubscriber_class_data_ = + ShadowRemoveSubscriber::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowRemoveSubscriber::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRemoveSubscriber_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowRemoveSubscriber_class_data_.tc_table); + return ShadowRemoveSubscriber_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 52, 2> ShadowRemoveSubscriber::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 52, 2> +ShadowRemoveSubscriber::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -21646,7 +26227,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 52, 2> ShadowRemoveSubscriber::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowRemoveSubscriber_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -21654,20 +26235,20 @@ const ::_pbi::TcParseTable<1, 2, 0, 52, 2> ShadowRemoveSubscriber::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemoveSubscriber, _impl_.subscriber_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.subscriber_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemoveSubscriber, _impl_.subscriber_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.subscriber_id_)}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.channel_name_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.subscriber_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ @@ -21676,7 +26257,6 @@ const ::_pbi::TcParseTable<1, 2, 0, 52, 2> ShadowRemoveSubscriber::_table_ = { "channel_name" }}, }; - PROTOBUF_NOINLINE void ShadowRemoveSubscriber::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowRemoveSubscriber) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -21684,113 +26264,149 @@ PROTOBUF_NOINLINE void ShadowRemoveSubscriber::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } _impl_.subscriber_id_ = 0; + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowRemoveSubscriber::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowRemoveSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowRemoveSubscriber::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowRemoveSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemoveSubscriber) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemoveSubscriber.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemoveSubscriber) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowRemoveSubscriber::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowRemoveSubscriber& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowRemoveSubscriber::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowRemoveSubscriber& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemoveSubscriber) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemoveSubscriber.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_subscriber_id() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_subscriber_id(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemoveSubscriber) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowRemoveSubscriber::ByteSizeLong(const MessageLite& base) { - const ShadowRemoveSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowRemoveSubscriber::ByteSizeLong() const { - const ShadowRemoveSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemoveSubscriber) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // int32 subscriber_id = 2; - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t ShadowRemoveSubscriber::ByteSizeLong(const MessageLite& base) { + const ShadowRemoveSubscriber& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowRemoveSubscriber::ByteSizeLong() const { + const ShadowRemoveSubscriber& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemoveSubscriber) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // int32 subscriber_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_subscriber_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_subscriber_id()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ShadowRemoveSubscriber::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowRemoveSubscriber::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRemoveSubscriber) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_subscriber_id() != 0) { + _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowRemoveSubscriber::CopyFrom(const ShadowRemoveSubscriber& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemoveSubscriber) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemoveSubscriber) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowRemoveSubscriber::InternalSwap(ShadowRemoveSubscriber* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowRemoveSubscriber::InternalSwap(ShadowRemoveSubscriber* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.subscriber_id_, other->_impl_.subscriber_id_); + swap(_impl_.subscriber_id_, other->_impl_.subscriber_id_); } ::google::protobuf::Metadata ShadowRemoveSubscriber::GetMetadata() const { @@ -21800,11 +26416,15 @@ ::google::protobuf::Metadata ShadowRemoveSubscriber::GetMetadata() const { class ShadowStateDump::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_._has_bits_); }; -ShadowStateDump::ShadowStateDump(::google::protobuf::Arena* arena) +ShadowStateDump::ShadowStateDump(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowStateDump_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -21812,18 +26432,24 @@ ShadowStateDump::ShadowStateDump(::google::protobuf::Arena* arena) // @@protoc_insertion_point(arena_constructor:subspace.ShadowStateDump) } ShadowStateDump::ShadowStateDump( - ::google::protobuf::Arena* arena, const ShadowStateDump& from) - : ShadowStateDump(arena) { - MergeFrom(from); + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowStateDump& from) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::Message(arena, ShadowStateDump_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(arena), +#endif // PROTOBUF_CUSTOM_VTABLE + _impl_(from._impl_) { + _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } -inline PROTOBUF_NDEBUG_INLINE ShadowStateDump::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE ShadowStateDump::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void ShadowStateDump::SharedCtor(::_pb::Arena* arena) { +inline void ShadowStateDump::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, session_id_), 0, offsetof(Impl_, num_channels_) - @@ -21836,50 +26462,61 @@ ShadowStateDump::~ShadowStateDump() { } inline void ShadowStateDump::SharedDtor(MessageLite& self) { ShadowStateDump& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* ShadowStateDump::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowStateDump::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowStateDump(arena); } constexpr auto ShadowStateDump::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowStateDump), alignof(ShadowStateDump)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowStateDump::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowStateDump_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowStateDump::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowStateDump::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowStateDump::ByteSizeLong, - &ShadowStateDump::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_._cached_size_), - false, - }, - &ShadowStateDump::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowStateDump::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowStateDump::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowStateDump_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowStateDump::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowStateDump::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowStateDump::ByteSizeLong, + &ShadowStateDump::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_._cached_size_), + false, + }, + &ShadowStateDump::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowStateDump_class_data_ = + ShadowStateDump::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowStateDump::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowStateDump_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowStateDump_class_data_.tc_table); + return ShadowStateDump_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ShadowStateDump::_table_ = { +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +ShadowStateDump::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -21888,7 +26525,7 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ShadowStateDump::_table_ = { 2, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowStateDump_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -21896,26 +26533,25 @@ const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ShadowStateDump::_table_ = { #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ // int32 num_channels = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowStateDump, _impl_.num_channels_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowStateDump, _impl_.num_channels_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_)}}, // uint64 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowStateDump, _impl_.session_id_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowStateDump, _impl_.session_id_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.session_id_)}}, }}, {{ 65535, 65535 }}, {{ // uint64 session_id = 1; - {PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // int32 num_channels = 2; - {PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, }}, // no aux_entries {{ }}, }; - PROTOBUF_NOINLINE void ShadowStateDump::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowStateDump) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -21923,109 +26559,141 @@ PROTOBUF_NOINLINE void ShadowStateDump::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_channels_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.num_channels_)); + cached_has_bits = _impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.num_channels_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.num_channels_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowStateDump::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowStateDump& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowStateDump::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowStateDump& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowStateDump) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 session_id = 1; - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_session_id(), target); - } - - // int32 num_channels = 2; - if (this_._internal_num_channels() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<2>( - stream, this_._internal_num_channels(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowStateDump) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowStateDump::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowStateDump& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowStateDump::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowStateDump& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowStateDump) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // uint64 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 1, this_._internal_session_id(), target); + } + } + + // int32 num_channels = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_num_channels() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_num_channels(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowStateDump) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShadowStateDump::ByteSizeLong(const MessageLite& base) { + const ShadowStateDump& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowStateDump::ByteSizeLong() const { + const ShadowStateDump& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowStateDump) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowStateDump::ByteSizeLong(const MessageLite& base) { - const ShadowStateDump& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowStateDump::ByteSizeLong() const { - const ShadowStateDump& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowStateDump) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // uint64 session_id = 1; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - // int32 num_channels = 2; - if (this_._internal_num_channels() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_channels()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + // uint64 session_id = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_session_id()); + } + } + // int32 num_channels = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_num_channels() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_num_channels()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ShadowStateDump::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowStateDump::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowStateDump) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - if (from._internal_num_channels() != 0) { - _this->_impl_.num_channels_ = from._impl_.num_channels_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_num_channels() != 0) { + _this->_impl_.num_channels_ = from._impl_.num_channels_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowStateDump::CopyFrom(const ShadowStateDump& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowStateDump) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowStateDump) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowStateDump::InternalSwap(ShadowStateDump* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowStateDump::InternalSwap(ShadowStateDump* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_) + sizeof(ShadowStateDump::_impl_.num_channels_) @@ -22043,19 +26711,19 @@ class ShadowStateDone::_Internal { public: }; -ShadowStateDone::ShadowStateDone(::google::protobuf::Arena* arena) +ShadowStateDone::ShadowStateDone(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, ShadowStateDone_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE // @@protoc_insertion_point(arena_constructor:subspace.ShadowStateDone) } ShadowStateDone::ShadowStateDone( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowStateDone& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, _class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, ShadowStateDone_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -22067,43 +26735,51 @@ ShadowStateDone::ShadowStateDone( // @@protoc_insertion_point(copy_constructor:subspace.ShadowStateDone) } -inline void* ShadowStateDone::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowStateDone::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowStateDone(arena); } constexpr auto ShadowStateDone::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowStateDone), alignof(ShadowStateDone)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowStateDone::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowStateDone_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowStateDone::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowStateDone::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ShadowStateDone::ByteSizeLong, - &ShadowStateDone::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowStateDone, _impl_._cached_size_), - false, - }, - &ShadowStateDone::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowStateDone::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowStateDone::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowStateDone_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowStateDone::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowStateDone::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ShadowStateDone::ByteSizeLong, + &ShadowStateDone::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowStateDone, _impl_._cached_size_), + false, + }, + &ShadowStateDone::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowStateDone_class_data_ = + ShadowStateDone::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowStateDone::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowStateDone_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowStateDone_class_data_.tc_table); + return ShadowStateDone_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ShadowStateDone::_table_ = { +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +ShadowStateDone::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -22114,7 +26790,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ShadowStateDone::_table_ = { 0, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowStateDone_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -22124,8 +26800,7 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ShadowStateDone::_table_ = { {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 - }}, - // no field_entries, or aux_entries + }}, // no field_entries, or aux_entries {{ }}, }; @@ -22136,7 +26811,6 @@ const ::_pbi::TcParseTable<0, 0, 0, 0, 2> ShadowStateDone::_table_ = { - ::google::protobuf::Metadata ShadowStateDone::GetMetadata() const { return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); } @@ -22145,31 +26819,32 @@ ::google::protobuf::Metadata ShadowStateDone::GetMetadata() const { class ShadowRegisterClientBuffer::_Internal { public: using HasBits = - decltype(std::declval()._impl_._has_bits_); + decltype(::std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_._has_bits_); }; -ShadowRegisterClientBuffer::ShadowRegisterClientBuffer(::google::protobuf::Arena* arena) +ShadowRegisterClientBuffer::ShadowRegisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRegisterClientBuffer_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowRegisterClientBuffer) } -inline PROTOBUF_NDEBUG_INLINE ShadowRegisterClientBuffer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowRegisterClientBuffer& from_msg) +PROTOBUF_NDEBUG_INLINE ShadowRegisterClientBuffer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowRegisterClientBuffer& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} ShadowRegisterClientBuffer::ShadowRegisterClientBuffer( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRegisterClientBuffer& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowRegisterClientBuffer_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -22179,20 +26854,32 @@ ShadowRegisterClientBuffer::ShadowRegisterClientBuffer( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::subspace::ClientBufferHandleMetadataProto>( - arena, *from._impl_.metadata_) - : nullptr; + _impl_.metadata_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, has_fd_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, has_fd_), + offsetof(Impl_, fd_index_) - + offsetof(Impl_, has_fd_) + + sizeof(Impl_::fd_index_)); // @@protoc_insertion_point(copy_constructor:subspace.ShadowRegisterClientBuffer) } -inline PROTOBUF_NDEBUG_INLINE ShadowRegisterClientBuffer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) +PROTOBUF_NDEBUG_INLINE ShadowRegisterClientBuffer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} -inline void ShadowRegisterClientBuffer::SharedCtor(::_pb::Arena* arena) { +inline void ShadowRegisterClientBuffer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.metadata_ = {}; + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, metadata_), + 0, + offsetof(Impl_, fd_index_) - + offsetof(Impl_, metadata_) + + sizeof(Impl_::fd_index_)); } ShadowRegisterClientBuffer::~ShadowRegisterClientBuffer() { // @@protoc_insertion_point(destructor:subspace.ShadowRegisterClientBuffer) @@ -22200,81 +26887,106 @@ ShadowRegisterClientBuffer::~ShadowRegisterClientBuffer() { } inline void ShadowRegisterClientBuffer::SharedDtor(MessageLite& self) { ShadowRegisterClientBuffer& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.metadata_; this_._impl_.~Impl_(); } -inline void* ShadowRegisterClientBuffer::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowRegisterClientBuffer::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowRegisterClientBuffer(arena); } constexpr auto ShadowRegisterClientBuffer::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowRegisterClientBuffer), alignof(ShadowRegisterClientBuffer)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowRegisterClientBuffer::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowRegisterClientBuffer_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRegisterClientBuffer::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRegisterClientBuffer::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRegisterClientBuffer::ByteSizeLong, - &ShadowRegisterClientBuffer::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_._cached_size_), - false, - }, - &ShadowRegisterClientBuffer::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowRegisterClientBuffer::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowRegisterClientBuffer::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowRegisterClientBuffer_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowRegisterClientBuffer::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowRegisterClientBuffer::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowRegisterClientBuffer::ByteSizeLong, + &ShadowRegisterClientBuffer::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_._cached_size_), + false, + }, + &ShadowRegisterClientBuffer::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowRegisterClientBuffer_class_data_ = + ShadowRegisterClientBuffer::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowRegisterClientBuffer::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRegisterClientBuffer_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowRegisterClientBuffer_class_data_.tc_table); + return ShadowRegisterClientBuffer_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ShadowRegisterClientBuffer::_table_ = { +const ::_pbi::TcParseTable<2, 3, 1, 0, 2> +ShadowRegisterClientBuffer::_table_ = { { PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_._has_bits_), 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask + 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap + 4294967288, // skipmap offsetof(decltype(_table_), field_entries), - 1, // num_field_entries + 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - _class_data_.base(), + ShadowRegisterClientBuffer_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE ::_pbi::TcParser::GetTable<::subspace::ShadowRegisterClientBuffer>(), // to_prefetch #endif // PROTOBUF_PREFETCH_PARSE_TABLE }, {{ + {::_pbi::TcParser::MiniParse, {}}, // .subspace.ClientBufferHandleMetadataProto metadata = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_)}}, + // bool has_fd = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.has_fd_)}}, + // int32 fd_index = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRegisterClientBuffer, _impl_.fd_index_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.fd_index_)}}, }}, {{ 65535, 65535 }}, {{ // .subspace.ClientBufferHandleMetadataProto metadata = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, - }}, {{ + {PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool has_fd = 2; + {PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.has_fd_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // int32 fd_index = 3; + {PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.fd_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, + }}, + {{ }}, }; - PROTOBUF_NOINLINE void ShadowRegisterClientBuffer::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowRegisterClientBuffer) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -22283,108 +26995,170 @@ PROTOBUF_NOINLINE void ShadowRegisterClientBuffer::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(_impl_.metadata_ != nullptr); _impl_.metadata_->Clear(); } + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.has_fd_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.fd_index_) - + reinterpret_cast(&_impl_.has_fd_)) + sizeof(_impl_.fd_index_)); + } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowRegisterClientBuffer::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowRegisterClientBuffer& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowRegisterClientBuffer::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowRegisterClientBuffer& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRegisterClientBuffer) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, - stream); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRegisterClientBuffer) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowRegisterClientBuffer::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowRegisterClientBuffer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowRegisterClientBuffer::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowRegisterClientBuffer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRegisterClientBuffer) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // .subspace.ClientBufferHandleMetadataProto metadata = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, + stream); + } + + // bool has_fd = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_has_fd() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_has_fd(), target); + } + } + + // int32 fd_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_fd_index() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( + stream, this_._internal_fd_index(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRegisterClientBuffer) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowRegisterClientBuffer::ByteSizeLong(const MessageLite& base) { - const ShadowRegisterClientBuffer& this_ = static_cast(base); +::size_t ShadowRegisterClientBuffer::ByteSizeLong(const MessageLite& base) { + const ShadowRegisterClientBuffer& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowRegisterClientBuffer::ByteSizeLong() const { - const ShadowRegisterClientBuffer& this_ = *this; +::size_t ShadowRegisterClientBuffer::ByteSizeLong() const { + const ShadowRegisterClientBuffer& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRegisterClientBuffer) - ::size_t total_size = 0; + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRegisterClientBuffer) + ::size_t total_size = 0; - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; - { - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // .subspace.ClientBufferHandleMetadataProto metadata = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); + } + // bool has_fd = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_has_fd() != 0) { + total_size += 2; + } + } + // int32 fd_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_fd_index() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_fd_index()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ShadowRegisterClientBuffer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowRegisterClientBuffer::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRegisterClientBuffer) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.metadata_ != nullptr); - if (_this->_impl_.metadata_ == nullptr) { - _this->_impl_.metadata_ = - ::google::protobuf::Message::CopyConstruct<::subspace::ClientBufferHandleMetadataProto>(arena, *from._impl_.metadata_); - } else { - _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + ABSL_DCHECK(from._impl_.metadata_ != nullptr); + if (_this->_impl_.metadata_ == nullptr) { + _this->_impl_.metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_); + } else { + _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_has_fd() != 0) { + _this->_impl_.has_fd_ = from._impl_.has_fd_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_fd_index() != 0) { + _this->_impl_.fd_index_ = from._impl_.fd_index_; + } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowRegisterClientBuffer::CopyFrom(const ShadowRegisterClientBuffer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRegisterClientBuffer) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRegisterClientBuffer) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowRegisterClientBuffer::InternalSwap(ShadowRegisterClientBuffer* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowRegisterClientBuffer::InternalSwap(ShadowRegisterClientBuffer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.metadata_, other->_impl_.metadata_); + ::google::protobuf::internal::memswap< + PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.fd_index_) + + sizeof(ShadowRegisterClientBuffer::_impl_.fd_index_) + - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_)>( + reinterpret_cast(&_impl_.metadata_), + reinterpret_cast(&other->_impl_.metadata_)); } ::google::protobuf::Metadata ShadowRegisterClientBuffer::GetMetadata() const { @@ -22394,28 +27168,34 @@ ::google::protobuf::Metadata ShadowRegisterClientBuffer::GetMetadata() const { class ShadowUnregisterClientBuffer::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_._has_bits_); }; -ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer(::google::protobuf::Arena* arena) +ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowUnregisterClientBuffer_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowUnregisterClientBuffer) } -inline PROTOBUF_NDEBUG_INLINE ShadowUnregisterClientBuffer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowUnregisterClientBuffer& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowUnregisterClientBuffer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowUnregisterClientBuffer& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowUnregisterClientBuffer& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowUnregisterClientBuffer_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -22424,9 +27204,9 @@ ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, session_id_), offsetof(Impl_, buffer_index_) - offsetof(Impl_, session_id_) + @@ -22434,15 +27214,15 @@ ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer( // @@protoc_insertion_point(copy_constructor:subspace.ShadowUnregisterClientBuffer) } -inline PROTOBUF_NDEBUG_INLINE ShadowUnregisterClientBuffer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowUnregisterClientBuffer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ShadowUnregisterClientBuffer::SharedCtor(::_pb::Arena* arena) { +inline void ShadowUnregisterClientBuffer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, session_id_), 0, offsetof(Impl_, buffer_index_) - @@ -22455,51 +27235,62 @@ ShadowUnregisterClientBuffer::~ShadowUnregisterClientBuffer() { } inline void ShadowUnregisterClientBuffer::SharedDtor(MessageLite& self) { ShadowUnregisterClientBuffer& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ShadowUnregisterClientBuffer::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowUnregisterClientBuffer(arena); } constexpr auto ShadowUnregisterClientBuffer::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowUnregisterClientBuffer), alignof(ShadowUnregisterClientBuffer)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowUnregisterClientBuffer::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowUnregisterClientBuffer_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowUnregisterClientBuffer::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowUnregisterClientBuffer::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowUnregisterClientBuffer::ByteSizeLong, - &ShadowUnregisterClientBuffer::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_._cached_size_), - false, - }, - &ShadowUnregisterClientBuffer::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowUnregisterClientBuffer::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowUnregisterClientBuffer::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowUnregisterClientBuffer_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowUnregisterClientBuffer::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowUnregisterClientBuffer::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowUnregisterClientBuffer::ByteSizeLong, + &ShadowUnregisterClientBuffer::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_._cached_size_), + false, + }, + &ShadowUnregisterClientBuffer::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowUnregisterClientBuffer_class_data_ = + ShadowUnregisterClientBuffer::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowUnregisterClientBuffer::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowUnregisterClientBuffer_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowUnregisterClientBuffer_class_data_.tc_table); + return ShadowUnregisterClientBuffer_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 58, 2> ShadowUnregisterClientBuffer::_table_ = { +const ::_pbi::TcParseTable<2, 3, 0, 58, 2> +ShadowUnregisterClientBuffer::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_._has_bits_), 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -22508,7 +27299,7 @@ const ::_pbi::TcParseTable<2, 3, 0, 58, 2> ShadowUnregisterClientBuffer::_table_ 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowUnregisterClientBuffer_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -22518,25 +27309,25 @@ const ::_pbi::TcParseTable<2, 3, 0, 58, 2> ShadowUnregisterClientBuffer::_table_ {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.channel_name_)}}, // uint64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowUnregisterClientBuffer, _impl_.session_id_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.session_id_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowUnregisterClientBuffer, _impl_.session_id_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.session_id_)}}, // uint32 buffer_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowUnregisterClientBuffer, _impl_.buffer_index_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowUnregisterClientBuffer, _impl_.buffer_index_), 2>(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_)}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // uint64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.session_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, + {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, // uint32 buffer_index = 3; - {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, }}, // no aux_entries {{ @@ -22545,7 +27336,6 @@ const ::_pbi::TcParseTable<2, 3, 0, 58, 2> ShadowUnregisterClientBuffer::_table_ "channel_name" }}, }; - PROTOBUF_NOINLINE void ShadowUnregisterClientBuffer::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowUnregisterClientBuffer) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -22553,128 +27343,172 @@ PROTOBUF_NOINLINE void ShadowUnregisterClientBuffer::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.buffer_index_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { + ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.buffer_index_) - + reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowUnregisterClientBuffer::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowUnregisterClientBuffer& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowUnregisterClientBuffer::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowUnregisterClientBuffer& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowUnregisterClientBuffer) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowUnregisterClientBuffer.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // uint64 session_id = 2; - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_session_id(), target); - } - - // uint32 buffer_index = 3; - if (this_._internal_buffer_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_buffer_index(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowUnregisterClientBuffer) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowUnregisterClientBuffer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowUnregisterClientBuffer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowUnregisterClientBuffer) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowUnregisterClientBuffer.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } + + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_session_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray( + 2, this_._internal_session_id(), target); + } + } + + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_buffer_index() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray( + 3, this_._internal_buffer_index(), target); + } + } + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowUnregisterClientBuffer) + return target; +} #if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowUnregisterClientBuffer::ByteSizeLong(const MessageLite& base) { - const ShadowUnregisterClientBuffer& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowUnregisterClientBuffer::ByteSizeLong() const { - const ShadowUnregisterClientBuffer& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowUnregisterClientBuffer) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // uint64 session_id = 2; - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - // uint32 buffer_index = 3; - if (this_._internal_buffer_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_buffer_index()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } +::size_t ShadowUnregisterClientBuffer::ByteSizeLong(const MessageLite& base) { + const ShadowUnregisterClientBuffer& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowUnregisterClientBuffer::ByteSizeLong() const { + const ShadowUnregisterClientBuffer& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowUnregisterClientBuffer) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // uint64 session_id = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_session_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( + this_._internal_session_id()); + } + } + // uint32 buffer_index = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_buffer_index() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( + this_._internal_buffer_index()); + } + } + } + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} -void ShadowUnregisterClientBuffer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); +void ShadowUnregisterClientBuffer::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowUnregisterClientBuffer) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - if (from._internal_buffer_index() != 0) { - _this->_impl_.buffer_index_ = from._impl_.buffer_index_; + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_session_id() != 0) { + _this->_impl_.session_id_ = from._impl_.session_id_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_buffer_index() != 0) { + _this->_impl_.buffer_index_ = from._impl_.buffer_index_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowUnregisterClientBuffer::CopyFrom(const ShadowUnregisterClientBuffer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowUnregisterClientBuffer) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowUnregisterClientBuffer) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowUnregisterClientBuffer::InternalSwap(ShadowUnregisterClientBuffer* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowUnregisterClientBuffer::InternalSwap(ShadowUnregisterClientBuffer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_) @@ -22691,28 +27525,34 @@ ::google::protobuf::Metadata ShadowUnregisterClientBuffer::GetMetadata() const { class ShadowUpdateChannelOptions::_Internal { public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_._has_bits_); }; -ShadowUpdateChannelOptions::ShadowUpdateChannelOptions(::google::protobuf::Arena* arena) +ShadowUpdateChannelOptions::ShadowUpdateChannelOptions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowUpdateChannelOptions_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:subspace.ShadowUpdateChannelOptions) } -inline PROTOBUF_NDEBUG_INLINE ShadowUpdateChannelOptions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from, const ::subspace::ShadowUpdateChannelOptions& from_msg) - : channel_name_(arena, from.channel_name_), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowUpdateChannelOptions::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::subspace::ShadowUpdateChannelOptions& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + channel_name_(arena, from.channel_name_) {} ShadowUpdateChannelOptions::ShadowUpdateChannelOptions( - ::google::protobuf::Arena* arena, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowUpdateChannelOptions& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, _class_data_.base()) { + : ::google::protobuf::Message(arena, ShadowUpdateChannelOptions_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -22721,9 +27561,9 @@ ShadowUpdateChannelOptions::ShadowUpdateChannelOptions( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, has_split_buffer_options_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, has_split_buffer_options_), offsetof(Impl_, max_publishers_) - offsetof(Impl_, has_split_buffer_options_) + @@ -22731,15 +27571,15 @@ ShadowUpdateChannelOptions::ShadowUpdateChannelOptions( // @@protoc_insertion_point(copy_constructor:subspace.ShadowUpdateChannelOptions) } -inline PROTOBUF_NDEBUG_INLINE ShadowUpdateChannelOptions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : channel_name_(arena), - _cached_size_{0} {} +PROTOBUF_NDEBUG_INLINE ShadowUpdateChannelOptions::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + channel_name_(arena) {} -inline void ShadowUpdateChannelOptions::SharedCtor(::_pb::Arena* arena) { +inline void ShadowUpdateChannelOptions::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, has_split_buffer_options_), 0, offsetof(Impl_, max_publishers_) - @@ -22752,51 +27592,62 @@ ShadowUpdateChannelOptions::~ShadowUpdateChannelOptions() { } inline void ShadowUpdateChannelOptions::SharedDtor(MessageLite& self) { ShadowUpdateChannelOptions& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.channel_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* ShadowUpdateChannelOptions::PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena) { +inline void* PROTOBUF_NONNULL ShadowUpdateChannelOptions::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { return ::new (mem) ShadowUpdateChannelOptions(arena); } constexpr auto ShadowUpdateChannelOptions::InternalNewImpl_() { return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowUpdateChannelOptions), alignof(ShadowUpdateChannelOptions)); } -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataFull ShadowUpdateChannelOptions::_class_data_ = { - ::google::protobuf::internal::ClassData{ - &_ShadowUpdateChannelOptions_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowUpdateChannelOptions::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowUpdateChannelOptions::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowUpdateChannelOptions::ByteSizeLong, - &ShadowUpdateChannelOptions::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_._cached_size_), - false, - }, - &ShadowUpdateChannelOptions::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker -}; -const ::google::protobuf::internal::ClassData* ShadowUpdateChannelOptions::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(_class_data_.tc_table); - return _class_data_.base(); +constexpr auto ShadowUpdateChannelOptions::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ShadowUpdateChannelOptions_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ShadowUpdateChannelOptions::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ShadowUpdateChannelOptions::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ShadowUpdateChannelOptions::ByteSizeLong, + &ShadowUpdateChannelOptions::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_._cached_size_), + false, + }, + &ShadowUpdateChannelOptions::kDescriptorMethods, + &descriptor_table_subspace_2eproto, + nullptr, // tracker + }; +} + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const + ::google::protobuf::internal::ClassDataFull ShadowUpdateChannelOptions_class_data_ = + ShadowUpdateChannelOptions::InternalGenerateClassData_(); + +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ShadowUpdateChannelOptions::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ShadowUpdateChannelOptions_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(ShadowUpdateChannelOptions_class_data_.tc_table); + return ShadowUpdateChannelOptions_class_data_.base(); } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 56, 2> ShadowUpdateChannelOptions::_table_ = { +const ::_pbi::TcParseTable<3, 6, 0, 56, 2> +ShadowUpdateChannelOptions::_table_ = { { - 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_._has_bits_), 0, // no _extensions_ 6, 56, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -22805,7 +27656,7 @@ const ::_pbi::TcParseTable<3, 6, 0, 56, 2> ShadowUpdateChannelOptions::_table_ = 6, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - _class_data_.base(), + ShadowUpdateChannelOptions_class_data_.base(), nullptr, // post_loop_handler ::_pbi::TcParser::GenericFallback, // fallback #ifdef PROTOBUF_PREFETCH_PARSE_TABLE @@ -22815,44 +27666,44 @@ const ::_pbi::TcParseTable<3, 6, 0, 56, 2> ShadowUpdateChannelOptions::_table_ = {::_pbi::TcParser::MiniParse, {}}, // string channel_name = 1; {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.channel_name_)}}, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.channel_name_)}}, // bool has_split_buffer_options = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_)}}, // bool use_split_buffers = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.use_split_buffers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.use_split_buffers_)}}, // bool has_max_publishers = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_max_publishers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 3, 0, + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_max_publishers_)}}, // int32 max_publishers = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowUpdateChannelOptions, _impl_.max_publishers_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_)}}, + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowUpdateChannelOptions, _impl_.max_publishers_), 5>(), + {40, 5, 0, + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_)}}, // bool split_buffers_over_bridge = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_)}}, + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 4, 0, + PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_)}}, {::_pbi::TcParser::MiniParse, {}}, }}, {{ 65535, 65535 }}, {{ // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.channel_name_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, + {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, // bool has_split_buffer_options = 2; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool use_split_buffers = 3; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.use_split_buffers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // bool has_max_publishers = 4; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_max_publishers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_max_publishers_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, // int32 max_publishers = 5; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kInt32)}, + {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, // bool split_buffers_over_bridge = 6; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, + {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, }}, // no aux_entries {{ @@ -22861,7 +27712,6 @@ const ::_pbi::TcParseTable<3, 6, 0, 56, 2> ShadowUpdateChannelOptions::_table_ = "channel_name" }}, }; - PROTOBUF_NOINLINE void ShadowUpdateChannelOptions::Clear() { // @@protoc_insertion_point(message_clear_start:subspace.ShadowUpdateChannelOptions) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -22869,169 +27719,231 @@ PROTOBUF_NOINLINE void ShadowUpdateChannelOptions::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.channel_name_.ClearToEmpty(); - ::memset(&_impl_.has_split_buffer_options_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_publishers_) - - reinterpret_cast(&_impl_.has_split_buffer_options_)) + sizeof(_impl_.max_publishers_)); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.channel_name_.ClearNonDefaultToEmpty(); + } + if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) { + ::memset(&_impl_.has_split_buffer_options_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.max_publishers_) - + reinterpret_cast(&_impl_.has_split_buffer_options_)) + sizeof(_impl_.max_publishers_)); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) - ::uint8_t* ShadowUpdateChannelOptions::_InternalSerialize( - const MessageLite& base, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) { - const ShadowUpdateChannelOptions& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::uint8_t* ShadowUpdateChannelOptions::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - const ShadowUpdateChannelOptions& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowUpdateChannelOptions) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - const std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowUpdateChannelOptions.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // bool has_split_buffer_options = 2; - if (this_._internal_has_split_buffer_options() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this_._internal_has_split_buffer_options(), target); - } - - // bool use_split_buffers = 3; - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_use_split_buffers(), target); - } - - // bool has_max_publishers = 4; - if (this_._internal_has_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_has_max_publishers(), target); - } - - // int32 max_publishers = 5; - if (this_._internal_max_publishers() != 0) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteInt32ToArrayWithField<5>( - stream, this_._internal_max_publishers(), target); - } - - // bool split_buffers_over_bridge = 6; - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_split_buffers_over_bridge(), target); - } - - if (PROTOBUF_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowUpdateChannelOptions) - return target; - } +::uint8_t* PROTOBUF_NONNULL ShadowUpdateChannelOptions::_InternalSerialize( + const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { + const ShadowUpdateChannelOptions& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::uint8_t* PROTOBUF_NONNULL ShadowUpdateChannelOptions::_InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + const ShadowUpdateChannelOptions& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowUpdateChannelOptions) + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = this_._impl_._has_bits_[0]; + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + const ::std::string& _s = this_._internal_channel_name(); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowUpdateChannelOptions.channel_name"); + target = stream->WriteStringMaybeAliased(1, _s, target); + } + } -#if defined(PROTOBUF_CUSTOM_VTABLE) - ::size_t ShadowUpdateChannelOptions::ByteSizeLong(const MessageLite& base) { - const ShadowUpdateChannelOptions& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE - ::size_t ShadowUpdateChannelOptions::ByteSizeLong() const { - const ShadowUpdateChannelOptions& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowUpdateChannelOptions) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // string channel_name = 1; - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - // bool has_split_buffer_options = 2; - if (this_._internal_has_split_buffer_options() != 0) { - total_size += 2; - } - // bool use_split_buffers = 3; - if (this_._internal_use_split_buffers() != 0) { - total_size += 2; - } - // bool has_max_publishers = 4; - if (this_._internal_has_max_publishers() != 0) { - total_size += 2; - } - // bool split_buffers_over_bridge = 6; - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 2; - } - // int32 max_publishers = 5; - if (this_._internal_max_publishers() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_max_publishers()); - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); - } + // bool has_split_buffer_options = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_has_split_buffer_options() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 2, this_._internal_has_split_buffer_options(), target); + } + } -void ShadowUpdateChannelOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowUpdateChannelOptions) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + // bool use_split_buffers = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_use_split_buffers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 3, this_._internal_use_split_buffers(), target); + } + } + + // bool has_max_publishers = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_has_max_publishers() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 4, this_._internal_has_max_publishers(), target); + } + } - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); + // int32 max_publishers = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_max_publishers() != 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( + stream, this_._internal_max_publishers(), target); + } } - if (from._internal_has_split_buffer_options() != 0) { - _this->_impl_.has_split_buffer_options_ = from._impl_.has_split_buffer_options_; + + // bool split_buffers_over_bridge = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray( + 6, this_._internal_split_buffers_over_bridge(), target); + } } - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; + + if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { + target = + ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - if (from._internal_has_max_publishers() != 0) { - _this->_impl_.has_max_publishers_ = from._impl_.has_max_publishers_; + // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowUpdateChannelOptions) + return target; +} + +#if defined(PROTOBUF_CUSTOM_VTABLE) +::size_t ShadowUpdateChannelOptions::ByteSizeLong(const MessageLite& base) { + const ShadowUpdateChannelOptions& this_ = static_cast(base); +#else // PROTOBUF_CUSTOM_VTABLE +::size_t ShadowUpdateChannelOptions::ByteSizeLong() const { + const ShadowUpdateChannelOptions& this_ = *this; +#endif // PROTOBUF_CUSTOM_VTABLE + // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowUpdateChannelOptions) + ::size_t total_size = 0; + + ::uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void)cached_has_bits; + + ::_pbi::Prefetch5LinesFrom7Lines(&this_); + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + // string channel_name = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_channel_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_channel_name()); + } + } + // bool has_split_buffer_options = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (this_._internal_has_split_buffer_options() != 0) { + total_size += 2; + } + } + // bool use_split_buffers = 3; + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (this_._internal_use_split_buffers() != 0) { + total_size += 2; + } + } + // bool has_max_publishers = 4; + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (this_._internal_has_max_publishers() != 0) { + total_size += 2; + } + } + // bool split_buffers_over_bridge = 6; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (this_._internal_split_buffers_over_bridge() != 0) { + total_size += 2; + } + } + // int32 max_publishers = 5; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (this_._internal_max_publishers() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_max_publishers()); + } + } } - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + return this_.MaybeComputeUnknownFieldsSize(total_size, + &this_._impl_._cached_size_); +} + +void ShadowUpdateChannelOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg) { + auto* const _this = + static_cast(&to_msg); + auto& from = static_cast(from_msg); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); } - if (from._internal_max_publishers() != 0) { - _this->_impl_.max_publishers_ = from._impl_.max_publishers_; + // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowUpdateChannelOptions) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void)cached_has_bits; + + cached_has_bits = from._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!from._internal_channel_name().empty()) { + _this->_internal_set_channel_name(from._internal_channel_name()); + } else { + if (_this->_impl_.channel_name_.IsDefault()) { + _this->_internal_set_channel_name(""); + } + } + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_has_split_buffer_options() != 0) { + _this->_impl_.has_split_buffer_options_ = from._impl_.has_split_buffer_options_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (from._internal_use_split_buffers() != 0) { + _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (from._internal_has_max_publishers() != 0) { + _this->_impl_.has_max_publishers_ = from._impl_.has_max_publishers_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (from._internal_split_buffers_over_bridge() != 0) { + _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; + } + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (from._internal_max_publishers() != 0) { + _this->_impl_.max_publishers_ = from._impl_.max_publishers_; + } + } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ShadowUpdateChannelOptions::CopyFrom(const ShadowUpdateChannelOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowUpdateChannelOptions) + // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowUpdateChannelOptions) if (&from == this) return; Clear(); MergeFrom(from); } -void ShadowUpdateChannelOptions::InternalSwap(ShadowUpdateChannelOptions* PROTOBUF_RESTRICT other) { - using std::swap; +void ShadowUpdateChannelOptions::InternalSwap(ShadowUpdateChannelOptions* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { + using ::std::swap; auto* arena = GetArena(); ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_) @@ -23052,7 +27964,7 @@ namespace protobuf { } // namespace google // @@protoc_insertion_point(global_scope) PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type - _static_init2_ PROTOBUF_UNUSED = + _static_init2_ [[maybe_unused]] = (::_pbi::AddDescriptors(&descriptor_table_subspace_2eproto), ::std::false_type{}); #include "google/protobuf/port_undef.inc" diff --git a/proto/subspace.pb.h b/proto/subspace.pb.h index 63e2aa2..0df2087 100644 --- a/proto/subspace.pb.h +++ b/proto/subspace.pb.h @@ -1,7 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: subspace.proto -// Protobuf C++ Version: 5.29.5 +// Protobuf C++ Version: 6.33.4 #ifndef subspace_2eproto_2epb_2eh #define subspace_2eproto_2epb_2eh @@ -12,7 +12,7 @@ #include #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 5029005 +#if PROTOBUF_VERSION != 6033004 #error "Protobuf C++ gencode is built with an incompatible version of" #error "Protobuf C++ headers/runtime. See" #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" @@ -51,186 +51,258 @@ ::absl::string_view GetAnyMessageName(); struct TableStruct_subspace_2eproto { static const ::uint32_t offsets[]; }; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_subspace_2eproto; +extern "C" { +extern const ::google::protobuf::internal::DescriptorTable descriptor_table_subspace_2eproto; +} // extern "C" namespace subspace { class ChannelAddress; struct ChannelAddressDefaultTypeInternal; extern ChannelAddressDefaultTypeInternal _ChannelAddress_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ChannelAddress_class_data_; class ChannelDirectory; struct ChannelDirectoryDefaultTypeInternal; extern ChannelDirectoryDefaultTypeInternal _ChannelDirectory_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ChannelDirectory_class_data_; class ChannelInfoProto; struct ChannelInfoProtoDefaultTypeInternal; extern ChannelInfoProtoDefaultTypeInternal _ChannelInfoProto_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ChannelInfoProto_class_data_; class ChannelStatsProto; struct ChannelStatsProtoDefaultTypeInternal; extern ChannelStatsProtoDefaultTypeInternal _ChannelStatsProto_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ChannelStatsProto_class_data_; class ClientBufferHandleMetadataProto; struct ClientBufferHandleMetadataProtoDefaultTypeInternal; extern ClientBufferHandleMetadataProtoDefaultTypeInternal _ClientBufferHandleMetadataProto_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ClientBufferHandleMetadataProto_class_data_; class CreatePublisherRequest; struct CreatePublisherRequestDefaultTypeInternal; extern CreatePublisherRequestDefaultTypeInternal _CreatePublisherRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CreatePublisherRequest_class_data_; class CreatePublisherResponse; struct CreatePublisherResponseDefaultTypeInternal; extern CreatePublisherResponseDefaultTypeInternal _CreatePublisherResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CreatePublisherResponse_class_data_; class CreateSubscriberRequest; struct CreateSubscriberRequestDefaultTypeInternal; extern CreateSubscriberRequestDefaultTypeInternal _CreateSubscriberRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberRequest_class_data_; class CreateSubscriberResponse; struct CreateSubscriberResponseDefaultTypeInternal; extern CreateSubscriberResponseDefaultTypeInternal _CreateSubscriberResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberResponse_class_data_; class Discovery; struct DiscoveryDefaultTypeInternal; extern DiscoveryDefaultTypeInternal _Discovery_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Discovery_class_data_; class Discovery_Advertise; struct Discovery_AdvertiseDefaultTypeInternal; extern Discovery_AdvertiseDefaultTypeInternal _Discovery_Advertise_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Discovery_Advertise_class_data_; class Discovery_Query; struct Discovery_QueryDefaultTypeInternal; extern Discovery_QueryDefaultTypeInternal _Discovery_Query_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Discovery_Query_class_data_; class Discovery_Subscribe; struct Discovery_SubscribeDefaultTypeInternal; extern Discovery_SubscribeDefaultTypeInternal _Discovery_Subscribe_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Discovery_Subscribe_class_data_; class GetChannelInfoRequest; struct GetChannelInfoRequestDefaultTypeInternal; extern GetChannelInfoRequestDefaultTypeInternal _GetChannelInfoRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoRequest_class_data_; class GetChannelInfoResponse; struct GetChannelInfoResponseDefaultTypeInternal; extern GetChannelInfoResponseDefaultTypeInternal _GetChannelInfoResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoResponse_class_data_; class GetChannelStatsRequest; struct GetChannelStatsRequestDefaultTypeInternal; extern GetChannelStatsRequestDefaultTypeInternal _GetChannelStatsRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsRequest_class_data_; class GetChannelStatsResponse; struct GetChannelStatsResponseDefaultTypeInternal; extern GetChannelStatsResponseDefaultTypeInternal _GetChannelStatsResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsResponse_class_data_; +class GetClientBuffersRequest; +struct GetClientBuffersRequestDefaultTypeInternal; +extern GetClientBuffersRequestDefaultTypeInternal _GetClientBuffersRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersRequest_class_data_; +class GetClientBuffersResponse; +struct GetClientBuffersResponseDefaultTypeInternal; +extern GetClientBuffersResponseDefaultTypeInternal _GetClientBuffersResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersResponse_class_data_; class GetTriggersRequest; struct GetTriggersRequestDefaultTypeInternal; extern GetTriggersRequestDefaultTypeInternal _GetTriggersRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetTriggersRequest_class_data_; class GetTriggersResponse; struct GetTriggersResponseDefaultTypeInternal; extern GetTriggersResponseDefaultTypeInternal _GetTriggersResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull GetTriggersResponse_class_data_; class InitRequest; struct InitRequestDefaultTypeInternal; extern InitRequestDefaultTypeInternal _InitRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull InitRequest_class_data_; class InitResponse; struct InitResponseDefaultTypeInternal; extern InitResponseDefaultTypeInternal _InitResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull InitResponse_class_data_; class RawMessage; struct RawMessageDefaultTypeInternal; extern RawMessageDefaultTypeInternal _RawMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RawMessage_class_data_; class RegisterClientBufferRequest; struct RegisterClientBufferRequestDefaultTypeInternal; extern RegisterClientBufferRequestDefaultTypeInternal _RegisterClientBufferRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferRequest_class_data_; +class RegisterClientBufferResponse; +struct RegisterClientBufferResponseDefaultTypeInternal; +extern RegisterClientBufferResponseDefaultTypeInternal _RegisterClientBufferResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferResponse_class_data_; class RemovePublisherRequest; struct RemovePublisherRequestDefaultTypeInternal; extern RemovePublisherRequestDefaultTypeInternal _RemovePublisherRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RemovePublisherRequest_class_data_; class RemovePublisherResponse; struct RemovePublisherResponseDefaultTypeInternal; extern RemovePublisherResponseDefaultTypeInternal _RemovePublisherResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RemovePublisherResponse_class_data_; class RemoveSubscriberRequest; struct RemoveSubscriberRequestDefaultTypeInternal; extern RemoveSubscriberRequestDefaultTypeInternal _RemoveSubscriberRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberRequest_class_data_; class RemoveSubscriberResponse; struct RemoveSubscriberResponseDefaultTypeInternal; extern RemoveSubscriberResponseDefaultTypeInternal _RemoveSubscriberResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberResponse_class_data_; class Request; struct RequestDefaultTypeInternal; extern RequestDefaultTypeInternal _Request_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Request_class_data_; class Response; struct ResponseDefaultTypeInternal; extern ResponseDefaultTypeInternal _Response_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; class RetirementNotification; struct RetirementNotificationDefaultTypeInternal; extern RetirementNotificationDefaultTypeInternal _RetirementNotification_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RetirementNotification_class_data_; class RpcCancelRequest; struct RpcCancelRequestDefaultTypeInternal; extern RpcCancelRequestDefaultTypeInternal _RpcCancelRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcCancelRequest_class_data_; class RpcCloseRequest; struct RpcCloseRequestDefaultTypeInternal; extern RpcCloseRequestDefaultTypeInternal _RpcCloseRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcCloseRequest_class_data_; class RpcCloseResponse; struct RpcCloseResponseDefaultTypeInternal; extern RpcCloseResponseDefaultTypeInternal _RpcCloseResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcCloseResponse_class_data_; class RpcOpenRequest; struct RpcOpenRequestDefaultTypeInternal; extern RpcOpenRequestDefaultTypeInternal _RpcOpenRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcOpenRequest_class_data_; class RpcOpenResponse; struct RpcOpenResponseDefaultTypeInternal; extern RpcOpenResponseDefaultTypeInternal _RpcOpenResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_class_data_; class RpcOpenResponse_Method; struct RpcOpenResponse_MethodDefaultTypeInternal; extern RpcOpenResponse_MethodDefaultTypeInternal _RpcOpenResponse_Method_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_Method_class_data_; class RpcOpenResponse_RequestChannel; struct RpcOpenResponse_RequestChannelDefaultTypeInternal; extern RpcOpenResponse_RequestChannelDefaultTypeInternal _RpcOpenResponse_RequestChannel_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_RequestChannel_class_data_; class RpcOpenResponse_ResponseChannel; struct RpcOpenResponse_ResponseChannelDefaultTypeInternal; extern RpcOpenResponse_ResponseChannelDefaultTypeInternal _RpcOpenResponse_ResponseChannel_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_ResponseChannel_class_data_; class RpcRequest; struct RpcRequestDefaultTypeInternal; extern RpcRequestDefaultTypeInternal _RpcRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcRequest_class_data_; class RpcResponse; struct RpcResponseDefaultTypeInternal; extern RpcResponseDefaultTypeInternal _RpcResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcResponse_class_data_; class RpcServerRequest; struct RpcServerRequestDefaultTypeInternal; extern RpcServerRequestDefaultTypeInternal _RpcServerRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcServerRequest_class_data_; class RpcServerResponse; struct RpcServerResponseDefaultTypeInternal; extern RpcServerResponseDefaultTypeInternal _RpcServerResponse_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull RpcServerResponse_class_data_; class ShadowAddPublisher; struct ShadowAddPublisherDefaultTypeInternal; extern ShadowAddPublisherDefaultTypeInternal _ShadowAddPublisher_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowAddPublisher_class_data_; class ShadowAddSubscriber; struct ShadowAddSubscriberDefaultTypeInternal; extern ShadowAddSubscriberDefaultTypeInternal _ShadowAddSubscriber_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowAddSubscriber_class_data_; class ShadowCreateChannel; struct ShadowCreateChannelDefaultTypeInternal; extern ShadowCreateChannelDefaultTypeInternal _ShadowCreateChannel_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowCreateChannel_class_data_; class ShadowEvent; struct ShadowEventDefaultTypeInternal; extern ShadowEventDefaultTypeInternal _ShadowEvent_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowEvent_class_data_; class ShadowInit; struct ShadowInitDefaultTypeInternal; extern ShadowInitDefaultTypeInternal _ShadowInit_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowInit_class_data_; class ShadowRegisterClientBuffer; struct ShadowRegisterClientBufferDefaultTypeInternal; extern ShadowRegisterClientBufferDefaultTypeInternal _ShadowRegisterClientBuffer_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowRegisterClientBuffer_class_data_; class ShadowRemoveChannel; struct ShadowRemoveChannelDefaultTypeInternal; extern ShadowRemoveChannelDefaultTypeInternal _ShadowRemoveChannel_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveChannel_class_data_; class ShadowRemovePublisher; struct ShadowRemovePublisherDefaultTypeInternal; extern ShadowRemovePublisherDefaultTypeInternal _ShadowRemovePublisher_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowRemovePublisher_class_data_; class ShadowRemoveSubscriber; struct ShadowRemoveSubscriberDefaultTypeInternal; extern ShadowRemoveSubscriberDefaultTypeInternal _ShadowRemoveSubscriber_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveSubscriber_class_data_; class ShadowStateDone; struct ShadowStateDoneDefaultTypeInternal; extern ShadowStateDoneDefaultTypeInternal _ShadowStateDone_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowStateDone_class_data_; class ShadowStateDump; struct ShadowStateDumpDefaultTypeInternal; extern ShadowStateDumpDefaultTypeInternal _ShadowStateDump_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowStateDump_class_data_; class ShadowUnregisterClientBuffer; struct ShadowUnregisterClientBufferDefaultTypeInternal; extern ShadowUnregisterClientBufferDefaultTypeInternal _ShadowUnregisterClientBuffer_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowUnregisterClientBuffer_class_data_; class ShadowUpdateChannelOptions; struct ShadowUpdateChannelOptionsDefaultTypeInternal; extern ShadowUpdateChannelOptionsDefaultTypeInternal _ShadowUpdateChannelOptions_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull ShadowUpdateChannelOptions_class_data_; class Statistics; struct StatisticsDefaultTypeInternal; extern StatisticsDefaultTypeInternal _Statistics_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Statistics_class_data_; class Subscribed; struct SubscribedDefaultTypeInternal; extern SubscribedDefaultTypeInternal _Subscribed_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull Subscribed_class_data_; class UnregisterClientBufferRequest; struct UnregisterClientBufferRequestDefaultTypeInternal; extern UnregisterClientBufferRequestDefaultTypeInternal _UnregisterClientBufferRequest_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull UnregisterClientBufferRequest_class_data_; class VoidMessage; struct VoidMessageDefaultTypeInternal; extern VoidMessageDefaultTypeInternal _VoidMessage_default_instance_; +extern const ::google::protobuf::internal::ClassDataFull VoidMessage_class_data_; } // namespace subspace namespace google { namespace protobuf { @@ -250,19 +322,18 @@ class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase inline VoidMessage() : VoidMessage(nullptr) {} #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(VoidMessage* msg, std::destroying_delete_t) { + void operator delete(VoidMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(VoidMessage)); } #endif template - explicit PROTOBUF_CONSTEXPR VoidMessage( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR VoidMessage(::google::protobuf::internal::ConstantInitialized); inline VoidMessage(const VoidMessage& from) : VoidMessage(nullptr, from) {} inline VoidMessage(VoidMessage&& from) noexcept - : VoidMessage(nullptr, std::move(from)) {} + : VoidMessage(nullptr, ::std::move(from)) {} inline VoidMessage& operator=(const VoidMessage& from) { CopyFrom(from); return *this; @@ -281,30 +352,27 @@ class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const VoidMessage& default_instance() { - return *internal_default_instance(); - } - static inline const VoidMessage* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_VoidMessage_default_instance_); } - static constexpr int kIndexInFileMessages = 45; + static constexpr int kIndexInFileMessages = 48; friend void swap(VoidMessage& a, VoidMessage& b) { a.Swap(&b); } - inline void Swap(VoidMessage* other) { + inline void Swap(VoidMessage* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -312,7 +380,7 @@ class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(VoidMessage* other) { + void UnsafeArenaSwap(VoidMessage* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -320,7 +388,7 @@ class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase // implements Message ---------------------------------------------- - VoidMessage* New(::google::protobuf::Arena* arena = nullptr) const { + VoidMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -338,24 +406,25 @@ class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase } private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.VoidMessage"; } - protected: - explicit VoidMessage(::google::protobuf::Arena* arena); - VoidMessage(::google::protobuf::Arena* arena, const VoidMessage& from); - VoidMessage(::google::protobuf::Arena* arena, VoidMessage&& from) noexcept + explicit VoidMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + VoidMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const VoidMessage& from); + VoidMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, VoidMessage&& from) noexcept : VoidMessage(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -364,9 +433,9 @@ class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 0, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -375,18 +444,10 @@ class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const VoidMessage& from_msg); - PROTOBUF_TSAN_DECLARE_MEMBER - }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull VoidMessage_class_data_; // ------------------------------------------------------------------- class UnregisterClientBufferRequest final : public ::google::protobuf::Message @@ -396,19 +457,18 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message ~UnregisterClientBufferRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(UnregisterClientBufferRequest* msg, std::destroying_delete_t) { + void operator delete(UnregisterClientBufferRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(UnregisterClientBufferRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR UnregisterClientBufferRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR UnregisterClientBufferRequest(::google::protobuf::internal::ConstantInitialized); inline UnregisterClientBufferRequest(const UnregisterClientBufferRequest& from) : UnregisterClientBufferRequest(nullptr, from) {} inline UnregisterClientBufferRequest(UnregisterClientBufferRequest&& from) noexcept - : UnregisterClientBufferRequest(nullptr, std::move(from)) {} + : UnregisterClientBufferRequest(nullptr, ::std::move(from)) {} inline UnregisterClientBufferRequest& operator=(const UnregisterClientBufferRequest& from) { CopyFrom(from); return *this; @@ -427,30 +487,27 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const UnregisterClientBufferRequest& default_instance() { - return *internal_default_instance(); - } - static inline const UnregisterClientBufferRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_UnregisterClientBufferRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 18; + static constexpr int kIndexInFileMessages = 19; friend void swap(UnregisterClientBufferRequest& a, UnregisterClientBufferRequest& b) { a.Swap(&b); } - inline void Swap(UnregisterClientBufferRequest* other) { + inline void Swap(UnregisterClientBufferRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -458,7 +515,7 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(UnregisterClientBufferRequest* other) { + void UnsafeArenaSwap(UnregisterClientBufferRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -466,7 +523,7 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - UnregisterClientBufferRequest* New(::google::protobuf::Arena* arena = nullptr) const { + UnregisterClientBufferRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -475,9 +532,8 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message void MergeFrom(const UnregisterClientBufferRequest& from) { UnregisterClientBufferRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -487,49 +543,50 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(UnregisterClientBufferRequest* other); + void InternalSwap(UnregisterClientBufferRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.UnregisterClientBufferRequest"; } - protected: - explicit UnregisterClientBufferRequest(::google::protobuf::Arena* arena); - UnregisterClientBufferRequest(::google::protobuf::Arena* arena, const UnregisterClientBufferRequest& from); - UnregisterClientBufferRequest(::google::protobuf::Arena* arena, UnregisterClientBufferRequest&& from) noexcept + explicit UnregisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + UnregisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UnregisterClientBufferRequest& from); + UnregisterClientBufferRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, UnregisterClientBufferRequest&& from) noexcept : UnregisterClientBufferRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -541,18 +598,17 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // uint64 session_id = 2; @@ -579,9 +635,9 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 59, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 59, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -591,22 +647,26 @@ class UnregisterClientBufferRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const UnregisterClientBufferRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const UnregisterClientBufferRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::uint64_t session_id_; ::uint32_t buffer_index_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull UnregisterClientBufferRequest_class_data_; // ------------------------------------------------------------------- class ShadowUpdateChannelOptions final : public ::google::protobuf::Message @@ -616,19 +676,18 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message ~ShadowUpdateChannelOptions() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowUpdateChannelOptions* msg, std::destroying_delete_t) { + void operator delete(ShadowUpdateChannelOptions* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowUpdateChannelOptions)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowUpdateChannelOptions( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowUpdateChannelOptions(::google::protobuf::internal::ConstantInitialized); inline ShadowUpdateChannelOptions(const ShadowUpdateChannelOptions& from) : ShadowUpdateChannelOptions(nullptr, from) {} inline ShadowUpdateChannelOptions(ShadowUpdateChannelOptions&& from) noexcept - : ShadowUpdateChannelOptions(nullptr, std::move(from)) {} + : ShadowUpdateChannelOptions(nullptr, ::std::move(from)) {} inline ShadowUpdateChannelOptions& operator=(const ShadowUpdateChannelOptions& from) { CopyFrom(from); return *this; @@ -647,30 +706,27 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowUpdateChannelOptions& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowUpdateChannelOptions* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowUpdateChannelOptions_default_instance_); } - static constexpr int kIndexInFileMessages = 58; + static constexpr int kIndexInFileMessages = 61; friend void swap(ShadowUpdateChannelOptions& a, ShadowUpdateChannelOptions& b) { a.Swap(&b); } - inline void Swap(ShadowUpdateChannelOptions* other) { + inline void Swap(ShadowUpdateChannelOptions* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -678,7 +734,7 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowUpdateChannelOptions* other) { + void UnsafeArenaSwap(ShadowUpdateChannelOptions* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -686,7 +742,7 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowUpdateChannelOptions* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowUpdateChannelOptions* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -695,9 +751,8 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message void MergeFrom(const ShadowUpdateChannelOptions& from) { ShadowUpdateChannelOptions::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -707,49 +762,50 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowUpdateChannelOptions* other); + void InternalSwap(ShadowUpdateChannelOptions* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowUpdateChannelOptions"; } - protected: - explicit ShadowUpdateChannelOptions(::google::protobuf::Arena* arena); - ShadowUpdateChannelOptions(::google::protobuf::Arena* arena, const ShadowUpdateChannelOptions& from); - ShadowUpdateChannelOptions(::google::protobuf::Arena* arena, ShadowUpdateChannelOptions&& from) noexcept + explicit ShadowUpdateChannelOptions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowUpdateChannelOptions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowUpdateChannelOptions& from); + ShadowUpdateChannelOptions( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowUpdateChannelOptions&& from) noexcept : ShadowUpdateChannelOptions(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -764,18 +820,17 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // bool has_split_buffer_options = 2; @@ -832,9 +887,9 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 56, 2> + static const ::google::protobuf::internal::TcParseTable<3, 6, + 0, 56, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -844,25 +899,29 @@ class ShadowUpdateChannelOptions final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowUpdateChannelOptions& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowUpdateChannelOptions& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; bool has_split_buffer_options_; bool use_split_buffers_; bool has_max_publishers_; bool split_buffers_over_bridge_; ::int32_t max_publishers_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowUpdateChannelOptions_class_data_; // ------------------------------------------------------------------- class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message @@ -872,19 +931,18 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message ~ShadowUnregisterClientBuffer() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowUnregisterClientBuffer* msg, std::destroying_delete_t) { + void operator delete(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowUnregisterClientBuffer)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowUnregisterClientBuffer( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowUnregisterClientBuffer(::google::protobuf::internal::ConstantInitialized); inline ShadowUnregisterClientBuffer(const ShadowUnregisterClientBuffer& from) : ShadowUnregisterClientBuffer(nullptr, from) {} inline ShadowUnregisterClientBuffer(ShadowUnregisterClientBuffer&& from) noexcept - : ShadowUnregisterClientBuffer(nullptr, std::move(from)) {} + : ShadowUnregisterClientBuffer(nullptr, ::std::move(from)) {} inline ShadowUnregisterClientBuffer& operator=(const ShadowUnregisterClientBuffer& from) { CopyFrom(from); return *this; @@ -903,30 +961,27 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowUnregisterClientBuffer& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowUnregisterClientBuffer* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowUnregisterClientBuffer_default_instance_); } - static constexpr int kIndexInFileMessages = 57; + static constexpr int kIndexInFileMessages = 60; friend void swap(ShadowUnregisterClientBuffer& a, ShadowUnregisterClientBuffer& b) { a.Swap(&b); } - inline void Swap(ShadowUnregisterClientBuffer* other) { + inline void Swap(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -934,7 +989,7 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowUnregisterClientBuffer* other) { + void UnsafeArenaSwap(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -942,7 +997,7 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowUnregisterClientBuffer* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowUnregisterClientBuffer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -951,9 +1006,8 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message void MergeFrom(const ShadowUnregisterClientBuffer& from) { ShadowUnregisterClientBuffer::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -963,49 +1017,50 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowUnregisterClientBuffer* other); + void InternalSwap(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowUnregisterClientBuffer"; } - protected: - explicit ShadowUnregisterClientBuffer(::google::protobuf::Arena* arena); - ShadowUnregisterClientBuffer(::google::protobuf::Arena* arena, const ShadowUnregisterClientBuffer& from); - ShadowUnregisterClientBuffer(::google::protobuf::Arena* arena, ShadowUnregisterClientBuffer&& from) noexcept + explicit ShadowUnregisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowUnregisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowUnregisterClientBuffer& from); + ShadowUnregisterClientBuffer( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowUnregisterClientBuffer&& from) noexcept : ShadowUnregisterClientBuffer(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -1017,18 +1072,17 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // uint64 session_id = 2; @@ -1055,9 +1109,9 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 58, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 58, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -1067,22 +1121,26 @@ class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowUnregisterClientBuffer& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowUnregisterClientBuffer& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::uint64_t session_id_; ::uint32_t buffer_index_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowUnregisterClientBuffer_class_data_; // ------------------------------------------------------------------- class ShadowStateDump final : public ::google::protobuf::Message @@ -1092,19 +1150,18 @@ class ShadowStateDump final : public ::google::protobuf::Message ~ShadowStateDump() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowStateDump* msg, std::destroying_delete_t) { + void operator delete(ShadowStateDump* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowStateDump)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowStateDump( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowStateDump(::google::protobuf::internal::ConstantInitialized); inline ShadowStateDump(const ShadowStateDump& from) : ShadowStateDump(nullptr, from) {} inline ShadowStateDump(ShadowStateDump&& from) noexcept - : ShadowStateDump(nullptr, std::move(from)) {} + : ShadowStateDump(nullptr, ::std::move(from)) {} inline ShadowStateDump& operator=(const ShadowStateDump& from) { CopyFrom(from); return *this; @@ -1123,30 +1180,27 @@ class ShadowStateDump final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowStateDump& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowStateDump* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowStateDump_default_instance_); } - static constexpr int kIndexInFileMessages = 54; + static constexpr int kIndexInFileMessages = 57; friend void swap(ShadowStateDump& a, ShadowStateDump& b) { a.Swap(&b); } - inline void Swap(ShadowStateDump* other) { + inline void Swap(ShadowStateDump* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -1154,7 +1208,7 @@ class ShadowStateDump final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowStateDump* other) { + void UnsafeArenaSwap(ShadowStateDump* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1162,7 +1216,7 @@ class ShadowStateDump final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowStateDump* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowStateDump* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1171,9 +1225,8 @@ class ShadowStateDump final : public ::google::protobuf::Message void MergeFrom(const ShadowStateDump& from) { ShadowStateDump::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -1183,49 +1236,50 @@ class ShadowStateDump final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowStateDump* other); + void InternalSwap(ShadowStateDump* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowStateDump"; } - protected: - explicit ShadowStateDump(::google::protobuf::Arena* arena); - ShadowStateDump(::google::protobuf::Arena* arena, const ShadowStateDump& from); - ShadowStateDump(::google::protobuf::Arena* arena, ShadowStateDump&& from) noexcept + explicit ShadowStateDump(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowStateDump(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowStateDump& from); + ShadowStateDump( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowStateDump&& from) noexcept : ShadowStateDump(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -1258,9 +1312,9 @@ class ShadowStateDump final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -1270,21 +1324,25 @@ class ShadowStateDump final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowStateDump& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowStateDump& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t session_id_; ::int32_t num_channels_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowStateDump_class_data_; // ------------------------------------------------------------------- class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBase @@ -1293,19 +1351,18 @@ class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBas inline ShadowStateDone() : ShadowStateDone(nullptr) {} #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowStateDone* msg, std::destroying_delete_t) { + void operator delete(ShadowStateDone* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowStateDone)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowStateDone( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowStateDone(::google::protobuf::internal::ConstantInitialized); inline ShadowStateDone(const ShadowStateDone& from) : ShadowStateDone(nullptr, from) {} inline ShadowStateDone(ShadowStateDone&& from) noexcept - : ShadowStateDone(nullptr, std::move(from)) {} + : ShadowStateDone(nullptr, ::std::move(from)) {} inline ShadowStateDone& operator=(const ShadowStateDone& from) { CopyFrom(from); return *this; @@ -1324,30 +1381,27 @@ class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBas ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowStateDone& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowStateDone* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowStateDone_default_instance_); } - static constexpr int kIndexInFileMessages = 55; + static constexpr int kIndexInFileMessages = 58; friend void swap(ShadowStateDone& a, ShadowStateDone& b) { a.Swap(&b); } - inline void Swap(ShadowStateDone* other) { + inline void Swap(ShadowStateDone* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -1355,7 +1409,7 @@ class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBas ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowStateDone* other) { + void UnsafeArenaSwap(ShadowStateDone* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1363,7 +1417,7 @@ class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBas // implements Message ---------------------------------------------- - ShadowStateDone* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowStateDone* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -1381,24 +1435,25 @@ class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBas } private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowStateDone"; } - protected: - explicit ShadowStateDone(::google::protobuf::Arena* arena); - ShadowStateDone(::google::protobuf::Arena* arena, const ShadowStateDone& from); - ShadowStateDone(::google::protobuf::Arena* arena, ShadowStateDone&& from) noexcept + explicit ShadowStateDone(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowStateDone(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowStateDone& from); + ShadowStateDone( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowStateDone&& from) noexcept : ShadowStateDone(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -1407,9 +1462,9 @@ class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBas private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 0, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -1418,18 +1473,10 @@ class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBas friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowStateDone& from_msg); - PROTOBUF_TSAN_DECLARE_MEMBER - }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowStateDone_class_data_; // ------------------------------------------------------------------- class ShadowRemoveSubscriber final : public ::google::protobuf::Message @@ -1439,19 +1486,18 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message ~ShadowRemoveSubscriber() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRemoveSubscriber* msg, std::destroying_delete_t) { + void operator delete(ShadowRemoveSubscriber* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRemoveSubscriber)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowRemoveSubscriber( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowRemoveSubscriber(::google::protobuf::internal::ConstantInitialized); inline ShadowRemoveSubscriber(const ShadowRemoveSubscriber& from) : ShadowRemoveSubscriber(nullptr, from) {} inline ShadowRemoveSubscriber(ShadowRemoveSubscriber&& from) noexcept - : ShadowRemoveSubscriber(nullptr, std::move(from)) {} + : ShadowRemoveSubscriber(nullptr, ::std::move(from)) {} inline ShadowRemoveSubscriber& operator=(const ShadowRemoveSubscriber& from) { CopyFrom(from); return *this; @@ -1470,30 +1516,27 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowRemoveSubscriber& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowRemoveSubscriber* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowRemoveSubscriber_default_instance_); } - static constexpr int kIndexInFileMessages = 53; + static constexpr int kIndexInFileMessages = 56; friend void swap(ShadowRemoveSubscriber& a, ShadowRemoveSubscriber& b) { a.Swap(&b); } - inline void Swap(ShadowRemoveSubscriber* other) { + inline void Swap(ShadowRemoveSubscriber* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -1501,7 +1544,7 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowRemoveSubscriber* other) { + void UnsafeArenaSwap(ShadowRemoveSubscriber* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1509,7 +1552,7 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowRemoveSubscriber* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowRemoveSubscriber* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1518,9 +1561,8 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message void MergeFrom(const ShadowRemoveSubscriber& from) { ShadowRemoveSubscriber::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -1530,49 +1572,50 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRemoveSubscriber* other); + void InternalSwap(ShadowRemoveSubscriber* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowRemoveSubscriber"; } - protected: - explicit ShadowRemoveSubscriber(::google::protobuf::Arena* arena); - ShadowRemoveSubscriber(::google::protobuf::Arena* arena, const ShadowRemoveSubscriber& from); - ShadowRemoveSubscriber(::google::protobuf::Arena* arena, ShadowRemoveSubscriber&& from) noexcept + explicit ShadowRemoveSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowRemoveSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemoveSubscriber& from); + ShadowRemoveSubscriber( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRemoveSubscriber&& from) noexcept : ShadowRemoveSubscriber(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -1583,18 +1626,17 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int32 subscriber_id = 2; @@ -1611,9 +1653,9 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 52, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 52, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -1623,21 +1665,25 @@ class ShadowRemoveSubscriber final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowRemoveSubscriber& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowRemoveSubscriber& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int32_t subscriber_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveSubscriber_class_data_; // ------------------------------------------------------------------- class ShadowRemovePublisher final : public ::google::protobuf::Message @@ -1647,19 +1693,18 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message ~ShadowRemovePublisher() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRemovePublisher* msg, std::destroying_delete_t) { + void operator delete(ShadowRemovePublisher* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRemovePublisher)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowRemovePublisher( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowRemovePublisher(::google::protobuf::internal::ConstantInitialized); inline ShadowRemovePublisher(const ShadowRemovePublisher& from) : ShadowRemovePublisher(nullptr, from) {} inline ShadowRemovePublisher(ShadowRemovePublisher&& from) noexcept - : ShadowRemovePublisher(nullptr, std::move(from)) {} + : ShadowRemovePublisher(nullptr, ::std::move(from)) {} inline ShadowRemovePublisher& operator=(const ShadowRemovePublisher& from) { CopyFrom(from); return *this; @@ -1678,30 +1723,27 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowRemovePublisher& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowRemovePublisher* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowRemovePublisher_default_instance_); } - static constexpr int kIndexInFileMessages = 51; + static constexpr int kIndexInFileMessages = 54; friend void swap(ShadowRemovePublisher& a, ShadowRemovePublisher& b) { a.Swap(&b); } - inline void Swap(ShadowRemovePublisher* other) { + inline void Swap(ShadowRemovePublisher* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -1709,7 +1751,7 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowRemovePublisher* other) { + void UnsafeArenaSwap(ShadowRemovePublisher* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1717,7 +1759,7 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowRemovePublisher* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowRemovePublisher* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1726,9 +1768,8 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message void MergeFrom(const ShadowRemovePublisher& from) { ShadowRemovePublisher::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -1738,49 +1779,50 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRemovePublisher* other); + void InternalSwap(ShadowRemovePublisher* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowRemovePublisher"; } - protected: - explicit ShadowRemovePublisher(::google::protobuf::Arena* arena); - ShadowRemovePublisher(::google::protobuf::Arena* arena, const ShadowRemovePublisher& from); - ShadowRemovePublisher(::google::protobuf::Arena* arena, ShadowRemovePublisher&& from) noexcept + explicit ShadowRemovePublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowRemovePublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemovePublisher& from); + ShadowRemovePublisher( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRemovePublisher&& from) noexcept : ShadowRemovePublisher(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -1791,18 +1833,17 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int32 publisher_id = 2; @@ -1819,9 +1860,9 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 51, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 51, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -1831,21 +1872,25 @@ class ShadowRemovePublisher final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowRemovePublisher& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowRemovePublisher& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int32_t publisher_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowRemovePublisher_class_data_; // ------------------------------------------------------------------- class ShadowRemoveChannel final : public ::google::protobuf::Message @@ -1855,19 +1900,18 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message ~ShadowRemoveChannel() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRemoveChannel* msg, std::destroying_delete_t) { + void operator delete(ShadowRemoveChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRemoveChannel)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowRemoveChannel( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowRemoveChannel(::google::protobuf::internal::ConstantInitialized); inline ShadowRemoveChannel(const ShadowRemoveChannel& from) : ShadowRemoveChannel(nullptr, from) {} inline ShadowRemoveChannel(ShadowRemoveChannel&& from) noexcept - : ShadowRemoveChannel(nullptr, std::move(from)) {} + : ShadowRemoveChannel(nullptr, ::std::move(from)) {} inline ShadowRemoveChannel& operator=(const ShadowRemoveChannel& from) { CopyFrom(from); return *this; @@ -1886,30 +1930,27 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowRemoveChannel& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowRemoveChannel* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowRemoveChannel_default_instance_); } - static constexpr int kIndexInFileMessages = 49; + static constexpr int kIndexInFileMessages = 52; friend void swap(ShadowRemoveChannel& a, ShadowRemoveChannel& b) { a.Swap(&b); } - inline void Swap(ShadowRemoveChannel* other) { + inline void Swap(ShadowRemoveChannel* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -1917,7 +1958,7 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowRemoveChannel* other) { + void UnsafeArenaSwap(ShadowRemoveChannel* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -1925,7 +1966,7 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowRemoveChannel* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowRemoveChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1934,9 +1975,8 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message void MergeFrom(const ShadowRemoveChannel& from) { ShadowRemoveChannel::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -1946,49 +1986,50 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRemoveChannel* other); + void InternalSwap(ShadowRemoveChannel* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowRemoveChannel"; } - protected: - explicit ShadowRemoveChannel(::google::protobuf::Arena* arena); - ShadowRemoveChannel(::google::protobuf::Arena* arena, const ShadowRemoveChannel& from); - ShadowRemoveChannel(::google::protobuf::Arena* arena, ShadowRemoveChannel&& from) noexcept + explicit ShadowRemoveChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowRemoveChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemoveChannel& from); + ShadowRemoveChannel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRemoveChannel&& from) noexcept : ShadowRemoveChannel(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -1999,18 +2040,17 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int32 channel_id = 2; @@ -2027,9 +2067,9 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 49, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 49, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -2039,21 +2079,25 @@ class ShadowRemoveChannel final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowRemoveChannel& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowRemoveChannel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int32_t channel_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveChannel_class_data_; // ------------------------------------------------------------------- class ShadowInit final : public ::google::protobuf::Message @@ -2063,19 +2107,18 @@ class ShadowInit final : public ::google::protobuf::Message ~ShadowInit() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowInit* msg, std::destroying_delete_t) { + void operator delete(ShadowInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowInit)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowInit( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowInit(::google::protobuf::internal::ConstantInitialized); inline ShadowInit(const ShadowInit& from) : ShadowInit(nullptr, from) {} inline ShadowInit(ShadowInit&& from) noexcept - : ShadowInit(nullptr, std::move(from)) {} + : ShadowInit(nullptr, ::std::move(from)) {} inline ShadowInit& operator=(const ShadowInit& from) { CopyFrom(from); return *this; @@ -2094,30 +2137,27 @@ class ShadowInit final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowInit& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowInit* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowInit_default_instance_); } - static constexpr int kIndexInFileMessages = 47; + static constexpr int kIndexInFileMessages = 50; friend void swap(ShadowInit& a, ShadowInit& b) { a.Swap(&b); } - inline void Swap(ShadowInit* other) { + inline void Swap(ShadowInit* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -2125,7 +2165,7 @@ class ShadowInit final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowInit* other) { + void UnsafeArenaSwap(ShadowInit* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2133,7 +2173,7 @@ class ShadowInit final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowInit* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2142,9 +2182,8 @@ class ShadowInit final : public ::google::protobuf::Message void MergeFrom(const ShadowInit& from) { ShadowInit::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -2154,49 +2193,50 @@ class ShadowInit final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowInit* other); + void InternalSwap(ShadowInit* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowInit"; } - protected: - explicit ShadowInit(::google::protobuf::Arena* arena); - ShadowInit(::google::protobuf::Arena* arena, const ShadowInit& from); - ShadowInit(::google::protobuf::Arena* arena, ShadowInit&& from) noexcept + explicit ShadowInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowInit& from); + ShadowInit( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowInit&& from) noexcept : ShadowInit(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -2218,9 +2258,9 @@ class ShadowInit final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -2230,20 +2270,24 @@ class ShadowInit final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowInit& from_msg); - ::uint64_t session_id_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowInit& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::uint64_t session_id_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowInit_class_data_; // ------------------------------------------------------------------- class ShadowCreateChannel final : public ::google::protobuf::Message @@ -2253,19 +2297,18 @@ class ShadowCreateChannel final : public ::google::protobuf::Message ~ShadowCreateChannel() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowCreateChannel* msg, std::destroying_delete_t) { + void operator delete(ShadowCreateChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowCreateChannel)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowCreateChannel( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowCreateChannel(::google::protobuf::internal::ConstantInitialized); inline ShadowCreateChannel(const ShadowCreateChannel& from) : ShadowCreateChannel(nullptr, from) {} inline ShadowCreateChannel(ShadowCreateChannel&& from) noexcept - : ShadowCreateChannel(nullptr, std::move(from)) {} + : ShadowCreateChannel(nullptr, ::std::move(from)) {} inline ShadowCreateChannel& operator=(const ShadowCreateChannel& from) { CopyFrom(from); return *this; @@ -2284,30 +2327,27 @@ class ShadowCreateChannel final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowCreateChannel& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowCreateChannel* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowCreateChannel_default_instance_); } - static constexpr int kIndexInFileMessages = 48; + static constexpr int kIndexInFileMessages = 51; friend void swap(ShadowCreateChannel& a, ShadowCreateChannel& b) { a.Swap(&b); } - inline void Swap(ShadowCreateChannel* other) { + inline void Swap(ShadowCreateChannel* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -2315,7 +2355,7 @@ class ShadowCreateChannel final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowCreateChannel* other) { + void UnsafeArenaSwap(ShadowCreateChannel* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2323,7 +2363,7 @@ class ShadowCreateChannel final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowCreateChannel* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowCreateChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2332,9 +2372,8 @@ class ShadowCreateChannel final : public ::google::protobuf::Message void MergeFrom(const ShadowCreateChannel& from) { ShadowCreateChannel::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -2344,49 +2383,50 @@ class ShadowCreateChannel final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowCreateChannel* other); + void InternalSwap(ShadowCreateChannel* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowCreateChannel"; } - protected: - explicit ShadowCreateChannel(::google::protobuf::Arena* arena); - ShadowCreateChannel(::google::protobuf::Arena* arena, const ShadowCreateChannel& from); - ShadowCreateChannel(::google::protobuf::Arena* arena, ShadowCreateChannel&& from) noexcept + explicit ShadowCreateChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowCreateChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowCreateChannel& from); + ShadowCreateChannel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowCreateChannel&& from) noexcept : ShadowCreateChannel(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -2412,50 +2452,47 @@ class ShadowCreateChannel final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // bytes type = 5; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // string mux = 11; void clear_mux() ; - const std::string& mux() const; - template + const ::std::string& mux() const; + template void set_mux(Arg_&& arg, Args_... args); - std::string* mutable_mux(); - PROTOBUF_NODISCARD std::string* release_mux(); - void set_allocated_mux(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_mux(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); + void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_mux() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mux( - const std::string& value); - std::string* _internal_mutable_mux(); + const ::std::string& _internal_mux() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); public: // int32 channel_id = 2; @@ -2602,9 +2639,9 @@ class ShadowCreateChannel final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 17, 0, - 68, 2> + static const ::google::protobuf::internal::TcParseTable<5, 17, + 0, 68, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -2614,13 +2651,16 @@ class ShadowCreateChannel final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowCreateChannel& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowCreateChannel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::google::protobuf::internal::ArenaStringPtr type_; ::google::protobuf::internal::ArenaStringPtr mux_; @@ -2638,12 +2678,13 @@ class ShadowCreateChannel final : public ::google::protobuf::Message bool has_max_publishers_; bool split_buffers_over_bridge_; ::int32_t max_publishers_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowCreateChannel_class_data_; // ------------------------------------------------------------------- class ShadowAddSubscriber final : public ::google::protobuf::Message @@ -2653,19 +2694,18 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message ~ShadowAddSubscriber() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowAddSubscriber* msg, std::destroying_delete_t) { + void operator delete(ShadowAddSubscriber* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowAddSubscriber)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowAddSubscriber( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowAddSubscriber(::google::protobuf::internal::ConstantInitialized); inline ShadowAddSubscriber(const ShadowAddSubscriber& from) : ShadowAddSubscriber(nullptr, from) {} inline ShadowAddSubscriber(ShadowAddSubscriber&& from) noexcept - : ShadowAddSubscriber(nullptr, std::move(from)) {} + : ShadowAddSubscriber(nullptr, ::std::move(from)) {} inline ShadowAddSubscriber& operator=(const ShadowAddSubscriber& from) { CopyFrom(from); return *this; @@ -2684,30 +2724,27 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowAddSubscriber& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowAddSubscriber* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowAddSubscriber_default_instance_); } - static constexpr int kIndexInFileMessages = 52; + static constexpr int kIndexInFileMessages = 55; friend void swap(ShadowAddSubscriber& a, ShadowAddSubscriber& b) { a.Swap(&b); } - inline void Swap(ShadowAddSubscriber* other) { + inline void Swap(ShadowAddSubscriber* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -2715,7 +2752,7 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowAddSubscriber* other) { + void UnsafeArenaSwap(ShadowAddSubscriber* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2723,7 +2760,7 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowAddSubscriber* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowAddSubscriber* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2732,9 +2769,8 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message void MergeFrom(const ShadowAddSubscriber& from) { ShadowAddSubscriber::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -2744,49 +2780,50 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowAddSubscriber* other); + void InternalSwap(ShadowAddSubscriber* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowAddSubscriber"; } - protected: - explicit ShadowAddSubscriber(::google::protobuf::Arena* arena); - ShadowAddSubscriber(::google::protobuf::Arena* arena, const ShadowAddSubscriber& from); - ShadowAddSubscriber(::google::protobuf::Arena* arena, ShadowAddSubscriber&& from) noexcept + explicit ShadowAddSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowAddSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowAddSubscriber& from); + ShadowAddSubscriber( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowAddSubscriber&& from) noexcept : ShadowAddSubscriber(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -2801,18 +2838,17 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int32 subscriber_id = 2; @@ -2869,9 +2905,9 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 0, - 49, 2> + static const ::google::protobuf::internal::TcParseTable<3, 6, + 0, 49, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -2881,25 +2917,29 @@ class ShadowAddSubscriber final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowAddSubscriber& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowAddSubscriber& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int32_t subscriber_id_; bool is_reliable_; bool is_bridge_; bool for_tunnel_; ::int32_t max_active_messages_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowAddSubscriber_class_data_; // ------------------------------------------------------------------- class ShadowAddPublisher final : public ::google::protobuf::Message @@ -2909,19 +2949,18 @@ class ShadowAddPublisher final : public ::google::protobuf::Message ~ShadowAddPublisher() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowAddPublisher* msg, std::destroying_delete_t) { + void operator delete(ShadowAddPublisher* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowAddPublisher)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowAddPublisher( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowAddPublisher(::google::protobuf::internal::ConstantInitialized); inline ShadowAddPublisher(const ShadowAddPublisher& from) : ShadowAddPublisher(nullptr, from) {} inline ShadowAddPublisher(ShadowAddPublisher&& from) noexcept - : ShadowAddPublisher(nullptr, std::move(from)) {} + : ShadowAddPublisher(nullptr, ::std::move(from)) {} inline ShadowAddPublisher& operator=(const ShadowAddPublisher& from) { CopyFrom(from); return *this; @@ -2940,30 +2979,27 @@ class ShadowAddPublisher final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowAddPublisher& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowAddPublisher* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowAddPublisher_default_instance_); } - static constexpr int kIndexInFileMessages = 50; + static constexpr int kIndexInFileMessages = 53; friend void swap(ShadowAddPublisher& a, ShadowAddPublisher& b) { a.Swap(&b); } - inline void Swap(ShadowAddPublisher* other) { + inline void Swap(ShadowAddPublisher* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -2971,7 +3007,7 @@ class ShadowAddPublisher final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowAddPublisher* other) { + void UnsafeArenaSwap(ShadowAddPublisher* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -2979,7 +3015,7 @@ class ShadowAddPublisher final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowAddPublisher* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowAddPublisher* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2988,9 +3024,8 @@ class ShadowAddPublisher final : public ::google::protobuf::Message void MergeFrom(const ShadowAddPublisher& from) { ShadowAddPublisher::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -3000,49 +3035,50 @@ class ShadowAddPublisher final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowAddPublisher* other); + void InternalSwap(ShadowAddPublisher* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowAddPublisher"; } - protected: - explicit ShadowAddPublisher(::google::protobuf::Arena* arena); - ShadowAddPublisher(::google::protobuf::Arena* arena, const ShadowAddPublisher& from); - ShadowAddPublisher(::google::protobuf::Arena* arena, ShadowAddPublisher&& from) noexcept + explicit ShadowAddPublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowAddPublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowAddPublisher& from); + ShadowAddPublisher( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowAddPublisher&& from) noexcept : ShadowAddPublisher(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -3059,18 +3095,17 @@ class ShadowAddPublisher final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int32 publisher_id = 2; @@ -3147,9 +3182,9 @@ class ShadowAddPublisher final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 0, - 56, 2> + static const ::google::protobuf::internal::TcParseTable<3, 8, + 0, 56, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -3159,13 +3194,16 @@ class ShadowAddPublisher final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowAddPublisher& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowAddPublisher& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int32_t publisher_id_; bool is_reliable_; @@ -3174,12 +3212,13 @@ class ShadowAddPublisher final : public ::google::protobuf::Message bool is_fixed_size_; bool notify_retirement_; bool for_tunnel_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowAddPublisher_class_data_; // ------------------------------------------------------------------- class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message @@ -3189,19 +3228,18 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message ~RpcOpenResponse_ResponseChannel() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse_ResponseChannel* msg, std::destroying_delete_t) { + void operator delete(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse_ResponseChannel)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse_ResponseChannel( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcOpenResponse_ResponseChannel(::google::protobuf::internal::ConstantInitialized); inline RpcOpenResponse_ResponseChannel(const RpcOpenResponse_ResponseChannel& from) : RpcOpenResponse_ResponseChannel(nullptr, from) {} inline RpcOpenResponse_ResponseChannel(RpcOpenResponse_ResponseChannel&& from) noexcept - : RpcOpenResponse_ResponseChannel(nullptr, std::move(from)) {} + : RpcOpenResponse_ResponseChannel(nullptr, ::std::move(from)) {} inline RpcOpenResponse_ResponseChannel& operator=(const RpcOpenResponse_ResponseChannel& from) { CopyFrom(from); return *this; @@ -3220,30 +3258,27 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcOpenResponse_ResponseChannel& default_instance() { - return *internal_default_instance(); - } - static inline const RpcOpenResponse_ResponseChannel* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcOpenResponse_ResponseChannel_default_instance_); } - static constexpr int kIndexInFileMessages = 34; + static constexpr int kIndexInFileMessages = 37; friend void swap(RpcOpenResponse_ResponseChannel& a, RpcOpenResponse_ResponseChannel& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse_ResponseChannel* other) { + inline void Swap(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -3251,7 +3286,7 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcOpenResponse_ResponseChannel* other) { + void UnsafeArenaSwap(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3259,7 +3294,7 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcOpenResponse_ResponseChannel* New(::google::protobuf::Arena* arena = nullptr) const { + RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3268,9 +3303,8 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message void MergeFrom(const RpcOpenResponse_ResponseChannel& from) { RpcOpenResponse_ResponseChannel::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -3280,49 +3314,50 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse_ResponseChannel* other); + void InternalSwap(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse.ResponseChannel"; } - protected: - explicit RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* arena); - RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* arena, const RpcOpenResponse_ResponseChannel& from); - RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* arena, RpcOpenResponse_ResponseChannel&& from) noexcept + explicit RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_ResponseChannel& from); + RpcOpenResponse_ResponseChannel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse_ResponseChannel&& from) noexcept : RpcOpenResponse_ResponseChannel(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -3333,43 +3368,41 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message }; // string name = 1; void clear_name() ; - const std::string& name() const; - template + const ::std::string& name() const; + template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); + void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const ::std::string& _internal_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); public: // string type = 2; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // @@protoc_insertion_point(class_scope:subspace.RpcOpenResponse.ResponseChannel) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 57, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 57, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -3379,21 +3412,25 @@ class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcOpenResponse_ResponseChannel& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcOpenResponse_ResponseChannel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_ResponseChannel_class_data_; // ------------------------------------------------------------------- class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message @@ -3403,19 +3440,18 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message ~RpcOpenResponse_RequestChannel() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse_RequestChannel* msg, std::destroying_delete_t) { + void operator delete(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse_RequestChannel)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse_RequestChannel( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcOpenResponse_RequestChannel(::google::protobuf::internal::ConstantInitialized); inline RpcOpenResponse_RequestChannel(const RpcOpenResponse_RequestChannel& from) : RpcOpenResponse_RequestChannel(nullptr, from) {} inline RpcOpenResponse_RequestChannel(RpcOpenResponse_RequestChannel&& from) noexcept - : RpcOpenResponse_RequestChannel(nullptr, std::move(from)) {} + : RpcOpenResponse_RequestChannel(nullptr, ::std::move(from)) {} inline RpcOpenResponse_RequestChannel& operator=(const RpcOpenResponse_RequestChannel& from) { CopyFrom(from); return *this; @@ -3434,30 +3470,27 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcOpenResponse_RequestChannel& default_instance() { - return *internal_default_instance(); - } - static inline const RpcOpenResponse_RequestChannel* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcOpenResponse_RequestChannel_default_instance_); } - static constexpr int kIndexInFileMessages = 33; + static constexpr int kIndexInFileMessages = 36; friend void swap(RpcOpenResponse_RequestChannel& a, RpcOpenResponse_RequestChannel& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse_RequestChannel* other) { + inline void Swap(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -3465,7 +3498,7 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcOpenResponse_RequestChannel* other) { + void UnsafeArenaSwap(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3473,7 +3506,7 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcOpenResponse_RequestChannel* New(::google::protobuf::Arena* arena = nullptr) const { + RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3482,9 +3515,8 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message void MergeFrom(const RpcOpenResponse_RequestChannel& from) { RpcOpenResponse_RequestChannel::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -3494,49 +3526,50 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse_RequestChannel* other); + void InternalSwap(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse.RequestChannel"; } - protected: - explicit RpcOpenResponse_RequestChannel(::google::protobuf::Arena* arena); - RpcOpenResponse_RequestChannel(::google::protobuf::Arena* arena, const RpcOpenResponse_RequestChannel& from); - RpcOpenResponse_RequestChannel(::google::protobuf::Arena* arena, RpcOpenResponse_RequestChannel&& from) noexcept + explicit RpcOpenResponse_RequestChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcOpenResponse_RequestChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_RequestChannel& from); + RpcOpenResponse_RequestChannel( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse_RequestChannel&& from) noexcept : RpcOpenResponse_RequestChannel(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -3549,34 +3582,32 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message }; // string name = 1; void clear_name() ; - const std::string& name() const; - template + const ::std::string& name() const; + template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); + void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const ::std::string& _internal_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); public: // string type = 4; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // int32 slot_size = 2; @@ -3603,9 +3634,9 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 56, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 56, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -3615,23 +3646,27 @@ class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcOpenResponse_RequestChannel& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcOpenResponse_RequestChannel& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr type_; ::int32_t slot_size_; ::int32_t num_slots_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_RequestChannel_class_data_; // ------------------------------------------------------------------- class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase @@ -3640,19 +3675,18 @@ class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase inline RpcOpenRequest() : RpcOpenRequest(nullptr) {} #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenRequest* msg, std::destroying_delete_t) { + void operator delete(RpcOpenRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcOpenRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcOpenRequest(::google::protobuf::internal::ConstantInitialized); inline RpcOpenRequest(const RpcOpenRequest& from) : RpcOpenRequest(nullptr, from) {} inline RpcOpenRequest(RpcOpenRequest&& from) noexcept - : RpcOpenRequest(nullptr, std::move(from)) {} + : RpcOpenRequest(nullptr, ::std::move(from)) {} inline RpcOpenRequest& operator=(const RpcOpenRequest& from) { CopyFrom(from); return *this; @@ -3671,30 +3705,27 @@ class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcOpenRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RpcOpenRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcOpenRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 32; + static constexpr int kIndexInFileMessages = 35; friend void swap(RpcOpenRequest& a, RpcOpenRequest& b) { a.Swap(&b); } - inline void Swap(RpcOpenRequest* other) { + inline void Swap(RpcOpenRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -3702,7 +3733,7 @@ class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcOpenRequest* other) { + void UnsafeArenaSwap(RpcOpenRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3710,7 +3741,7 @@ class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase // implements Message ---------------------------------------------- - RpcOpenRequest* New(::google::protobuf::Arena* arena = nullptr) const { + RpcOpenRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -3728,24 +3759,25 @@ class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase } private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcOpenRequest"; } - protected: - explicit RpcOpenRequest(::google::protobuf::Arena* arena); - RpcOpenRequest(::google::protobuf::Arena* arena, const RpcOpenRequest& from); - RpcOpenRequest(::google::protobuf::Arena* arena, RpcOpenRequest&& from) noexcept + explicit RpcOpenRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcOpenRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenRequest& from); + RpcOpenRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenRequest&& from) noexcept : RpcOpenRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -3754,9 +3786,9 @@ class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 0, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -3765,18 +3797,10 @@ class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcOpenRequest& from_msg); - PROTOBUF_TSAN_DECLARE_MEMBER - }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcOpenRequest_class_data_; // ------------------------------------------------------------------- class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBase @@ -3785,19 +3809,18 @@ class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBa inline RpcCloseResponse() : RpcCloseResponse(nullptr) {} #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcCloseResponse* msg, std::destroying_delete_t) { + void operator delete(RpcCloseResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcCloseResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcCloseResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcCloseResponse(::google::protobuf::internal::ConstantInitialized); inline RpcCloseResponse(const RpcCloseResponse& from) : RpcCloseResponse(nullptr, from) {} inline RpcCloseResponse(RpcCloseResponse&& from) noexcept - : RpcCloseResponse(nullptr, std::move(from)) {} + : RpcCloseResponse(nullptr, ::std::move(from)) {} inline RpcCloseResponse& operator=(const RpcCloseResponse& from) { CopyFrom(from); return *this; @@ -3816,30 +3839,27 @@ class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBa ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcCloseResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RpcCloseResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcCloseResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 38; + static constexpr int kIndexInFileMessages = 41; friend void swap(RpcCloseResponse& a, RpcCloseResponse& b) { a.Swap(&b); } - inline void Swap(RpcCloseResponse* other) { + inline void Swap(RpcCloseResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -3847,7 +3867,7 @@ class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBa ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcCloseResponse* other) { + void UnsafeArenaSwap(RpcCloseResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -3855,7 +3875,7 @@ class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBa // implements Message ---------------------------------------------- - RpcCloseResponse* New(::google::protobuf::Arena* arena = nullptr) const { + RpcCloseResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; @@ -3873,24 +3893,25 @@ class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBa } private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcCloseResponse"; } - protected: - explicit RpcCloseResponse(::google::protobuf::Arena* arena); - RpcCloseResponse(::google::protobuf::Arena* arena, const RpcCloseResponse& from); - RpcCloseResponse(::google::protobuf::Arena* arena, RpcCloseResponse&& from) noexcept + explicit RpcCloseResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcCloseResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCloseResponse& from); + RpcCloseResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcCloseResponse&& from) noexcept : RpcCloseResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -3899,9 +3920,9 @@ class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBa private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 0, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -3910,18 +3931,10 @@ class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBa friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcCloseResponse& from_msg); - PROTOBUF_TSAN_DECLARE_MEMBER - }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcCloseResponse_class_data_; // ------------------------------------------------------------------- class RpcCloseRequest final : public ::google::protobuf::Message @@ -3931,19 +3944,18 @@ class RpcCloseRequest final : public ::google::protobuf::Message ~RpcCloseRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcCloseRequest* msg, std::destroying_delete_t) { + void operator delete(RpcCloseRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcCloseRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcCloseRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcCloseRequest(::google::protobuf::internal::ConstantInitialized); inline RpcCloseRequest(const RpcCloseRequest& from) : RpcCloseRequest(nullptr, from) {} inline RpcCloseRequest(RpcCloseRequest&& from) noexcept - : RpcCloseRequest(nullptr, std::move(from)) {} + : RpcCloseRequest(nullptr, ::std::move(from)) {} inline RpcCloseRequest& operator=(const RpcCloseRequest& from) { CopyFrom(from); return *this; @@ -3962,30 +3974,27 @@ class RpcCloseRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcCloseRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RpcCloseRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcCloseRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 37; + static constexpr int kIndexInFileMessages = 40; friend void swap(RpcCloseRequest& a, RpcCloseRequest& b) { a.Swap(&b); } - inline void Swap(RpcCloseRequest* other) { + inline void Swap(RpcCloseRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -3993,7 +4002,7 @@ class RpcCloseRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcCloseRequest* other) { + void UnsafeArenaSwap(RpcCloseRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4001,7 +4010,7 @@ class RpcCloseRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcCloseRequest* New(::google::protobuf::Arena* arena = nullptr) const { + RpcCloseRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4010,9 +4019,8 @@ class RpcCloseRequest final : public ::google::protobuf::Message void MergeFrom(const RpcCloseRequest& from) { RpcCloseRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -4022,49 +4030,50 @@ class RpcCloseRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcCloseRequest* other); + void InternalSwap(RpcCloseRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcCloseRequest"; } - protected: - explicit RpcCloseRequest(::google::protobuf::Arena* arena); - RpcCloseRequest(::google::protobuf::Arena* arena, const RpcCloseRequest& from); - RpcCloseRequest(::google::protobuf::Arena* arena, RpcCloseRequest&& from) noexcept + explicit RpcCloseRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcCloseRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCloseRequest& from); + RpcCloseRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcCloseRequest&& from) noexcept : RpcCloseRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -4086,9 +4095,9 @@ class RpcCloseRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -4098,20 +4107,24 @@ class RpcCloseRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcCloseRequest& from_msg); - ::int32_t session_id_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcCloseRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t session_id_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcCloseRequest_class_data_; // ------------------------------------------------------------------- class RpcCancelRequest final : public ::google::protobuf::Message @@ -4121,19 +4134,18 @@ class RpcCancelRequest final : public ::google::protobuf::Message ~RpcCancelRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcCancelRequest* msg, std::destroying_delete_t) { + void operator delete(RpcCancelRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcCancelRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcCancelRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcCancelRequest(::google::protobuf::internal::ConstantInitialized); inline RpcCancelRequest(const RpcCancelRequest& from) : RpcCancelRequest(nullptr, from) {} inline RpcCancelRequest(RpcCancelRequest&& from) noexcept - : RpcCancelRequest(nullptr, std::move(from)) {} + : RpcCancelRequest(nullptr, ::std::move(from)) {} inline RpcCancelRequest& operator=(const RpcCancelRequest& from) { CopyFrom(from); return *this; @@ -4152,30 +4164,27 @@ class RpcCancelRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcCancelRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RpcCancelRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcCancelRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 43; + static constexpr int kIndexInFileMessages = 46; friend void swap(RpcCancelRequest& a, RpcCancelRequest& b) { a.Swap(&b); } - inline void Swap(RpcCancelRequest* other) { + inline void Swap(RpcCancelRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -4183,7 +4192,7 @@ class RpcCancelRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcCancelRequest* other) { + void UnsafeArenaSwap(RpcCancelRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4191,7 +4200,7 @@ class RpcCancelRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcCancelRequest* New(::google::protobuf::Arena* arena = nullptr) const { + RpcCancelRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4200,9 +4209,8 @@ class RpcCancelRequest final : public ::google::protobuf::Message void MergeFrom(const RpcCancelRequest& from) { RpcCancelRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -4212,49 +4220,50 @@ class RpcCancelRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcCancelRequest* other); + void InternalSwap(RpcCancelRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcCancelRequest"; } - protected: - explicit RpcCancelRequest(::google::protobuf::Arena* arena); - RpcCancelRequest(::google::protobuf::Arena* arena, const RpcCancelRequest& from); - RpcCancelRequest(::google::protobuf::Arena* arena, RpcCancelRequest&& from) noexcept + explicit RpcCancelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcCancelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCancelRequest& from); + RpcCancelRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcCancelRequest&& from) noexcept : RpcCancelRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -4298,9 +4307,9 @@ class RpcCancelRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -4310,22 +4319,26 @@ class RpcCancelRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcCancelRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcCancelRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::int32_t session_id_; ::int32_t request_id_; ::uint64_t client_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcCancelRequest_class_data_; // ------------------------------------------------------------------- class RetirementNotification final : public ::google::protobuf::Message @@ -4335,19 +4348,18 @@ class RetirementNotification final : public ::google::protobuf::Message ~RetirementNotification() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RetirementNotification* msg, std::destroying_delete_t) { + void operator delete(RetirementNotification* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RetirementNotification)); } #endif template - explicit PROTOBUF_CONSTEXPR RetirementNotification( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RetirementNotification(::google::protobuf::internal::ConstantInitialized); inline RetirementNotification(const RetirementNotification& from) : RetirementNotification(nullptr, from) {} inline RetirementNotification(RetirementNotification&& from) noexcept - : RetirementNotification(nullptr, std::move(from)) {} + : RetirementNotification(nullptr, ::std::move(from)) {} inline RetirementNotification& operator=(const RetirementNotification& from) { CopyFrom(from); return *this; @@ -4366,30 +4378,27 @@ class RetirementNotification final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RetirementNotification& default_instance() { - return *internal_default_instance(); - } - static inline const RetirementNotification* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RetirementNotification_default_instance_); } - static constexpr int kIndexInFileMessages = 27; + static constexpr int kIndexInFileMessages = 30; friend void swap(RetirementNotification& a, RetirementNotification& b) { a.Swap(&b); } - inline void Swap(RetirementNotification* other) { + inline void Swap(RetirementNotification* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -4397,7 +4406,7 @@ class RetirementNotification final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RetirementNotification* other) { + void UnsafeArenaSwap(RetirementNotification* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4405,7 +4414,7 @@ class RetirementNotification final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RetirementNotification* New(::google::protobuf::Arena* arena = nullptr) const { + RetirementNotification* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4414,9 +4423,8 @@ class RetirementNotification final : public ::google::protobuf::Message void MergeFrom(const RetirementNotification& from) { RetirementNotification::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -4426,49 +4434,50 @@ class RetirementNotification final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RetirementNotification* other); + void InternalSwap(RetirementNotification* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RetirementNotification"; } - protected: - explicit RetirementNotification(::google::protobuf::Arena* arena); - RetirementNotification(::google::protobuf::Arena* arena, const RetirementNotification& from); - RetirementNotification(::google::protobuf::Arena* arena, RetirementNotification&& from) noexcept + explicit RetirementNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RetirementNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RetirementNotification& from); + RetirementNotification( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RetirementNotification&& from) noexcept : RetirementNotification(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -4490,9 +4499,9 @@ class RetirementNotification final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -4502,20 +4511,24 @@ class RetirementNotification final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RetirementNotification& from_msg); - ::int32_t slot_id_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RetirementNotification& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::int32_t slot_id_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RetirementNotification_class_data_; // ------------------------------------------------------------------- class RemoveSubscriberResponse final : public ::google::protobuf::Message @@ -4525,19 +4538,18 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message ~RemoveSubscriberResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemoveSubscriberResponse* msg, std::destroying_delete_t) { + void operator delete(RemoveSubscriberResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RemoveSubscriberResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RemoveSubscriberResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RemoveSubscriberResponse(::google::protobuf::internal::ConstantInitialized); inline RemoveSubscriberResponse(const RemoveSubscriberResponse& from) : RemoveSubscriberResponse(nullptr, from) {} inline RemoveSubscriberResponse(RemoveSubscriberResponse&& from) noexcept - : RemoveSubscriberResponse(nullptr, std::move(from)) {} + : RemoveSubscriberResponse(nullptr, ::std::move(from)) {} inline RemoveSubscriberResponse& operator=(const RemoveSubscriberResponse& from) { CopyFrom(from); return *this; @@ -4556,30 +4568,27 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RemoveSubscriberResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RemoveSubscriberResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RemoveSubscriberResponse_default_instance_); } static constexpr int kIndexInFileMessages = 11; friend void swap(RemoveSubscriberResponse& a, RemoveSubscriberResponse& b) { a.Swap(&b); } - inline void Swap(RemoveSubscriberResponse* other) { + inline void Swap(RemoveSubscriberResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -4587,7 +4596,7 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveSubscriberResponse* other) { + void UnsafeArenaSwap(RemoveSubscriberResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4595,7 +4604,7 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RemoveSubscriberResponse* New(::google::protobuf::Arena* arena = nullptr) const { + RemoveSubscriberResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4604,9 +4613,8 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message void MergeFrom(const RemoveSubscriberResponse& from) { RemoveSubscriberResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -4616,49 +4624,50 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RemoveSubscriberResponse* other); + void InternalSwap(RemoveSubscriberResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RemoveSubscriberResponse"; } - protected: - explicit RemoveSubscriberResponse(::google::protobuf::Arena* arena); - RemoveSubscriberResponse(::google::protobuf::Arena* arena, const RemoveSubscriberResponse& from); - RemoveSubscriberResponse(::google::protobuf::Arena* arena, RemoveSubscriberResponse&& from) noexcept + explicit RemoveSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RemoveSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemoveSubscriberResponse& from); + RemoveSubscriberResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemoveSubscriberResponse&& from) noexcept : RemoveSubscriberResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -4668,27 +4677,26 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message }; // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // @@protoc_insertion_point(class_scope:subspace.RemoveSubscriberResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 47, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 47, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -4698,20 +4706,24 @@ class RemoveSubscriberResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RemoveSubscriberResponse& from_msg); - ::google::protobuf::internal::ArenaStringPtr error_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RemoveSubscriberResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr error_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberResponse_class_data_; // ------------------------------------------------------------------- class RemoveSubscriberRequest final : public ::google::protobuf::Message @@ -4721,19 +4733,18 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message ~RemoveSubscriberRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemoveSubscriberRequest* msg, std::destroying_delete_t) { + void operator delete(RemoveSubscriberRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RemoveSubscriberRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR RemoveSubscriberRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RemoveSubscriberRequest(::google::protobuf::internal::ConstantInitialized); inline RemoveSubscriberRequest(const RemoveSubscriberRequest& from) : RemoveSubscriberRequest(nullptr, from) {} inline RemoveSubscriberRequest(RemoveSubscriberRequest&& from) noexcept - : RemoveSubscriberRequest(nullptr, std::move(from)) {} + : RemoveSubscriberRequest(nullptr, ::std::move(from)) {} inline RemoveSubscriberRequest& operator=(const RemoveSubscriberRequest& from) { CopyFrom(from); return *this; @@ -4752,30 +4763,27 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RemoveSubscriberRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RemoveSubscriberRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RemoveSubscriberRequest_default_instance_); } static constexpr int kIndexInFileMessages = 10; friend void swap(RemoveSubscriberRequest& a, RemoveSubscriberRequest& b) { a.Swap(&b); } - inline void Swap(RemoveSubscriberRequest* other) { + inline void Swap(RemoveSubscriberRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -4783,7 +4791,7 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemoveSubscriberRequest* other) { + void UnsafeArenaSwap(RemoveSubscriberRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4791,7 +4799,7 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RemoveSubscriberRequest* New(::google::protobuf::Arena* arena = nullptr) const { + RemoveSubscriberRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4800,9 +4808,8 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message void MergeFrom(const RemoveSubscriberRequest& from) { RemoveSubscriberRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -4812,49 +4819,50 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RemoveSubscriberRequest* other); + void InternalSwap(RemoveSubscriberRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RemoveSubscriberRequest"; } - protected: - explicit RemoveSubscriberRequest(::google::protobuf::Arena* arena); - RemoveSubscriberRequest(::google::protobuf::Arena* arena, const RemoveSubscriberRequest& from); - RemoveSubscriberRequest(::google::protobuf::Arena* arena, RemoveSubscriberRequest&& from) noexcept + explicit RemoveSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RemoveSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemoveSubscriberRequest& from); + RemoveSubscriberRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemoveSubscriberRequest&& from) noexcept : RemoveSubscriberRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -4865,18 +4873,17 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int32 subscriber_id = 2; @@ -4893,9 +4900,9 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 53, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 53, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -4905,21 +4912,25 @@ class RemoveSubscriberRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RemoveSubscriberRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RemoveSubscriberRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int32_t subscriber_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberRequest_class_data_; // ------------------------------------------------------------------- class RemovePublisherResponse final : public ::google::protobuf::Message @@ -4929,19 +4940,18 @@ class RemovePublisherResponse final : public ::google::protobuf::Message ~RemovePublisherResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemovePublisherResponse* msg, std::destroying_delete_t) { + void operator delete(RemovePublisherResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RemovePublisherResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RemovePublisherResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RemovePublisherResponse(::google::protobuf::internal::ConstantInitialized); inline RemovePublisherResponse(const RemovePublisherResponse& from) : RemovePublisherResponse(nullptr, from) {} inline RemovePublisherResponse(RemovePublisherResponse&& from) noexcept - : RemovePublisherResponse(nullptr, std::move(from)) {} + : RemovePublisherResponse(nullptr, ::std::move(from)) {} inline RemovePublisherResponse& operator=(const RemovePublisherResponse& from) { CopyFrom(from); return *this; @@ -4960,30 +4970,27 @@ class RemovePublisherResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RemovePublisherResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RemovePublisherResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RemovePublisherResponse_default_instance_); } static constexpr int kIndexInFileMessages = 9; friend void swap(RemovePublisherResponse& a, RemovePublisherResponse& b) { a.Swap(&b); } - inline void Swap(RemovePublisherResponse* other) { + inline void Swap(RemovePublisherResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -4991,7 +4998,7 @@ class RemovePublisherResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemovePublisherResponse* other) { + void UnsafeArenaSwap(RemovePublisherResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -4999,7 +5006,7 @@ class RemovePublisherResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RemovePublisherResponse* New(::google::protobuf::Arena* arena = nullptr) const { + RemovePublisherResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5008,9 +5015,8 @@ class RemovePublisherResponse final : public ::google::protobuf::Message void MergeFrom(const RemovePublisherResponse& from) { RemovePublisherResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -5020,49 +5026,50 @@ class RemovePublisherResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RemovePublisherResponse* other); + void InternalSwap(RemovePublisherResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RemovePublisherResponse"; } - protected: - explicit RemovePublisherResponse(::google::protobuf::Arena* arena); - RemovePublisherResponse(::google::protobuf::Arena* arena, const RemovePublisherResponse& from); - RemovePublisherResponse(::google::protobuf::Arena* arena, RemovePublisherResponse&& from) noexcept + explicit RemovePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RemovePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemovePublisherResponse& from); + RemovePublisherResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemovePublisherResponse&& from) noexcept : RemovePublisherResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -5072,27 +5079,26 @@ class RemovePublisherResponse final : public ::google::protobuf::Message }; // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // @@protoc_insertion_point(class_scope:subspace.RemovePublisherResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 46, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 46, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -5102,20 +5108,24 @@ class RemovePublisherResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RemovePublisherResponse& from_msg); - ::google::protobuf::internal::ArenaStringPtr error_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RemovePublisherResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr error_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RemovePublisherResponse_class_data_; // ------------------------------------------------------------------- class RemovePublisherRequest final : public ::google::protobuf::Message @@ -5125,19 +5135,18 @@ class RemovePublisherRequest final : public ::google::protobuf::Message ~RemovePublisherRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemovePublisherRequest* msg, std::destroying_delete_t) { + void operator delete(RemovePublisherRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RemovePublisherRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR RemovePublisherRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RemovePublisherRequest(::google::protobuf::internal::ConstantInitialized); inline RemovePublisherRequest(const RemovePublisherRequest& from) : RemovePublisherRequest(nullptr, from) {} inline RemovePublisherRequest(RemovePublisherRequest&& from) noexcept - : RemovePublisherRequest(nullptr, std::move(from)) {} + : RemovePublisherRequest(nullptr, ::std::move(from)) {} inline RemovePublisherRequest& operator=(const RemovePublisherRequest& from) { CopyFrom(from); return *this; @@ -5156,30 +5165,27 @@ class RemovePublisherRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RemovePublisherRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RemovePublisherRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RemovePublisherRequest_default_instance_); } static constexpr int kIndexInFileMessages = 8; friend void swap(RemovePublisherRequest& a, RemovePublisherRequest& b) { a.Swap(&b); } - inline void Swap(RemovePublisherRequest* other) { + inline void Swap(RemovePublisherRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -5187,7 +5193,7 @@ class RemovePublisherRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RemovePublisherRequest* other) { + void UnsafeArenaSwap(RemovePublisherRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5195,7 +5201,7 @@ class RemovePublisherRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RemovePublisherRequest* New(::google::protobuf::Arena* arena = nullptr) const { + RemovePublisherRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5204,9 +5210,8 @@ class RemovePublisherRequest final : public ::google::protobuf::Message void MergeFrom(const RemovePublisherRequest& from) { RemovePublisherRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -5216,49 +5221,50 @@ class RemovePublisherRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RemovePublisherRequest* other); + void InternalSwap(RemovePublisherRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RemovePublisherRequest"; } - protected: - explicit RemovePublisherRequest(::google::protobuf::Arena* arena); - RemovePublisherRequest(::google::protobuf::Arena* arena, const RemovePublisherRequest& from); - RemovePublisherRequest(::google::protobuf::Arena* arena, RemovePublisherRequest&& from) noexcept + explicit RemovePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RemovePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemovePublisherRequest& from); + RemovePublisherRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemovePublisherRequest&& from) noexcept : RemovePublisherRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -5269,18 +5275,17 @@ class RemovePublisherRequest final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int32 publisher_id = 2; @@ -5297,9 +5302,9 @@ class RemovePublisherRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 52, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 52, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -5309,48 +5314,51 @@ class RemovePublisherRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RemovePublisherRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RemovePublisherRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int32_t publisher_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RemovePublisherRequest_class_data_; // ------------------------------------------------------------------- -class RawMessage final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RawMessage) */ { +class RegisterClientBufferResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.RegisterClientBufferResponse) */ { public: - inline RawMessage() : RawMessage(nullptr) {} - ~RawMessage() PROTOBUF_FINAL; + inline RegisterClientBufferResponse() : RegisterClientBufferResponse(nullptr) {} + ~RegisterClientBufferResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RawMessage* msg, std::destroying_delete_t) { + void operator delete(RegisterClientBufferResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RawMessage)); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RegisterClientBufferResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RawMessage( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RegisterClientBufferResponse(::google::protobuf::internal::ConstantInitialized); - inline RawMessage(const RawMessage& from) : RawMessage(nullptr, from) {} - inline RawMessage(RawMessage&& from) noexcept - : RawMessage(nullptr, std::move(from)) {} - inline RawMessage& operator=(const RawMessage& from) { + inline RegisterClientBufferResponse(const RegisterClientBufferResponse& from) : RegisterClientBufferResponse(nullptr, from) {} + inline RegisterClientBufferResponse(RegisterClientBufferResponse&& from) noexcept + : RegisterClientBufferResponse(nullptr, ::std::move(from)) {} + inline RegisterClientBufferResponse& operator=(const RegisterClientBufferResponse& from) { CopyFrom(from); return *this; } - inline RawMessage& operator=(RawMessage&& from) noexcept { + inline RegisterClientBufferResponse& operator=(RegisterClientBufferResponse&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); @@ -5364,30 +5372,27 @@ class RawMessage final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const RawMessage& default_instance() { - return *internal_default_instance(); - } - static inline const RawMessage* internal_default_instance() { - return reinterpret_cast( - &_RawMessage_default_instance_); + static const RegisterClientBufferResponse& default_instance() { + return *reinterpret_cast( + &_RegisterClientBufferResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 44; - friend void swap(RawMessage& a, RawMessage& b) { a.Swap(&b); } - inline void Swap(RawMessage* other) { + static constexpr int kIndexInFileMessages = 18; + friend void swap(RegisterClientBufferResponse& a, RegisterClientBufferResponse& b) { a.Swap(&b); } + inline void Swap(RegisterClientBufferResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -5395,7 +5400,7 @@ class RawMessage final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RawMessage* other) { + void UnsafeArenaSwap(RegisterClientBufferResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5403,18 +5408,17 @@ class RawMessage final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RawMessage* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); + RegisterClientBufferResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RawMessage& from); + void CopyFrom(const RegisterClientBufferResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RawMessage& from) { RawMessage::MergeImpl(*this, from); } + void MergeFrom(const RegisterClientBufferResponse& from) { RegisterClientBufferResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -5424,79 +5428,79 @@ class RawMessage final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RawMessage* other); + void InternalSwap(RegisterClientBufferResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RawMessage"; } - - protected: - explicit RawMessage(::google::protobuf::Arena* arena); - RawMessage(::google::protobuf::Arena* arena, const RawMessage& from); - RawMessage(::google::protobuf::Arena* arena, RawMessage&& from) noexcept - : RawMessage(arena) { + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.RegisterClientBufferResponse"; } + + explicit RegisterClientBufferResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RegisterClientBufferResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegisterClientBufferResponse& from); + RegisterClientBufferResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RegisterClientBufferResponse&& from) noexcept + : RegisterClientBufferResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDataFieldNumber = 1, + kErrorFieldNumber = 1, }; - // bytes data = 1; - void clear_data() ; - const std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* value); + // string error = 1; + void clear_error() ; + const ::std::string& error() const; + template + void set_error(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data( - const std::string& value); - std::string* _internal_mutable_data(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: - // @@protoc_insertion_point(class_scope:subspace.RawMessage) + // @@protoc_insertion_point(class_scope:subspace.RegisterClientBufferResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 51, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -5506,47 +5510,50 @@ class RawMessage final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RawMessage& from_msg); - ::google::protobuf::internal::ArenaStringPtr data_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RegisterClientBufferResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr error_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferResponse_class_data_; // ------------------------------------------------------------------- -class InitResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.InitResponse) */ { +class RawMessage final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.RawMessage) */ { public: - inline InitResponse() : InitResponse(nullptr) {} - ~InitResponse() PROTOBUF_FINAL; + inline RawMessage() : RawMessage(nullptr) {} + ~RawMessage() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(InitResponse* msg, std::destroying_delete_t) { + void operator delete(RawMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(InitResponse)); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RawMessage)); } #endif template - explicit PROTOBUF_CONSTEXPR InitResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RawMessage(::google::protobuf::internal::ConstantInitialized); - inline InitResponse(const InitResponse& from) : InitResponse(nullptr, from) {} - inline InitResponse(InitResponse&& from) noexcept - : InitResponse(nullptr, std::move(from)) {} - inline InitResponse& operator=(const InitResponse& from) { + inline RawMessage(const RawMessage& from) : RawMessage(nullptr, from) {} + inline RawMessage(RawMessage&& from) noexcept + : RawMessage(nullptr, ::std::move(from)) {} + inline RawMessage& operator=(const RawMessage& from) { CopyFrom(from); return *this; } - inline InitResponse& operator=(InitResponse&& from) noexcept { + inline RawMessage& operator=(RawMessage&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); @@ -5560,30 +5567,27 @@ class InitResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const InitResponse& default_instance() { - return *internal_default_instance(); - } - static inline const InitResponse* internal_default_instance() { - return reinterpret_cast( - &_InitResponse_default_instance_); + static const RawMessage& default_instance() { + return *reinterpret_cast( + &_RawMessage_default_instance_); } - static constexpr int kIndexInFileMessages = 1; - friend void swap(InitResponse& a, InitResponse& b) { a.Swap(&b); } - inline void Swap(InitResponse* other) { + static constexpr int kIndexInFileMessages = 47; + friend void swap(RawMessage& a, RawMessage& b) { a.Swap(&b); } + inline void Swap(RawMessage* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -5591,7 +5595,7 @@ class InitResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InitResponse* other) { + void UnsafeArenaSwap(RawMessage* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5599,18 +5603,17 @@ class InitResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - InitResponse* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); + RawMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InitResponse& from); + void CopyFrom(const RawMessage& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const InitResponse& from) { InitResponse::MergeImpl(*this, from); } + void MergeFrom(const RawMessage& from) { RawMessage::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -5620,55 +5623,251 @@ class InitResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(InitResponse* other); + void InternalSwap(RawMessage* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.InitResponse"; } + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.RawMessage"; } - protected: - explicit InitResponse(::google::protobuf::Arena* arena); - InitResponse(::google::protobuf::Arena* arena, const InitResponse& from); - InitResponse(::google::protobuf::Arena* arena, InitResponse&& from) noexcept - : InitResponse(arena) { + explicit RawMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RawMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RawMessage& from); + RawMessage( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RawMessage&& from) noexcept + : RawMessage(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kSessionIdFieldNumber = 2, + kDataFieldNumber = 1, + }; + // bytes data = 1; + void clear_data() ; + const ::std::string& data() const; + template + void set_data(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_data(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_data(); + void set_allocated_data(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_data() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_data(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_data(); + + public: + // @@protoc_insertion_point(class_scope:subspace.RawMessage) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RawMessage& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr data_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_subspace_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull RawMessage_class_data_; +// ------------------------------------------------------------------- + +class InitResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.InitResponse) */ { + public: + inline InitResponse() : InitResponse(nullptr) {} + ~InitResponse() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(InitResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(InitResponse)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR InitResponse(::google::protobuf::internal::ConstantInitialized); + + inline InitResponse(const InitResponse& from) : InitResponse(nullptr, from) {} + inline InitResponse(InitResponse&& from) noexcept + : InitResponse(nullptr, ::std::move(from)) {} + inline InitResponse& operator=(const InitResponse& from) { + CopyFrom(from); + return *this; + } + inline InitResponse& operator=(InitResponse&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const InitResponse& default_instance() { + return *reinterpret_cast( + &_InitResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = 1; + friend void swap(InitResponse& a, InitResponse& b) { a.Swap(&b); } + inline void Swap(InitResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(InitResponse* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + InitResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const InitResponse& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const InitResponse& from) { InitResponse::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(InitResponse* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.InitResponse"; } + + explicit InitResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + InitResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitResponse& from); + InitResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, InitResponse&& from) noexcept + : InitResponse(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kSessionIdFieldNumber = 2, kScbFdIndexFieldNumber = 1, kUserIdFieldNumber = 3, kGroupIdFieldNumber = 4, @@ -5717,9 +5916,9 @@ class InitResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -5729,23 +5928,27 @@ class InitResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const InitResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const InitResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::int64_t session_id_; ::int32_t scb_fd_index_; ::int32_t user_id_; ::int32_t group_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull InitResponse_class_data_; // ------------------------------------------------------------------- class InitRequest final : public ::google::protobuf::Message @@ -5755,19 +5958,18 @@ class InitRequest final : public ::google::protobuf::Message ~InitRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(InitRequest* msg, std::destroying_delete_t) { + void operator delete(InitRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(InitRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR InitRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR InitRequest(::google::protobuf::internal::ConstantInitialized); inline InitRequest(const InitRequest& from) : InitRequest(nullptr, from) {} inline InitRequest(InitRequest&& from) noexcept - : InitRequest(nullptr, std::move(from)) {} + : InitRequest(nullptr, ::std::move(from)) {} inline InitRequest& operator=(const InitRequest& from) { CopyFrom(from); return *this; @@ -5786,30 +5988,27 @@ class InitRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const InitRequest& default_instance() { - return *internal_default_instance(); - } - static inline const InitRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_InitRequest_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(InitRequest& a, InitRequest& b) { a.Swap(&b); } - inline void Swap(InitRequest* other) { + inline void Swap(InitRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -5817,7 +6016,7 @@ class InitRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(InitRequest* other) { + void UnsafeArenaSwap(InitRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -5825,7 +6024,7 @@ class InitRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - InitRequest* New(::google::protobuf::Arena* arena = nullptr) const { + InitRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5834,9 +6033,8 @@ class InitRequest final : public ::google::protobuf::Message void MergeFrom(const InitRequest& from) { InitRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -5846,49 +6044,50 @@ class InitRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(InitRequest* other); + void InternalSwap(InitRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.InitRequest"; } - protected: - explicit InitRequest(::google::protobuf::Arena* arena); - InitRequest(::google::protobuf::Arena* arena, const InitRequest& from); - InitRequest(::google::protobuf::Arena* arena, InitRequest&& from) noexcept + explicit InitRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + InitRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitRequest& from); + InitRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, InitRequest&& from) noexcept : InitRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -5898,27 +6097,26 @@ class InitRequest final : public ::google::protobuf::Message }; // string client_name = 1; void clear_client_name() ; - const std::string& client_name() const; - template + const ::std::string& client_name() const; + template void set_client_name(Arg_&& arg, Args_... args); - std::string* mutable_client_name(); - PROTOBUF_NODISCARD std::string* release_client_name(); - void set_allocated_client_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_client_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_client_name(); + void set_allocated_client_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_client_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_client_name( - const std::string& value); - std::string* _internal_mutable_client_name(); + const ::std::string& _internal_client_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_client_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_client_name(); public: // @@protoc_insertion_point(class_scope:subspace.InitRequest) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 40, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 40, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -5928,20 +6126,24 @@ class InitRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const InitRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr client_name_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const InitRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr client_name_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull InitRequest_class_data_; // ------------------------------------------------------------------- class GetTriggersResponse final : public ::google::protobuf::Message @@ -5951,19 +6153,18 @@ class GetTriggersResponse final : public ::google::protobuf::Message ~GetTriggersResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetTriggersResponse* msg, std::destroying_delete_t) { + void operator delete(GetTriggersResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTriggersResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR GetTriggersResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetTriggersResponse(::google::protobuf::internal::ConstantInitialized); inline GetTriggersResponse(const GetTriggersResponse& from) : GetTriggersResponse(nullptr, from) {} inline GetTriggersResponse(GetTriggersResponse&& from) noexcept - : GetTriggersResponse(nullptr, std::move(from)) {} + : GetTriggersResponse(nullptr, ::std::move(from)) {} inline GetTriggersResponse& operator=(const GetTriggersResponse& from) { CopyFrom(from); return *this; @@ -5982,30 +6183,27 @@ class GetTriggersResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetTriggersResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetTriggersResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetTriggersResponse_default_instance_); } static constexpr int kIndexInFileMessages = 7; friend void swap(GetTriggersResponse& a, GetTriggersResponse& b) { a.Swap(&b); } - inline void Swap(GetTriggersResponse* other) { + inline void Swap(GetTriggersResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -6013,7 +6211,7 @@ class GetTriggersResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTriggersResponse* other) { + void UnsafeArenaSwap(GetTriggersResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6021,7 +6219,7 @@ class GetTriggersResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetTriggersResponse* New(::google::protobuf::Arena* arena = nullptr) const { + GetTriggersResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6030,9 +6228,8 @@ class GetTriggersResponse final : public ::google::protobuf::Message void MergeFrom(const GetTriggersResponse& from) { GetTriggersResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -6042,49 +6239,50 @@ class GetTriggersResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(GetTriggersResponse* other); + void InternalSwap(GetTriggersResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.GetTriggersResponse"; } - protected: - explicit GetTriggersResponse(::google::protobuf::Arena* arena); - GetTriggersResponse(::google::protobuf::Arena* arena, const GetTriggersResponse& from); - GetTriggersResponse(::google::protobuf::Arena* arena, GetTriggersResponse&& from) noexcept + explicit GetTriggersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetTriggersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTriggersResponse& from); + GetTriggersResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTriggersResponse&& from) noexcept : GetTriggersResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -6106,11 +6304,11 @@ class GetTriggersResponse final : public ::google::protobuf::Message void set_reliable_pub_trigger_fd_indexes(int index, ::int32_t value); void add_reliable_pub_trigger_fd_indexes(::int32_t value); const ::google::protobuf::RepeatedField<::int32_t>& reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_reliable_pub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_reliable_pub_trigger_fd_indexes(); private: const ::google::protobuf::RepeatedField<::int32_t>& _internal_reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_reliable_pub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_reliable_pub_trigger_fd_indexes(); public: // repeated int32 sub_trigger_fd_indexes = 3; @@ -6124,11 +6322,11 @@ class GetTriggersResponse final : public ::google::protobuf::Message void set_sub_trigger_fd_indexes(int index, ::int32_t value); void add_sub_trigger_fd_indexes(::int32_t value); const ::google::protobuf::RepeatedField<::int32_t>& sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_sub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_sub_trigger_fd_indexes(); private: const ::google::protobuf::RepeatedField<::int32_t>& _internal_sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_sub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_sub_trigger_fd_indexes(); public: // repeated int32 retirement_fd_indexes = 4; @@ -6142,36 +6340,35 @@ class GetTriggersResponse final : public ::google::protobuf::Message void set_retirement_fd_indexes(int index, ::int32_t value); void add_retirement_fd_indexes(::int32_t value); const ::google::protobuf::RepeatedField<::int32_t>& retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_retirement_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_retirement_fd_indexes(); private: const ::google::protobuf::RepeatedField<::int32_t>& _internal_retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_retirement_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_retirement_fd_indexes(); public: // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // @@protoc_insertion_point(class_scope:subspace.GetTriggersResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 42, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 42, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -6181,13 +6378,16 @@ class GetTriggersResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const GetTriggersResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetTriggersResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField<::int32_t> reliable_pub_trigger_fd_indexes_; ::google::protobuf::internal::CachedSize _reliable_pub_trigger_fd_indexes_cached_byte_size_; ::google::protobuf::RepeatedField<::int32_t> sub_trigger_fd_indexes_; @@ -6195,12 +6395,13 @@ class GetTriggersResponse final : public ::google::protobuf::Message ::google::protobuf::RepeatedField<::int32_t> retirement_fd_indexes_; ::google::protobuf::internal::CachedSize _retirement_fd_indexes_cached_byte_size_; ::google::protobuf::internal::ArenaStringPtr error_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetTriggersResponse_class_data_; // ------------------------------------------------------------------- class GetTriggersRequest final : public ::google::protobuf::Message @@ -6210,19 +6411,18 @@ class GetTriggersRequest final : public ::google::protobuf::Message ~GetTriggersRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetTriggersRequest* msg, std::destroying_delete_t) { + void operator delete(GetTriggersRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTriggersRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR GetTriggersRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetTriggersRequest(::google::protobuf::internal::ConstantInitialized); inline GetTriggersRequest(const GetTriggersRequest& from) : GetTriggersRequest(nullptr, from) {} inline GetTriggersRequest(GetTriggersRequest&& from) noexcept - : GetTriggersRequest(nullptr, std::move(from)) {} + : GetTriggersRequest(nullptr, ::std::move(from)) {} inline GetTriggersRequest& operator=(const GetTriggersRequest& from) { CopyFrom(from); return *this; @@ -6241,30 +6441,27 @@ class GetTriggersRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetTriggersRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetTriggersRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetTriggersRequest_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(GetTriggersRequest& a, GetTriggersRequest& b) { a.Swap(&b); } - inline void Swap(GetTriggersRequest* other) { + inline void Swap(GetTriggersRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -6272,7 +6469,7 @@ class GetTriggersRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetTriggersRequest* other) { + void UnsafeArenaSwap(GetTriggersRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6280,7 +6477,7 @@ class GetTriggersRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetTriggersRequest* New(::google::protobuf::Arena* arena = nullptr) const { + GetTriggersRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6289,9 +6486,8 @@ class GetTriggersRequest final : public ::google::protobuf::Message void MergeFrom(const GetTriggersRequest& from) { GetTriggersRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -6301,49 +6497,50 @@ class GetTriggersRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(GetTriggersRequest* other); + void InternalSwap(GetTriggersRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.GetTriggersRequest"; } - protected: - explicit GetTriggersRequest(::google::protobuf::Arena* arena); - GetTriggersRequest(::google::protobuf::Arena* arena, const GetTriggersRequest& from); - GetTriggersRequest(::google::protobuf::Arena* arena, GetTriggersRequest&& from) noexcept + explicit GetTriggersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetTriggersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTriggersRequest& from); + GetTriggersRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTriggersRequest&& from) noexcept : GetTriggersRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -6353,27 +6550,26 @@ class GetTriggersRequest final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // @@protoc_insertion_point(class_scope:subspace.GetTriggersRequest) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 48, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 48, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -6383,47 +6579,50 @@ class GetTriggersRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const GetTriggersRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr channel_name_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetTriggersRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr channel_name_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetTriggersRequest_class_data_; // ------------------------------------------------------------------- -class GetChannelStatsRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetChannelStatsRequest) */ { +class GetClientBuffersRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.GetClientBuffersRequest) */ { public: - inline GetChannelStatsRequest() : GetChannelStatsRequest(nullptr) {} - ~GetChannelStatsRequest() PROTOBUF_FINAL; + inline GetClientBuffersRequest() : GetClientBuffersRequest(nullptr) {} + ~GetClientBuffersRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelStatsRequest* msg, std::destroying_delete_t) { + void operator delete(GetClientBuffersRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelStatsRequest)); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetClientBuffersRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR GetChannelStatsRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetClientBuffersRequest(::google::protobuf::internal::ConstantInitialized); - inline GetChannelStatsRequest(const GetChannelStatsRequest& from) : GetChannelStatsRequest(nullptr, from) {} - inline GetChannelStatsRequest(GetChannelStatsRequest&& from) noexcept - : GetChannelStatsRequest(nullptr, std::move(from)) {} - inline GetChannelStatsRequest& operator=(const GetChannelStatsRequest& from) { + inline GetClientBuffersRequest(const GetClientBuffersRequest& from) : GetClientBuffersRequest(nullptr, from) {} + inline GetClientBuffersRequest(GetClientBuffersRequest&& from) noexcept + : GetClientBuffersRequest(nullptr, ::std::move(from)) {} + inline GetClientBuffersRequest& operator=(const GetClientBuffersRequest& from) { CopyFrom(from); return *this; } - inline GetChannelStatsRequest& operator=(GetChannelStatsRequest&& from) noexcept { + inline GetClientBuffersRequest& operator=(GetClientBuffersRequest&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); @@ -6437,30 +6636,27 @@ class GetChannelStatsRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetChannelStatsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetChannelStatsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetChannelStatsRequest_default_instance_); + static const GetClientBuffersRequest& default_instance() { + return *reinterpret_cast( + &_GetClientBuffersRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 14; - friend void swap(GetChannelStatsRequest& a, GetChannelStatsRequest& b) { a.Swap(&b); } - inline void Swap(GetChannelStatsRequest* other) { + static constexpr int kIndexInFileMessages = 20; + friend void swap(GetClientBuffersRequest& a, GetClientBuffersRequest& b) { a.Swap(&b); } + inline void Swap(GetClientBuffersRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -6468,7 +6664,7 @@ class GetChannelStatsRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetChannelStatsRequest* other) { + void UnsafeArenaSwap(GetClientBuffersRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6476,18 +6672,17 @@ class GetChannelStatsRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetChannelStatsRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); + GetClientBuffersRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetChannelStatsRequest& from); + void CopyFrom(const GetClientBuffersRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetChannelStatsRequest& from) { GetChannelStatsRequest::MergeImpl(*this, from); } + void MergeFrom(const GetClientBuffersRequest& from) { GetClientBuffersRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -6497,79 +6692,101 @@ class GetChannelStatsRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelStatsRequest* other); + void InternalSwap(GetClientBuffersRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetChannelStatsRequest"; } - - protected: - explicit GetChannelStatsRequest(::google::protobuf::Arena* arena); - GetChannelStatsRequest(::google::protobuf::Arena* arena, const GetChannelStatsRequest& from); - GetChannelStatsRequest(::google::protobuf::Arena* arena, GetChannelStatsRequest&& from) noexcept - : GetChannelStatsRequest(arena) { + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.GetClientBuffersRequest"; } + + explicit GetClientBuffersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetClientBuffersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetClientBuffersRequest& from); + GetClientBuffersRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetClientBuffersRequest&& from) noexcept + : GetClientBuffersRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kChannelNameFieldNumber = 1, + kSessionIdFieldNumber = 2, + kBufferIndexFieldNumber = 3, }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: - // @@protoc_insertion_point(class_scope:subspace.GetChannelStatsRequest) + // uint64 session_id = 2; + void clear_session_id() ; + ::uint64_t session_id() const; + void set_session_id(::uint64_t value); + + private: + ::uint64_t _internal_session_id() const; + void _internal_set_session_id(::uint64_t value); + + public: + // uint32 buffer_index = 3; + void clear_buffer_index() ; + ::uint32_t buffer_index() const; + void set_buffer_index(::uint32_t value); + + private: + ::uint32_t _internal_buffer_index() const; + void _internal_set_buffer_index(::uint32_t value); + + public: + // @@protoc_insertion_point(class_scope:subspace.GetClientBuffersRequest) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 52, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 53, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -6579,47 +6796,52 @@ class GetChannelStatsRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const GetChannelStatsRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr channel_name_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetClientBuffersRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr channel_name_; + ::uint64_t session_id_; + ::uint32_t buffer_index_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersRequest_class_data_; // ------------------------------------------------------------------- -class GetChannelInfoRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetChannelInfoRequest) */ { +class GetChannelStatsRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.GetChannelStatsRequest) */ { public: - inline GetChannelInfoRequest() : GetChannelInfoRequest(nullptr) {} - ~GetChannelInfoRequest() PROTOBUF_FINAL; + inline GetChannelStatsRequest() : GetChannelStatsRequest(nullptr) {} + ~GetChannelStatsRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelInfoRequest* msg, std::destroying_delete_t) { + void operator delete(GetChannelStatsRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelInfoRequest)); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelStatsRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR GetChannelInfoRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetChannelStatsRequest(::google::protobuf::internal::ConstantInitialized); - inline GetChannelInfoRequest(const GetChannelInfoRequest& from) : GetChannelInfoRequest(nullptr, from) {} - inline GetChannelInfoRequest(GetChannelInfoRequest&& from) noexcept - : GetChannelInfoRequest(nullptr, std::move(from)) {} - inline GetChannelInfoRequest& operator=(const GetChannelInfoRequest& from) { + inline GetChannelStatsRequest(const GetChannelStatsRequest& from) : GetChannelStatsRequest(nullptr, from) {} + inline GetChannelStatsRequest(GetChannelStatsRequest&& from) noexcept + : GetChannelStatsRequest(nullptr, ::std::move(from)) {} + inline GetChannelStatsRequest& operator=(const GetChannelStatsRequest& from) { CopyFrom(from); return *this; } - inline GetChannelInfoRequest& operator=(GetChannelInfoRequest&& from) noexcept { + inline GetChannelStatsRequest& operator=(GetChannelStatsRequest&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); @@ -6633,30 +6855,27 @@ class GetChannelInfoRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GetChannelInfoRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetChannelInfoRequest* internal_default_instance() { - return reinterpret_cast( - &_GetChannelInfoRequest_default_instance_); + static const GetChannelStatsRequest& default_instance() { + return *reinterpret_cast( + &_GetChannelStatsRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 12; - friend void swap(GetChannelInfoRequest& a, GetChannelInfoRequest& b) { a.Swap(&b); } - inline void Swap(GetChannelInfoRequest* other) { + static constexpr int kIndexInFileMessages = 14; + friend void swap(GetChannelStatsRequest& a, GetChannelStatsRequest& b) { a.Swap(&b); } + inline void Swap(GetChannelStatsRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -6664,7 +6883,7 @@ class GetChannelInfoRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetChannelInfoRequest* other) { + void UnsafeArenaSwap(GetChannelStatsRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6672,18 +6891,17 @@ class GetChannelInfoRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetChannelInfoRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); + GetChannelStatsRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetChannelInfoRequest& from); + void CopyFrom(const GetChannelStatsRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetChannelInfoRequest& from) { GetChannelInfoRequest::MergeImpl(*this, from); } + void MergeFrom(const GetChannelStatsRequest& from) { GetChannelStatsRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -6693,49 +6911,50 @@ class GetChannelInfoRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelInfoRequest* other); + void InternalSwap(GetChannelStatsRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetChannelInfoRequest"; } + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.GetChannelStatsRequest"; } - protected: - explicit GetChannelInfoRequest(::google::protobuf::Arena* arena); - GetChannelInfoRequest(::google::protobuf::Arena* arena, const GetChannelInfoRequest& from); - GetChannelInfoRequest(::google::protobuf::Arena* arena, GetChannelInfoRequest&& from) noexcept - : GetChannelInfoRequest(arena) { + explicit GetChannelStatsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetChannelStatsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelStatsRequest& from); + GetChannelStatsRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelStatsRequest&& from) noexcept + : GetChannelStatsRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -6745,27 +6964,26 @@ class GetChannelInfoRequest final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: - // @@protoc_insertion_point(class_scope:subspace.GetChannelInfoRequest) + // @@protoc_insertion_point(class_scope:subspace.GetChannelStatsRequest) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 51, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 52, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -6775,20 +6993,219 @@ class GetChannelInfoRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const GetChannelInfoRequest& from_msg); - ::google::protobuf::internal::ArenaStringPtr channel_name_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetChannelStatsRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr channel_name_; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_subspace_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsRequest_class_data_; +// ------------------------------------------------------------------- + +class GetChannelInfoRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.GetChannelInfoRequest) */ { + public: + inline GetChannelInfoRequest() : GetChannelInfoRequest(nullptr) {} + ~GetChannelInfoRequest() PROTOBUF_FINAL; + +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(GetChannelInfoRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelInfoRequest)); + } +#endif + + template + explicit PROTOBUF_CONSTEXPR GetChannelInfoRequest(::google::protobuf::internal::ConstantInitialized); + + inline GetChannelInfoRequest(const GetChannelInfoRequest& from) : GetChannelInfoRequest(nullptr, from) {} + inline GetChannelInfoRequest(GetChannelInfoRequest&& from) noexcept + : GetChannelInfoRequest(nullptr, ::std::move(from)) {} + inline GetChannelInfoRequest& operator=(const GetChannelInfoRequest& from) { + CopyFrom(from); + return *this; + } + inline GetChannelInfoRequest& operator=(GetChannelInfoRequest&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const GetChannelInfoRequest& default_instance() { + return *reinterpret_cast( + &_GetChannelInfoRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = 12; + friend void swap(GetChannelInfoRequest& a, GetChannelInfoRequest& b) { a.Swap(&b); } + inline void Swap(GetChannelInfoRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(GetChannelInfoRequest* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + GetChannelInfoRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const GetChannelInfoRequest& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const GetChannelInfoRequest& from) { GetChannelInfoRequest::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(GetChannelInfoRequest* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.GetChannelInfoRequest"; } + + explicit GetChannelInfoRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetChannelInfoRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelInfoRequest& from); + GetChannelInfoRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelInfoRequest&& from) noexcept + : GetChannelInfoRequest(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kChannelNameFieldNumber = 1, + }; + // string channel_name = 1; + void clear_channel_name() ; + const ::std::string& channel_name() const; + template + void set_channel_name(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); + + public: + // @@protoc_insertion_point(class_scope:subspace.GetChannelInfoRequest) + private: + class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 51, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetChannelInfoRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr channel_name_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoRequest_class_data_; // ------------------------------------------------------------------- class Discovery_Query final : public ::google::protobuf::Message @@ -6798,19 +7215,18 @@ class Discovery_Query final : public ::google::protobuf::Message ~Discovery_Query() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery_Query* msg, std::destroying_delete_t) { + void operator delete(Discovery_Query* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery_Query)); } #endif template - explicit PROTOBUF_CONSTEXPR Discovery_Query( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Discovery_Query(::google::protobuf::internal::ConstantInitialized); inline Discovery_Query(const Discovery_Query& from) : Discovery_Query(nullptr, from) {} inline Discovery_Query(Discovery_Query&& from) noexcept - : Discovery_Query(nullptr, std::move(from)) {} + : Discovery_Query(nullptr, ::std::move(from)) {} inline Discovery_Query& operator=(const Discovery_Query& from) { CopyFrom(from); return *this; @@ -6829,30 +7245,27 @@ class Discovery_Query final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Discovery_Query& default_instance() { - return *internal_default_instance(); - } - static inline const Discovery_Query* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Discovery_Query_default_instance_); } - static constexpr int kIndexInFileMessages = 28; + static constexpr int kIndexInFileMessages = 31; friend void swap(Discovery_Query& a, Discovery_Query& b) { a.Swap(&b); } - inline void Swap(Discovery_Query* other) { + inline void Swap(Discovery_Query* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -6860,7 +7273,7 @@ class Discovery_Query final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Discovery_Query* other) { + void UnsafeArenaSwap(Discovery_Query* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -6868,7 +7281,7 @@ class Discovery_Query final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Discovery_Query* New(::google::protobuf::Arena* arena = nullptr) const { + Discovery_Query* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -6877,9 +7290,8 @@ class Discovery_Query final : public ::google::protobuf::Message void MergeFrom(const Discovery_Query& from) { Discovery_Query::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -6889,49 +7301,50 @@ class Discovery_Query final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery_Query* other); + void InternalSwap(Discovery_Query* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.Discovery.Query"; } - protected: - explicit Discovery_Query(::google::protobuf::Arena* arena); - Discovery_Query(::google::protobuf::Arena* arena, const Discovery_Query& from); - Discovery_Query(::google::protobuf::Arena* arena, Discovery_Query&& from) noexcept + explicit Discovery_Query(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Discovery_Query(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Query& from); + Discovery_Query( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery_Query&& from) noexcept : Discovery_Query(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -6941,27 +7354,26 @@ class Discovery_Query final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // @@protoc_insertion_point(class_scope:subspace.Discovery.Query) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 45, 2> + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 45, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -6971,20 +7383,24 @@ class Discovery_Query final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Discovery_Query& from_msg); - ::google::protobuf::internal::ArenaStringPtr channel_name_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Discovery_Query& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::ArenaStringPtr channel_name_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Discovery_Query_class_data_; // ------------------------------------------------------------------- class Discovery_Advertise final : public ::google::protobuf::Message @@ -6994,19 +7410,18 @@ class Discovery_Advertise final : public ::google::protobuf::Message ~Discovery_Advertise() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery_Advertise* msg, std::destroying_delete_t) { + void operator delete(Discovery_Advertise* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery_Advertise)); } #endif template - explicit PROTOBUF_CONSTEXPR Discovery_Advertise( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Discovery_Advertise(::google::protobuf::internal::ConstantInitialized); inline Discovery_Advertise(const Discovery_Advertise& from) : Discovery_Advertise(nullptr, from) {} inline Discovery_Advertise(Discovery_Advertise&& from) noexcept - : Discovery_Advertise(nullptr, std::move(from)) {} + : Discovery_Advertise(nullptr, ::std::move(from)) {} inline Discovery_Advertise& operator=(const Discovery_Advertise& from) { CopyFrom(from); return *this; @@ -7025,30 +7440,27 @@ class Discovery_Advertise final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Discovery_Advertise& default_instance() { - return *internal_default_instance(); - } - static inline const Discovery_Advertise* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Discovery_Advertise_default_instance_); } - static constexpr int kIndexInFileMessages = 29; + static constexpr int kIndexInFileMessages = 32; friend void swap(Discovery_Advertise& a, Discovery_Advertise& b) { a.Swap(&b); } - inline void Swap(Discovery_Advertise* other) { + inline void Swap(Discovery_Advertise* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -7056,7 +7468,7 @@ class Discovery_Advertise final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Discovery_Advertise* other) { + void UnsafeArenaSwap(Discovery_Advertise* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7064,7 +7476,7 @@ class Discovery_Advertise final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Discovery_Advertise* New(::google::protobuf::Arena* arena = nullptr) const { + Discovery_Advertise* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7073,9 +7485,8 @@ class Discovery_Advertise final : public ::google::protobuf::Message void MergeFrom(const Discovery_Advertise& from) { Discovery_Advertise::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -7085,49 +7496,50 @@ class Discovery_Advertise final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery_Advertise* other); + void InternalSwap(Discovery_Advertise* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.Discovery.Advertise"; } - protected: - explicit Discovery_Advertise(::google::protobuf::Arena* arena); - Discovery_Advertise(::google::protobuf::Arena* arena, const Discovery_Advertise& from); - Discovery_Advertise(::google::protobuf::Arena* arena, Discovery_Advertise&& from) noexcept + explicit Discovery_Advertise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Discovery_Advertise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Advertise& from); + Discovery_Advertise( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery_Advertise&& from) noexcept : Discovery_Advertise(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -7140,18 +7552,17 @@ class Discovery_Advertise final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // bool reliable = 2; @@ -7188,9 +7599,9 @@ class Discovery_Advertise final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 0, - 49, 2> + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 49, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -7200,23 +7611,27 @@ class Discovery_Advertise final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Discovery_Advertise& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Discovery_Advertise& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; bool reliable_; bool notify_retirement_; bool split_buffers_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Discovery_Advertise_class_data_; // ------------------------------------------------------------------- class CreateSubscriberResponse final : public ::google::protobuf::Message @@ -7226,19 +7641,18 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message ~CreateSubscriberResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreateSubscriberResponse* msg, std::destroying_delete_t) { + void operator delete(CreateSubscriberResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(CreateSubscriberResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR CreateSubscriberResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CreateSubscriberResponse(::google::protobuf::internal::ConstantInitialized); inline CreateSubscriberResponse(const CreateSubscriberResponse& from) : CreateSubscriberResponse(nullptr, from) {} inline CreateSubscriberResponse(CreateSubscriberResponse&& from) noexcept - : CreateSubscriberResponse(nullptr, std::move(from)) {} + : CreateSubscriberResponse(nullptr, ::std::move(from)) {} inline CreateSubscriberResponse& operator=(const CreateSubscriberResponse& from) { CopyFrom(from); return *this; @@ -7257,30 +7671,27 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const CreateSubscriberResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CreateSubscriberResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_CreateSubscriberResponse_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(CreateSubscriberResponse& a, CreateSubscriberResponse& b) { a.Swap(&b); } - inline void Swap(CreateSubscriberResponse* other) { + inline void Swap(CreateSubscriberResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -7288,7 +7699,7 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateSubscriberResponse* other) { + void UnsafeArenaSwap(CreateSubscriberResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7296,7 +7707,7 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CreateSubscriberResponse* New(::google::protobuf::Arena* arena = nullptr) const { + CreateSubscriberResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7305,9 +7716,8 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message void MergeFrom(const CreateSubscriberResponse& from) { CreateSubscriberResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -7317,49 +7727,50 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(CreateSubscriberResponse* other); + void InternalSwap(CreateSubscriberResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.CreateSubscriberResponse"; } - protected: - explicit CreateSubscriberResponse(::google::protobuf::Arena* arena); - CreateSubscriberResponse(::google::protobuf::Arena* arena, const CreateSubscriberResponse& from); - CreateSubscriberResponse(::google::protobuf::Arena* arena, CreateSubscriberResponse&& from) noexcept + explicit CreateSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CreateSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreateSubscriberResponse& from); + CreateSubscriberResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreateSubscriberResponse&& from) noexcept : CreateSubscriberResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -7394,11 +7805,11 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message void set_reliable_pub_trigger_fd_indexes(int index, ::int32_t value); void add_reliable_pub_trigger_fd_indexes(::int32_t value); const ::google::protobuf::RepeatedField<::int32_t>& reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_reliable_pub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_reliable_pub_trigger_fd_indexes(); private: const ::google::protobuf::RepeatedField<::int32_t>& _internal_reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_reliable_pub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_reliable_pub_trigger_fd_indexes(); public: // repeated int32 retirement_fd_indexes = 14; @@ -7412,43 +7823,41 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message void set_retirement_fd_indexes(int index, ::int32_t value); void add_retirement_fd_indexes(::int32_t value); const ::google::protobuf::RepeatedField<::int32_t>& retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_retirement_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_retirement_fd_indexes(); private: const ::google::protobuf::RepeatedField<::int32_t>& _internal_retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_retirement_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_retirement_fd_indexes(); public: // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // bytes type = 12; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // int32 channel_id = 2; @@ -7585,9 +7994,9 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 17, 0, - 63, 2> + static const ::google::protobuf::internal::TcParseTable<5, 17, + 0, 63, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -7597,13 +8006,16 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const CreateSubscriberResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CreateSubscriberResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField<::int32_t> reliable_pub_trigger_fd_indexes_; ::google::protobuf::internal::CachedSize _reliable_pub_trigger_fd_indexes_cached_byte_size_; ::google::protobuf::RepeatedField<::int32_t> retirement_fd_indexes_; @@ -7623,12 +8035,13 @@ class CreateSubscriberResponse final : public ::google::protobuf::Message ::int32_t checksum_size_; ::int32_t metadata_size_; bool use_split_buffers_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberResponse_class_data_; // ------------------------------------------------------------------- class CreateSubscriberRequest final : public ::google::protobuf::Message @@ -7638,19 +8051,18 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message ~CreateSubscriberRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreateSubscriberRequest* msg, std::destroying_delete_t) { + void operator delete(CreateSubscriberRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(CreateSubscriberRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR CreateSubscriberRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CreateSubscriberRequest(::google::protobuf::internal::ConstantInitialized); inline CreateSubscriberRequest(const CreateSubscriberRequest& from) : CreateSubscriberRequest(nullptr, from) {} inline CreateSubscriberRequest(CreateSubscriberRequest&& from) noexcept - : CreateSubscriberRequest(nullptr, std::move(from)) {} + : CreateSubscriberRequest(nullptr, ::std::move(from)) {} inline CreateSubscriberRequest& operator=(const CreateSubscriberRequest& from) { CopyFrom(from); return *this; @@ -7669,30 +8081,27 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const CreateSubscriberRequest& default_instance() { - return *internal_default_instance(); - } - static inline const CreateSubscriberRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_CreateSubscriberRequest_default_instance_); } static constexpr int kIndexInFileMessages = 4; friend void swap(CreateSubscriberRequest& a, CreateSubscriberRequest& b) { a.Swap(&b); } - inline void Swap(CreateSubscriberRequest* other) { + inline void Swap(CreateSubscriberRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -7700,7 +8109,7 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateSubscriberRequest* other) { + void UnsafeArenaSwap(CreateSubscriberRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -7708,7 +8117,7 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CreateSubscriberRequest* New(::google::protobuf::Arena* arena = nullptr) const { + CreateSubscriberRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -7717,9 +8126,8 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message void MergeFrom(const CreateSubscriberRequest& from) { CreateSubscriberRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -7729,49 +8137,50 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(CreateSubscriberRequest* other); + void InternalSwap(CreateSubscriberRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.CreateSubscriberRequest"; } - protected: - explicit CreateSubscriberRequest(::google::protobuf::Arena* arena); - CreateSubscriberRequest(::google::protobuf::Arena* arena, const CreateSubscriberRequest& from); - CreateSubscriberRequest(::google::protobuf::Arena* arena, CreateSubscriberRequest&& from) noexcept + explicit CreateSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CreateSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreateSubscriberRequest& from); + CreateSubscriberRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreateSubscriberRequest&& from) noexcept : CreateSubscriberRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -7789,50 +8198,47 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // bytes type = 5; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // string mux = 7; void clear_mux() ; - const std::string& mux() const; - template + const ::std::string& mux() const; + template void set_mux(Arg_&& arg, Args_... args); - std::string* mutable_mux(); - PROTOBUF_NODISCARD std::string* release_mux(); - void set_allocated_mux(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_mux(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); + void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_mux() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mux( - const std::string& value); - std::string* _internal_mutable_mux(); + const ::std::string& _internal_mux() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); public: // int32 subscriber_id = 2; @@ -7899,9 +8305,9 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 9, 0, - 64, 2> + static const ::google::protobuf::internal::TcParseTable<4, 9, + 0, 64, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -7911,13 +8317,16 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const CreateSubscriberRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CreateSubscriberRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::google::protobuf::internal::ArenaStringPtr type_; ::google::protobuf::internal::ArenaStringPtr mux_; @@ -7927,12 +8336,13 @@ class CreateSubscriberRequest final : public ::google::protobuf::Message bool for_tunnel_; ::int32_t max_active_messages_; ::int32_t vchan_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberRequest_class_data_; // ------------------------------------------------------------------- class CreatePublisherResponse final : public ::google::protobuf::Message @@ -7942,19 +8352,18 @@ class CreatePublisherResponse final : public ::google::protobuf::Message ~CreatePublisherResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreatePublisherResponse* msg, std::destroying_delete_t) { + void operator delete(CreatePublisherResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(CreatePublisherResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR CreatePublisherResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CreatePublisherResponse(::google::protobuf::internal::ConstantInitialized); inline CreatePublisherResponse(const CreatePublisherResponse& from) : CreatePublisherResponse(nullptr, from) {} inline CreatePublisherResponse(CreatePublisherResponse&& from) noexcept - : CreatePublisherResponse(nullptr, std::move(from)) {} + : CreatePublisherResponse(nullptr, ::std::move(from)) {} inline CreatePublisherResponse& operator=(const CreatePublisherResponse& from) { CopyFrom(from); return *this; @@ -7973,30 +8382,27 @@ class CreatePublisherResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const CreatePublisherResponse& default_instance() { - return *internal_default_instance(); - } - static inline const CreatePublisherResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_CreatePublisherResponse_default_instance_); } static constexpr int kIndexInFileMessages = 3; friend void swap(CreatePublisherResponse& a, CreatePublisherResponse& b) { a.Swap(&b); } - inline void Swap(CreatePublisherResponse* other) { + inline void Swap(CreatePublisherResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -8004,7 +8410,7 @@ class CreatePublisherResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreatePublisherResponse* other) { + void UnsafeArenaSwap(CreatePublisherResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8012,7 +8418,7 @@ class CreatePublisherResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CreatePublisherResponse* New(::google::protobuf::Arena* arena = nullptr) const { + CreatePublisherResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8021,9 +8427,8 @@ class CreatePublisherResponse final : public ::google::protobuf::Message void MergeFrom(const CreatePublisherResponse& from) { CreatePublisherResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -8033,49 +8438,50 @@ class CreatePublisherResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(CreatePublisherResponse* other); + void InternalSwap(CreatePublisherResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.CreatePublisherResponse"; } - protected: - explicit CreatePublisherResponse(::google::protobuf::Arena* arena); - CreatePublisherResponse(::google::protobuf::Arena* arena, const CreatePublisherResponse& from); - CreatePublisherResponse(::google::protobuf::Arena* arena, CreatePublisherResponse&& from) noexcept + explicit CreatePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CreatePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreatePublisherResponse& from); + CreatePublisherResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreatePublisherResponse&& from) noexcept : CreatePublisherResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -8106,11 +8512,11 @@ class CreatePublisherResponse final : public ::google::protobuf::Message void set_sub_trigger_fd_indexes(int index, ::int32_t value); void add_sub_trigger_fd_indexes(::int32_t value); const ::google::protobuf::RepeatedField<::int32_t>& sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_sub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_sub_trigger_fd_indexes(); private: const ::google::protobuf::RepeatedField<::int32_t>& _internal_sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_sub_trigger_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_sub_trigger_fd_indexes(); public: // repeated int32 retirement_fd_indexes = 15; @@ -8124,43 +8530,41 @@ class CreatePublisherResponse final : public ::google::protobuf::Message void set_retirement_fd_indexes(int index, ::int32_t value); void add_retirement_fd_indexes(::int32_t value); const ::google::protobuf::RepeatedField<::int32_t>& retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* mutable_retirement_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_retirement_fd_indexes(); private: const ::google::protobuf::RepeatedField<::int32_t>& _internal_retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* _internal_mutable_retirement_fd_indexes(); + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_retirement_fd_indexes(); public: // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // bytes type = 10; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // int32 channel_id = 2; @@ -8257,9 +8661,9 @@ class CreatePublisherResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 13, 0, - 54, 2> + static const ::google::protobuf::internal::TcParseTable<4, 13, + 0, 54, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -8269,13 +8673,16 @@ class CreatePublisherResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const CreatePublisherResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CreatePublisherResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField<::int32_t> sub_trigger_fd_indexes_; ::google::protobuf::internal::CachedSize _sub_trigger_fd_indexes_cached_byte_size_; ::google::protobuf::RepeatedField<::int32_t> retirement_fd_indexes_; @@ -8291,12 +8698,13 @@ class CreatePublisherResponse final : public ::google::protobuf::Message ::int32_t num_sub_updates_; ::int32_t vchan_id_; ::int32_t retirement_fd_index_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull CreatePublisherResponse_class_data_; // ------------------------------------------------------------------- class CreatePublisherRequest final : public ::google::protobuf::Message @@ -8306,19 +8714,18 @@ class CreatePublisherRequest final : public ::google::protobuf::Message ~CreatePublisherRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreatePublisherRequest* msg, std::destroying_delete_t) { + void operator delete(CreatePublisherRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(CreatePublisherRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR CreatePublisherRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR CreatePublisherRequest(::google::protobuf::internal::ConstantInitialized); inline CreatePublisherRequest(const CreatePublisherRequest& from) : CreatePublisherRequest(nullptr, from) {} inline CreatePublisherRequest(CreatePublisherRequest&& from) noexcept - : CreatePublisherRequest(nullptr, std::move(from)) {} + : CreatePublisherRequest(nullptr, ::std::move(from)) {} inline CreatePublisherRequest& operator=(const CreatePublisherRequest& from) { CopyFrom(from); return *this; @@ -8337,30 +8744,27 @@ class CreatePublisherRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const CreatePublisherRequest& default_instance() { - return *internal_default_instance(); - } - static inline const CreatePublisherRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_CreatePublisherRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(CreatePublisherRequest& a, CreatePublisherRequest& b) { a.Swap(&b); } - inline void Swap(CreatePublisherRequest* other) { + inline void Swap(CreatePublisherRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -8368,7 +8772,7 @@ class CreatePublisherRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreatePublisherRequest* other) { + void UnsafeArenaSwap(CreatePublisherRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8376,7 +8780,7 @@ class CreatePublisherRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CreatePublisherRequest* New(::google::protobuf::Arena* arena = nullptr) const { + CreatePublisherRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8385,9 +8789,8 @@ class CreatePublisherRequest final : public ::google::protobuf::Message void MergeFrom(const CreatePublisherRequest& from) { CreatePublisherRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -8397,49 +8800,50 @@ class CreatePublisherRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(CreatePublisherRequest* other); + void InternalSwap(CreatePublisherRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.CreatePublisherRequest"; } - protected: - explicit CreatePublisherRequest(::google::protobuf::Arena* arena); - CreatePublisherRequest(::google::protobuf::Arena* arena, const CreatePublisherRequest& from); - CreatePublisherRequest(::google::protobuf::Arena* arena, CreatePublisherRequest&& from) noexcept + explicit CreatePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + CreatePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreatePublisherRequest& from); + CreatePublisherRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreatePublisherRequest&& from) noexcept : CreatePublisherRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -8458,58 +8862,55 @@ class CreatePublisherRequest final : public ::google::protobuf::Message kChecksumSizeFieldNumber = 12, kMetadataSizeFieldNumber = 13, kPublisherIdFieldNumber = 14, - kForTunnelFieldNumber = 15, kNotifyRetirementFieldNumber = 11, + kForTunnelFieldNumber = 15, kUseSplitBuffersFieldNumber = 16, kSplitBuffersOverBridgeFieldNumber = 18, kMaxPublishersFieldNumber = 17, }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // bytes type = 7; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // string mux = 9; void clear_mux() ; - const std::string& mux() const; - template + const ::std::string& mux() const; + template void set_mux(Arg_&& arg, Args_... args); - std::string* mutable_mux(); - PROTOBUF_NODISCARD std::string* release_mux(); - void set_allocated_mux(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_mux(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); + void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_mux() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mux( - const std::string& value); - std::string* _internal_mutable_mux(); + const ::std::string& _internal_mux() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); public: // int32 num_slots = 2; @@ -8611,16 +9012,6 @@ class CreatePublisherRequest final : public ::google::protobuf::Message ::int32_t _internal_publisher_id() const; void _internal_set_publisher_id(::int32_t value); - public: - // bool for_tunnel = 15; - void clear_for_tunnel() ; - bool for_tunnel() const; - void set_for_tunnel(bool value); - - private: - bool _internal_for_tunnel() const; - void _internal_set_for_tunnel(bool value); - public: // bool notify_retirement = 11; void clear_notify_retirement() ; @@ -8631,6 +9022,16 @@ class CreatePublisherRequest final : public ::google::protobuf::Message bool _internal_notify_retirement() const; void _internal_set_notify_retirement(bool value); + public: + // bool for_tunnel = 15; + void clear_for_tunnel() ; + bool for_tunnel() const; + void set_for_tunnel(bool value); + + private: + bool _internal_for_tunnel() const; + void _internal_set_for_tunnel(bool value); + public: // bool use_split_buffers = 16; void clear_use_split_buffers() ; @@ -8666,9 +9067,9 @@ class CreatePublisherRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 18, 0, - 71, 2> + static const ::google::protobuf::internal::TcParseTable<5, 18, + 0, 71, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -8678,13 +9079,16 @@ class CreatePublisherRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const CreatePublisherRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const CreatePublisherRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::google::protobuf::internal::ArenaStringPtr type_; ::google::protobuf::internal::ArenaStringPtr mux_; @@ -8698,17 +9102,18 @@ class CreatePublisherRequest final : public ::google::protobuf::Message ::int32_t checksum_size_; ::int32_t metadata_size_; ::int32_t publisher_id_; - bool for_tunnel_; bool notify_retirement_; + bool for_tunnel_; bool use_split_buffers_; bool split_buffers_over_bridge_; ::int32_t max_publishers_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull CreatePublisherRequest_class_data_; // ------------------------------------------------------------------- class ChannelStatsProto final : public ::google::protobuf::Message @@ -8718,19 +9123,18 @@ class ChannelStatsProto final : public ::google::protobuf::Message ~ChannelStatsProto() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelStatsProto* msg, std::destroying_delete_t) { + void operator delete(ChannelStatsProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelStatsProto)); } #endif template - explicit PROTOBUF_CONSTEXPR ChannelStatsProto( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ChannelStatsProto(::google::protobuf::internal::ConstantInitialized); inline ChannelStatsProto(const ChannelStatsProto& from) : ChannelStatsProto(nullptr, from) {} inline ChannelStatsProto(ChannelStatsProto&& from) noexcept - : ChannelStatsProto(nullptr, std::move(from)) {} + : ChannelStatsProto(nullptr, ::std::move(from)) {} inline ChannelStatsProto& operator=(const ChannelStatsProto& from) { CopyFrom(from); return *this; @@ -8749,30 +9153,27 @@ class ChannelStatsProto final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ChannelStatsProto& default_instance() { - return *internal_default_instance(); - } - static inline const ChannelStatsProto* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ChannelStatsProto_default_instance_); } - static constexpr int kIndexInFileMessages = 23; + static constexpr int kIndexInFileMessages = 26; friend void swap(ChannelStatsProto& a, ChannelStatsProto& b) { a.Swap(&b); } - inline void Swap(ChannelStatsProto* other) { + inline void Swap(ChannelStatsProto* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -8780,7 +9181,7 @@ class ChannelStatsProto final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChannelStatsProto* other) { + void UnsafeArenaSwap(ChannelStatsProto* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -8788,7 +9189,7 @@ class ChannelStatsProto final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ChannelStatsProto* New(::google::protobuf::Arena* arena = nullptr) const { + ChannelStatsProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -8797,9 +9198,8 @@ class ChannelStatsProto final : public ::google::protobuf::Message void MergeFrom(const ChannelStatsProto& from) { ChannelStatsProto::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -8809,49 +9209,50 @@ class ChannelStatsProto final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelStatsProto* other); + void InternalSwap(ChannelStatsProto* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ChannelStatsProto"; } - protected: - explicit ChannelStatsProto(::google::protobuf::Arena* arena); - ChannelStatsProto(::google::protobuf::Arena* arena, const ChannelStatsProto& from); - ChannelStatsProto(::google::protobuf::Arena* arena, ChannelStatsProto&& from) noexcept + explicit ChannelStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ChannelStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelStatsProto& from); + ChannelStatsProto( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelStatsProto&& from) noexcept : ChannelStatsProto(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -8871,18 +9272,17 @@ class ChannelStatsProto final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // int64 total_bytes = 2; @@ -8989,9 +9389,9 @@ class ChannelStatsProto final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 0, - 55, 2> + static const ::google::protobuf::internal::TcParseTable<4, 11, + 0, 55, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -9001,13 +9401,16 @@ class ChannelStatsProto final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ChannelStatsProto& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ChannelStatsProto& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; ::int64_t total_bytes_; ::int64_t total_messages_; @@ -9019,12 +9422,13 @@ class ChannelStatsProto final : public ::google::protobuf::Message ::uint32_t total_drops_; ::int32_t num_bridge_pubs_; ::int32_t num_bridge_subs_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ChannelStatsProto_class_data_; // ------------------------------------------------------------------- class ChannelInfoProto final : public ::google::protobuf::Message @@ -9034,19 +9438,18 @@ class ChannelInfoProto final : public ::google::protobuf::Message ~ChannelInfoProto() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelInfoProto* msg, std::destroying_delete_t) { + void operator delete(ChannelInfoProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelInfoProto)); } #endif template - explicit PROTOBUF_CONSTEXPR ChannelInfoProto( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ChannelInfoProto(::google::protobuf::internal::ConstantInitialized); inline ChannelInfoProto(const ChannelInfoProto& from) : ChannelInfoProto(nullptr, from) {} inline ChannelInfoProto(ChannelInfoProto&& from) noexcept - : ChannelInfoProto(nullptr, std::move(from)) {} + : ChannelInfoProto(nullptr, ::std::move(from)) {} inline ChannelInfoProto& operator=(const ChannelInfoProto& from) { CopyFrom(from); return *this; @@ -9065,30 +9468,27 @@ class ChannelInfoProto final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ChannelInfoProto& default_instance() { - return *internal_default_instance(); - } - static inline const ChannelInfoProto* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ChannelInfoProto_default_instance_); } - static constexpr int kIndexInFileMessages = 21; + static constexpr int kIndexInFileMessages = 24; friend void swap(ChannelInfoProto& a, ChannelInfoProto& b) { a.Swap(&b); } - inline void Swap(ChannelInfoProto* other) { + inline void Swap(ChannelInfoProto* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -9096,7 +9496,7 @@ class ChannelInfoProto final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChannelInfoProto* other) { + void UnsafeArenaSwap(ChannelInfoProto* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9104,7 +9504,7 @@ class ChannelInfoProto final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ChannelInfoProto* New(::google::protobuf::Arena* arena = nullptr) const { + ChannelInfoProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9113,9 +9513,8 @@ class ChannelInfoProto final : public ::google::protobuf::Message void MergeFrom(const ChannelInfoProto& from) { ChannelInfoProto::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -9125,49 +9524,50 @@ class ChannelInfoProto final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelInfoProto* other); + void InternalSwap(ChannelInfoProto* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ChannelInfoProto"; } - protected: - explicit ChannelInfoProto(::google::protobuf::Arena* arena); - ChannelInfoProto(::google::protobuf::Arena* arena, const ChannelInfoProto& from); - ChannelInfoProto(::google::protobuf::Arena* arena, ChannelInfoProto&& from) noexcept + explicit ChannelInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ChannelInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelInfoProto& from); + ChannelInfoProto( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelInfoProto&& from) noexcept : ChannelInfoProto(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -9190,50 +9590,47 @@ class ChannelInfoProto final : public ::google::protobuf::Message }; // string name = 1; void clear_name() ; - const std::string& name() const; - template + const ::std::string& name() const; + template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); + void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const ::std::string& _internal_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); public: // bytes type = 4; void clear_type() ; - const std::string& type() const; - template + const ::std::string& type() const; + template void set_type(Arg_&& arg, Args_... args); - std::string* mutable_type(); - PROTOBUF_NODISCARD std::string* release_type(); - void set_allocated_type(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); + void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_type() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_type( - const std::string& value); - std::string* _internal_mutable_type(); + const ::std::string& _internal_type() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); public: // string mux = 12; void clear_mux() ; - const std::string& mux() const; - template + const ::std::string& mux() const; + template void set_mux(Arg_&& arg, Args_... args); - std::string* mutable_mux(); - PROTOBUF_NODISCARD std::string* release_mux(); - void set_allocated_mux(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_mux(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); + void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_mux() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mux( - const std::string& value); - std::string* _internal_mutable_mux(); + const ::std::string& _internal_mux() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); public: // int32 slot_size = 2; @@ -9350,9 +9747,9 @@ class ChannelInfoProto final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 14, 0, - 49, 2> + static const ::google::protobuf::internal::TcParseTable<4, 14, + 0, 49, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -9362,13 +9759,16 @@ class ChannelInfoProto final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ChannelInfoProto& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ChannelInfoProto& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr type_; ::google::protobuf::internal::ArenaStringPtr mux_; @@ -9383,12 +9783,13 @@ class ChannelInfoProto final : public ::google::protobuf::Message ::int32_t vchan_id_; ::int32_t num_tunnel_pubs_; ::int32_t num_tunnel_subs_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ChannelInfoProto_class_data_; // ------------------------------------------------------------------- class ChannelAddress final : public ::google::protobuf::Message @@ -9398,19 +9799,18 @@ class ChannelAddress final : public ::google::protobuf::Message ~ChannelAddress() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelAddress* msg, std::destroying_delete_t) { + void operator delete(ChannelAddress* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelAddress)); } #endif template - explicit PROTOBUF_CONSTEXPR ChannelAddress( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ChannelAddress(::google::protobuf::internal::ConstantInitialized); inline ChannelAddress(const ChannelAddress& from) : ChannelAddress(nullptr, from) {} inline ChannelAddress(ChannelAddress&& from) noexcept - : ChannelAddress(nullptr, std::move(from)) {} + : ChannelAddress(nullptr, ::std::move(from)) {} inline ChannelAddress& operator=(const ChannelAddress& from) { CopyFrom(from); return *this; @@ -9429,30 +9829,27 @@ class ChannelAddress final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ChannelAddress& default_instance() { - return *internal_default_instance(); - } - static inline const ChannelAddress* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ChannelAddress_default_instance_); } - static constexpr int kIndexInFileMessages = 25; + static constexpr int kIndexInFileMessages = 28; friend void swap(ChannelAddress& a, ChannelAddress& b) { a.Swap(&b); } - inline void Swap(ChannelAddress* other) { + inline void Swap(ChannelAddress* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -9460,7 +9857,7 @@ class ChannelAddress final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChannelAddress* other) { + void UnsafeArenaSwap(ChannelAddress* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9468,7 +9865,7 @@ class ChannelAddress final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ChannelAddress* New(::google::protobuf::Arena* arena = nullptr) const { + ChannelAddress* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9477,9 +9874,8 @@ class ChannelAddress final : public ::google::protobuf::Message void MergeFrom(const ChannelAddress& from) { ChannelAddress::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -9489,49 +9885,50 @@ class ChannelAddress final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelAddress* other); + void InternalSwap(ChannelAddress* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ChannelAddress"; } - protected: - explicit ChannelAddress(::google::protobuf::Arena* arena); - ChannelAddress(::google::protobuf::Arena* arena, const ChannelAddress& from); - ChannelAddress(::google::protobuf::Arena* arena, ChannelAddress&& from) noexcept + explicit ChannelAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ChannelAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelAddress& from); + ChannelAddress( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelAddress&& from) noexcept : ChannelAddress(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -9542,18 +9939,17 @@ class ChannelAddress final : public ::google::protobuf::Message }; // bytes address = 1; void clear_address() ; - const std::string& address() const; - template + const ::std::string& address() const; + template void set_address(Arg_&& arg, Args_... args); - std::string* mutable_address(); - PROTOBUF_NODISCARD std::string* release_address(); - void set_allocated_address(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_address(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_address(); + void set_allocated_address(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_address( - const std::string& value); - std::string* _internal_mutable_address(); + const ::std::string& _internal_address() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_address(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_address(); public: // int32 port = 2; @@ -9570,9 +9966,9 @@ class ChannelAddress final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -9582,21 +9978,25 @@ class ChannelAddress final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ChannelAddress& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ChannelAddress& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr address_; ::int32_t port_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ChannelAddress_class_data_; // ------------------------------------------------------------------- class Subscribed final : public ::google::protobuf::Message @@ -9606,19 +10006,18 @@ class Subscribed final : public ::google::protobuf::Message ~Subscribed() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Subscribed* msg, std::destroying_delete_t) { + void operator delete(Subscribed* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Subscribed)); } #endif template - explicit PROTOBUF_CONSTEXPR Subscribed( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Subscribed(::google::protobuf::internal::ConstantInitialized); inline Subscribed(const Subscribed& from) : Subscribed(nullptr, from) {} inline Subscribed(Subscribed&& from) noexcept - : Subscribed(nullptr, std::move(from)) {} + : Subscribed(nullptr, ::std::move(from)) {} inline Subscribed& operator=(const Subscribed& from) { CopyFrom(from); return *this; @@ -9637,30 +10036,27 @@ class Subscribed final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Subscribed& default_instance() { - return *internal_default_instance(); - } - static inline const Subscribed* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Subscribed_default_instance_); } - static constexpr int kIndexInFileMessages = 26; + static constexpr int kIndexInFileMessages = 29; friend void swap(Subscribed& a, Subscribed& b) { a.Swap(&b); } - inline void Swap(Subscribed* other) { + inline void Swap(Subscribed* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -9668,7 +10064,7 @@ class Subscribed final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Subscribed* other) { + void UnsafeArenaSwap(Subscribed* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9676,7 +10072,7 @@ class Subscribed final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Subscribed* New(::google::protobuf::Arena* arena = nullptr) const { + Subscribed* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9685,9 +10081,8 @@ class Subscribed final : public ::google::protobuf::Message void MergeFrom(const Subscribed& from) { Subscribed::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -9697,49 +10092,50 @@ class Subscribed final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Subscribed* other); + void InternalSwap(Subscribed* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.Subscribed"; } - protected: - explicit Subscribed(::google::protobuf::Arena* arena); - Subscribed(::google::protobuf::Arena* arena, const Subscribed& from); - Subscribed(::google::protobuf::Arena* arena, Subscribed&& from) noexcept + explicit Subscribed(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Subscribed(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Subscribed& from); + Subscribed( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Subscribed&& from) noexcept : Subscribed(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -9758,33 +10154,32 @@ class Subscribed final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // .subspace.ChannelAddress retirement_socket = 6; bool has_retirement_socket() const; void clear_retirement_socket() ; const ::subspace::ChannelAddress& retirement_socket() const; - PROTOBUF_NODISCARD ::subspace::ChannelAddress* release_retirement_socket(); - ::subspace::ChannelAddress* mutable_retirement_socket(); - void set_allocated_retirement_socket(::subspace::ChannelAddress* value); - void unsafe_arena_set_allocated_retirement_socket(::subspace::ChannelAddress* value); - ::subspace::ChannelAddress* unsafe_arena_release_retirement_socket(); + [[nodiscard]] ::subspace::ChannelAddress* PROTOBUF_NULLABLE release_retirement_socket(); + ::subspace::ChannelAddress* PROTOBUF_NONNULL mutable_retirement_socket(); + void set_allocated_retirement_socket(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_retirement_socket(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); + ::subspace::ChannelAddress* PROTOBUF_NULLABLE unsafe_arena_release_retirement_socket(); private: const ::subspace::ChannelAddress& _internal_retirement_socket() const; - ::subspace::ChannelAddress* _internal_mutable_retirement_socket(); + ::subspace::ChannelAddress* PROTOBUF_NONNULL _internal_mutable_retirement_socket(); public: // int32 slot_size = 2; @@ -9871,9 +10266,9 @@ class Subscribed final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 10, 1, - 48, 2> + static const ::google::protobuf::internal::TcParseTable<4, 10, + 1, 48, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -9883,17 +10278,18 @@ class Subscribed final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Subscribed& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Subscribed& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::subspace::ChannelAddress* retirement_socket_; + ::subspace::ChannelAddress* PROTOBUF_NULLABLE retirement_socket_; ::int32_t slot_size_; ::int32_t num_slots_; ::int32_t checksum_size_; @@ -9907,6 +10303,8 @@ class Subscribed final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Subscribed_class_data_; // ------------------------------------------------------------------- class Statistics final : public ::google::protobuf::Message @@ -9916,19 +10314,18 @@ class Statistics final : public ::google::protobuf::Message ~Statistics() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Statistics* msg, std::destroying_delete_t) { + void operator delete(Statistics* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Statistics)); } #endif template - explicit PROTOBUF_CONSTEXPR Statistics( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Statistics(::google::protobuf::internal::ConstantInitialized); inline Statistics(const Statistics& from) : Statistics(nullptr, from) {} inline Statistics(Statistics&& from) noexcept - : Statistics(nullptr, std::move(from)) {} + : Statistics(nullptr, ::std::move(from)) {} inline Statistics& operator=(const Statistics& from) { CopyFrom(from); return *this; @@ -9947,30 +10344,27 @@ class Statistics final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Statistics& default_instance() { - return *internal_default_instance(); - } - static inline const Statistics* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Statistics_default_instance_); } - static constexpr int kIndexInFileMessages = 24; + static constexpr int kIndexInFileMessages = 27; friend void swap(Statistics& a, Statistics& b) { a.Swap(&b); } - inline void Swap(Statistics* other) { + inline void Swap(Statistics* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -9978,7 +10372,7 @@ class Statistics final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Statistics* other) { + void UnsafeArenaSwap(Statistics* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -9986,7 +10380,7 @@ class Statistics final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Statistics* New(::google::protobuf::Arena* arena = nullptr) const { + Statistics* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -9995,9 +10389,8 @@ class Statistics final : public ::google::protobuf::Message void MergeFrom(const Statistics& from) { Statistics::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -10007,49 +10400,50 @@ class Statistics final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Statistics* other); + void InternalSwap(Statistics* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.Statistics"; } - protected: - explicit Statistics(::google::protobuf::Arena* arena); - Statistics(::google::protobuf::Arena* arena, const Statistics& from); - Statistics(::google::protobuf::Arena* arena, Statistics&& from) noexcept + explicit Statistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Statistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Statistics& from); + Statistics( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Statistics&& from) noexcept : Statistics(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -10066,30 +10460,29 @@ class Statistics final : public ::google::protobuf::Message public: void clear_channels() ; - ::subspace::ChannelStatsProto* mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* mutable_channels(); + ::subspace::ChannelStatsProto* PROTOBUF_NONNULL mutable_channels(int index); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL mutable_channels(); private: const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* _internal_mutable_channels(); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL _internal_mutable_channels(); public: const ::subspace::ChannelStatsProto& channels(int index) const; - ::subspace::ChannelStatsProto* add_channels(); + ::subspace::ChannelStatsProto* PROTOBUF_NONNULL add_channels(); const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& channels() const; // string server_id = 1; void clear_server_id() ; - const std::string& server_id() const; - template + const ::std::string& server_id() const; + template void set_server_id(Arg_&& arg, Args_... args); - std::string* mutable_server_id(); - PROTOBUF_NODISCARD std::string* release_server_id(); - void set_allocated_server_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_server_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_server_id(); + void set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_server_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_server_id( - const std::string& value); - std::string* _internal_mutable_server_id(); + const ::std::string& _internal_server_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_server_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_server_id(); public: // int64 timestamp = 2; @@ -10106,9 +10499,9 @@ class Statistics final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 37, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 37, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -10118,22 +10511,26 @@ class Statistics final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Statistics& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Statistics& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::subspace::ChannelStatsProto > channels_; ::google::protobuf::internal::ArenaStringPtr server_id_; ::int64_t timestamp_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Statistics_class_data_; // ------------------------------------------------------------------- class RpcServerRequest final : public ::google::protobuf::Message @@ -10143,19 +10540,18 @@ class RpcServerRequest final : public ::google::protobuf::Message ~RpcServerRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcServerRequest* msg, std::destroying_delete_t) { + void operator delete(RpcServerRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcServerRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcServerRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcServerRequest(::google::protobuf::internal::ConstantInitialized); inline RpcServerRequest(const RpcServerRequest& from) : RpcServerRequest(nullptr, from) {} inline RpcServerRequest(RpcServerRequest&& from) noexcept - : RpcServerRequest(nullptr, std::move(from)) {} + : RpcServerRequest(nullptr, ::std::move(from)) {} inline RpcServerRequest& operator=(const RpcServerRequest& from) { CopyFrom(from); return *this; @@ -10174,35 +10570,32 @@ class RpcServerRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcServerRequest& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_RpcServerRequest_default_instance_); } enum RequestCase { kOpen = 3, kClose = 4, REQUEST_NOT_SET = 0, }; - static inline const RpcServerRequest* internal_default_instance() { - return reinterpret_cast( - &_RpcServerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 39; + static constexpr int kIndexInFileMessages = 42; friend void swap(RpcServerRequest& a, RpcServerRequest& b) { a.Swap(&b); } - inline void Swap(RpcServerRequest* other) { + inline void Swap(RpcServerRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -10210,7 +10603,7 @@ class RpcServerRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcServerRequest* other) { + void UnsafeArenaSwap(RpcServerRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10218,7 +10611,7 @@ class RpcServerRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcServerRequest* New(::google::protobuf::Arena* arena = nullptr) const { + RpcServerRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10227,9 +10620,8 @@ class RpcServerRequest final : public ::google::protobuf::Message void MergeFrom(const RpcServerRequest& from) { RpcServerRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -10239,49 +10631,50 @@ class RpcServerRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcServerRequest* other); + void InternalSwap(RpcServerRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcServerRequest"; } - protected: - explicit RpcServerRequest(::google::protobuf::Arena* arena); - RpcServerRequest(::google::protobuf::Arena* arena, const RpcServerRequest& from); - RpcServerRequest(::google::protobuf::Arena* arena, RpcServerRequest&& from) noexcept + explicit RpcServerRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcServerRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcServerRequest& from); + RpcServerRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcServerRequest&& from) noexcept : RpcServerRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -10320,15 +10713,15 @@ class RpcServerRequest final : public ::google::protobuf::Message public: void clear_open() ; const ::subspace::RpcOpenRequest& open() const; - PROTOBUF_NODISCARD ::subspace::RpcOpenRequest* release_open(); - ::subspace::RpcOpenRequest* mutable_open(); - void set_allocated_open(::subspace::RpcOpenRequest* value); - void unsafe_arena_set_allocated_open(::subspace::RpcOpenRequest* value); - ::subspace::RpcOpenRequest* unsafe_arena_release_open(); + [[nodiscard]] ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE release_open(); + ::subspace::RpcOpenRequest* PROTOBUF_NONNULL mutable_open(); + void set_allocated_open(::subspace::RpcOpenRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_open(::subspace::RpcOpenRequest* PROTOBUF_NULLABLE value); + ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE unsafe_arena_release_open(); private: const ::subspace::RpcOpenRequest& _internal_open() const; - ::subspace::RpcOpenRequest* _internal_mutable_open(); + ::subspace::RpcOpenRequest* PROTOBUF_NONNULL _internal_mutable_open(); public: // .subspace.RpcCloseRequest close = 4; @@ -10339,15 +10732,15 @@ class RpcServerRequest final : public ::google::protobuf::Message public: void clear_close() ; const ::subspace::RpcCloseRequest& close() const; - PROTOBUF_NODISCARD ::subspace::RpcCloseRequest* release_close(); - ::subspace::RpcCloseRequest* mutable_close(); - void set_allocated_close(::subspace::RpcCloseRequest* value); - void unsafe_arena_set_allocated_close(::subspace::RpcCloseRequest* value); - ::subspace::RpcCloseRequest* unsafe_arena_release_close(); + [[nodiscard]] ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE release_close(); + ::subspace::RpcCloseRequest* PROTOBUF_NONNULL mutable_close(); + void set_allocated_close(::subspace::RpcCloseRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_close(::subspace::RpcCloseRequest* PROTOBUF_NULLABLE value); + ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE unsafe_arena_release_close(); private: const ::subspace::RpcCloseRequest& _internal_close() const; - ::subspace::RpcCloseRequest* _internal_mutable_close(); + ::subspace::RpcCloseRequest* PROTOBUF_NONNULL _internal_mutable_close(); public: void clear_request(); @@ -10360,9 +10753,9 @@ class RpcServerRequest final : public ::google::protobuf::Message inline bool has_request() const; inline void clear_has_request(); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 4, 2, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<1, 4, + 2, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -10372,28 +10765,32 @@ class RpcServerRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcServerRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcServerRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::uint64_t client_id_; ::int32_t request_id_; union RequestUnion { constexpr RequestUnion() : _constinit_{} {} ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::RpcOpenRequest* open_; - ::subspace::RpcCloseRequest* close_; + ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE open_; + ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE close_; } request_; - ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcServerRequest_class_data_; // ------------------------------------------------------------------- class RpcResponse final : public ::google::protobuf::Message @@ -10403,19 +10800,18 @@ class RpcResponse final : public ::google::protobuf::Message ~RpcResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcResponse* msg, std::destroying_delete_t) { + void operator delete(RpcResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcResponse(::google::protobuf::internal::ConstantInitialized); inline RpcResponse(const RpcResponse& from) : RpcResponse(nullptr, from) {} inline RpcResponse(RpcResponse&& from) noexcept - : RpcResponse(nullptr, std::move(from)) {} + : RpcResponse(nullptr, ::std::move(from)) {} inline RpcResponse& operator=(const RpcResponse& from) { CopyFrom(from); return *this; @@ -10434,30 +10830,27 @@ class RpcResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RpcResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 42; + static constexpr int kIndexInFileMessages = 45; friend void swap(RpcResponse& a, RpcResponse& b) { a.Swap(&b); } - inline void Swap(RpcResponse* other) { + inline void Swap(RpcResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -10465,7 +10858,7 @@ class RpcResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcResponse* other) { + void UnsafeArenaSwap(RpcResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10473,7 +10866,7 @@ class RpcResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcResponse* New(::google::protobuf::Arena* arena = nullptr) const { + RpcResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10482,9 +10875,8 @@ class RpcResponse final : public ::google::protobuf::Message void MergeFrom(const RpcResponse& from) { RpcResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -10494,49 +10886,50 @@ class RpcResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcResponse* other); + void InternalSwap(RpcResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcResponse"; } - protected: - explicit RpcResponse(::google::protobuf::Arena* arena); - RpcResponse(::google::protobuf::Arena* arena, const RpcResponse& from); - RpcResponse(::google::protobuf::Arena* arena, RpcResponse&& from) noexcept + explicit RpcResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcResponse& from); + RpcResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcResponse&& from) noexcept : RpcResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -10552,33 +10945,32 @@ class RpcResponse final : public ::google::protobuf::Message }; // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // .google.protobuf.Any result = 2; bool has_result() const; void clear_result() ; const ::google::protobuf::Any& result() const; - PROTOBUF_NODISCARD ::google::protobuf::Any* release_result(); - ::google::protobuf::Any* mutable_result(); - void set_allocated_result(::google::protobuf::Any* value); - void unsafe_arena_set_allocated_result(::google::protobuf::Any* value); - ::google::protobuf::Any* unsafe_arena_release_result(); + [[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_result(); + ::google::protobuf::Any* PROTOBUF_NONNULL mutable_result(); + void set_allocated_result(::google::protobuf::Any* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_result(::google::protobuf::Any* PROTOBUF_NULLABLE value); + ::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_result(); private: const ::google::protobuf::Any& _internal_result() const; - ::google::protobuf::Any* _internal_mutable_result(); + ::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_result(); public: // int32 session_id = 3; @@ -10635,9 +11027,9 @@ class RpcResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 34, 2> + static const ::google::protobuf::internal::TcParseTable<3, 7, + 1, 34, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -10647,17 +11039,18 @@ class RpcResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr error_; - ::google::protobuf::Any* result_; + ::google::protobuf::Any* PROTOBUF_NULLABLE result_; ::int32_t session_id_; ::int32_t request_id_; ::uint64_t client_id_; @@ -10668,6 +11061,8 @@ class RpcResponse final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcResponse_class_data_; // ------------------------------------------------------------------- class RpcRequest final : public ::google::protobuf::Message @@ -10677,19 +11072,18 @@ class RpcRequest final : public ::google::protobuf::Message ~RpcRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcRequest* msg, std::destroying_delete_t) { + void operator delete(RpcRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcRequest(::google::protobuf::internal::ConstantInitialized); inline RpcRequest(const RpcRequest& from) : RpcRequest(nullptr, from) {} inline RpcRequest(RpcRequest&& from) noexcept - : RpcRequest(nullptr, std::move(from)) {} + : RpcRequest(nullptr, ::std::move(from)) {} inline RpcRequest& operator=(const RpcRequest& from) { CopyFrom(from); return *this; @@ -10708,30 +11102,27 @@ class RpcRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RpcRequest* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 41; + static constexpr int kIndexInFileMessages = 44; friend void swap(RpcRequest& a, RpcRequest& b) { a.Swap(&b); } - inline void Swap(RpcRequest* other) { + inline void Swap(RpcRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -10739,7 +11130,7 @@ class RpcRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcRequest* other) { + void UnsafeArenaSwap(RpcRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10747,7 +11138,7 @@ class RpcRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcRequest* New(::google::protobuf::Arena* arena = nullptr) const { + RpcRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -10756,9 +11147,8 @@ class RpcRequest final : public ::google::protobuf::Message void MergeFrom(const RpcRequest& from) { RpcRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -10768,49 +11158,50 @@ class RpcRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcRequest* other); + void InternalSwap(RpcRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcRequest"; } - protected: - explicit RpcRequest(::google::protobuf::Arena* arena); - RpcRequest(::google::protobuf::Arena* arena, const RpcRequest& from); - RpcRequest(::google::protobuf::Arena* arena, RpcRequest&& from) noexcept + explicit RpcRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcRequest& from); + RpcRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcRequest&& from) noexcept : RpcRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -10826,15 +11217,15 @@ class RpcRequest final : public ::google::protobuf::Message bool has_argument() const; void clear_argument() ; const ::google::protobuf::Any& argument() const; - PROTOBUF_NODISCARD ::google::protobuf::Any* release_argument(); - ::google::protobuf::Any* mutable_argument(); - void set_allocated_argument(::google::protobuf::Any* value); - void unsafe_arena_set_allocated_argument(::google::protobuf::Any* value); - ::google::protobuf::Any* unsafe_arena_release_argument(); + [[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_argument(); + ::google::protobuf::Any* PROTOBUF_NONNULL mutable_argument(); + void set_allocated_argument(::google::protobuf::Any* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_argument(::google::protobuf::Any* PROTOBUF_NULLABLE value); + ::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_argument(); private: const ::google::protobuf::Any& _internal_argument() const; - ::google::protobuf::Any* _internal_mutable_argument(); + ::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_argument(); public: // int32 method = 1; @@ -10881,9 +11272,9 @@ class RpcRequest final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 1, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -10893,16 +11284,17 @@ class RpcRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcRequest& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Any* argument_; + ::google::protobuf::Any* PROTOBUF_NULLABLE argument_; ::int32_t method_; ::int32_t session_id_; ::uint64_t client_id_; @@ -10912,6 +11304,8 @@ class RpcRequest final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcRequest_class_data_; // ------------------------------------------------------------------- class RpcOpenResponse_Method final : public ::google::protobuf::Message @@ -10921,19 +11315,18 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message ~RpcOpenResponse_Method() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse_Method* msg, std::destroying_delete_t) { + void operator delete(RpcOpenResponse_Method* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse_Method)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse_Method( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcOpenResponse_Method(::google::protobuf::internal::ConstantInitialized); inline RpcOpenResponse_Method(const RpcOpenResponse_Method& from) : RpcOpenResponse_Method(nullptr, from) {} inline RpcOpenResponse_Method(RpcOpenResponse_Method&& from) noexcept - : RpcOpenResponse_Method(nullptr, std::move(from)) {} + : RpcOpenResponse_Method(nullptr, ::std::move(from)) {} inline RpcOpenResponse_Method& operator=(const RpcOpenResponse_Method& from) { CopyFrom(from); return *this; @@ -10952,30 +11345,27 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcOpenResponse_Method& default_instance() { - return *internal_default_instance(); - } - static inline const RpcOpenResponse_Method* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcOpenResponse_Method_default_instance_); } - static constexpr int kIndexInFileMessages = 35; + static constexpr int kIndexInFileMessages = 38; friend void swap(RpcOpenResponse_Method& a, RpcOpenResponse_Method& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse_Method* other) { + inline void Swap(RpcOpenResponse_Method* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -10983,7 +11373,7 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcOpenResponse_Method* other) { + void UnsafeArenaSwap(RpcOpenResponse_Method* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -10991,7 +11381,7 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcOpenResponse_Method* New(::google::protobuf::Arena* arena = nullptr) const { + RpcOpenResponse_Method* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11000,9 +11390,8 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message void MergeFrom(const RpcOpenResponse_Method& from) { RpcOpenResponse_Method::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -11012,49 +11401,50 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse_Method* other); + void InternalSwap(RpcOpenResponse_Method* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse.Method"; } - protected: - explicit RpcOpenResponse_Method(::google::protobuf::Arena* arena); - RpcOpenResponse_Method(::google::protobuf::Arena* arena, const RpcOpenResponse_Method& from); - RpcOpenResponse_Method(::google::protobuf::Arena* arena, RpcOpenResponse_Method&& from) noexcept + explicit RpcOpenResponse_Method(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcOpenResponse_Method(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_Method& from); + RpcOpenResponse_Method( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse_Method&& from) noexcept : RpcOpenResponse_Method(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -11068,64 +11458,62 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message }; // string name = 1; void clear_name() ; - const std::string& name() const; - template + const ::std::string& name() const; + template void set_name(Arg_&& arg, Args_... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); + void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); + const ::std::string& _internal_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); public: // string cancel_channel = 5; void clear_cancel_channel() ; - const std::string& cancel_channel() const; - template + const ::std::string& cancel_channel() const; + template void set_cancel_channel(Arg_&& arg, Args_... args); - std::string* mutable_cancel_channel(); - PROTOBUF_NODISCARD std::string* release_cancel_channel(); - void set_allocated_cancel_channel(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_cancel_channel(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_cancel_channel(); + void set_allocated_cancel_channel(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_cancel_channel() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_cancel_channel( - const std::string& value); - std::string* _internal_mutable_cancel_channel(); + const ::std::string& _internal_cancel_channel() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_cancel_channel(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_cancel_channel(); public: // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; bool has_request_channel() const; void clear_request_channel() ; const ::subspace::RpcOpenResponse_RequestChannel& request_channel() const; - PROTOBUF_NODISCARD ::subspace::RpcOpenResponse_RequestChannel* release_request_channel(); - ::subspace::RpcOpenResponse_RequestChannel* mutable_request_channel(); - void set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* value); - void unsafe_arena_set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* value); - ::subspace::RpcOpenResponse_RequestChannel* unsafe_arena_release_request_channel(); + [[nodiscard]] ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE release_request_channel(); + ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL mutable_request_channel(); + void set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value); + ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE unsafe_arena_release_request_channel(); private: const ::subspace::RpcOpenResponse_RequestChannel& _internal_request_channel() const; - ::subspace::RpcOpenResponse_RequestChannel* _internal_mutable_request_channel(); + ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL _internal_mutable_request_channel(); public: // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; bool has_response_channel() const; void clear_response_channel() ; const ::subspace::RpcOpenResponse_ResponseChannel& response_channel() const; - PROTOBUF_NODISCARD ::subspace::RpcOpenResponse_ResponseChannel* release_response_channel(); - ::subspace::RpcOpenResponse_ResponseChannel* mutable_response_channel(); - void set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* value); - void unsafe_arena_set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* value); - ::subspace::RpcOpenResponse_ResponseChannel* unsafe_arena_release_response_channel(); + [[nodiscard]] ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE release_response_channel(); + ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL mutable_response_channel(); + void set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value); + ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE unsafe_arena_release_response_channel(); private: const ::subspace::RpcOpenResponse_ResponseChannel& _internal_response_channel() const; - ::subspace::RpcOpenResponse_ResponseChannel* _internal_mutable_response_channel(); + ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL _internal_mutable_response_channel(); public: // int32 id = 2; @@ -11142,9 +11530,9 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 58, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 2, 58, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -11154,25 +11542,28 @@ class RpcOpenResponse_Method final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcOpenResponse_Method& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcOpenResponse_Method& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::internal::ArenaStringPtr cancel_channel_; - ::subspace::RpcOpenResponse_RequestChannel* request_channel_; - ::subspace::RpcOpenResponse_ResponseChannel* response_channel_; + ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE request_channel_; + ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE response_channel_; ::int32_t id_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_Method_class_data_; // ------------------------------------------------------------------- class GetChannelStatsResponse final : public ::google::protobuf::Message @@ -11182,19 +11573,18 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message ~GetChannelStatsResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelStatsResponse* msg, std::destroying_delete_t) { + void operator delete(GetChannelStatsResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelStatsResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR GetChannelStatsResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetChannelStatsResponse(::google::protobuf::internal::ConstantInitialized); inline GetChannelStatsResponse(const GetChannelStatsResponse& from) : GetChannelStatsResponse(nullptr, from) {} inline GetChannelStatsResponse(GetChannelStatsResponse&& from) noexcept - : GetChannelStatsResponse(nullptr, std::move(from)) {} + : GetChannelStatsResponse(nullptr, ::std::move(from)) {} inline GetChannelStatsResponse& operator=(const GetChannelStatsResponse& from) { CopyFrom(from); return *this; @@ -11213,30 +11603,27 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetChannelStatsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetChannelStatsResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetChannelStatsResponse_default_instance_); } static constexpr int kIndexInFileMessages = 15; friend void swap(GetChannelStatsResponse& a, GetChannelStatsResponse& b) { a.Swap(&b); } - inline void Swap(GetChannelStatsResponse* other) { + inline void Swap(GetChannelStatsResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -11244,7 +11631,7 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetChannelStatsResponse* other) { + void UnsafeArenaSwap(GetChannelStatsResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11252,7 +11639,7 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetChannelStatsResponse* New(::google::protobuf::Arena* arena = nullptr) const { + GetChannelStatsResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11261,9 +11648,8 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message void MergeFrom(const GetChannelStatsResponse& from) { GetChannelStatsResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -11273,49 +11659,50 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelStatsResponse* other); + void InternalSwap(GetChannelStatsResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.GetChannelStatsResponse"; } - protected: - explicit GetChannelStatsResponse(::google::protobuf::Arena* arena); - GetChannelStatsResponse(::google::protobuf::Arena* arena, const GetChannelStatsResponse& from); - GetChannelStatsResponse(::google::protobuf::Arena* arena, GetChannelStatsResponse&& from) noexcept + explicit GetChannelStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetChannelStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelStatsResponse& from); + GetChannelStatsResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelStatsResponse&& from) noexcept : GetChannelStatsResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -11331,39 +11718,38 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message public: void clear_channels() ; - ::subspace::ChannelStatsProto* mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* mutable_channels(); + ::subspace::ChannelStatsProto* PROTOBUF_NONNULL mutable_channels(int index); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL mutable_channels(); private: const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* _internal_mutable_channels(); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL _internal_mutable_channels(); public: const ::subspace::ChannelStatsProto& channels(int index) const; - ::subspace::ChannelStatsProto* add_channels(); + ::subspace::ChannelStatsProto* PROTOBUF_NONNULL add_channels(); const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& channels() const; // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // @@protoc_insertion_point(class_scope:subspace.GetChannelStatsResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 46, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 46, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -11373,21 +11759,25 @@ class GetChannelStatsResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const GetChannelStatsResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetChannelStatsResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::subspace::ChannelStatsProto > channels_; ::google::protobuf::internal::ArenaStringPtr error_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsResponse_class_data_; // ------------------------------------------------------------------- class GetChannelInfoResponse final : public ::google::protobuf::Message @@ -11397,19 +11787,18 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message ~GetChannelInfoResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelInfoResponse* msg, std::destroying_delete_t) { + void operator delete(GetChannelInfoResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelInfoResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR GetChannelInfoResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetChannelInfoResponse(::google::protobuf::internal::ConstantInitialized); inline GetChannelInfoResponse(const GetChannelInfoResponse& from) : GetChannelInfoResponse(nullptr, from) {} inline GetChannelInfoResponse(GetChannelInfoResponse&& from) noexcept - : GetChannelInfoResponse(nullptr, std::move(from)) {} + : GetChannelInfoResponse(nullptr, ::std::move(from)) {} inline GetChannelInfoResponse& operator=(const GetChannelInfoResponse& from) { CopyFrom(from); return *this; @@ -11428,30 +11817,27 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const GetChannelInfoResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetChannelInfoResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_GetChannelInfoResponse_default_instance_); } static constexpr int kIndexInFileMessages = 13; friend void swap(GetChannelInfoResponse& a, GetChannelInfoResponse& b) { a.Swap(&b); } - inline void Swap(GetChannelInfoResponse* other) { + inline void Swap(GetChannelInfoResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -11459,7 +11845,7 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(GetChannelInfoResponse* other) { + void UnsafeArenaSwap(GetChannelInfoResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11467,7 +11853,7 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GetChannelInfoResponse* New(::google::protobuf::Arena* arena = nullptr) const { + GetChannelInfoResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11476,9 +11862,8 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message void MergeFrom(const GetChannelInfoResponse& from) { GetChannelInfoResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -11488,49 +11873,50 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelInfoResponse* other); + void InternalSwap(GetChannelInfoResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.GetChannelInfoResponse"; } - protected: - explicit GetChannelInfoResponse(::google::protobuf::Arena* arena); - GetChannelInfoResponse(::google::protobuf::Arena* arena, const GetChannelInfoResponse& from); - GetChannelInfoResponse(::google::protobuf::Arena* arena, GetChannelInfoResponse&& from) noexcept + explicit GetChannelInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetChannelInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelInfoResponse& from); + GetChannelInfoResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelInfoResponse&& from) noexcept : GetChannelInfoResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -11546,39 +11932,38 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message public: void clear_channels() ; - ::subspace::ChannelInfoProto* mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* mutable_channels(); + ::subspace::ChannelInfoProto* PROTOBUF_NONNULL mutable_channels(int index); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL mutable_channels(); private: const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* _internal_mutable_channels(); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL _internal_mutable_channels(); public: const ::subspace::ChannelInfoProto& channels(int index) const; - ::subspace::ChannelInfoProto* add_channels(); + ::subspace::ChannelInfoProto* PROTOBUF_NONNULL add_channels(); const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& channels() const; // string error = 1; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // @@protoc_insertion_point(class_scope:subspace.GetChannelInfoResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 45, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 45, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -11588,21 +11973,25 @@ class GetChannelInfoResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const GetChannelInfoResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetChannelInfoResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::subspace::ChannelInfoProto > channels_; ::google::protobuf::internal::ArenaStringPtr error_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoResponse_class_data_; // ------------------------------------------------------------------- class Discovery_Subscribe final : public ::google::protobuf::Message @@ -11612,19 +12001,18 @@ class Discovery_Subscribe final : public ::google::protobuf::Message ~Discovery_Subscribe() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery_Subscribe* msg, std::destroying_delete_t) { + void operator delete(Discovery_Subscribe* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery_Subscribe)); } #endif template - explicit PROTOBUF_CONSTEXPR Discovery_Subscribe( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Discovery_Subscribe(::google::protobuf::internal::ConstantInitialized); inline Discovery_Subscribe(const Discovery_Subscribe& from) : Discovery_Subscribe(nullptr, from) {} inline Discovery_Subscribe(Discovery_Subscribe&& from) noexcept - : Discovery_Subscribe(nullptr, std::move(from)) {} + : Discovery_Subscribe(nullptr, ::std::move(from)) {} inline Discovery_Subscribe& operator=(const Discovery_Subscribe& from) { CopyFrom(from); return *this; @@ -11643,30 +12031,27 @@ class Discovery_Subscribe final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Discovery_Subscribe& default_instance() { - return *internal_default_instance(); - } - static inline const Discovery_Subscribe* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_Discovery_Subscribe_default_instance_); } - static constexpr int kIndexInFileMessages = 30; + static constexpr int kIndexInFileMessages = 33; friend void swap(Discovery_Subscribe& a, Discovery_Subscribe& b) { a.Swap(&b); } - inline void Swap(Discovery_Subscribe* other) { + inline void Swap(Discovery_Subscribe* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -11674,7 +12059,7 @@ class Discovery_Subscribe final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Discovery_Subscribe* other) { + void UnsafeArenaSwap(Discovery_Subscribe* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11682,7 +12067,7 @@ class Discovery_Subscribe final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Discovery_Subscribe* New(::google::protobuf::Arena* arena = nullptr) const { + Discovery_Subscribe* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11691,9 +12076,8 @@ class Discovery_Subscribe final : public ::google::protobuf::Message void MergeFrom(const Discovery_Subscribe& from) { Discovery_Subscribe::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -11703,49 +12087,50 @@ class Discovery_Subscribe final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery_Subscribe* other); + void InternalSwap(Discovery_Subscribe* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.Discovery.Subscribe"; } - protected: - explicit Discovery_Subscribe(::google::protobuf::Arena* arena); - Discovery_Subscribe(::google::protobuf::Arena* arena, const Discovery_Subscribe& from); - Discovery_Subscribe(::google::protobuf::Arena* arena, Discovery_Subscribe&& from) noexcept + explicit Discovery_Subscribe(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Discovery_Subscribe(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Subscribe& from); + Discovery_Subscribe( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery_Subscribe&& from) noexcept : Discovery_Subscribe(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -11757,33 +12142,32 @@ class Discovery_Subscribe final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // .subspace.ChannelAddress receiver = 2; bool has_receiver() const; void clear_receiver() ; const ::subspace::ChannelAddress& receiver() const; - PROTOBUF_NODISCARD ::subspace::ChannelAddress* release_receiver(); - ::subspace::ChannelAddress* mutable_receiver(); - void set_allocated_receiver(::subspace::ChannelAddress* value); - void unsafe_arena_set_allocated_receiver(::subspace::ChannelAddress* value); - ::subspace::ChannelAddress* unsafe_arena_release_receiver(); + [[nodiscard]] ::subspace::ChannelAddress* PROTOBUF_NULLABLE release_receiver(); + ::subspace::ChannelAddress* PROTOBUF_NONNULL mutable_receiver(); + void set_allocated_receiver(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_receiver(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); + ::subspace::ChannelAddress* PROTOBUF_NULLABLE unsafe_arena_release_receiver(); private: const ::subspace::ChannelAddress& _internal_receiver() const; - ::subspace::ChannelAddress* _internal_mutable_receiver(); + ::subspace::ChannelAddress* PROTOBUF_NONNULL _internal_mutable_receiver(); public: // bool reliable = 3; @@ -11800,9 +12184,9 @@ class Discovery_Subscribe final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 49, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 49, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -11812,23 +12196,26 @@ class Discovery_Subscribe final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Discovery_Subscribe& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Discovery_Subscribe& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::subspace::ChannelAddress* receiver_; + ::subspace::ChannelAddress* PROTOBUF_NULLABLE receiver_; bool reliable_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Discovery_Subscribe_class_data_; // ------------------------------------------------------------------- class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message @@ -11838,19 +12225,18 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message ~ClientBufferHandleMetadataProto() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ClientBufferHandleMetadataProto* msg, std::destroying_delete_t) { + void operator delete(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ClientBufferHandleMetadataProto)); } #endif template - explicit PROTOBUF_CONSTEXPR ClientBufferHandleMetadataProto( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ClientBufferHandleMetadataProto(::google::protobuf::internal::ConstantInitialized); inline ClientBufferHandleMetadataProto(const ClientBufferHandleMetadataProto& from) : ClientBufferHandleMetadataProto(nullptr, from) {} inline ClientBufferHandleMetadataProto(ClientBufferHandleMetadataProto&& from) noexcept - : ClientBufferHandleMetadataProto(nullptr, std::move(from)) {} + : ClientBufferHandleMetadataProto(nullptr, ::std::move(from)) {} inline ClientBufferHandleMetadataProto& operator=(const ClientBufferHandleMetadataProto& from) { CopyFrom(from); return *this; @@ -11869,30 +12255,27 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ClientBufferHandleMetadataProto& default_instance() { - return *internal_default_instance(); - } - static inline const ClientBufferHandleMetadataProto* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ClientBufferHandleMetadataProto_default_instance_); } static constexpr int kIndexInFileMessages = 16; friend void swap(ClientBufferHandleMetadataProto& a, ClientBufferHandleMetadataProto& b) { a.Swap(&b); } - inline void Swap(ClientBufferHandleMetadataProto* other) { + inline void Swap(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -11900,7 +12283,7 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ClientBufferHandleMetadataProto* other) { + void UnsafeArenaSwap(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -11908,7 +12291,7 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ClientBufferHandleMetadataProto* New(::google::protobuf::Arena* arena = nullptr) const { + ClientBufferHandleMetadataProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -11917,9 +12300,8 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message void MergeFrom(const ClientBufferHandleMetadataProto& from) { ClientBufferHandleMetadataProto::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -11929,49 +12311,50 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ClientBufferHandleMetadataProto* other); + void InternalSwap(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ClientBufferHandleMetadataProto"; } - protected: - explicit ClientBufferHandleMetadataProto(::google::protobuf::Arena* arena); - ClientBufferHandleMetadataProto(::google::protobuf::Arena* arena, const ClientBufferHandleMetadataProto& from); - ClientBufferHandleMetadataProto(::google::protobuf::Arena* arena, ClientBufferHandleMetadataProto&& from) noexcept + explicit ClientBufferHandleMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ClientBufferHandleMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ClientBufferHandleMetadataProto& from); + ClientBufferHandleMetadataProto( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ClientBufferHandleMetadataProto&& from) noexcept : ClientBufferHandleMetadataProto(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -11995,97 +12378,92 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message }; // string channel_name = 1; void clear_channel_name() ; - const std::string& channel_name() const; - template + const ::std::string& channel_name() const; + template void set_channel_name(Arg_&& arg, Args_... args); - std::string* mutable_channel_name(); - PROTOBUF_NODISCARD std::string* release_channel_name(); - void set_allocated_channel_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_channel_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); + void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_channel_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name( - const std::string& value); - std::string* _internal_mutable_channel_name(); + const ::std::string& _internal_channel_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); public: // string shadow_file = 9; void clear_shadow_file() ; - const std::string& shadow_file() const; - template + const ::std::string& shadow_file() const; + template void set_shadow_file(Arg_&& arg, Args_... args); - std::string* mutable_shadow_file(); - PROTOBUF_NODISCARD std::string* release_shadow_file(); - void set_allocated_shadow_file(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_shadow_file(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_shadow_file(); + void set_allocated_shadow_file(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_shadow_file() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_shadow_file( - const std::string& value); - std::string* _internal_mutable_shadow_file(); + const ::std::string& _internal_shadow_file() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_shadow_file(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_shadow_file(); public: // string object_name = 10; void clear_object_name() ; - const std::string& object_name() const; - template + const ::std::string& object_name() const; + template void set_object_name(Arg_&& arg, Args_... args); - std::string* mutable_object_name(); - PROTOBUF_NODISCARD std::string* release_object_name(); - void set_allocated_object_name(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_object_name(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_object_name(); + void set_allocated_object_name(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_object_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_object_name( - const std::string& value); - std::string* _internal_mutable_object_name(); + const ::std::string& _internal_object_name() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_object_name(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_object_name(); public: // string allocator = 11; void clear_allocator() ; - const std::string& allocator() const; - template + const ::std::string& allocator() const; + template void set_allocator(Arg_&& arg, Args_... args); - std::string* mutable_allocator(); - PROTOBUF_NODISCARD std::string* release_allocator(); - void set_allocated_allocator(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_allocator(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_allocator(); + void set_allocated_allocator(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_allocator() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_allocator( - const std::string& value); - std::string* _internal_mutable_allocator(); + const ::std::string& _internal_allocator() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_allocator(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_allocator(); public: // string pool_id = 12; void clear_pool_id() ; - const std::string& pool_id() const; - template + const ::std::string& pool_id() const; + template void set_pool_id(Arg_&& arg, Args_... args); - std::string* mutable_pool_id(); - PROTOBUF_NODISCARD std::string* release_pool_id(); - void set_allocated_pool_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_pool_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_pool_id(); + void set_allocated_pool_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_pool_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pool_id( - const std::string& value); - std::string* _internal_mutable_pool_id(); + const ::std::string& _internal_pool_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_pool_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_pool_id(); public: // .google.protobuf.Any allocator_metadata = 15; bool has_allocator_metadata() const; void clear_allocator_metadata() ; const ::google::protobuf::Any& allocator_metadata() const; - PROTOBUF_NODISCARD ::google::protobuf::Any* release_allocator_metadata(); - ::google::protobuf::Any* mutable_allocator_metadata(); - void set_allocated_allocator_metadata(::google::protobuf::Any* value); - void unsafe_arena_set_allocated_allocator_metadata(::google::protobuf::Any* value); - ::google::protobuf::Any* unsafe_arena_release_allocator_metadata(); + [[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_allocator_metadata(); + ::google::protobuf::Any* PROTOBUF_NONNULL mutable_allocator_metadata(); + void set_allocated_allocator_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_allocator_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value); + ::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_allocator_metadata(); private: const ::google::protobuf::Any& _internal_allocator_metadata() const; - ::google::protobuf::Any* _internal_mutable_allocator_metadata(); + ::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_allocator_metadata(); public: // uint64 session_id = 2; @@ -12182,9 +12560,9 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 15, 1, - 107, 2> + static const ::google::protobuf::internal::TcParseTable<4, 15, + 1, 107, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -12194,13 +12572,14 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ClientBufferHandleMetadataProto& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ClientBufferHandleMetadataProto& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr channel_name_; @@ -12208,7 +12587,7 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message ::google::protobuf::internal::ArenaStringPtr object_name_; ::google::protobuf::internal::ArenaStringPtr allocator_; ::google::protobuf::internal::ArenaStringPtr pool_id_; - ::google::protobuf::Any* allocator_metadata_; + ::google::protobuf::Any* PROTOBUF_NULLABLE allocator_metadata_; ::uint64_t session_id_; ::uint32_t buffer_index_; ::uint32_t slot_id_; @@ -12223,6 +12602,8 @@ class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ClientBufferHandleMetadataProto_class_data_; // ------------------------------------------------------------------- class ChannelDirectory final : public ::google::protobuf::Message @@ -12232,19 +12613,18 @@ class ChannelDirectory final : public ::google::protobuf::Message ~ChannelDirectory() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelDirectory* msg, std::destroying_delete_t) { + void operator delete(ChannelDirectory* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelDirectory)); } #endif template - explicit PROTOBUF_CONSTEXPR ChannelDirectory( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ChannelDirectory(::google::protobuf::internal::ConstantInitialized); inline ChannelDirectory(const ChannelDirectory& from) : ChannelDirectory(nullptr, from) {} inline ChannelDirectory(ChannelDirectory&& from) noexcept - : ChannelDirectory(nullptr, std::move(from)) {} + : ChannelDirectory(nullptr, ::std::move(from)) {} inline ChannelDirectory& operator=(const ChannelDirectory& from) { CopyFrom(from); return *this; @@ -12263,30 +12643,27 @@ class ChannelDirectory final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ChannelDirectory& default_instance() { - return *internal_default_instance(); - } - static inline const ChannelDirectory* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ChannelDirectory_default_instance_); } - static constexpr int kIndexInFileMessages = 22; + static constexpr int kIndexInFileMessages = 25; friend void swap(ChannelDirectory& a, ChannelDirectory& b) { a.Swap(&b); } - inline void Swap(ChannelDirectory* other) { + inline void Swap(ChannelDirectory* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -12294,7 +12671,7 @@ class ChannelDirectory final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChannelDirectory* other) { + void UnsafeArenaSwap(ChannelDirectory* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -12302,7 +12679,7 @@ class ChannelDirectory final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ChannelDirectory* New(::google::protobuf::Arena* arena = nullptr) const { + ChannelDirectory* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -12311,9 +12688,8 @@ class ChannelDirectory final : public ::google::protobuf::Message void MergeFrom(const ChannelDirectory& from) { ChannelDirectory::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -12323,49 +12699,50 @@ class ChannelDirectory final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelDirectory* other); + void InternalSwap(ChannelDirectory* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ChannelDirectory"; } - protected: - explicit ChannelDirectory(::google::protobuf::Arena* arena); - ChannelDirectory(::google::protobuf::Arena* arena, const ChannelDirectory& from); - ChannelDirectory(::google::protobuf::Arena* arena, ChannelDirectory&& from) noexcept + explicit ChannelDirectory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ChannelDirectory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelDirectory& from); + ChannelDirectory( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelDirectory&& from) noexcept : ChannelDirectory(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -12381,39 +12758,38 @@ class ChannelDirectory final : public ::google::protobuf::Message public: void clear_channels() ; - ::subspace::ChannelInfoProto* mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* mutable_channels(); + ::subspace::ChannelInfoProto* PROTOBUF_NONNULL mutable_channels(int index); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL mutable_channels(); private: const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* _internal_mutable_channels(); + ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL _internal_mutable_channels(); public: const ::subspace::ChannelInfoProto& channels(int index) const; - ::subspace::ChannelInfoProto* add_channels(); + ::subspace::ChannelInfoProto* PROTOBUF_NONNULL add_channels(); const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& channels() const; // string server_id = 1; void clear_server_id() ; - const std::string& server_id() const; - template + const ::std::string& server_id() const; + template void set_server_id(Arg_&& arg, Args_... args); - std::string* mutable_server_id(); - PROTOBUF_NODISCARD std::string* release_server_id(); - void set_allocated_server_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_server_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_server_id(); + void set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_server_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_server_id( - const std::string& value); - std::string* _internal_mutable_server_id(); + const ::std::string& _internal_server_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_server_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_server_id(); public: // @@protoc_insertion_point(class_scope:subspace.ChannelDirectory) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 43, 2> + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 43, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -12423,21 +12799,25 @@ class ChannelDirectory final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ChannelDirectory& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ChannelDirectory& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::subspace::ChannelInfoProto > channels_; ::google::protobuf::internal::ArenaStringPtr server_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ChannelDirectory_class_data_; // ------------------------------------------------------------------- class ShadowRegisterClientBuffer final : public ::google::protobuf::Message @@ -12447,19 +12827,18 @@ class ShadowRegisterClientBuffer final : public ::google::protobuf::Message ~ShadowRegisterClientBuffer() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRegisterClientBuffer* msg, std::destroying_delete_t) { + void operator delete(ShadowRegisterClientBuffer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRegisterClientBuffer)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowRegisterClientBuffer( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowRegisterClientBuffer(::google::protobuf::internal::ConstantInitialized); inline ShadowRegisterClientBuffer(const ShadowRegisterClientBuffer& from) : ShadowRegisterClientBuffer(nullptr, from) {} inline ShadowRegisterClientBuffer(ShadowRegisterClientBuffer&& from) noexcept - : ShadowRegisterClientBuffer(nullptr, std::move(from)) {} + : ShadowRegisterClientBuffer(nullptr, ::std::move(from)) {} inline ShadowRegisterClientBuffer& operator=(const ShadowRegisterClientBuffer& from) { CopyFrom(from); return *this; @@ -12478,30 +12857,27 @@ class ShadowRegisterClientBuffer final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowRegisterClientBuffer& default_instance() { - return *internal_default_instance(); - } - static inline const ShadowRegisterClientBuffer* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_ShadowRegisterClientBuffer_default_instance_); } - static constexpr int kIndexInFileMessages = 56; + static constexpr int kIndexInFileMessages = 59; friend void swap(ShadowRegisterClientBuffer& a, ShadowRegisterClientBuffer& b) { a.Swap(&b); } - inline void Swap(ShadowRegisterClientBuffer* other) { + inline void Swap(ShadowRegisterClientBuffer* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -12509,7 +12885,7 @@ class ShadowRegisterClientBuffer final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowRegisterClientBuffer* other) { + void UnsafeArenaSwap(ShadowRegisterClientBuffer* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -12517,7 +12893,7 @@ class ShadowRegisterClientBuffer final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowRegisterClientBuffer* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowRegisterClientBuffer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -12526,9 +12902,8 @@ class ShadowRegisterClientBuffer final : public ::google::protobuf::Message void MergeFrom(const ShadowRegisterClientBuffer& from) { ShadowRegisterClientBuffer::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -12538,78 +12913,101 @@ class ShadowRegisterClientBuffer final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRegisterClientBuffer* other); + void InternalSwap(ShadowRegisterClientBuffer* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowRegisterClientBuffer"; } - protected: - explicit ShadowRegisterClientBuffer(::google::protobuf::Arena* arena); - ShadowRegisterClientBuffer(::google::protobuf::Arena* arena, const ShadowRegisterClientBuffer& from); - ShadowRegisterClientBuffer(::google::protobuf::Arena* arena, ShadowRegisterClientBuffer&& from) noexcept + explicit ShadowRegisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowRegisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRegisterClientBuffer& from); + ShadowRegisterClientBuffer( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRegisterClientBuffer&& from) noexcept : ShadowRegisterClientBuffer(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kMetadataFieldNumber = 1, + kHasFdFieldNumber = 2, + kFdIndexFieldNumber = 3, }; // .subspace.ClientBufferHandleMetadataProto metadata = 1; bool has_metadata() const; void clear_metadata() ; const ::subspace::ClientBufferHandleMetadataProto& metadata() const; - PROTOBUF_NODISCARD ::subspace::ClientBufferHandleMetadataProto* release_metadata(); - ::subspace::ClientBufferHandleMetadataProto* mutable_metadata(); - void set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value); - void unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value); - ::subspace::ClientBufferHandleMetadataProto* unsafe_arena_release_metadata(); + [[nodiscard]] ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE release_metadata(); + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL mutable_metadata(); + void set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE unsafe_arena_release_metadata(); private: const ::subspace::ClientBufferHandleMetadataProto& _internal_metadata() const; - ::subspace::ClientBufferHandleMetadataProto* _internal_mutable_metadata(); + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL _internal_mutable_metadata(); + + public: + // bool has_fd = 2; + void clear_has_fd() ; + bool has_fd() const; + void set_has_fd(bool value); + + private: + bool _internal_has_fd() const; + void _internal_set_has_fd(bool value); + + public: + // int32 fd_index = 3; + void clear_fd_index() ; + ::int32_t fd_index() const; + void set_fd_index(::int32_t value); + + private: + ::int32_t _internal_fd_index() const; + void _internal_set_fd_index(::int32_t value); public: // @@protoc_insertion_point(class_scope:subspace.ShadowRegisterClientBuffer) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -12619,21 +13017,26 @@ class ShadowRegisterClientBuffer final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowRegisterClientBuffer& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowRegisterClientBuffer& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; - ::subspace::ClientBufferHandleMetadataProto* metadata_; + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE metadata_; + bool has_fd_; + ::int32_t fd_index_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowRegisterClientBuffer_class_data_; // ------------------------------------------------------------------- class RpcOpenResponse final : public ::google::protobuf::Message @@ -12643,19 +13046,18 @@ class RpcOpenResponse final : public ::google::protobuf::Message ~RpcOpenResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse* msg, std::destroying_delete_t) { + void operator delete(RpcOpenResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcOpenResponse(::google::protobuf::internal::ConstantInitialized); inline RpcOpenResponse(const RpcOpenResponse& from) : RpcOpenResponse(nullptr, from) {} inline RpcOpenResponse(RpcOpenResponse&& from) noexcept - : RpcOpenResponse(nullptr, std::move(from)) {} + : RpcOpenResponse(nullptr, ::std::move(from)) {} inline RpcOpenResponse& operator=(const RpcOpenResponse& from) { CopyFrom(from); return *this; @@ -12674,30 +13076,27 @@ class RpcOpenResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcOpenResponse& default_instance() { - return *internal_default_instance(); - } - static inline const RpcOpenResponse* internal_default_instance() { - return reinterpret_cast( + return *reinterpret_cast( &_RpcOpenResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 36; + static constexpr int kIndexInFileMessages = 39; friend void swap(RpcOpenResponse& a, RpcOpenResponse& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse* other) { + inline void Swap(RpcOpenResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -12705,7 +13104,7 @@ class RpcOpenResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcOpenResponse* other) { + void UnsafeArenaSwap(RpcOpenResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -12713,7 +13112,7 @@ class RpcOpenResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcOpenResponse* New(::google::protobuf::Arena* arena = nullptr) const { + RpcOpenResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -12722,9 +13121,8 @@ class RpcOpenResponse final : public ::google::protobuf::Message void MergeFrom(const RpcOpenResponse& from) { RpcOpenResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -12734,49 +13132,50 @@ class RpcOpenResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse* other); + void InternalSwap(RpcOpenResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse"; } - protected: - explicit RpcOpenResponse(::google::protobuf::Arena* arena); - RpcOpenResponse(::google::protobuf::Arena* arena, const RpcOpenResponse& from); - RpcOpenResponse(::google::protobuf::Arena* arena, RpcOpenResponse&& from) noexcept + explicit RpcOpenResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcOpenResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse& from); + RpcOpenResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse&& from) noexcept : RpcOpenResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using RequestChannel = RpcOpenResponse_RequestChannel; @@ -12796,15 +13195,15 @@ class RpcOpenResponse final : public ::google::protobuf::Message public: void clear_methods() ; - ::subspace::RpcOpenResponse_Method* mutable_methods(int index); - ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* mutable_methods(); + ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL mutable_methods(int index); + ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL mutable_methods(); private: const ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>& _internal_methods() const; - ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* _internal_mutable_methods(); + ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL _internal_mutable_methods(); public: const ::subspace::RpcOpenResponse_Method& methods(int index) const; - ::subspace::RpcOpenResponse_Method* add_methods(); + ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL add_methods(); const ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>& methods() const; // uint64 client_id = 3; void clear_client_id() ; @@ -12830,9 +13229,9 @@ class RpcOpenResponse final : public ::google::protobuf::Message private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -12842,49 +13241,52 @@ class RpcOpenResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcOpenResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcOpenResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::subspace::RpcOpenResponse_Method > methods_; ::uint64_t client_id_; ::int32_t session_id_; - ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_class_data_; // ------------------------------------------------------------------- -class Response final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Response) */ { +class RegisterClientBufferRequest final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.RegisterClientBufferRequest) */ { public: - inline Response() : Response(nullptr) {} - ~Response() PROTOBUF_FINAL; + inline RegisterClientBufferRequest() : RegisterClientBufferRequest(nullptr) {} + ~RegisterClientBufferRequest() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Response* msg, std::destroying_delete_t) { + void operator delete(RegisterClientBufferRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Response)); + ::google::protobuf::internal::SizedDelete(msg, sizeof(RegisterClientBufferRequest)); } #endif template - explicit PROTOBUF_CONSTEXPR Response( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RegisterClientBufferRequest(::google::protobuf::internal::ConstantInitialized); - inline Response(const Response& from) : Response(nullptr, from) {} - inline Response(Response&& from) noexcept - : Response(nullptr, std::move(from)) {} - inline Response& operator=(const Response& from) { + inline RegisterClientBufferRequest(const RegisterClientBufferRequest& from) : RegisterClientBufferRequest(nullptr, from) {} + inline RegisterClientBufferRequest(RegisterClientBufferRequest&& from) noexcept + : RegisterClientBufferRequest(nullptr, ::std::move(from)) {} + inline RegisterClientBufferRequest& operator=(const RegisterClientBufferRequest& from) { CopyFrom(from); return *this; } - inline Response& operator=(Response&& from) noexcept { + inline RegisterClientBufferRequest& operator=(RegisterClientBufferRequest&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); @@ -12898,41 +13300,27 @@ class Response final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Response& default_instance() { - return *internal_default_instance(); - } - enum ResponseCase { - kInit = 1, - kCreatePublisher = 2, - kCreateSubscriber = 3, - kGetTriggers = 4, - kRemovePublisher = 5, - kRemoveSubscriber = 6, - kGetChannelInfo = 9, - kGetChannelStats = 10, - RESPONSE_NOT_SET = 0, - }; - static inline const Response* internal_default_instance() { - return reinterpret_cast( - &_Response_default_instance_); + static const RegisterClientBufferRequest& default_instance() { + return *reinterpret_cast( + &_RegisterClientBufferRequest_default_instance_); } - static constexpr int kIndexInFileMessages = 20; - friend void swap(Response& a, Response& b) { a.Swap(&b); } - inline void Swap(Response* other) { + static constexpr int kIndexInFileMessages = 17; + friend void swap(RegisterClientBufferRequest& a, RegisterClientBufferRequest& b) { a.Swap(&b); } + inline void Swap(RegisterClientBufferRequest* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -12940,7 +13328,7 @@ class Response final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Response* other) { + void UnsafeArenaSwap(RegisterClientBufferRequest* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -12948,18 +13336,17 @@ class Response final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Response* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); + RegisterClientBufferRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Response& from); + void CopyFrom(const RegisterClientBufferRequest& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Response& from) { Response::MergeImpl(*this, from); } + void MergeFrom(const RegisterClientBufferRequest& from) { RegisterClientBufferRequest::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -12969,234 +13356,101 @@ class Response final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Response* other); + void InternalSwap(RegisterClientBufferRequest* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Response"; } + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.RegisterClientBufferRequest"; } - protected: - explicit Response(::google::protobuf::Arena* arena); - Response(::google::protobuf::Arena* arena, const Response& from); - Response(::google::protobuf::Arena* arena, Response&& from) noexcept - : Response(arena) { + explicit RegisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RegisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegisterClientBufferRequest& from); + RegisterClientBufferRequest( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RegisterClientBufferRequest&& from) noexcept + : RegisterClientBufferRequest(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kInitFieldNumber = 1, - kCreatePublisherFieldNumber = 2, - kCreateSubscriberFieldNumber = 3, - kGetTriggersFieldNumber = 4, - kRemovePublisherFieldNumber = 5, - kRemoveSubscriberFieldNumber = 6, - kGetChannelInfoFieldNumber = 9, - kGetChannelStatsFieldNumber = 10, + kMetadataFieldNumber = 1, + kHasFdFieldNumber = 2, + kFdIndexFieldNumber = 3, }; - // .subspace.InitResponse init = 1; - bool has_init() const; - private: - bool _internal_has_init() const; - - public: - void clear_init() ; - const ::subspace::InitResponse& init() const; - PROTOBUF_NODISCARD ::subspace::InitResponse* release_init(); - ::subspace::InitResponse* mutable_init(); - void set_allocated_init(::subspace::InitResponse* value); - void unsafe_arena_set_allocated_init(::subspace::InitResponse* value); - ::subspace::InitResponse* unsafe_arena_release_init(); - - private: - const ::subspace::InitResponse& _internal_init() const; - ::subspace::InitResponse* _internal_mutable_init(); - - public: - // .subspace.CreatePublisherResponse create_publisher = 2; - bool has_create_publisher() const; - private: - bool _internal_has_create_publisher() const; - - public: - void clear_create_publisher() ; - const ::subspace::CreatePublisherResponse& create_publisher() const; - PROTOBUF_NODISCARD ::subspace::CreatePublisherResponse* release_create_publisher(); - ::subspace::CreatePublisherResponse* mutable_create_publisher(); - void set_allocated_create_publisher(::subspace::CreatePublisherResponse* value); - void unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherResponse* value); - ::subspace::CreatePublisherResponse* unsafe_arena_release_create_publisher(); - - private: - const ::subspace::CreatePublisherResponse& _internal_create_publisher() const; - ::subspace::CreatePublisherResponse* _internal_mutable_create_publisher(); - - public: - // .subspace.CreateSubscriberResponse create_subscriber = 3; - bool has_create_subscriber() const; - private: - bool _internal_has_create_subscriber() const; - - public: - void clear_create_subscriber() ; - const ::subspace::CreateSubscriberResponse& create_subscriber() const; - PROTOBUF_NODISCARD ::subspace::CreateSubscriberResponse* release_create_subscriber(); - ::subspace::CreateSubscriberResponse* mutable_create_subscriber(); - void set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* value); - void unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* value); - ::subspace::CreateSubscriberResponse* unsafe_arena_release_create_subscriber(); - - private: - const ::subspace::CreateSubscriberResponse& _internal_create_subscriber() const; - ::subspace::CreateSubscriberResponse* _internal_mutable_create_subscriber(); - - public: - // .subspace.GetTriggersResponse get_triggers = 4; - bool has_get_triggers() const; - private: - bool _internal_has_get_triggers() const; - - public: - void clear_get_triggers() ; - const ::subspace::GetTriggersResponse& get_triggers() const; - PROTOBUF_NODISCARD ::subspace::GetTriggersResponse* release_get_triggers(); - ::subspace::GetTriggersResponse* mutable_get_triggers(); - void set_allocated_get_triggers(::subspace::GetTriggersResponse* value); - void unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersResponse* value); - ::subspace::GetTriggersResponse* unsafe_arena_release_get_triggers(); - - private: - const ::subspace::GetTriggersResponse& _internal_get_triggers() const; - ::subspace::GetTriggersResponse* _internal_mutable_get_triggers(); - - public: - // .subspace.RemovePublisherResponse remove_publisher = 5; - bool has_remove_publisher() const; - private: - bool _internal_has_remove_publisher() const; - - public: - void clear_remove_publisher() ; - const ::subspace::RemovePublisherResponse& remove_publisher() const; - PROTOBUF_NODISCARD ::subspace::RemovePublisherResponse* release_remove_publisher(); - ::subspace::RemovePublisherResponse* mutable_remove_publisher(); - void set_allocated_remove_publisher(::subspace::RemovePublisherResponse* value); - void unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherResponse* value); - ::subspace::RemovePublisherResponse* unsafe_arena_release_remove_publisher(); - - private: - const ::subspace::RemovePublisherResponse& _internal_remove_publisher() const; - ::subspace::RemovePublisherResponse* _internal_mutable_remove_publisher(); - - public: - // .subspace.RemoveSubscriberResponse remove_subscriber = 6; - bool has_remove_subscriber() const; - private: - bool _internal_has_remove_subscriber() const; - - public: - void clear_remove_subscriber() ; - const ::subspace::RemoveSubscriberResponse& remove_subscriber() const; - PROTOBUF_NODISCARD ::subspace::RemoveSubscriberResponse* release_remove_subscriber(); - ::subspace::RemoveSubscriberResponse* mutable_remove_subscriber(); - void set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* value); - void unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* value); - ::subspace::RemoveSubscriberResponse* unsafe_arena_release_remove_subscriber(); - - private: - const ::subspace::RemoveSubscriberResponse& _internal_remove_subscriber() const; - ::subspace::RemoveSubscriberResponse* _internal_mutable_remove_subscriber(); + // .subspace.ClientBufferHandleMetadataProto metadata = 1; + bool has_metadata() const; + void clear_metadata() ; + const ::subspace::ClientBufferHandleMetadataProto& metadata() const; + [[nodiscard]] ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE release_metadata(); + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL mutable_metadata(); + void set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE unsafe_arena_release_metadata(); - public: - // .subspace.GetChannelInfoResponse get_channel_info = 9; - bool has_get_channel_info() const; private: - bool _internal_has_get_channel_info() const; + const ::subspace::ClientBufferHandleMetadataProto& _internal_metadata() const; + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL _internal_mutable_metadata(); public: - void clear_get_channel_info() ; - const ::subspace::GetChannelInfoResponse& get_channel_info() const; - PROTOBUF_NODISCARD ::subspace::GetChannelInfoResponse* release_get_channel_info(); - ::subspace::GetChannelInfoResponse* mutable_get_channel_info(); - void set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* value); - void unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* value); - ::subspace::GetChannelInfoResponse* unsafe_arena_release_get_channel_info(); - - private: - const ::subspace::GetChannelInfoResponse& _internal_get_channel_info() const; - ::subspace::GetChannelInfoResponse* _internal_mutable_get_channel_info(); + // bool has_fd = 2; + void clear_has_fd() ; + bool has_fd() const; + void set_has_fd(bool value); - public: - // .subspace.GetChannelStatsResponse get_channel_stats = 10; - bool has_get_channel_stats() const; private: - bool _internal_has_get_channel_stats() const; + bool _internal_has_fd() const; + void _internal_set_has_fd(bool value); public: - void clear_get_channel_stats() ; - const ::subspace::GetChannelStatsResponse& get_channel_stats() const; - PROTOBUF_NODISCARD ::subspace::GetChannelStatsResponse* release_get_channel_stats(); - ::subspace::GetChannelStatsResponse* mutable_get_channel_stats(); - void set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* value); - void unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* value); - ::subspace::GetChannelStatsResponse* unsafe_arena_release_get_channel_stats(); + // int32 fd_index = 3; + void clear_fd_index() ; + ::int32_t fd_index() const; + void set_fd_index(::int32_t value); private: - const ::subspace::GetChannelStatsResponse& _internal_get_channel_stats() const; - ::subspace::GetChannelStatsResponse* _internal_mutable_get_channel_stats(); + ::int32_t _internal_fd_index() const; + void _internal_set_fd_index(::int32_t value); public: - void clear_response(); - ResponseCase response_case() const; - // @@protoc_insertion_point(class_scope:subspace.Response) + // @@protoc_insertion_point(class_scope:subspace.RegisterClientBufferRequest) private: class _Internal; - void set_has_init(); - void set_has_create_publisher(); - void set_has_create_subscriber(); - void set_has_get_triggers(); - void set_has_remove_publisher(); - void set_has_remove_subscriber(); - void set_has_get_channel_info(); - void set_has_get_channel_stats(); - inline bool has_response() const; - inline void clear_has_response(); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 8, 8, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -13206,59 +13460,52 @@ class Response final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Response& from_msg); - union ResponseUnion { - constexpr ResponseUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::InitResponse* init_; - ::subspace::CreatePublisherResponse* create_publisher_; - ::subspace::CreateSubscriberResponse* create_subscriber_; - ::subspace::GetTriggersResponse* get_triggers_; - ::subspace::RemovePublisherResponse* remove_publisher_; - ::subspace::RemoveSubscriberResponse* remove_subscriber_; - ::subspace::GetChannelInfoResponse* get_channel_info_; - ::subspace::GetChannelStatsResponse* get_channel_stats_; - } response_; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RegisterClientBufferRequest& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE metadata_; + bool has_fd_; + ::int32_t fd_index_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferRequest_class_data_; // ------------------------------------------------------------------- -class RegisterClientBufferRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RegisterClientBufferRequest) */ { +class GetClientBuffersResponse final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.GetClientBuffersResponse) */ { public: - inline RegisterClientBufferRequest() : RegisterClientBufferRequest(nullptr) {} - ~RegisterClientBufferRequest() PROTOBUF_FINAL; + inline GetClientBuffersResponse() : GetClientBuffersResponse(nullptr) {} + ~GetClientBuffersResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RegisterClientBufferRequest* msg, std::destroying_delete_t) { + void operator delete(GetClientBuffersResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RegisterClientBufferRequest)); + ::google::protobuf::internal::SizedDelete(msg, sizeof(GetClientBuffersResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RegisterClientBufferRequest( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR GetClientBuffersResponse(::google::protobuf::internal::ConstantInitialized); - inline RegisterClientBufferRequest(const RegisterClientBufferRequest& from) : RegisterClientBufferRequest(nullptr, from) {} - inline RegisterClientBufferRequest(RegisterClientBufferRequest&& from) noexcept - : RegisterClientBufferRequest(nullptr, std::move(from)) {} - inline RegisterClientBufferRequest& operator=(const RegisterClientBufferRequest& from) { + inline GetClientBuffersResponse(const GetClientBuffersResponse& from) : GetClientBuffersResponse(nullptr, from) {} + inline GetClientBuffersResponse(GetClientBuffersResponse&& from) noexcept + : GetClientBuffersResponse(nullptr, ::std::move(from)) {} + inline GetClientBuffersResponse& operator=(const GetClientBuffersResponse& from) { CopyFrom(from); return *this; } - inline RegisterClientBufferRequest& operator=(RegisterClientBufferRequest&& from) noexcept { + inline GetClientBuffersResponse& operator=(GetClientBuffersResponse&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); @@ -13272,30 +13519,27 @@ class RegisterClientBufferRequest final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const RegisterClientBufferRequest& default_instance() { - return *internal_default_instance(); - } - static inline const RegisterClientBufferRequest* internal_default_instance() { - return reinterpret_cast( - &_RegisterClientBufferRequest_default_instance_); + static const GetClientBuffersResponse& default_instance() { + return *reinterpret_cast( + &_GetClientBuffersResponse_default_instance_); } - static constexpr int kIndexInFileMessages = 17; - friend void swap(RegisterClientBufferRequest& a, RegisterClientBufferRequest& b) { a.Swap(&b); } - inline void Swap(RegisterClientBufferRequest* other) { + static constexpr int kIndexInFileMessages = 21; + friend void swap(GetClientBuffersResponse& a, GetClientBuffersResponse& b) { a.Swap(&b); } + inline void Swap(GetClientBuffersResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -13303,7 +13547,7 @@ class RegisterClientBufferRequest final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RegisterClientBufferRequest* other) { + void UnsafeArenaSwap(GetClientBuffersResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -13311,18 +13555,17 @@ class RegisterClientBufferRequest final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RegisterClientBufferRequest* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); + GetClientBuffersResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RegisterClientBufferRequest& from); + void CopyFrom(const GetClientBuffersResponse& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RegisterClientBufferRequest& from) { RegisterClientBufferRequest::MergeImpl(*this, from); } + void MergeFrom(const GetClientBuffersResponse& from) { GetClientBuffersResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -13332,78 +13575,116 @@ class RegisterClientBufferRequest final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RegisterClientBufferRequest* other); + void InternalSwap(GetClientBuffersResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RegisterClientBufferRequest"; } - - protected: - explicit RegisterClientBufferRequest(::google::protobuf::Arena* arena); - RegisterClientBufferRequest(::google::protobuf::Arena* arena, const RegisterClientBufferRequest& from); - RegisterClientBufferRequest(::google::protobuf::Arena* arena, RegisterClientBufferRequest&& from) noexcept - : RegisterClientBufferRequest(arena) { + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.GetClientBuffersResponse"; } + + explicit GetClientBuffersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + GetClientBuffersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetClientBuffersResponse& from); + GetClientBuffersResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetClientBuffersResponse&& from) noexcept + : GetClientBuffersResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kMetadataFieldNumber = 1, + kMetadataFieldNumber = 2, + kFdIndexesFieldNumber = 3, + kErrorFieldNumber = 1, }; - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - bool has_metadata() const; + // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; + int metadata_size() const; + private: + int _internal_metadata_size() const; + + public: void clear_metadata() ; - const ::subspace::ClientBufferHandleMetadataProto& metadata() const; - PROTOBUF_NODISCARD ::subspace::ClientBufferHandleMetadataProto* release_metadata(); - ::subspace::ClientBufferHandleMetadataProto* mutable_metadata(); - void set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value); - void unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value); - ::subspace::ClientBufferHandleMetadataProto* unsafe_arena_release_metadata(); + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL mutable_metadata(int index); + ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL mutable_metadata(); private: - const ::subspace::ClientBufferHandleMetadataProto& _internal_metadata() const; - ::subspace::ClientBufferHandleMetadataProto* _internal_mutable_metadata(); + const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& _internal_metadata() const; + ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL _internal_mutable_metadata(); + public: + const ::subspace::ClientBufferHandleMetadataProto& metadata(int index) const; + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL add_metadata(); + const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& metadata() const; + // repeated int32 fd_indexes = 3; + int fd_indexes_size() const; + private: + int _internal_fd_indexes_size() const; public: - // @@protoc_insertion_point(class_scope:subspace.RegisterClientBufferRequest) + void clear_fd_indexes() ; + ::int32_t fd_indexes(int index) const; + void set_fd_indexes(int index, ::int32_t value); + void add_fd_indexes(::int32_t value); + const ::google::protobuf::RepeatedField<::int32_t>& fd_indexes() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_fd_indexes(); + + private: + const ::google::protobuf::RepeatedField<::int32_t>& _internal_fd_indexes() const; + ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_fd_indexes(); + + public: + // string error = 1; + void clear_error() ; + const ::std::string& error() const; + template + void set_error(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); + + public: + // @@protoc_insertion_point(class_scope:subspace.GetClientBuffersResponse) private: class _Internal; friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<2, 3, + 1, 47, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -13413,21 +13694,27 @@ class RegisterClientBufferRequest final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RegisterClientBufferRequest& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const GetClientBuffersResponse& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; - ::subspace::ClientBufferHandleMetadataProto* metadata_; + ::google::protobuf::RepeatedPtrField< ::subspace::ClientBufferHandleMetadataProto > metadata_; + ::google::protobuf::RepeatedField<::int32_t> fd_indexes_; + ::google::protobuf::internal::CachedSize _fd_indexes_cached_byte_size_; + ::google::protobuf::internal::ArenaStringPtr error_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersResponse_class_data_; // ------------------------------------------------------------------- class Discovery final : public ::google::protobuf::Message @@ -13437,19 +13724,18 @@ class Discovery final : public ::google::protobuf::Message ~Discovery() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery* msg, std::destroying_delete_t) { + void operator delete(Discovery* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery)); } #endif template - explicit PROTOBUF_CONSTEXPR Discovery( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Discovery(::google::protobuf::internal::ConstantInitialized); inline Discovery(const Discovery& from) : Discovery(nullptr, from) {} inline Discovery(Discovery&& from) noexcept - : Discovery(nullptr, std::move(from)) {} + : Discovery(nullptr, ::std::move(from)) {} inline Discovery& operator=(const Discovery& from) { CopyFrom(from); return *this; @@ -13468,22 +13754,23 @@ class Discovery final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const Discovery& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_Discovery_default_instance_); } enum DataCase { kQuery = 3, @@ -13491,13 +13778,9 @@ class Discovery final : public ::google::protobuf::Message kSubscribe = 5, DATA_NOT_SET = 0, }; - static inline const Discovery* internal_default_instance() { - return reinterpret_cast( - &_Discovery_default_instance_); - } - static constexpr int kIndexInFileMessages = 31; + static constexpr int kIndexInFileMessages = 34; friend void swap(Discovery& a, Discovery& b) { a.Swap(&b); } - inline void Swap(Discovery* other) { + inline void Swap(Discovery* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -13505,7 +13788,7 @@ class Discovery final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Discovery* other) { + void UnsafeArenaSwap(Discovery* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -13513,7 +13796,7 @@ class Discovery final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Discovery* New(::google::protobuf::Arena* arena = nullptr) const { + Discovery* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -13522,9 +13805,8 @@ class Discovery final : public ::google::protobuf::Message void MergeFrom(const Discovery& from) { Discovery::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -13534,49 +13816,50 @@ class Discovery final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery* other); + void InternalSwap(Discovery* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.Discovery"; } - protected: - explicit Discovery(::google::protobuf::Arena* arena); - Discovery(::google::protobuf::Arena* arena, const Discovery& from); - Discovery(::google::protobuf::Arena* arena, Discovery&& from) noexcept + explicit Discovery(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Discovery(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery& from); + Discovery( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery&& from) noexcept : Discovery(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using Query = Discovery_Query; @@ -13593,18 +13876,17 @@ class Discovery final : public ::google::protobuf::Message }; // string server_id = 1; void clear_server_id() ; - const std::string& server_id() const; - template + const ::std::string& server_id() const; + template void set_server_id(Arg_&& arg, Args_... args); - std::string* mutable_server_id(); - PROTOBUF_NODISCARD std::string* release_server_id(); - void set_allocated_server_id(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_server_id(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_server_id(); + void set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_server_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_server_id( - const std::string& value); - std::string* _internal_mutable_server_id(); + const ::std::string& _internal_server_id() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_server_id(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_server_id(); public: // int32 port = 2; @@ -13625,15 +13907,15 @@ class Discovery final : public ::google::protobuf::Message public: void clear_query() ; const ::subspace::Discovery_Query& query() const; - PROTOBUF_NODISCARD ::subspace::Discovery_Query* release_query(); - ::subspace::Discovery_Query* mutable_query(); - void set_allocated_query(::subspace::Discovery_Query* value); - void unsafe_arena_set_allocated_query(::subspace::Discovery_Query* value); - ::subspace::Discovery_Query* unsafe_arena_release_query(); + [[nodiscard]] ::subspace::Discovery_Query* PROTOBUF_NULLABLE release_query(); + ::subspace::Discovery_Query* PROTOBUF_NONNULL mutable_query(); + void set_allocated_query(::subspace::Discovery_Query* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_query(::subspace::Discovery_Query* PROTOBUF_NULLABLE value); + ::subspace::Discovery_Query* PROTOBUF_NULLABLE unsafe_arena_release_query(); private: const ::subspace::Discovery_Query& _internal_query() const; - ::subspace::Discovery_Query* _internal_mutable_query(); + ::subspace::Discovery_Query* PROTOBUF_NONNULL _internal_mutable_query(); public: // .subspace.Discovery.Advertise advertise = 4; @@ -13644,15 +13926,15 @@ class Discovery final : public ::google::protobuf::Message public: void clear_advertise() ; const ::subspace::Discovery_Advertise& advertise() const; - PROTOBUF_NODISCARD ::subspace::Discovery_Advertise* release_advertise(); - ::subspace::Discovery_Advertise* mutable_advertise(); - void set_allocated_advertise(::subspace::Discovery_Advertise* value); - void unsafe_arena_set_allocated_advertise(::subspace::Discovery_Advertise* value); - ::subspace::Discovery_Advertise* unsafe_arena_release_advertise(); + [[nodiscard]] ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE release_advertise(); + ::subspace::Discovery_Advertise* PROTOBUF_NONNULL mutable_advertise(); + void set_allocated_advertise(::subspace::Discovery_Advertise* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_advertise(::subspace::Discovery_Advertise* PROTOBUF_NULLABLE value); + ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE unsafe_arena_release_advertise(); private: const ::subspace::Discovery_Advertise& _internal_advertise() const; - ::subspace::Discovery_Advertise* _internal_mutable_advertise(); + ::subspace::Discovery_Advertise* PROTOBUF_NONNULL _internal_mutable_advertise(); public: // .subspace.Discovery.Subscribe subscribe = 5; @@ -13663,15 +13945,15 @@ class Discovery final : public ::google::protobuf::Message public: void clear_subscribe() ; const ::subspace::Discovery_Subscribe& subscribe() const; - PROTOBUF_NODISCARD ::subspace::Discovery_Subscribe* release_subscribe(); - ::subspace::Discovery_Subscribe* mutable_subscribe(); - void set_allocated_subscribe(::subspace::Discovery_Subscribe* value); - void unsafe_arena_set_allocated_subscribe(::subspace::Discovery_Subscribe* value); - ::subspace::Discovery_Subscribe* unsafe_arena_release_subscribe(); + [[nodiscard]] ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE release_subscribe(); + ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL mutable_subscribe(); + void set_allocated_subscribe(::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_subscribe(::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE value); + ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE unsafe_arena_release_subscribe(); private: const ::subspace::Discovery_Subscribe& _internal_subscribe() const; - ::subspace::Discovery_Subscribe* _internal_mutable_subscribe(); + ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL _internal_mutable_subscribe(); public: void clear_data(); @@ -13685,9 +13967,9 @@ class Discovery final : public ::google::protobuf::Message inline bool has_data() const; inline void clear_has_data(); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 5, 3, - 36, 2> + static const ::google::protobuf::internal::TcParseTable<1, 5, + 3, 36, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -13697,29 +13979,33 @@ class Discovery final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Discovery& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Discovery& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr server_id_; ::int32_t port_; union DataUnion { constexpr DataUnion() : _constinit_{} {} ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::Discovery_Query* query_; - ::subspace::Discovery_Advertise* advertise_; - ::subspace::Discovery_Subscribe* subscribe_; + ::google::protobuf::Message* PROTOBUF_NULLABLE query_; + ::google::protobuf::Message* PROTOBUF_NULLABLE advertise_; + ::google::protobuf::Message* PROTOBUF_NULLABLE subscribe_; } data_; - ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull Discovery_class_data_; // ------------------------------------------------------------------- class ShadowEvent final : public ::google::protobuf::Message @@ -13729,19 +14015,18 @@ class ShadowEvent final : public ::google::protobuf::Message ~ShadowEvent() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowEvent* msg, std::destroying_delete_t) { + void operator delete(ShadowEvent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowEvent)); } #endif template - explicit PROTOBUF_CONSTEXPR ShadowEvent( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ShadowEvent(::google::protobuf::internal::ConstantInitialized); inline ShadowEvent(const ShadowEvent& from) : ShadowEvent(nullptr, from) {} inline ShadowEvent(ShadowEvent&& from) noexcept - : ShadowEvent(nullptr, std::move(from)) {} + : ShadowEvent(nullptr, ::std::move(from)) {} inline ShadowEvent& operator=(const ShadowEvent& from) { CopyFrom(from); return *this; @@ -13760,22 +14045,23 @@ class ShadowEvent final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const ShadowEvent& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_ShadowEvent_default_instance_); } enum EventCase { kInit = 1, @@ -13792,13 +14078,9 @@ class ShadowEvent final : public ::google::protobuf::Message kUpdateChannelOptions = 12, EVENT_NOT_SET = 0, }; - static inline const ShadowEvent* internal_default_instance() { - return reinterpret_cast( - &_ShadowEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = 46; + static constexpr int kIndexInFileMessages = 49; friend void swap(ShadowEvent& a, ShadowEvent& b) { a.Swap(&b); } - inline void Swap(ShadowEvent* other) { + inline void Swap(ShadowEvent* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -13806,7 +14088,7 @@ class ShadowEvent final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ShadowEvent* other) { + void UnsafeArenaSwap(ShadowEvent* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -13814,7 +14096,7 @@ class ShadowEvent final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - ShadowEvent* New(::google::protobuf::Arena* arena = nullptr) const { + ShadowEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -13823,9 +14105,8 @@ class ShadowEvent final : public ::google::protobuf::Message void MergeFrom(const ShadowEvent& from) { ShadowEvent::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -13835,49 +14116,50 @@ class ShadowEvent final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowEvent* other); + void InternalSwap(ShadowEvent* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.ShadowEvent"; } - protected: - explicit ShadowEvent(::google::protobuf::Arena* arena); - ShadowEvent(::google::protobuf::Arena* arena, const ShadowEvent& from); - ShadowEvent(::google::protobuf::Arena* arena, ShadowEvent&& from) noexcept + explicit ShadowEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + ShadowEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowEvent& from); + ShadowEvent( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowEvent&& from) noexcept : ShadowEvent(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -13904,15 +14186,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_init() ; const ::subspace::ShadowInit& init() const; - PROTOBUF_NODISCARD ::subspace::ShadowInit* release_init(); - ::subspace::ShadowInit* mutable_init(); - void set_allocated_init(::subspace::ShadowInit* value); - void unsafe_arena_set_allocated_init(::subspace::ShadowInit* value); - ::subspace::ShadowInit* unsafe_arena_release_init(); + [[nodiscard]] ::subspace::ShadowInit* PROTOBUF_NULLABLE release_init(); + ::subspace::ShadowInit* PROTOBUF_NONNULL mutable_init(); + void set_allocated_init(::subspace::ShadowInit* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_init(::subspace::ShadowInit* PROTOBUF_NULLABLE value); + ::subspace::ShadowInit* PROTOBUF_NULLABLE unsafe_arena_release_init(); private: const ::subspace::ShadowInit& _internal_init() const; - ::subspace::ShadowInit* _internal_mutable_init(); + ::subspace::ShadowInit* PROTOBUF_NONNULL _internal_mutable_init(); public: // .subspace.ShadowCreateChannel create_channel = 2; @@ -13923,15 +14205,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_create_channel() ; const ::subspace::ShadowCreateChannel& create_channel() const; - PROTOBUF_NODISCARD ::subspace::ShadowCreateChannel* release_create_channel(); - ::subspace::ShadowCreateChannel* mutable_create_channel(); - void set_allocated_create_channel(::subspace::ShadowCreateChannel* value); - void unsafe_arena_set_allocated_create_channel(::subspace::ShadowCreateChannel* value); - ::subspace::ShadowCreateChannel* unsafe_arena_release_create_channel(); + [[nodiscard]] ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE release_create_channel(); + ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL mutable_create_channel(); + void set_allocated_create_channel(::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_create_channel(::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE value); + ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE unsafe_arena_release_create_channel(); private: const ::subspace::ShadowCreateChannel& _internal_create_channel() const; - ::subspace::ShadowCreateChannel* _internal_mutable_create_channel(); + ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL _internal_mutable_create_channel(); public: // .subspace.ShadowRemoveChannel remove_channel = 3; @@ -13942,15 +14224,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_remove_channel() ; const ::subspace::ShadowRemoveChannel& remove_channel() const; - PROTOBUF_NODISCARD ::subspace::ShadowRemoveChannel* release_remove_channel(); - ::subspace::ShadowRemoveChannel* mutable_remove_channel(); - void set_allocated_remove_channel(::subspace::ShadowRemoveChannel* value); - void unsafe_arena_set_allocated_remove_channel(::subspace::ShadowRemoveChannel* value); - ::subspace::ShadowRemoveChannel* unsafe_arena_release_remove_channel(); + [[nodiscard]] ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE release_remove_channel(); + ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL mutable_remove_channel(); + void set_allocated_remove_channel(::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_channel(::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE value); + ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE unsafe_arena_release_remove_channel(); private: const ::subspace::ShadowRemoveChannel& _internal_remove_channel() const; - ::subspace::ShadowRemoveChannel* _internal_mutable_remove_channel(); + ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL _internal_mutable_remove_channel(); public: // .subspace.ShadowAddPublisher add_publisher = 4; @@ -13961,15 +14243,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_add_publisher() ; const ::subspace::ShadowAddPublisher& add_publisher() const; - PROTOBUF_NODISCARD ::subspace::ShadowAddPublisher* release_add_publisher(); - ::subspace::ShadowAddPublisher* mutable_add_publisher(); - void set_allocated_add_publisher(::subspace::ShadowAddPublisher* value); - void unsafe_arena_set_allocated_add_publisher(::subspace::ShadowAddPublisher* value); - ::subspace::ShadowAddPublisher* unsafe_arena_release_add_publisher(); + [[nodiscard]] ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE release_add_publisher(); + ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL mutable_add_publisher(); + void set_allocated_add_publisher(::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_add_publisher(::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE value); + ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE unsafe_arena_release_add_publisher(); private: const ::subspace::ShadowAddPublisher& _internal_add_publisher() const; - ::subspace::ShadowAddPublisher* _internal_mutable_add_publisher(); + ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL _internal_mutable_add_publisher(); public: // .subspace.ShadowRemovePublisher remove_publisher = 5; @@ -13980,15 +14262,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_remove_publisher() ; const ::subspace::ShadowRemovePublisher& remove_publisher() const; - PROTOBUF_NODISCARD ::subspace::ShadowRemovePublisher* release_remove_publisher(); - ::subspace::ShadowRemovePublisher* mutable_remove_publisher(); - void set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* value); - void unsafe_arena_set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* value); - ::subspace::ShadowRemovePublisher* unsafe_arena_release_remove_publisher(); + [[nodiscard]] ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE release_remove_publisher(); + ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL mutable_remove_publisher(); + void set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE value); + ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE unsafe_arena_release_remove_publisher(); private: const ::subspace::ShadowRemovePublisher& _internal_remove_publisher() const; - ::subspace::ShadowRemovePublisher* _internal_mutable_remove_publisher(); + ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL _internal_mutable_remove_publisher(); public: // .subspace.ShadowAddSubscriber add_subscriber = 6; @@ -13999,15 +14281,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_add_subscriber() ; const ::subspace::ShadowAddSubscriber& add_subscriber() const; - PROTOBUF_NODISCARD ::subspace::ShadowAddSubscriber* release_add_subscriber(); - ::subspace::ShadowAddSubscriber* mutable_add_subscriber(); - void set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* value); - void unsafe_arena_set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* value); - ::subspace::ShadowAddSubscriber* unsafe_arena_release_add_subscriber(); + [[nodiscard]] ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE release_add_subscriber(); + ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL mutable_add_subscriber(); + void set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE value); + ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE unsafe_arena_release_add_subscriber(); private: const ::subspace::ShadowAddSubscriber& _internal_add_subscriber() const; - ::subspace::ShadowAddSubscriber* _internal_mutable_add_subscriber(); + ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL _internal_mutable_add_subscriber(); public: // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; @@ -14018,15 +14300,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_remove_subscriber() ; const ::subspace::ShadowRemoveSubscriber& remove_subscriber() const; - PROTOBUF_NODISCARD ::subspace::ShadowRemoveSubscriber* release_remove_subscriber(); - ::subspace::ShadowRemoveSubscriber* mutable_remove_subscriber(); - void set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* value); - void unsafe_arena_set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* value); - ::subspace::ShadowRemoveSubscriber* unsafe_arena_release_remove_subscriber(); + [[nodiscard]] ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE release_remove_subscriber(); + ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL mutable_remove_subscriber(); + void set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE value); + ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE unsafe_arena_release_remove_subscriber(); private: const ::subspace::ShadowRemoveSubscriber& _internal_remove_subscriber() const; - ::subspace::ShadowRemoveSubscriber* _internal_mutable_remove_subscriber(); + ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL _internal_mutable_remove_subscriber(); public: // .subspace.ShadowStateDump state_dump = 8; @@ -14037,15 +14319,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_state_dump() ; const ::subspace::ShadowStateDump& state_dump() const; - PROTOBUF_NODISCARD ::subspace::ShadowStateDump* release_state_dump(); - ::subspace::ShadowStateDump* mutable_state_dump(); - void set_allocated_state_dump(::subspace::ShadowStateDump* value); - void unsafe_arena_set_allocated_state_dump(::subspace::ShadowStateDump* value); - ::subspace::ShadowStateDump* unsafe_arena_release_state_dump(); + [[nodiscard]] ::subspace::ShadowStateDump* PROTOBUF_NULLABLE release_state_dump(); + ::subspace::ShadowStateDump* PROTOBUF_NONNULL mutable_state_dump(); + void set_allocated_state_dump(::subspace::ShadowStateDump* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_state_dump(::subspace::ShadowStateDump* PROTOBUF_NULLABLE value); + ::subspace::ShadowStateDump* PROTOBUF_NULLABLE unsafe_arena_release_state_dump(); private: const ::subspace::ShadowStateDump& _internal_state_dump() const; - ::subspace::ShadowStateDump* _internal_mutable_state_dump(); + ::subspace::ShadowStateDump* PROTOBUF_NONNULL _internal_mutable_state_dump(); public: // .subspace.ShadowStateDone state_done = 9; @@ -14056,15 +14338,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_state_done() ; const ::subspace::ShadowStateDone& state_done() const; - PROTOBUF_NODISCARD ::subspace::ShadowStateDone* release_state_done(); - ::subspace::ShadowStateDone* mutable_state_done(); - void set_allocated_state_done(::subspace::ShadowStateDone* value); - void unsafe_arena_set_allocated_state_done(::subspace::ShadowStateDone* value); - ::subspace::ShadowStateDone* unsafe_arena_release_state_done(); + [[nodiscard]] ::subspace::ShadowStateDone* PROTOBUF_NULLABLE release_state_done(); + ::subspace::ShadowStateDone* PROTOBUF_NONNULL mutable_state_done(); + void set_allocated_state_done(::subspace::ShadowStateDone* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_state_done(::subspace::ShadowStateDone* PROTOBUF_NULLABLE value); + ::subspace::ShadowStateDone* PROTOBUF_NULLABLE unsafe_arena_release_state_done(); private: const ::subspace::ShadowStateDone& _internal_state_done() const; - ::subspace::ShadowStateDone* _internal_mutable_state_done(); + ::subspace::ShadowStateDone* PROTOBUF_NONNULL _internal_mutable_state_done(); public: // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; @@ -14075,15 +14357,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_register_client_buffer() ; const ::subspace::ShadowRegisterClientBuffer& register_client_buffer() const; - PROTOBUF_NODISCARD ::subspace::ShadowRegisterClientBuffer* release_register_client_buffer(); - ::subspace::ShadowRegisterClientBuffer* mutable_register_client_buffer(); - void set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* value); - void unsafe_arena_set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* value); - ::subspace::ShadowRegisterClientBuffer* unsafe_arena_release_register_client_buffer(); + [[nodiscard]] ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE release_register_client_buffer(); + ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL mutable_register_client_buffer(); + void set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE value); + ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE unsafe_arena_release_register_client_buffer(); private: const ::subspace::ShadowRegisterClientBuffer& _internal_register_client_buffer() const; - ::subspace::ShadowRegisterClientBuffer* _internal_mutable_register_client_buffer(); + ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL _internal_mutable_register_client_buffer(); public: // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; @@ -14094,15 +14376,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_unregister_client_buffer() ; const ::subspace::ShadowUnregisterClientBuffer& unregister_client_buffer() const; - PROTOBUF_NODISCARD ::subspace::ShadowUnregisterClientBuffer* release_unregister_client_buffer(); - ::subspace::ShadowUnregisterClientBuffer* mutable_unregister_client_buffer(); - void set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* value); - void unsafe_arena_set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* value); - ::subspace::ShadowUnregisterClientBuffer* unsafe_arena_release_unregister_client_buffer(); + [[nodiscard]] ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE release_unregister_client_buffer(); + ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL mutable_unregister_client_buffer(); + void set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE value); + ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE unsafe_arena_release_unregister_client_buffer(); private: const ::subspace::ShadowUnregisterClientBuffer& _internal_unregister_client_buffer() const; - ::subspace::ShadowUnregisterClientBuffer* _internal_mutable_unregister_client_buffer(); + ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL _internal_mutable_unregister_client_buffer(); public: // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; @@ -14113,15 +14395,15 @@ class ShadowEvent final : public ::google::protobuf::Message public: void clear_update_channel_options() ; const ::subspace::ShadowUpdateChannelOptions& update_channel_options() const; - PROTOBUF_NODISCARD ::subspace::ShadowUpdateChannelOptions* release_update_channel_options(); - ::subspace::ShadowUpdateChannelOptions* mutable_update_channel_options(); - void set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* value); - void unsafe_arena_set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* value); - ::subspace::ShadowUpdateChannelOptions* unsafe_arena_release_update_channel_options(); + [[nodiscard]] ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE release_update_channel_options(); + ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL mutable_update_channel_options(); + void set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE value); + ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE unsafe_arena_release_update_channel_options(); private: const ::subspace::ShadowUpdateChannelOptions& _internal_update_channel_options() const; - ::subspace::ShadowUpdateChannelOptions* _internal_mutable_update_channel_options(); + ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL _internal_mutable_update_channel_options(); public: void clear_event(); @@ -14144,9 +14426,9 @@ class ShadowEvent final : public ::google::protobuf::Message inline bool has_event() const; inline void clear_has_event(); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 12, 12, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 12, + 12, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -14156,28 +14438,29 @@ class ShadowEvent final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const ShadowEvent& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ShadowEvent& from_msg); union EventUnion { constexpr EventUnion() : _constinit_{} {} ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::ShadowInit* init_; - ::subspace::ShadowCreateChannel* create_channel_; - ::subspace::ShadowRemoveChannel* remove_channel_; - ::subspace::ShadowAddPublisher* add_publisher_; - ::subspace::ShadowRemovePublisher* remove_publisher_; - ::subspace::ShadowAddSubscriber* add_subscriber_; - ::subspace::ShadowRemoveSubscriber* remove_subscriber_; - ::subspace::ShadowStateDump* state_dump_; - ::subspace::ShadowStateDone* state_done_; - ::subspace::ShadowRegisterClientBuffer* register_client_buffer_; - ::subspace::ShadowUnregisterClientBuffer* unregister_client_buffer_; - ::subspace::ShadowUpdateChannelOptions* update_channel_options_; + ::google::protobuf::Message* PROTOBUF_NULLABLE init_; + ::google::protobuf::Message* PROTOBUF_NULLABLE create_channel_; + ::google::protobuf::Message* PROTOBUF_NULLABLE remove_channel_; + ::google::protobuf::Message* PROTOBUF_NULLABLE add_publisher_; + ::google::protobuf::Message* PROTOBUF_NULLABLE remove_publisher_; + ::google::protobuf::Message* PROTOBUF_NULLABLE add_subscriber_; + ::google::protobuf::Message* PROTOBUF_NULLABLE remove_subscriber_; + ::google::protobuf::Message* PROTOBUF_NULLABLE state_dump_; + ::google::protobuf::Message* PROTOBUF_NULLABLE state_done_; + ::google::protobuf::Message* PROTOBUF_NULLABLE register_client_buffer_; + ::google::protobuf::Message* PROTOBUF_NULLABLE unregister_client_buffer_; + ::google::protobuf::Message* PROTOBUF_NULLABLE update_channel_options_; } event_; ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; @@ -14186,6 +14469,8 @@ class ShadowEvent final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull ShadowEvent_class_data_; // ------------------------------------------------------------------- class RpcServerResponse final : public ::google::protobuf::Message @@ -14195,19 +14480,18 @@ class RpcServerResponse final : public ::google::protobuf::Message ~RpcServerResponse() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcServerResponse* msg, std::destroying_delete_t) { + void operator delete(RpcServerResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcServerResponse)); } #endif template - explicit PROTOBUF_CONSTEXPR RpcServerResponse( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR RpcServerResponse(::google::protobuf::internal::ConstantInitialized); inline RpcServerResponse(const RpcServerResponse& from) : RpcServerResponse(nullptr, from) {} inline RpcServerResponse(RpcServerResponse&& from) noexcept - : RpcServerResponse(nullptr, std::move(from)) {} + : RpcServerResponse(nullptr, ::std::move(from)) {} inline RpcServerResponse& operator=(const RpcServerResponse& from) { CopyFrom(from); return *this; @@ -14226,35 +14510,32 @@ class RpcServerResponse final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } static const RpcServerResponse& default_instance() { - return *internal_default_instance(); + return *reinterpret_cast( + &_RpcServerResponse_default_instance_); } enum ResponseCase { kOpen = 3, kClose = 4, RESPONSE_NOT_SET = 0, }; - static inline const RpcServerResponse* internal_default_instance() { - return reinterpret_cast( - &_RpcServerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 40; + static constexpr int kIndexInFileMessages = 43; friend void swap(RpcServerResponse& a, RpcServerResponse& b) { a.Swap(&b); } - inline void Swap(RpcServerResponse* other) { + inline void Swap(RpcServerResponse* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -14262,7 +14543,7 @@ class RpcServerResponse final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RpcServerResponse* other) { + void UnsafeArenaSwap(RpcServerResponse* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -14270,7 +14551,7 @@ class RpcServerResponse final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - RpcServerResponse* New(::google::protobuf::Arena* arena = nullptr) const { + RpcServerResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -14279,9 +14560,8 @@ class RpcServerResponse final : public ::google::protobuf::Message void MergeFrom(const RpcServerResponse& from) { RpcServerResponse::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -14291,49 +14571,50 @@ class RpcServerResponse final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(RpcServerResponse* other); + void InternalSwap(RpcServerResponse* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "subspace.RpcServerResponse"; } - protected: - explicit RpcServerResponse(::google::protobuf::Arena* arena); - RpcServerResponse(::google::protobuf::Arena* arena, const RpcServerResponse& from); - RpcServerResponse(::google::protobuf::Arena* arena, RpcServerResponse&& from) noexcept + explicit RpcServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + RpcServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcServerResponse& from); + RpcServerResponse( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcServerResponse&& from) noexcept : RpcServerResponse(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -14347,18 +14628,17 @@ class RpcServerResponse final : public ::google::protobuf::Message }; // string error = 5; void clear_error() ; - const std::string& error() const; - template + const ::std::string& error() const; + template void set_error(Arg_&& arg, Args_... args); - std::string* mutable_error(); - PROTOBUF_NODISCARD std::string* release_error(); - void set_allocated_error(std::string* value); + ::std::string* PROTOBUF_NONNULL mutable_error(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); + void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); private: - const std::string& _internal_error() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error( - const std::string& value); - std::string* _internal_mutable_error(); + const ::std::string& _internal_error() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); public: // uint64 client_id = 1; @@ -14389,15 +14669,15 @@ class RpcServerResponse final : public ::google::protobuf::Message public: void clear_open() ; const ::subspace::RpcOpenResponse& open() const; - PROTOBUF_NODISCARD ::subspace::RpcOpenResponse* release_open(); - ::subspace::RpcOpenResponse* mutable_open(); - void set_allocated_open(::subspace::RpcOpenResponse* value); - void unsafe_arena_set_allocated_open(::subspace::RpcOpenResponse* value); - ::subspace::RpcOpenResponse* unsafe_arena_release_open(); + [[nodiscard]] ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE release_open(); + ::subspace::RpcOpenResponse* PROTOBUF_NONNULL mutable_open(); + void set_allocated_open(::subspace::RpcOpenResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_open(::subspace::RpcOpenResponse* PROTOBUF_NULLABLE value); + ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE unsafe_arena_release_open(); private: const ::subspace::RpcOpenResponse& _internal_open() const; - ::subspace::RpcOpenResponse* _internal_mutable_open(); + ::subspace::RpcOpenResponse* PROTOBUF_NONNULL _internal_mutable_open(); public: // .subspace.RpcCloseResponse close = 4; @@ -14408,15 +14688,15 @@ class RpcServerResponse final : public ::google::protobuf::Message public: void clear_close() ; const ::subspace::RpcCloseResponse& close() const; - PROTOBUF_NODISCARD ::subspace::RpcCloseResponse* release_close(); - ::subspace::RpcCloseResponse* mutable_close(); - void set_allocated_close(::subspace::RpcCloseResponse* value); - void unsafe_arena_set_allocated_close(::subspace::RpcCloseResponse* value); - ::subspace::RpcCloseResponse* unsafe_arena_release_close(); + [[nodiscard]] ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE release_close(); + ::subspace::RpcCloseResponse* PROTOBUF_NONNULL mutable_close(); + void set_allocated_close(::subspace::RpcCloseResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_close(::subspace::RpcCloseResponse* PROTOBUF_NULLABLE value); + ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE unsafe_arena_release_close(); private: const ::subspace::RpcCloseResponse& _internal_close() const; - ::subspace::RpcCloseResponse* _internal_mutable_close(); + ::subspace::RpcCloseResponse* PROTOBUF_NONNULL _internal_mutable_close(); public: void clear_response(); @@ -14429,9 +14709,9 @@ class RpcServerResponse final : public ::google::protobuf::Message inline bool has_response() const; inline void clear_has_response(); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 2, - 40, 2> + static const ::google::protobuf::internal::TcParseTable<3, 5, + 2, 40, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -14441,56 +14721,59 @@ class RpcServerResponse final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const RpcServerResponse& from_msg); + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const RpcServerResponse& from_msg); + ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr error_; ::uint64_t client_id_; ::int32_t request_id_; union ResponseUnion { constexpr ResponseUnion() : _constinit_{} {} ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::RpcOpenResponse* open_; - ::subspace::RpcCloseResponse* close_; + ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE open_; + ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE close_; } response_; - ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_subspace_2eproto; }; + +extern const ::google::protobuf::internal::ClassDataFull RpcServerResponse_class_data_; // ------------------------------------------------------------------- -class Request final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Request) */ { +class Response final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.Response) */ { public: - inline Request() : Request(nullptr) {} - ~Request() PROTOBUF_FINAL; + inline Response() : Response(nullptr) {} + ~Response() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Request* msg, std::destroying_delete_t) { + void operator delete(Response* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Request)); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Response)); } #endif template - explicit PROTOBUF_CONSTEXPR Request( - ::google::protobuf::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR Response(::google::protobuf::internal::ConstantInitialized); - inline Request(const Request& from) : Request(nullptr, from) {} - inline Request(Request&& from) noexcept - : Request(nullptr, std::move(from)) {} - inline Request& operator=(const Request& from) { + inline Response(const Response& from) : Response(nullptr, from) {} + inline Response(Response&& from) noexcept + : Response(nullptr, ::std::move(from)) {} + inline Response& operator=(const Response& from) { CopyFrom(from); return *this; } - inline Request& operator=(Request&& from) noexcept { + inline Response& operator=(Response&& from) noexcept { if (this == &from) return *this; if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { InternalSwap(&from); @@ -14504,24 +14787,25 @@ class Request final : public ::google::protobuf::Message ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Request& default_instance() { - return *internal_default_instance(); + static const Response& default_instance() { + return *reinterpret_cast( + &_Response_default_instance_); } - enum RequestCase { + enum ResponseCase { kInit = 1, kCreatePublisher = 2, kCreateSubscriber = 3, @@ -14530,17 +14814,13 @@ class Request final : public ::google::protobuf::Message kRemoveSubscriber = 6, kGetChannelInfo = 9, kGetChannelStats = 10, - kRegisterClientBuffer = 11, - kUnregisterClientBuffer = 12, - REQUEST_NOT_SET = 0, + kGetClientBuffers = 11, + kRegisterClientBuffer = 12, + RESPONSE_NOT_SET = 0, }; - static inline const Request* internal_default_instance() { - return reinterpret_cast( - &_Request_default_instance_); - } - static constexpr int kIndexInFileMessages = 19; - friend void swap(Request& a, Request& b) { a.Swap(&b); } - inline void Swap(Request* other) { + static constexpr int kIndexInFileMessages = 23; + friend void swap(Response& a, Response& b) { a.Swap(&b); } + inline void Swap(Response* PROTOBUF_NONNULL other) { if (other == this) return; if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { InternalSwap(other); @@ -14548,7 +14828,7 @@ class Request final : public ::google::protobuf::Message ::google::protobuf::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Request* other) { + void UnsafeArenaSwap(Response* PROTOBUF_NONNULL other) { if (other == this) return; ABSL_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); @@ -14556,18 +14836,17 @@ class Request final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Request* New(::google::protobuf::Arena* arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); + Response* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Request& from); + void CopyFrom(const Response& from); using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Request& from) { Request::MergeImpl(*this, from); } + void MergeFrom(const Response& from) { Response::MergeImpl(*this, from); } private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); public: bool IsInitialized() const { @@ -14577,49 +14856,50 @@ class Request final : public ::google::protobuf::Message #if defined(PROTOBUF_CUSTOM_VTABLE) private: static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* _InternalSerialize( - const MessageLite& msg, ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE ::size_t ByteSizeLong() const final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: - void SharedCtor(::google::protobuf::Arena* arena); + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static void SharedDtor(MessageLite& self); - void InternalSwap(Request* other); + void InternalSwap(Response* PROTOBUF_NONNULL other); private: template - friend ::absl::string_view( - ::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Request"; } + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.Response"; } - protected: - explicit Request(::google::protobuf::Arena* arena); - Request(::google::protobuf::Arena* arena, const Request& from); - Request(::google::protobuf::Arena* arena, Request&& from) noexcept - : Request(arena) { + explicit Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Response& from); + Response( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Response&& from) noexcept + : Response(arena) { *this = ::std::move(from); } - const ::google::protobuf::internal::ClassData* GetClassData() const PROTOBUF_FINAL; - static void* PlacementNew_(const void*, void* mem, - ::google::protobuf::Arena* arena); + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); - static const ::google::protobuf::internal::ClassDataFull _class_data_; public: + static constexpr auto InternalGenerateClassData_(); + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- @@ -14633,202 +14913,202 @@ class Request final : public ::google::protobuf::Message kRemoveSubscriberFieldNumber = 6, kGetChannelInfoFieldNumber = 9, kGetChannelStatsFieldNumber = 10, - kRegisterClientBufferFieldNumber = 11, - kUnregisterClientBufferFieldNumber = 12, + kGetClientBuffersFieldNumber = 11, + kRegisterClientBufferFieldNumber = 12, }; - // .subspace.InitRequest init = 1; + // .subspace.InitResponse init = 1; bool has_init() const; private: bool _internal_has_init() const; public: void clear_init() ; - const ::subspace::InitRequest& init() const; - PROTOBUF_NODISCARD ::subspace::InitRequest* release_init(); - ::subspace::InitRequest* mutable_init(); - void set_allocated_init(::subspace::InitRequest* value); - void unsafe_arena_set_allocated_init(::subspace::InitRequest* value); - ::subspace::InitRequest* unsafe_arena_release_init(); + const ::subspace::InitResponse& init() const; + [[nodiscard]] ::subspace::InitResponse* PROTOBUF_NULLABLE release_init(); + ::subspace::InitResponse* PROTOBUF_NONNULL mutable_init(); + void set_allocated_init(::subspace::InitResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_init(::subspace::InitResponse* PROTOBUF_NULLABLE value); + ::subspace::InitResponse* PROTOBUF_NULLABLE unsafe_arena_release_init(); private: - const ::subspace::InitRequest& _internal_init() const; - ::subspace::InitRequest* _internal_mutable_init(); + const ::subspace::InitResponse& _internal_init() const; + ::subspace::InitResponse* PROTOBUF_NONNULL _internal_mutable_init(); public: - // .subspace.CreatePublisherRequest create_publisher = 2; + // .subspace.CreatePublisherResponse create_publisher = 2; bool has_create_publisher() const; private: bool _internal_has_create_publisher() const; public: void clear_create_publisher() ; - const ::subspace::CreatePublisherRequest& create_publisher() const; - PROTOBUF_NODISCARD ::subspace::CreatePublisherRequest* release_create_publisher(); - ::subspace::CreatePublisherRequest* mutable_create_publisher(); - void set_allocated_create_publisher(::subspace::CreatePublisherRequest* value); - void unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherRequest* value); - ::subspace::CreatePublisherRequest* unsafe_arena_release_create_publisher(); + const ::subspace::CreatePublisherResponse& create_publisher() const; + [[nodiscard]] ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE release_create_publisher(); + ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL mutable_create_publisher(); + void set_allocated_create_publisher(::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE value); + ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE unsafe_arena_release_create_publisher(); private: - const ::subspace::CreatePublisherRequest& _internal_create_publisher() const; - ::subspace::CreatePublisherRequest* _internal_mutable_create_publisher(); + const ::subspace::CreatePublisherResponse& _internal_create_publisher() const; + ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL _internal_mutable_create_publisher(); public: - // .subspace.CreateSubscriberRequest create_subscriber = 3; + // .subspace.CreateSubscriberResponse create_subscriber = 3; bool has_create_subscriber() const; private: bool _internal_has_create_subscriber() const; public: void clear_create_subscriber() ; - const ::subspace::CreateSubscriberRequest& create_subscriber() const; - PROTOBUF_NODISCARD ::subspace::CreateSubscriberRequest* release_create_subscriber(); - ::subspace::CreateSubscriberRequest* mutable_create_subscriber(); - void set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* value); - void unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* value); - ::subspace::CreateSubscriberRequest* unsafe_arena_release_create_subscriber(); + const ::subspace::CreateSubscriberResponse& create_subscriber() const; + [[nodiscard]] ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE release_create_subscriber(); + ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL mutable_create_subscriber(); + void set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE value); + ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE unsafe_arena_release_create_subscriber(); private: - const ::subspace::CreateSubscriberRequest& _internal_create_subscriber() const; - ::subspace::CreateSubscriberRequest* _internal_mutable_create_subscriber(); + const ::subspace::CreateSubscriberResponse& _internal_create_subscriber() const; + ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL _internal_mutable_create_subscriber(); public: - // .subspace.GetTriggersRequest get_triggers = 4; + // .subspace.GetTriggersResponse get_triggers = 4; bool has_get_triggers() const; private: bool _internal_has_get_triggers() const; public: void clear_get_triggers() ; - const ::subspace::GetTriggersRequest& get_triggers() const; - PROTOBUF_NODISCARD ::subspace::GetTriggersRequest* release_get_triggers(); - ::subspace::GetTriggersRequest* mutable_get_triggers(); - void set_allocated_get_triggers(::subspace::GetTriggersRequest* value); - void unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersRequest* value); - ::subspace::GetTriggersRequest* unsafe_arena_release_get_triggers(); + const ::subspace::GetTriggersResponse& get_triggers() const; + [[nodiscard]] ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE release_get_triggers(); + ::subspace::GetTriggersResponse* PROTOBUF_NONNULL mutable_get_triggers(); + void set_allocated_get_triggers(::subspace::GetTriggersResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersResponse* PROTOBUF_NULLABLE value); + ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_triggers(); private: - const ::subspace::GetTriggersRequest& _internal_get_triggers() const; - ::subspace::GetTriggersRequest* _internal_mutable_get_triggers(); + const ::subspace::GetTriggersResponse& _internal_get_triggers() const; + ::subspace::GetTriggersResponse* PROTOBUF_NONNULL _internal_mutable_get_triggers(); public: - // .subspace.RemovePublisherRequest remove_publisher = 5; + // .subspace.RemovePublisherResponse remove_publisher = 5; bool has_remove_publisher() const; private: bool _internal_has_remove_publisher() const; public: void clear_remove_publisher() ; - const ::subspace::RemovePublisherRequest& remove_publisher() const; - PROTOBUF_NODISCARD ::subspace::RemovePublisherRequest* release_remove_publisher(); - ::subspace::RemovePublisherRequest* mutable_remove_publisher(); - void set_allocated_remove_publisher(::subspace::RemovePublisherRequest* value); - void unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherRequest* value); - ::subspace::RemovePublisherRequest* unsafe_arena_release_remove_publisher(); + const ::subspace::RemovePublisherResponse& remove_publisher() const; + [[nodiscard]] ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE release_remove_publisher(); + ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL mutable_remove_publisher(); + void set_allocated_remove_publisher(::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE value); + ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE unsafe_arena_release_remove_publisher(); private: - const ::subspace::RemovePublisherRequest& _internal_remove_publisher() const; - ::subspace::RemovePublisherRequest* _internal_mutable_remove_publisher(); + const ::subspace::RemovePublisherResponse& _internal_remove_publisher() const; + ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL _internal_mutable_remove_publisher(); public: - // .subspace.RemoveSubscriberRequest remove_subscriber = 6; + // .subspace.RemoveSubscriberResponse remove_subscriber = 6; bool has_remove_subscriber() const; private: bool _internal_has_remove_subscriber() const; public: void clear_remove_subscriber() ; - const ::subspace::RemoveSubscriberRequest& remove_subscriber() const; - PROTOBUF_NODISCARD ::subspace::RemoveSubscriberRequest* release_remove_subscriber(); - ::subspace::RemoveSubscriberRequest* mutable_remove_subscriber(); - void set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* value); - void unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* value); - ::subspace::RemoveSubscriberRequest* unsafe_arena_release_remove_subscriber(); + const ::subspace::RemoveSubscriberResponse& remove_subscriber() const; + [[nodiscard]] ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE release_remove_subscriber(); + ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL mutable_remove_subscriber(); + void set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE value); + ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE unsafe_arena_release_remove_subscriber(); private: - const ::subspace::RemoveSubscriberRequest& _internal_remove_subscriber() const; - ::subspace::RemoveSubscriberRequest* _internal_mutable_remove_subscriber(); + const ::subspace::RemoveSubscriberResponse& _internal_remove_subscriber() const; + ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL _internal_mutable_remove_subscriber(); public: - // .subspace.GetChannelInfoRequest get_channel_info = 9; + // .subspace.GetChannelInfoResponse get_channel_info = 9; bool has_get_channel_info() const; private: bool _internal_has_get_channel_info() const; public: void clear_get_channel_info() ; - const ::subspace::GetChannelInfoRequest& get_channel_info() const; - PROTOBUF_NODISCARD ::subspace::GetChannelInfoRequest* release_get_channel_info(); - ::subspace::GetChannelInfoRequest* mutable_get_channel_info(); - void set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* value); - void unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* value); - ::subspace::GetChannelInfoRequest* unsafe_arena_release_get_channel_info(); + const ::subspace::GetChannelInfoResponse& get_channel_info() const; + [[nodiscard]] ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE release_get_channel_info(); + ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL mutable_get_channel_info(); + void set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE value); + ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_info(); private: - const ::subspace::GetChannelInfoRequest& _internal_get_channel_info() const; - ::subspace::GetChannelInfoRequest* _internal_mutable_get_channel_info(); + const ::subspace::GetChannelInfoResponse& _internal_get_channel_info() const; + ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL _internal_mutable_get_channel_info(); public: - // .subspace.GetChannelStatsRequest get_channel_stats = 10; + // .subspace.GetChannelStatsResponse get_channel_stats = 10; bool has_get_channel_stats() const; private: bool _internal_has_get_channel_stats() const; public: void clear_get_channel_stats() ; - const ::subspace::GetChannelStatsRequest& get_channel_stats() const; - PROTOBUF_NODISCARD ::subspace::GetChannelStatsRequest* release_get_channel_stats(); - ::subspace::GetChannelStatsRequest* mutable_get_channel_stats(); - void set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* value); - void unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* value); - ::subspace::GetChannelStatsRequest* unsafe_arena_release_get_channel_stats(); + const ::subspace::GetChannelStatsResponse& get_channel_stats() const; + [[nodiscard]] ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE release_get_channel_stats(); + ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL mutable_get_channel_stats(); + void set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE value); + ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_stats(); private: - const ::subspace::GetChannelStatsRequest& _internal_get_channel_stats() const; - ::subspace::GetChannelStatsRequest* _internal_mutable_get_channel_stats(); + const ::subspace::GetChannelStatsResponse& _internal_get_channel_stats() const; + ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL _internal_mutable_get_channel_stats(); public: - // .subspace.RegisterClientBufferRequest register_client_buffer = 11; - bool has_register_client_buffer() const; + // .subspace.GetClientBuffersResponse get_client_buffers = 11; + bool has_get_client_buffers() const; private: - bool _internal_has_register_client_buffer() const; + bool _internal_has_get_client_buffers() const; public: - void clear_register_client_buffer() ; - const ::subspace::RegisterClientBufferRequest& register_client_buffer() const; - PROTOBUF_NODISCARD ::subspace::RegisterClientBufferRequest* release_register_client_buffer(); - ::subspace::RegisterClientBufferRequest* mutable_register_client_buffer(); - void set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* value); - void unsafe_arena_set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* value); - ::subspace::RegisterClientBufferRequest* unsafe_arena_release_register_client_buffer(); + void clear_get_client_buffers() ; + const ::subspace::GetClientBuffersResponse& get_client_buffers() const; + [[nodiscard]] ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE release_get_client_buffers(); + ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL mutable_get_client_buffers(); + void set_allocated_get_client_buffers(::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_client_buffers(::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE value); + ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_client_buffers(); private: - const ::subspace::RegisterClientBufferRequest& _internal_register_client_buffer() const; - ::subspace::RegisterClientBufferRequest* _internal_mutable_register_client_buffer(); + const ::subspace::GetClientBuffersResponse& _internal_get_client_buffers() const; + ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL _internal_mutable_get_client_buffers(); public: - // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; - bool has_unregister_client_buffer() const; + // .subspace.RegisterClientBufferResponse register_client_buffer = 12; + bool has_register_client_buffer() const; private: - bool _internal_has_unregister_client_buffer() const; + bool _internal_has_register_client_buffer() const; public: - void clear_unregister_client_buffer() ; - const ::subspace::UnregisterClientBufferRequest& unregister_client_buffer() const; - PROTOBUF_NODISCARD ::subspace::UnregisterClientBufferRequest* release_unregister_client_buffer(); - ::subspace::UnregisterClientBufferRequest* mutable_unregister_client_buffer(); - void set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* value); - void unsafe_arena_set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* value); - ::subspace::UnregisterClientBufferRequest* unsafe_arena_release_unregister_client_buffer(); + void clear_register_client_buffer() ; + const ::subspace::RegisterClientBufferResponse& register_client_buffer() const; + [[nodiscard]] ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE release_register_client_buffer(); + ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL mutable_register_client_buffer(); + void set_allocated_register_client_buffer(::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_register_client_buffer(::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE value); + ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE unsafe_arena_release_register_client_buffer(); private: - const ::subspace::UnregisterClientBufferRequest& _internal_unregister_client_buffer() const; - ::subspace::UnregisterClientBufferRequest* _internal_mutable_unregister_client_buffer(); + const ::subspace::RegisterClientBufferResponse& _internal_register_client_buffer() const; + ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL _internal_mutable_register_client_buffer(); public: - void clear_request(); - RequestCase request_case() const; - // @@protoc_insertion_point(class_scope:subspace.Request) + void clear_response(); + ResponseCase response_case() const; + // @@protoc_insertion_point(class_scope:subspace.Response) private: class _Internal; void set_has_init(); @@ -14839,14 +15119,14 @@ class Request final : public ::google::protobuf::Message void set_has_remove_subscriber(); void set_has_get_channel_info(); void set_has_get_channel_stats(); + void set_has_get_client_buffers(); void set_has_register_client_buffer(); - void set_has_unregister_client_buffer(); - inline bool has_request() const; - inline void clear_has_request(); + inline bool has_response() const; + inline void clear_has_response(); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 10, 10, - 0, 2> + static const ::google::protobuf::internal::TcParseTable<0, 10, + 10, 0, + 2> _table_; friend class ::google::protobuf::MessageLite; @@ -14856,27 +15136,28 @@ class Request final : public ::google::protobuf::Message using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from, - const Request& from_msg); - union RequestUnion { - constexpr RequestUnion() : _constinit_{} {} + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Response& from_msg); + union ResponseUnion { + constexpr ResponseUnion() : _constinit_{} {} ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::InitRequest* init_; - ::subspace::CreatePublisherRequest* create_publisher_; - ::subspace::CreateSubscriberRequest* create_subscriber_; - ::subspace::GetTriggersRequest* get_triggers_; - ::subspace::RemovePublisherRequest* remove_publisher_; - ::subspace::RemoveSubscriberRequest* remove_subscriber_; - ::subspace::GetChannelInfoRequest* get_channel_info_; - ::subspace::GetChannelStatsRequest* get_channel_stats_; - ::subspace::RegisterClientBufferRequest* register_client_buffer_; - ::subspace::UnregisterClientBufferRequest* unregister_client_buffer_; - } request_; + ::google::protobuf::Message* PROTOBUF_NULLABLE init_; + ::google::protobuf::Message* PROTOBUF_NULLABLE create_publisher_; + ::google::protobuf::Message* PROTOBUF_NULLABLE create_subscriber_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_triggers_; + ::google::protobuf::Message* PROTOBUF_NULLABLE remove_publisher_; + ::google::protobuf::Message* PROTOBUF_NULLABLE remove_subscriber_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_info_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_stats_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_client_buffers_; + ::google::protobuf::Message* PROTOBUF_NULLABLE register_client_buffer_; + } response_; ::google::protobuf::internal::CachedSize _cached_size_; ::uint32_t _oneof_case_[1]; PROTOBUF_TSAN_DECLARE_MEMBER @@ -14885,87 +15166,551 @@ class Request final : public ::google::protobuf::Message friend struct ::TableStruct_subspace_2eproto; }; -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; // ------------------------------------------------------------------- -// InitRequest +class Request final : public ::google::protobuf::Message +/* @@protoc_insertion_point(class_definition:subspace.Request) */ { + public: + inline Request() : Request(nullptr) {} + ~Request() PROTOBUF_FINAL; -// string client_name = 1; -inline void InitRequest::clear_client_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_name_.ClearToEmpty(); -} -inline const std::string& InitRequest::client_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.InitRequest.client_name) - return _internal_client_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void InitRequest::set_client_name(Arg_&& arg, - Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.InitRequest.client_name) -} -inline std::string* InitRequest::mutable_client_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_client_name(); - // @@protoc_insertion_point(field_mutable:subspace.InitRequest.client_name) - return _s; -} -inline const std::string& InitRequest::_internal_client_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_name_.Get(); -} -inline void InitRequest::_internal_set_client_name(const std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_name_.Set(value, GetArena()); -} -inline std::string* InitRequest::_internal_mutable_client_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.client_name_.Mutable( GetArena()); -} -inline std::string* InitRequest::release_client_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.InitRequest.client_name) - return _impl_.client_name_.Release(); -} -inline void InitRequest::set_allocated_client_name(std::string* value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.client_name_.IsDefault()) { - _impl_.client_name_.Set("", GetArena()); +#if defined(PROTOBUF_CUSTOM_VTABLE) + void operator delete(Request* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + SharedDtor(*msg); + ::google::protobuf::internal::SizedDelete(msg, sizeof(Request)); } - // @@protoc_insertion_point(field_set_allocated:subspace.InitRequest.client_name) -} - -// ------------------------------------------------------------------- +#endif -// InitResponse + template + explicit PROTOBUF_CONSTEXPR Request(::google::protobuf::internal::ConstantInitialized); -// int32 scb_fd_index = 1; -inline void InitResponse::clear_scb_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.scb_fd_index_ = 0; -} -inline ::int32_t InitResponse::scb_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.InitResponse.scb_fd_index) - return _internal_scb_fd_index(); -} -inline void InitResponse::set_scb_fd_index(::int32_t value) { - _internal_set_scb_fd_index(value); - // @@protoc_insertion_point(field_set:subspace.InitResponse.scb_fd_index) -} + inline Request(const Request& from) : Request(nullptr, from) {} + inline Request(Request&& from) noexcept + : Request(nullptr, ::std::move(from)) {} + inline Request& operator=(const Request& from) { + CopyFrom(from); + return *this; + } + inline Request& operator=(Request&& from) noexcept { + if (this == &from) return *this; + if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); + } + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); + } + + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + return GetDescriptor(); + } + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const Request& default_instance() { + return *reinterpret_cast( + &_Request_default_instance_); + } + enum RequestCase { + kInit = 1, + kCreatePublisher = 2, + kCreateSubscriber = 3, + kGetTriggers = 4, + kRemovePublisher = 5, + kRemoveSubscriber = 6, + kGetChannelInfo = 9, + kGetChannelStats = 10, + kRegisterClientBuffer = 11, + kUnregisterClientBuffer = 12, + kGetClientBuffers = 13, + REQUEST_NOT_SET = 0, + }; + static constexpr int kIndexInFileMessages = 22; + friend void swap(Request& a, Request& b) { a.Swap(&b); } + inline void Swap(Request* PROTOBUF_NONNULL other) { + if (other == this) return; + if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { + InternalSwap(other); + } else { + ::google::protobuf::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(Request* PROTOBUF_NONNULL other) { + if (other == this) return; + ABSL_DCHECK(GetArena() == other->GetArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Request* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + return ::google::protobuf::Message::DefaultConstruct(arena); + } + using ::google::protobuf::Message::CopyFrom; + void CopyFrom(const Request& from); + using ::google::protobuf::Message::MergeFrom; + void MergeFrom(const Request& from) { Request::MergeImpl(*this, from); } + + private: + static void MergeImpl(::google::protobuf::MessageLite& to_msg, + const ::google::protobuf::MessageLite& from_msg); + + public: + bool IsInitialized() const { + return true; + } + ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; + #if defined(PROTOBUF_CUSTOM_VTABLE) + private: + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); + + public: + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { + return _InternalSerialize(*this, target, stream); + } + #else // PROTOBUF_CUSTOM_VTABLE + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::uint8_t* PROTOBUF_NONNULL target, + ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; + #endif // PROTOBUF_CUSTOM_VTABLE + int GetCachedSize() const { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static void SharedDtor(MessageLite& self); + void InternalSwap(Request* PROTOBUF_NONNULL other); + private: + template + friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); + static ::absl::string_view FullMessageName() { return "subspace.Request"; } + + explicit Request(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + Request(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Request& from); + Request( + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Request&& from) noexcept + : Request(arena) { + *this = ::std::move(from); + } + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; + static void* PROTOBUF_NONNULL PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + static constexpr auto InternalNewImpl_(); + + public: + static constexpr auto InternalGenerateClassData_(); + + ::google::protobuf::Metadata GetMetadata() const; + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + enum : int { + kInitFieldNumber = 1, + kCreatePublisherFieldNumber = 2, + kCreateSubscriberFieldNumber = 3, + kGetTriggersFieldNumber = 4, + kRemovePublisherFieldNumber = 5, + kRemoveSubscriberFieldNumber = 6, + kGetChannelInfoFieldNumber = 9, + kGetChannelStatsFieldNumber = 10, + kRegisterClientBufferFieldNumber = 11, + kUnregisterClientBufferFieldNumber = 12, + kGetClientBuffersFieldNumber = 13, + }; + // .subspace.InitRequest init = 1; + bool has_init() const; + private: + bool _internal_has_init() const; + + public: + void clear_init() ; + const ::subspace::InitRequest& init() const; + [[nodiscard]] ::subspace::InitRequest* PROTOBUF_NULLABLE release_init(); + ::subspace::InitRequest* PROTOBUF_NONNULL mutable_init(); + void set_allocated_init(::subspace::InitRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_init(::subspace::InitRequest* PROTOBUF_NULLABLE value); + ::subspace::InitRequest* PROTOBUF_NULLABLE unsafe_arena_release_init(); + + private: + const ::subspace::InitRequest& _internal_init() const; + ::subspace::InitRequest* PROTOBUF_NONNULL _internal_mutable_init(); + + public: + // .subspace.CreatePublisherRequest create_publisher = 2; + bool has_create_publisher() const; + private: + bool _internal_has_create_publisher() const; + + public: + void clear_create_publisher() ; + const ::subspace::CreatePublisherRequest& create_publisher() const; + [[nodiscard]] ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE release_create_publisher(); + ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL mutable_create_publisher(); + void set_allocated_create_publisher(::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE value); + ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE unsafe_arena_release_create_publisher(); + + private: + const ::subspace::CreatePublisherRequest& _internal_create_publisher() const; + ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL _internal_mutable_create_publisher(); + + public: + // .subspace.CreateSubscriberRequest create_subscriber = 3; + bool has_create_subscriber() const; + private: + bool _internal_has_create_subscriber() const; + + public: + void clear_create_subscriber() ; + const ::subspace::CreateSubscriberRequest& create_subscriber() const; + [[nodiscard]] ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE release_create_subscriber(); + ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL mutable_create_subscriber(); + void set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE value); + ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE unsafe_arena_release_create_subscriber(); + + private: + const ::subspace::CreateSubscriberRequest& _internal_create_subscriber() const; + ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL _internal_mutable_create_subscriber(); + + public: + // .subspace.GetTriggersRequest get_triggers = 4; + bool has_get_triggers() const; + private: + bool _internal_has_get_triggers() const; + + public: + void clear_get_triggers() ; + const ::subspace::GetTriggersRequest& get_triggers() const; + [[nodiscard]] ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE release_get_triggers(); + ::subspace::GetTriggersRequest* PROTOBUF_NONNULL mutable_get_triggers(); + void set_allocated_get_triggers(::subspace::GetTriggersRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersRequest* PROTOBUF_NULLABLE value); + ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_triggers(); + + private: + const ::subspace::GetTriggersRequest& _internal_get_triggers() const; + ::subspace::GetTriggersRequest* PROTOBUF_NONNULL _internal_mutable_get_triggers(); + + public: + // .subspace.RemovePublisherRequest remove_publisher = 5; + bool has_remove_publisher() const; + private: + bool _internal_has_remove_publisher() const; + + public: + void clear_remove_publisher() ; + const ::subspace::RemovePublisherRequest& remove_publisher() const; + [[nodiscard]] ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE release_remove_publisher(); + ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL mutable_remove_publisher(); + void set_allocated_remove_publisher(::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE value); + ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE unsafe_arena_release_remove_publisher(); + + private: + const ::subspace::RemovePublisherRequest& _internal_remove_publisher() const; + ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL _internal_mutable_remove_publisher(); + + public: + // .subspace.RemoveSubscriberRequest remove_subscriber = 6; + bool has_remove_subscriber() const; + private: + bool _internal_has_remove_subscriber() const; + + public: + void clear_remove_subscriber() ; + const ::subspace::RemoveSubscriberRequest& remove_subscriber() const; + [[nodiscard]] ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE release_remove_subscriber(); + ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL mutable_remove_subscriber(); + void set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE value); + ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE unsafe_arena_release_remove_subscriber(); + + private: + const ::subspace::RemoveSubscriberRequest& _internal_remove_subscriber() const; + ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL _internal_mutable_remove_subscriber(); + + public: + // .subspace.GetChannelInfoRequest get_channel_info = 9; + bool has_get_channel_info() const; + private: + bool _internal_has_get_channel_info() const; + + public: + void clear_get_channel_info() ; + const ::subspace::GetChannelInfoRequest& get_channel_info() const; + [[nodiscard]] ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE release_get_channel_info(); + ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL mutable_get_channel_info(); + void set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE value); + ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_info(); + + private: + const ::subspace::GetChannelInfoRequest& _internal_get_channel_info() const; + ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL _internal_mutable_get_channel_info(); + + public: + // .subspace.GetChannelStatsRequest get_channel_stats = 10; + bool has_get_channel_stats() const; + private: + bool _internal_has_get_channel_stats() const; + + public: + void clear_get_channel_stats() ; + const ::subspace::GetChannelStatsRequest& get_channel_stats() const; + [[nodiscard]] ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE release_get_channel_stats(); + ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL mutable_get_channel_stats(); + void set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE value); + ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_stats(); + + private: + const ::subspace::GetChannelStatsRequest& _internal_get_channel_stats() const; + ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL _internal_mutable_get_channel_stats(); + + public: + // .subspace.RegisterClientBufferRequest register_client_buffer = 11; + bool has_register_client_buffer() const; + private: + bool _internal_has_register_client_buffer() const; + + public: + void clear_register_client_buffer() ; + const ::subspace::RegisterClientBufferRequest& register_client_buffer() const; + [[nodiscard]] ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE release_register_client_buffer(); + ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL mutable_register_client_buffer(); + void set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE value); + ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE unsafe_arena_release_register_client_buffer(); + + private: + const ::subspace::RegisterClientBufferRequest& _internal_register_client_buffer() const; + ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL _internal_mutable_register_client_buffer(); + + public: + // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; + bool has_unregister_client_buffer() const; + private: + bool _internal_has_unregister_client_buffer() const; + + public: + void clear_unregister_client_buffer() ; + const ::subspace::UnregisterClientBufferRequest& unregister_client_buffer() const; + [[nodiscard]] ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE release_unregister_client_buffer(); + ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL mutable_unregister_client_buffer(); + void set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE value); + ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE unsafe_arena_release_unregister_client_buffer(); + + private: + const ::subspace::UnregisterClientBufferRequest& _internal_unregister_client_buffer() const; + ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL _internal_mutable_unregister_client_buffer(); + + public: + // .subspace.GetClientBuffersRequest get_client_buffers = 13; + bool has_get_client_buffers() const; + private: + bool _internal_has_get_client_buffers() const; + + public: + void clear_get_client_buffers() ; + const ::subspace::GetClientBuffersRequest& get_client_buffers() const; + [[nodiscard]] ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE release_get_client_buffers(); + ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL mutable_get_client_buffers(); + void set_allocated_get_client_buffers(::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_get_client_buffers(::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE value); + ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_client_buffers(); + + private: + const ::subspace::GetClientBuffersRequest& _internal_get_client_buffers() const; + ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL _internal_mutable_get_client_buffers(); + + public: + void clear_request(); + RequestCase request_case() const; + // @@protoc_insertion_point(class_scope:subspace.Request) + private: + class _Internal; + void set_has_init(); + void set_has_create_publisher(); + void set_has_create_subscriber(); + void set_has_get_triggers(); + void set_has_remove_publisher(); + void set_has_remove_subscriber(); + void set_has_get_channel_info(); + void set_has_get_channel_stats(); + void set_has_register_client_buffer(); + void set_has_unregister_client_buffer(); + void set_has_get_client_buffers(); + inline bool has_request() const; + inline void clear_has_request(); + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 11, + 11, 0, + 2> + _table_; + + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; + template + friend class ::google::protobuf::Arena::InternalHelper; + using InternalArenaConstructable_ = void; + using DestructorSkippable_ = void; + struct Impl_ { + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Request& from_msg); + union RequestUnion { + constexpr RequestUnion() : _constinit_{} {} + ::google::protobuf::internal::ConstantInitialized _constinit_; + ::google::protobuf::Message* PROTOBUF_NULLABLE init_; + ::google::protobuf::Message* PROTOBUF_NULLABLE create_publisher_; + ::google::protobuf::Message* PROTOBUF_NULLABLE create_subscriber_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_triggers_; + ::google::protobuf::Message* PROTOBUF_NULLABLE remove_publisher_; + ::google::protobuf::Message* PROTOBUF_NULLABLE remove_subscriber_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_info_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_stats_; + ::google::protobuf::Message* PROTOBUF_NULLABLE register_client_buffer_; + ::google::protobuf::Message* PROTOBUF_NULLABLE unregister_client_buffer_; + ::google::protobuf::Message* PROTOBUF_NULLABLE get_client_buffers_; + } request_; + ::google::protobuf::internal::CachedSize _cached_size_; + ::uint32_t _oneof_case_[1]; + PROTOBUF_TSAN_DECLARE_MEMBER + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_subspace_2eproto; +}; + +extern const ::google::protobuf::internal::ClassDataFull Request_class_data_; + +// =================================================================== + + + + +// =================================================================== + + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// InitRequest + +// string client_name = 1; +inline void InitRequest::clear_client_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& InitRequest::client_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.InitRequest.client_name) + return _internal_client_name(); +} +template +PROTOBUF_ALWAYS_INLINE void InitRequest::set_client_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.client_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:subspace.InitRequest.client_name) +} +inline ::std::string* PROTOBUF_NONNULL InitRequest::mutable_client_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_client_name(); + // @@protoc_insertion_point(field_mutable:subspace.InitRequest.client_name) + return _s; +} +inline const ::std::string& InitRequest::_internal_client_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.client_name_.Get(); +} +inline void InitRequest::_internal_set_client_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.client_name_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL InitRequest::_internal_mutable_client_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.client_name_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE InitRequest::release_client_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:subspace.InitRequest.client_name) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.client_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.client_name_.Set("", GetArena()); + } + return released; +} +inline void InitRequest::set_allocated_client_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.client_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.client_name_.IsDefault()) { + _impl_.client_name_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:subspace.InitRequest.client_name) +} + +// ------------------------------------------------------------------- + +// InitResponse + +// int32 scb_fd_index = 1; +inline void InitResponse::clear_scb_fd_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.scb_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::int32_t InitResponse::scb_fd_index() const { + // @@protoc_insertion_point(field_get:subspace.InitResponse.scb_fd_index) + return _internal_scb_fd_index(); +} +inline void InitResponse::set_scb_fd_index(::int32_t value) { + _internal_set_scb_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:subspace.InitResponse.scb_fd_index) +} inline ::int32_t InitResponse::_internal_scb_fd_index() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.scb_fd_index_; @@ -14979,6 +15724,8 @@ inline void InitResponse::_internal_set_scb_fd_index(::int32_t value) { inline void InitResponse::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::int64_t InitResponse::session_id() const { // @@protoc_insertion_point(field_get:subspace.InitResponse.session_id) @@ -14986,6 +15733,7 @@ inline ::int64_t InitResponse::session_id() const { } inline void InitResponse::set_session_id(::int64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:subspace.InitResponse.session_id) } inline ::int64_t InitResponse::_internal_session_id() const { @@ -15001,6 +15749,8 @@ inline void InitResponse::_internal_set_session_id(::int64_t value) { inline void InitResponse::clear_user_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.user_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t InitResponse::user_id() const { // @@protoc_insertion_point(field_get:subspace.InitResponse.user_id) @@ -15008,6 +15758,7 @@ inline ::int32_t InitResponse::user_id() const { } inline void InitResponse::set_user_id(::int32_t value) { _internal_set_user_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.InitResponse.user_id) } inline ::int32_t InitResponse::_internal_user_id() const { @@ -15023,6 +15774,8 @@ inline void InitResponse::_internal_set_user_id(::int32_t value) { inline void InitResponse::clear_group_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.group_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t InitResponse::group_id() const { // @@protoc_insertion_point(field_get:subspace.InitResponse.group_id) @@ -15030,6 +15783,7 @@ inline ::int32_t InitResponse::group_id() const { } inline void InitResponse::set_group_id(::int32_t value) { _internal_set_group_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.InitResponse.group_id) } inline ::int32_t InitResponse::_internal_group_id() const { @@ -15049,43 +15803,60 @@ inline void InitResponse::_internal_set_group_id(::int32_t value) { inline void CreatePublisherRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& CreatePublisherRequest::channel_name() const +inline const ::std::string& CreatePublisherRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.channel_name) } -inline std::string* CreatePublisherRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherRequest.channel_name) return _s; } -inline const std::string& CreatePublisherRequest::_internal_channel_name() const { +inline const ::std::string& CreatePublisherRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void CreatePublisherRequest::_internal_set_channel_name(const std::string& value) { +inline void CreatePublisherRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* CreatePublisherRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* CreatePublisherRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE CreatePublisherRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreatePublisherRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void CreatePublisherRequest::set_allocated_channel_name(std::string* value) { +inline void CreatePublisherRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -15097,6 +15868,8 @@ inline void CreatePublisherRequest::set_allocated_channel_name(std::string* valu inline void CreatePublisherRequest::clear_num_slots() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_slots_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t CreatePublisherRequest::num_slots() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.num_slots) @@ -15104,6 +15877,7 @@ inline ::int32_t CreatePublisherRequest::num_slots() const { } inline void CreatePublisherRequest::set_num_slots(::int32_t value) { _internal_set_num_slots(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.num_slots) } inline ::int32_t CreatePublisherRequest::_internal_num_slots() const { @@ -15119,6 +15893,8 @@ inline void CreatePublisherRequest::_internal_set_num_slots(::int32_t value) { inline void CreatePublisherRequest::clear_slot_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t CreatePublisherRequest::slot_size() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.slot_size) @@ -15126,6 +15902,7 @@ inline ::int32_t CreatePublisherRequest::slot_size() const { } inline void CreatePublisherRequest::set_slot_size(::int32_t value) { _internal_set_slot_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.slot_size) } inline ::int32_t CreatePublisherRequest::_internal_slot_size() const { @@ -15141,6 +15918,8 @@ inline void CreatePublisherRequest::_internal_set_slot_size(::int32_t value) { inline void CreatePublisherRequest::clear_is_local() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_local_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool CreatePublisherRequest::is_local() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_local) @@ -15148,6 +15927,7 @@ inline bool CreatePublisherRequest::is_local() const { } inline void CreatePublisherRequest::set_is_local(bool value) { _internal_set_is_local(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_local) } inline bool CreatePublisherRequest::_internal_is_local() const { @@ -15163,6 +15943,8 @@ inline void CreatePublisherRequest::_internal_set_is_local(bool value) { inline void CreatePublisherRequest::clear_is_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool CreatePublisherRequest::is_reliable() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_reliable) @@ -15170,6 +15952,7 @@ inline bool CreatePublisherRequest::is_reliable() const { } inline void CreatePublisherRequest::set_is_reliable(bool value) { _internal_set_is_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_reliable) } inline bool CreatePublisherRequest::_internal_is_reliable() const { @@ -15185,6 +15968,8 @@ inline void CreatePublisherRequest::_internal_set_is_reliable(bool value) { inline void CreatePublisherRequest::clear_is_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool CreatePublisherRequest::is_bridge() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_bridge) @@ -15192,6 +15977,7 @@ inline bool CreatePublisherRequest::is_bridge() const { } inline void CreatePublisherRequest::set_is_bridge(bool value) { _internal_set_is_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_bridge) } inline bool CreatePublisherRequest::_internal_is_bridge() const { @@ -15207,43 +15993,60 @@ inline void CreatePublisherRequest::_internal_set_is_bridge(bool value) { inline void CreatePublisherRequest::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& CreatePublisherRequest::type() const +inline const ::std::string& CreatePublisherRequest::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.type) } -inline std::string* CreatePublisherRequest::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherRequest.type) return _s; } -inline const std::string& CreatePublisherRequest::_internal_type() const { +inline const ::std::string& CreatePublisherRequest::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void CreatePublisherRequest::_internal_set_type(const std::string& value) { +inline void CreatePublisherRequest::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* CreatePublisherRequest::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* CreatePublisherRequest::release_type() { +inline ::std::string* PROTOBUF_NULLABLE CreatePublisherRequest::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreatePublisherRequest.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void CreatePublisherRequest::set_allocated_type(std::string* value) { +inline void CreatePublisherRequest::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -15255,6 +16058,8 @@ inline void CreatePublisherRequest::set_allocated_type(std::string* value) { inline void CreatePublisherRequest::clear_is_fixed_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_fixed_size_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline bool CreatePublisherRequest::is_fixed_size() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_fixed_size) @@ -15262,6 +16067,7 @@ inline bool CreatePublisherRequest::is_fixed_size() const { } inline void CreatePublisherRequest::set_is_fixed_size(bool value) { _internal_set_is_fixed_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_fixed_size) } inline bool CreatePublisherRequest::_internal_is_fixed_size() const { @@ -15277,6 +16083,8 @@ inline void CreatePublisherRequest::_internal_set_is_fixed_size(bool value) { inline void CreatePublisherRequest::clear_for_tunnel() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.for_tunnel_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } inline bool CreatePublisherRequest::for_tunnel() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.for_tunnel) @@ -15284,6 +16092,7 @@ inline bool CreatePublisherRequest::for_tunnel() const { } inline void CreatePublisherRequest::set_for_tunnel(bool value) { _internal_set_for_tunnel(value); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.for_tunnel) } inline bool CreatePublisherRequest::_internal_for_tunnel() const { @@ -15299,43 +16108,60 @@ inline void CreatePublisherRequest::_internal_set_for_tunnel(bool value) { inline void CreatePublisherRequest::clear_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& CreatePublisherRequest::mux() const +inline const ::std::string& CreatePublisherRequest::mux() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.mux) return _internal_mux(); } template -inline PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_mux(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_mux(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.mux_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.mux) } -inline std::string* CreatePublisherRequest::mutable_mux() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mux(); +inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::mutable_mux() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_mux(); // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherRequest.mux) return _s; } -inline const std::string& CreatePublisherRequest::_internal_mux() const { +inline const ::std::string& CreatePublisherRequest::_internal_mux() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mux_.Get(); } -inline void CreatePublisherRequest::_internal_set_mux(const std::string& value) { +inline void CreatePublisherRequest::_internal_set_mux(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.Set(value, GetArena()); } -inline std::string* CreatePublisherRequest::_internal_mutable_mux() { +inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::_internal_mutable_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.mux_.Mutable( GetArena()); } -inline std::string* CreatePublisherRequest::release_mux() { +inline ::std::string* PROTOBUF_NULLABLE CreatePublisherRequest::release_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreatePublisherRequest.mux) - return _impl_.mux_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.mux_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mux_.Set("", GetArena()); + } + return released; } -inline void CreatePublisherRequest::set_allocated_mux(std::string* value) { +inline void CreatePublisherRequest::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } _impl_.mux_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { _impl_.mux_.Set("", GetArena()); @@ -15347,6 +16173,8 @@ inline void CreatePublisherRequest::set_allocated_mux(std::string* value) { inline void CreatePublisherRequest::clear_vchan_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vchan_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::int32_t CreatePublisherRequest::vchan_id() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.vchan_id) @@ -15354,6 +16182,7 @@ inline ::int32_t CreatePublisherRequest::vchan_id() const { } inline void CreatePublisherRequest::set_vchan_id(::int32_t value) { _internal_set_vchan_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.vchan_id) } inline ::int32_t CreatePublisherRequest::_internal_vchan_id() const { @@ -15369,6 +16198,8 @@ inline void CreatePublisherRequest::_internal_set_vchan_id(::int32_t value) { inline void CreatePublisherRequest::clear_notify_retirement() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.notify_retirement_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline bool CreatePublisherRequest::notify_retirement() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.notify_retirement) @@ -15376,6 +16207,7 @@ inline bool CreatePublisherRequest::notify_retirement() const { } inline void CreatePublisherRequest::set_notify_retirement(bool value) { _internal_set_notify_retirement(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.notify_retirement) } inline bool CreatePublisherRequest::_internal_notify_retirement() const { @@ -15391,6 +16223,8 @@ inline void CreatePublisherRequest::_internal_set_notify_retirement(bool value) inline void CreatePublisherRequest::clear_checksum_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.checksum_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::int32_t CreatePublisherRequest::checksum_size() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.checksum_size) @@ -15398,6 +16232,7 @@ inline ::int32_t CreatePublisherRequest::checksum_size() const { } inline void CreatePublisherRequest::set_checksum_size(::int32_t value) { _internal_set_checksum_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.checksum_size) } inline ::int32_t CreatePublisherRequest::_internal_checksum_size() const { @@ -15413,6 +16248,8 @@ inline void CreatePublisherRequest::_internal_set_checksum_size(::int32_t value) inline void CreatePublisherRequest::clear_metadata_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.metadata_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::int32_t CreatePublisherRequest::metadata_size() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.metadata_size) @@ -15420,6 +16257,7 @@ inline ::int32_t CreatePublisherRequest::metadata_size() const { } inline void CreatePublisherRequest::set_metadata_size(::int32_t value) { _internal_set_metadata_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.metadata_size) } inline ::int32_t CreatePublisherRequest::_internal_metadata_size() const { @@ -15435,6 +16273,8 @@ inline void CreatePublisherRequest::_internal_set_metadata_size(::int32_t value) inline void CreatePublisherRequest::clear_publisher_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.publisher_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::int32_t CreatePublisherRequest::publisher_id() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.publisher_id) @@ -15442,6 +16282,7 @@ inline ::int32_t CreatePublisherRequest::publisher_id() const { } inline void CreatePublisherRequest::set_publisher_id(::int32_t value) { _internal_set_publisher_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.publisher_id) } inline ::int32_t CreatePublisherRequest::_internal_publisher_id() const { @@ -15457,6 +16298,8 @@ inline void CreatePublisherRequest::_internal_set_publisher_id(::int32_t value) inline void CreatePublisherRequest::clear_use_split_buffers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.use_split_buffers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); } inline bool CreatePublisherRequest::use_split_buffers() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.use_split_buffers) @@ -15464,6 +16307,7 @@ inline bool CreatePublisherRequest::use_split_buffers() const { } inline void CreatePublisherRequest::set_use_split_buffers(bool value) { _internal_set_use_split_buffers(value); + SetHasBit(_impl_._has_bits_[0], 0x00008000U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.use_split_buffers) } inline bool CreatePublisherRequest::_internal_use_split_buffers() const { @@ -15479,6 +16323,8 @@ inline void CreatePublisherRequest::_internal_set_use_split_buffers(bool value) inline void CreatePublisherRequest::clear_max_publishers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_publishers_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00020000U); } inline ::int32_t CreatePublisherRequest::max_publishers() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.max_publishers) @@ -15486,6 +16332,7 @@ inline ::int32_t CreatePublisherRequest::max_publishers() const { } inline void CreatePublisherRequest::set_max_publishers(::int32_t value) { _internal_set_max_publishers(value); + SetHasBit(_impl_._has_bits_[0], 0x00020000U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.max_publishers) } inline ::int32_t CreatePublisherRequest::_internal_max_publishers() const { @@ -15501,6 +16348,8 @@ inline void CreatePublisherRequest::_internal_set_max_publishers(::int32_t value inline void CreatePublisherRequest::clear_split_buffers_over_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.split_buffers_over_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00010000U); } inline bool CreatePublisherRequest::split_buffers_over_bridge() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.split_buffers_over_bridge) @@ -15508,6 +16357,7 @@ inline bool CreatePublisherRequest::split_buffers_over_bridge() const { } inline void CreatePublisherRequest::set_split_buffers_over_bridge(bool value) { _internal_set_split_buffers_over_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00010000U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.split_buffers_over_bridge) } inline bool CreatePublisherRequest::_internal_split_buffers_over_bridge() const { @@ -15527,43 +16377,60 @@ inline void CreatePublisherRequest::_internal_set_split_buffers_over_bridge(bool inline void CreatePublisherResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& CreatePublisherResponse::error() const +inline const ::std::string& CreatePublisherResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void CreatePublisherResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreatePublisherResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.error) } -inline std::string* CreatePublisherResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherResponse.error) return _s; } -inline const std::string& CreatePublisherResponse::_internal_error() const { +inline const ::std::string& CreatePublisherResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void CreatePublisherResponse::_internal_set_error(const std::string& value) { +inline void CreatePublisherResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* CreatePublisherResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* CreatePublisherResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE CreatePublisherResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreatePublisherResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void CreatePublisherResponse::set_allocated_error(std::string* value) { +inline void CreatePublisherResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -15575,6 +16442,8 @@ inline void CreatePublisherResponse::set_allocated_error(std::string* value) { inline void CreatePublisherResponse::clear_channel_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t CreatePublisherResponse::channel_id() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.channel_id) @@ -15582,6 +16451,7 @@ inline ::int32_t CreatePublisherResponse::channel_id() const { } inline void CreatePublisherResponse::set_channel_id(::int32_t value) { _internal_set_channel_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.channel_id) } inline ::int32_t CreatePublisherResponse::_internal_channel_id() const { @@ -15597,6 +16467,8 @@ inline void CreatePublisherResponse::_internal_set_channel_id(::int32_t value) { inline void CreatePublisherResponse::clear_publisher_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.publisher_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::int32_t CreatePublisherResponse::publisher_id() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.publisher_id) @@ -15604,6 +16476,7 @@ inline ::int32_t CreatePublisherResponse::publisher_id() const { } inline void CreatePublisherResponse::set_publisher_id(::int32_t value) { _internal_set_publisher_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.publisher_id) } inline ::int32_t CreatePublisherResponse::_internal_publisher_id() const { @@ -15619,6 +16492,8 @@ inline void CreatePublisherResponse::_internal_set_publisher_id(::int32_t value) inline void CreatePublisherResponse::clear_ccb_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ccb_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::int32_t CreatePublisherResponse::ccb_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.ccb_fd_index) @@ -15626,6 +16501,7 @@ inline ::int32_t CreatePublisherResponse::ccb_fd_index() const { } inline void CreatePublisherResponse::set_ccb_fd_index(::int32_t value) { _internal_set_ccb_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.ccb_fd_index) } inline ::int32_t CreatePublisherResponse::_internal_ccb_fd_index() const { @@ -15641,6 +16517,8 @@ inline void CreatePublisherResponse::_internal_set_ccb_fd_index(::int32_t value) inline void CreatePublisherResponse::clear_bcb_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bcb_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::int32_t CreatePublisherResponse::bcb_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.bcb_fd_index) @@ -15648,6 +16526,7 @@ inline ::int32_t CreatePublisherResponse::bcb_fd_index() const { } inline void CreatePublisherResponse::set_bcb_fd_index(::int32_t value) { _internal_set_bcb_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.bcb_fd_index) } inline ::int32_t CreatePublisherResponse::_internal_bcb_fd_index() const { @@ -15663,6 +16542,8 @@ inline void CreatePublisherResponse::_internal_set_bcb_fd_index(::int32_t value) inline void CreatePublisherResponse::clear_pub_poll_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pub_poll_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::int32_t CreatePublisherResponse::pub_poll_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.pub_poll_fd_index) @@ -15670,6 +16551,7 @@ inline ::int32_t CreatePublisherResponse::pub_poll_fd_index() const { } inline void CreatePublisherResponse::set_pub_poll_fd_index(::int32_t value) { _internal_set_pub_poll_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.pub_poll_fd_index) } inline ::int32_t CreatePublisherResponse::_internal_pub_poll_fd_index() const { @@ -15685,6 +16567,8 @@ inline void CreatePublisherResponse::_internal_set_pub_poll_fd_index(::int32_t v inline void CreatePublisherResponse::clear_pub_trigger_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pub_trigger_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::int32_t CreatePublisherResponse::pub_trigger_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.pub_trigger_fd_index) @@ -15692,6 +16576,7 @@ inline ::int32_t CreatePublisherResponse::pub_trigger_fd_index() const { } inline void CreatePublisherResponse::set_pub_trigger_fd_index(::int32_t value) { _internal_set_pub_trigger_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.pub_trigger_fd_index) } inline ::int32_t CreatePublisherResponse::_internal_pub_trigger_fd_index() const { @@ -15713,6 +16598,8 @@ inline int CreatePublisherResponse::sub_trigger_fd_indexes_size() const { inline void CreatePublisherResponse::clear_sub_trigger_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sub_trigger_fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::int32_t CreatePublisherResponse::sub_trigger_fd_indexes(int index) const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) @@ -15725,6 +16612,7 @@ inline void CreatePublisherResponse::set_sub_trigger_fd_indexes(int index, ::int inline void CreatePublisherResponse::add_sub_trigger_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_sub_trigger_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) } inline const ::google::protobuf::RepeatedField<::int32_t>& CreatePublisherResponse::sub_trigger_fd_indexes() const @@ -15732,8 +16620,9 @@ inline const ::google::protobuf::RepeatedField<::int32_t>& CreatePublisherRespon // @@protoc_insertion_point(field_list:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) return _internal_sub_trigger_fd_indexes(); } -inline ::google::protobuf::RepeatedField<::int32_t>* CreatePublisherResponse::mutable_sub_trigger_fd_indexes() +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreatePublisherResponse::mutable_sub_trigger_fd_indexes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_sub_trigger_fd_indexes(); @@ -15743,7 +16632,8 @@ CreatePublisherResponse::_internal_sub_trigger_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sub_trigger_fd_indexes_; } -inline ::google::protobuf::RepeatedField<::int32_t>* CreatePublisherResponse::_internal_mutable_sub_trigger_fd_indexes() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +CreatePublisherResponse::_internal_mutable_sub_trigger_fd_indexes() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.sub_trigger_fd_indexes_; } @@ -15752,6 +16642,8 @@ inline ::google::protobuf::RepeatedField<::int32_t>* CreatePublisherResponse::_i inline void CreatePublisherResponse::clear_num_sub_updates() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_sub_updates_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::int32_t CreatePublisherResponse::num_sub_updates() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.num_sub_updates) @@ -15759,6 +16651,7 @@ inline ::int32_t CreatePublisherResponse::num_sub_updates() const { } inline void CreatePublisherResponse::set_num_sub_updates(::int32_t value) { _internal_set_num_sub_updates(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.num_sub_updates) } inline ::int32_t CreatePublisherResponse::_internal_num_sub_updates() const { @@ -15774,43 +16667,60 @@ inline void CreatePublisherResponse::_internal_set_num_sub_updates(::int32_t val inline void CreatePublisherResponse::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& CreatePublisherResponse::type() const +inline const ::std::string& CreatePublisherResponse::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void CreatePublisherResponse::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreatePublisherResponse::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.type) } -inline std::string* CreatePublisherResponse::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherResponse.type) return _s; } -inline const std::string& CreatePublisherResponse::_internal_type() const { +inline const ::std::string& CreatePublisherResponse::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void CreatePublisherResponse::_internal_set_type(const std::string& value) { +inline void CreatePublisherResponse::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* CreatePublisherResponse::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* CreatePublisherResponse::release_type() { +inline ::std::string* PROTOBUF_NULLABLE CreatePublisherResponse::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreatePublisherResponse.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void CreatePublisherResponse::set_allocated_type(std::string* value) { +inline void CreatePublisherResponse::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -15822,6 +16732,8 @@ inline void CreatePublisherResponse::set_allocated_type(std::string* value) { inline void CreatePublisherResponse::clear_vchan_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vchan_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::int32_t CreatePublisherResponse::vchan_id() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.vchan_id) @@ -15829,6 +16741,7 @@ inline ::int32_t CreatePublisherResponse::vchan_id() const { } inline void CreatePublisherResponse::set_vchan_id(::int32_t value) { _internal_set_vchan_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.vchan_id) } inline ::int32_t CreatePublisherResponse::_internal_vchan_id() const { @@ -15844,6 +16757,8 @@ inline void CreatePublisherResponse::_internal_set_vchan_id(::int32_t value) { inline void CreatePublisherResponse::clear_retirement_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.retirement_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::int32_t CreatePublisherResponse::retirement_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.retirement_fd_index) @@ -15851,6 +16766,7 @@ inline ::int32_t CreatePublisherResponse::retirement_fd_index() const { } inline void CreatePublisherResponse::set_retirement_fd_index(::int32_t value) { _internal_set_retirement_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.retirement_fd_index) } inline ::int32_t CreatePublisherResponse::_internal_retirement_fd_index() const { @@ -15872,6 +16788,8 @@ inline int CreatePublisherResponse::retirement_fd_indexes_size() const { inline void CreatePublisherResponse::clear_retirement_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.retirement_fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t CreatePublisherResponse::retirement_fd_indexes(int index) const { // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.retirement_fd_indexes) @@ -15884,6 +16802,7 @@ inline void CreatePublisherResponse::set_retirement_fd_indexes(int index, ::int3 inline void CreatePublisherResponse::add_retirement_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_retirement_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:subspace.CreatePublisherResponse.retirement_fd_indexes) } inline const ::google::protobuf::RepeatedField<::int32_t>& CreatePublisherResponse::retirement_fd_indexes() const @@ -15891,8 +16810,9 @@ inline const ::google::protobuf::RepeatedField<::int32_t>& CreatePublisherRespon // @@protoc_insertion_point(field_list:subspace.CreatePublisherResponse.retirement_fd_indexes) return _internal_retirement_fd_indexes(); } -inline ::google::protobuf::RepeatedField<::int32_t>* CreatePublisherResponse::mutable_retirement_fd_indexes() +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreatePublisherResponse::mutable_retirement_fd_indexes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:subspace.CreatePublisherResponse.retirement_fd_indexes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_retirement_fd_indexes(); @@ -15902,7 +16822,8 @@ CreatePublisherResponse::_internal_retirement_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.retirement_fd_indexes_; } -inline ::google::protobuf::RepeatedField<::int32_t>* CreatePublisherResponse::_internal_mutable_retirement_fd_indexes() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +CreatePublisherResponse::_internal_mutable_retirement_fd_indexes() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.retirement_fd_indexes_; } @@ -15915,43 +16836,60 @@ inline ::google::protobuf::RepeatedField<::int32_t>* CreatePublisherResponse::_i inline void CreateSubscriberRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& CreateSubscriberRequest::channel_name() const +inline const ::std::string& CreateSubscriberRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.channel_name) } -inline std::string* CreateSubscriberRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberRequest.channel_name) return _s; } -inline const std::string& CreateSubscriberRequest::_internal_channel_name() const { +inline const ::std::string& CreateSubscriberRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void CreateSubscriberRequest::_internal_set_channel_name(const std::string& value) { +inline void CreateSubscriberRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* CreateSubscriberRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* CreateSubscriberRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreateSubscriberRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void CreateSubscriberRequest::set_allocated_channel_name(std::string* value) { +inline void CreateSubscriberRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -15963,6 +16901,8 @@ inline void CreateSubscriberRequest::set_allocated_channel_name(std::string* val inline void CreateSubscriberRequest::clear_subscriber_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.subscriber_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t CreateSubscriberRequest::subscriber_id() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.subscriber_id) @@ -15970,6 +16910,7 @@ inline ::int32_t CreateSubscriberRequest::subscriber_id() const { } inline void CreateSubscriberRequest::set_subscriber_id(::int32_t value) { _internal_set_subscriber_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.subscriber_id) } inline ::int32_t CreateSubscriberRequest::_internal_subscriber_id() const { @@ -15985,6 +16926,8 @@ inline void CreateSubscriberRequest::_internal_set_subscriber_id(::int32_t value inline void CreateSubscriberRequest::clear_is_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool CreateSubscriberRequest::is_reliable() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.is_reliable) @@ -15992,6 +16935,7 @@ inline bool CreateSubscriberRequest::is_reliable() const { } inline void CreateSubscriberRequest::set_is_reliable(bool value) { _internal_set_is_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.is_reliable) } inline bool CreateSubscriberRequest::_internal_is_reliable() const { @@ -16007,6 +16951,8 @@ inline void CreateSubscriberRequest::_internal_set_is_reliable(bool value) { inline void CreateSubscriberRequest::clear_is_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool CreateSubscriberRequest::is_bridge() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.is_bridge) @@ -16014,6 +16960,7 @@ inline bool CreateSubscriberRequest::is_bridge() const { } inline void CreateSubscriberRequest::set_is_bridge(bool value) { _internal_set_is_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.is_bridge) } inline bool CreateSubscriberRequest::_internal_is_bridge() const { @@ -16029,43 +16976,60 @@ inline void CreateSubscriberRequest::_internal_set_is_bridge(bool value) { inline void CreateSubscriberRequest::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& CreateSubscriberRequest::type() const +inline const ::std::string& CreateSubscriberRequest::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.type) } -inline std::string* CreateSubscriberRequest::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberRequest.type) return _s; } -inline const std::string& CreateSubscriberRequest::_internal_type() const { +inline const ::std::string& CreateSubscriberRequest::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void CreateSubscriberRequest::_internal_set_type(const std::string& value) { +inline void CreateSubscriberRequest::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* CreateSubscriberRequest::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* CreateSubscriberRequest::release_type() { +inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberRequest::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreateSubscriberRequest.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void CreateSubscriberRequest::set_allocated_type(std::string* value) { +inline void CreateSubscriberRequest::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -16077,6 +17041,8 @@ inline void CreateSubscriberRequest::set_allocated_type(std::string* value) { inline void CreateSubscriberRequest::clear_max_active_messages() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_active_messages_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::int32_t CreateSubscriberRequest::max_active_messages() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.max_active_messages) @@ -16084,6 +17050,7 @@ inline ::int32_t CreateSubscriberRequest::max_active_messages() const { } inline void CreateSubscriberRequest::set_max_active_messages(::int32_t value) { _internal_set_max_active_messages(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.max_active_messages) } inline ::int32_t CreateSubscriberRequest::_internal_max_active_messages() const { @@ -16099,6 +17066,8 @@ inline void CreateSubscriberRequest::_internal_set_max_active_messages(::int32_t inline void CreateSubscriberRequest::clear_for_tunnel() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.for_tunnel_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool CreateSubscriberRequest::for_tunnel() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.for_tunnel) @@ -16106,6 +17075,7 @@ inline bool CreateSubscriberRequest::for_tunnel() const { } inline void CreateSubscriberRequest::set_for_tunnel(bool value) { _internal_set_for_tunnel(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.for_tunnel) } inline bool CreateSubscriberRequest::_internal_for_tunnel() const { @@ -16121,43 +17091,60 @@ inline void CreateSubscriberRequest::_internal_set_for_tunnel(bool value) { inline void CreateSubscriberRequest::clear_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& CreateSubscriberRequest::mux() const +inline const ::std::string& CreateSubscriberRequest::mux() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.mux) return _internal_mux(); } template -inline PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_mux(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_mux(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.mux_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.mux) } -inline std::string* CreateSubscriberRequest::mutable_mux() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mux(); +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::mutable_mux() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_mux(); // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberRequest.mux) return _s; } -inline const std::string& CreateSubscriberRequest::_internal_mux() const { +inline const ::std::string& CreateSubscriberRequest::_internal_mux() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mux_.Get(); } -inline void CreateSubscriberRequest::_internal_set_mux(const std::string& value) { +inline void CreateSubscriberRequest::_internal_set_mux(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.Set(value, GetArena()); } -inline std::string* CreateSubscriberRequest::_internal_mutable_mux() { +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::_internal_mutable_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.mux_.Mutable( GetArena()); } -inline std::string* CreateSubscriberRequest::release_mux() { +inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberRequest::release_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreateSubscriberRequest.mux) - return _impl_.mux_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.mux_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mux_.Set("", GetArena()); + } + return released; } -inline void CreateSubscriberRequest::set_allocated_mux(std::string* value) { +inline void CreateSubscriberRequest::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } _impl_.mux_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { _impl_.mux_.Set("", GetArena()); @@ -16169,6 +17156,8 @@ inline void CreateSubscriberRequest::set_allocated_mux(std::string* value) { inline void CreateSubscriberRequest::clear_vchan_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vchan_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::int32_t CreateSubscriberRequest::vchan_id() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.vchan_id) @@ -16176,6 +17165,7 @@ inline ::int32_t CreateSubscriberRequest::vchan_id() const { } inline void CreateSubscriberRequest::set_vchan_id(::int32_t value) { _internal_set_vchan_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.vchan_id) } inline ::int32_t CreateSubscriberRequest::_internal_vchan_id() const { @@ -16195,43 +17185,60 @@ inline void CreateSubscriberRequest::_internal_set_vchan_id(::int32_t value) { inline void CreateSubscriberResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& CreateSubscriberResponse::error() const +inline const ::std::string& CreateSubscriberResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void CreateSubscriberResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreateSubscriberResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.error) } -inline std::string* CreateSubscriberResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberResponse.error) return _s; } -inline const std::string& CreateSubscriberResponse::_internal_error() const { +inline const ::std::string& CreateSubscriberResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void CreateSubscriberResponse::_internal_set_error(const std::string& value) { +inline void CreateSubscriberResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* CreateSubscriberResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* CreateSubscriberResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreateSubscriberResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void CreateSubscriberResponse::set_allocated_error(std::string* value) { +inline void CreateSubscriberResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -16243,6 +17250,8 @@ inline void CreateSubscriberResponse::set_allocated_error(std::string* value) { inline void CreateSubscriberResponse::clear_channel_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t CreateSubscriberResponse::channel_id() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.channel_id) @@ -16250,6 +17259,7 @@ inline ::int32_t CreateSubscriberResponse::channel_id() const { } inline void CreateSubscriberResponse::set_channel_id(::int32_t value) { _internal_set_channel_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.channel_id) } inline ::int32_t CreateSubscriberResponse::_internal_channel_id() const { @@ -16265,6 +17275,8 @@ inline void CreateSubscriberResponse::_internal_set_channel_id(::int32_t value) inline void CreateSubscriberResponse::clear_subscriber_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.subscriber_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::int32_t CreateSubscriberResponse::subscriber_id() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.subscriber_id) @@ -16272,6 +17284,7 @@ inline ::int32_t CreateSubscriberResponse::subscriber_id() const { } inline void CreateSubscriberResponse::set_subscriber_id(::int32_t value) { _internal_set_subscriber_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.subscriber_id) } inline ::int32_t CreateSubscriberResponse::_internal_subscriber_id() const { @@ -16287,6 +17300,8 @@ inline void CreateSubscriberResponse::_internal_set_subscriber_id(::int32_t valu inline void CreateSubscriberResponse::clear_ccb_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ccb_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::int32_t CreateSubscriberResponse::ccb_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.ccb_fd_index) @@ -16294,6 +17309,7 @@ inline ::int32_t CreateSubscriberResponse::ccb_fd_index() const { } inline void CreateSubscriberResponse::set_ccb_fd_index(::int32_t value) { _internal_set_ccb_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.ccb_fd_index) } inline ::int32_t CreateSubscriberResponse::_internal_ccb_fd_index() const { @@ -16309,6 +17325,8 @@ inline void CreateSubscriberResponse::_internal_set_ccb_fd_index(::int32_t value inline void CreateSubscriberResponse::clear_bcb_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.bcb_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::int32_t CreateSubscriberResponse::bcb_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.bcb_fd_index) @@ -16316,6 +17334,7 @@ inline ::int32_t CreateSubscriberResponse::bcb_fd_index() const { } inline void CreateSubscriberResponse::set_bcb_fd_index(::int32_t value) { _internal_set_bcb_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.bcb_fd_index) } inline ::int32_t CreateSubscriberResponse::_internal_bcb_fd_index() const { @@ -16331,6 +17350,8 @@ inline void CreateSubscriberResponse::_internal_set_bcb_fd_index(::int32_t value inline void CreateSubscriberResponse::clear_trigger_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.trigger_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::int32_t CreateSubscriberResponse::trigger_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.trigger_fd_index) @@ -16338,6 +17359,7 @@ inline ::int32_t CreateSubscriberResponse::trigger_fd_index() const { } inline void CreateSubscriberResponse::set_trigger_fd_index(::int32_t value) { _internal_set_trigger_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.trigger_fd_index) } inline ::int32_t CreateSubscriberResponse::_internal_trigger_fd_index() const { @@ -16353,6 +17375,8 @@ inline void CreateSubscriberResponse::_internal_set_trigger_fd_index(::int32_t v inline void CreateSubscriberResponse::clear_poll_fd_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.poll_fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::int32_t CreateSubscriberResponse::poll_fd_index() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.poll_fd_index) @@ -16360,6 +17384,7 @@ inline ::int32_t CreateSubscriberResponse::poll_fd_index() const { } inline void CreateSubscriberResponse::set_poll_fd_index(::int32_t value) { _internal_set_poll_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.poll_fd_index) } inline ::int32_t CreateSubscriberResponse::_internal_poll_fd_index() const { @@ -16375,6 +17400,8 @@ inline void CreateSubscriberResponse::_internal_set_poll_fd_index(::int32_t valu inline void CreateSubscriberResponse::clear_slot_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::int32_t CreateSubscriberResponse::slot_size() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.slot_size) @@ -16382,6 +17409,7 @@ inline ::int32_t CreateSubscriberResponse::slot_size() const { } inline void CreateSubscriberResponse::set_slot_size(::int32_t value) { _internal_set_slot_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.slot_size) } inline ::int32_t CreateSubscriberResponse::_internal_slot_size() const { @@ -16397,6 +17425,8 @@ inline void CreateSubscriberResponse::_internal_set_slot_size(::int32_t value) { inline void CreateSubscriberResponse::clear_num_slots() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_slots_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::int32_t CreateSubscriberResponse::num_slots() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.num_slots) @@ -16404,6 +17434,7 @@ inline ::int32_t CreateSubscriberResponse::num_slots() const { } inline void CreateSubscriberResponse::set_num_slots(::int32_t value) { _internal_set_num_slots(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.num_slots) } inline ::int32_t CreateSubscriberResponse::_internal_num_slots() const { @@ -16425,6 +17456,8 @@ inline int CreateSubscriberResponse::reliable_pub_trigger_fd_indexes_size() cons inline void CreateSubscriberResponse::clear_reliable_pub_trigger_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reliable_pub_trigger_fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::int32_t CreateSubscriberResponse::reliable_pub_trigger_fd_indexes(int index) const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) @@ -16437,6 +17470,7 @@ inline void CreateSubscriberResponse::set_reliable_pub_trigger_fd_indexes(int in inline void CreateSubscriberResponse::add_reliable_pub_trigger_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_reliable_pub_trigger_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) } inline const ::google::protobuf::RepeatedField<::int32_t>& CreateSubscriberResponse::reliable_pub_trigger_fd_indexes() const @@ -16444,8 +17478,9 @@ inline const ::google::protobuf::RepeatedField<::int32_t>& CreateSubscriberRespo // @@protoc_insertion_point(field_list:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) return _internal_reliable_pub_trigger_fd_indexes(); } -inline ::google::protobuf::RepeatedField<::int32_t>* CreateSubscriberResponse::mutable_reliable_pub_trigger_fd_indexes() +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_reliable_pub_trigger_fd_indexes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_reliable_pub_trigger_fd_indexes(); @@ -16455,7 +17490,8 @@ CreateSubscriberResponse::_internal_reliable_pub_trigger_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.reliable_pub_trigger_fd_indexes_; } -inline ::google::protobuf::RepeatedField<::int32_t>* CreateSubscriberResponse::_internal_mutable_reliable_pub_trigger_fd_indexes() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +CreateSubscriberResponse::_internal_mutable_reliable_pub_trigger_fd_indexes() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.reliable_pub_trigger_fd_indexes_; } @@ -16464,6 +17500,8 @@ inline ::google::protobuf::RepeatedField<::int32_t>* CreateSubscriberResponse::_ inline void CreateSubscriberResponse::clear_num_pub_updates() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_pub_updates_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::int32_t CreateSubscriberResponse::num_pub_updates() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.num_pub_updates) @@ -16471,6 +17509,7 @@ inline ::int32_t CreateSubscriberResponse::num_pub_updates() const { } inline void CreateSubscriberResponse::set_num_pub_updates(::int32_t value) { _internal_set_num_pub_updates(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.num_pub_updates) } inline ::int32_t CreateSubscriberResponse::_internal_num_pub_updates() const { @@ -16486,43 +17525,60 @@ inline void CreateSubscriberResponse::_internal_set_num_pub_updates(::int32_t va inline void CreateSubscriberResponse::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& CreateSubscriberResponse::type() const +inline const ::std::string& CreateSubscriberResponse::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void CreateSubscriberResponse::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void CreateSubscriberResponse::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.type) } -inline std::string* CreateSubscriberResponse::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberResponse.type) return _s; } -inline const std::string& CreateSubscriberResponse::_internal_type() const { +inline const ::std::string& CreateSubscriberResponse::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void CreateSubscriberResponse::_internal_set_type(const std::string& value) { +inline void CreateSubscriberResponse::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* CreateSubscriberResponse::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* CreateSubscriberResponse::release_type() { +inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberResponse::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.CreateSubscriberResponse.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void CreateSubscriberResponse::set_allocated_type(std::string* value) { +inline void CreateSubscriberResponse::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -16534,6 +17590,8 @@ inline void CreateSubscriberResponse::set_allocated_type(std::string* value) { inline void CreateSubscriberResponse::clear_vchan_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vchan_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline ::int32_t CreateSubscriberResponse::vchan_id() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.vchan_id) @@ -16541,6 +17599,7 @@ inline ::int32_t CreateSubscriberResponse::vchan_id() const { } inline void CreateSubscriberResponse::set_vchan_id(::int32_t value) { _internal_set_vchan_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.vchan_id) } inline ::int32_t CreateSubscriberResponse::_internal_vchan_id() const { @@ -16562,6 +17621,8 @@ inline int CreateSubscriberResponse::retirement_fd_indexes_size() const { inline void CreateSubscriberResponse::clear_retirement_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.retirement_fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t CreateSubscriberResponse::retirement_fd_indexes(int index) const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.retirement_fd_indexes) @@ -16574,6 +17635,7 @@ inline void CreateSubscriberResponse::set_retirement_fd_indexes(int index, ::int inline void CreateSubscriberResponse::add_retirement_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_retirement_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:subspace.CreateSubscriberResponse.retirement_fd_indexes) } inline const ::google::protobuf::RepeatedField<::int32_t>& CreateSubscriberResponse::retirement_fd_indexes() const @@ -16581,8 +17643,9 @@ inline const ::google::protobuf::RepeatedField<::int32_t>& CreateSubscriberRespo // @@protoc_insertion_point(field_list:subspace.CreateSubscriberResponse.retirement_fd_indexes) return _internal_retirement_fd_indexes(); } -inline ::google::protobuf::RepeatedField<::int32_t>* CreateSubscriberResponse::mutable_retirement_fd_indexes() +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_retirement_fd_indexes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:subspace.CreateSubscriberResponse.retirement_fd_indexes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_retirement_fd_indexes(); @@ -16592,7 +17655,8 @@ CreateSubscriberResponse::_internal_retirement_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.retirement_fd_indexes_; } -inline ::google::protobuf::RepeatedField<::int32_t>* CreateSubscriberResponse::_internal_mutable_retirement_fd_indexes() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +CreateSubscriberResponse::_internal_mutable_retirement_fd_indexes() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.retirement_fd_indexes_; } @@ -16601,6 +17665,8 @@ inline ::google::protobuf::RepeatedField<::int32_t>* CreateSubscriberResponse::_ inline void CreateSubscriberResponse::clear_checksum_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.checksum_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } inline ::int32_t CreateSubscriberResponse::checksum_size() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.checksum_size) @@ -16608,6 +17674,7 @@ inline ::int32_t CreateSubscriberResponse::checksum_size() const { } inline void CreateSubscriberResponse::set_checksum_size(::int32_t value) { _internal_set_checksum_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.checksum_size) } inline ::int32_t CreateSubscriberResponse::_internal_checksum_size() const { @@ -16623,6 +17690,8 @@ inline void CreateSubscriberResponse::_internal_set_checksum_size(::int32_t valu inline void CreateSubscriberResponse::clear_metadata_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.metadata_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); } inline ::int32_t CreateSubscriberResponse::metadata_size() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.metadata_size) @@ -16630,6 +17699,7 @@ inline ::int32_t CreateSubscriberResponse::metadata_size() const { } inline void CreateSubscriberResponse::set_metadata_size(::int32_t value) { _internal_set_metadata_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00008000U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.metadata_size) } inline ::int32_t CreateSubscriberResponse::_internal_metadata_size() const { @@ -16645,6 +17715,8 @@ inline void CreateSubscriberResponse::_internal_set_metadata_size(::int32_t valu inline void CreateSubscriberResponse::clear_use_split_buffers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.use_split_buffers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00010000U); } inline bool CreateSubscriberResponse::use_split_buffers() const { // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.use_split_buffers) @@ -16652,6 +17724,7 @@ inline bool CreateSubscriberResponse::use_split_buffers() const { } inline void CreateSubscriberResponse::set_use_split_buffers(bool value) { _internal_set_use_split_buffers(value); + SetHasBit(_impl_._has_bits_[0], 0x00010000U); // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.use_split_buffers) } inline bool CreateSubscriberResponse::_internal_use_split_buffers() const { @@ -16671,43 +17744,60 @@ inline void CreateSubscriberResponse::_internal_set_use_split_buffers(bool value inline void GetTriggersRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& GetTriggersRequest::channel_name() const +inline const ::std::string& GetTriggersRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.GetTriggersRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTriggersRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void GetTriggersRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.GetTriggersRequest.channel_name) } -inline std::string* GetTriggersRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL GetTriggersRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.GetTriggersRequest.channel_name) return _s; } -inline const std::string& GetTriggersRequest::_internal_channel_name() const { +inline const ::std::string& GetTriggersRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void GetTriggersRequest::_internal_set_channel_name(const std::string& value) { +inline void GetTriggersRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* GetTriggersRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL GetTriggersRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* GetTriggersRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE GetTriggersRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.GetTriggersRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void GetTriggersRequest::set_allocated_channel_name(std::string* value) { +inline void GetTriggersRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -16723,43 +17813,60 @@ inline void GetTriggersRequest::set_allocated_channel_name(std::string* value) { inline void GetTriggersResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& GetTriggersResponse::error() const +inline const ::std::string& GetTriggersResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void GetTriggersResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void GetTriggersResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.GetTriggersResponse.error) } -inline std::string* GetTriggersResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL GetTriggersResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.GetTriggersResponse.error) return _s; } -inline const std::string& GetTriggersResponse::_internal_error() const { +inline const ::std::string& GetTriggersResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void GetTriggersResponse::_internal_set_error(const std::string& value) { +inline void GetTriggersResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* GetTriggersResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL GetTriggersResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* GetTriggersResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE GetTriggersResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.GetTriggersResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void GetTriggersResponse::set_allocated_error(std::string* value) { +inline void GetTriggersResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -16777,6 +17884,8 @@ inline int GetTriggersResponse::reliable_pub_trigger_fd_indexes_size() const { inline void GetTriggersResponse::clear_reliable_pub_trigger_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reliable_pub_trigger_fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } inline ::int32_t GetTriggersResponse::reliable_pub_trigger_fd_indexes(int index) const { // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) @@ -16789,6 +17898,7 @@ inline void GetTriggersResponse::set_reliable_pub_trigger_fd_indexes(int index, inline void GetTriggersResponse::add_reliable_pub_trigger_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_reliable_pub_trigger_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) } inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse::reliable_pub_trigger_fd_indexes() const @@ -16796,8 +17906,9 @@ inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse:: // @@protoc_insertion_point(field_list:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) return _internal_reliable_pub_trigger_fd_indexes(); } -inline ::google::protobuf::RepeatedField<::int32_t>* GetTriggersResponse::mutable_reliable_pub_trigger_fd_indexes() +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetTriggersResponse::mutable_reliable_pub_trigger_fd_indexes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_reliable_pub_trigger_fd_indexes(); @@ -16807,7 +17918,8 @@ GetTriggersResponse::_internal_reliable_pub_trigger_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.reliable_pub_trigger_fd_indexes_; } -inline ::google::protobuf::RepeatedField<::int32_t>* GetTriggersResponse::_internal_mutable_reliable_pub_trigger_fd_indexes() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +GetTriggersResponse::_internal_mutable_reliable_pub_trigger_fd_indexes() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.reliable_pub_trigger_fd_indexes_; } @@ -16822,6 +17934,8 @@ inline int GetTriggersResponse::sub_trigger_fd_indexes_size() const { inline void GetTriggersResponse::clear_sub_trigger_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.sub_trigger_fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t GetTriggersResponse::sub_trigger_fd_indexes(int index) const { // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.sub_trigger_fd_indexes) @@ -16834,6 +17948,7 @@ inline void GetTriggersResponse::set_sub_trigger_fd_indexes(int index, ::int32_t inline void GetTriggersResponse::add_sub_trigger_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_sub_trigger_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:subspace.GetTriggersResponse.sub_trigger_fd_indexes) } inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse::sub_trigger_fd_indexes() const @@ -16841,8 +17956,9 @@ inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse:: // @@protoc_insertion_point(field_list:subspace.GetTriggersResponse.sub_trigger_fd_indexes) return _internal_sub_trigger_fd_indexes(); } -inline ::google::protobuf::RepeatedField<::int32_t>* GetTriggersResponse::mutable_sub_trigger_fd_indexes() +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetTriggersResponse::mutable_sub_trigger_fd_indexes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:subspace.GetTriggersResponse.sub_trigger_fd_indexes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_sub_trigger_fd_indexes(); @@ -16852,7 +17968,8 @@ GetTriggersResponse::_internal_sub_trigger_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.sub_trigger_fd_indexes_; } -inline ::google::protobuf::RepeatedField<::int32_t>* GetTriggersResponse::_internal_mutable_sub_trigger_fd_indexes() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +GetTriggersResponse::_internal_mutable_sub_trigger_fd_indexes() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.sub_trigger_fd_indexes_; } @@ -16867,6 +17984,8 @@ inline int GetTriggersResponse::retirement_fd_indexes_size() const { inline void GetTriggersResponse::clear_retirement_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.retirement_fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t GetTriggersResponse::retirement_fd_indexes(int index) const { // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.retirement_fd_indexes) @@ -16879,6 +17998,7 @@ inline void GetTriggersResponse::set_retirement_fd_indexes(int index, ::int32_t inline void GetTriggersResponse::add_retirement_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); _internal_mutable_retirement_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:subspace.GetTriggersResponse.retirement_fd_indexes) } inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse::retirement_fd_indexes() const @@ -16886,8 +18006,9 @@ inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse:: // @@protoc_insertion_point(field_list:subspace.GetTriggersResponse.retirement_fd_indexes) return _internal_retirement_fd_indexes(); } -inline ::google::protobuf::RepeatedField<::int32_t>* GetTriggersResponse::mutable_retirement_fd_indexes() +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetTriggersResponse::mutable_retirement_fd_indexes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:subspace.GetTriggersResponse.retirement_fd_indexes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_retirement_fd_indexes(); @@ -16897,7 +18018,8 @@ GetTriggersResponse::_internal_retirement_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.retirement_fd_indexes_; } -inline ::google::protobuf::RepeatedField<::int32_t>* GetTriggersResponse::_internal_mutable_retirement_fd_indexes() { +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +GetTriggersResponse::_internal_mutable_retirement_fd_indexes() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.retirement_fd_indexes_; } @@ -16910,43 +18032,60 @@ inline ::google::protobuf::RepeatedField<::int32_t>* GetTriggersResponse::_inter inline void RemovePublisherRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RemovePublisherRequest::channel_name() const +inline const ::std::string& RemovePublisherRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RemovePublisherRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void RemovePublisherRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RemovePublisherRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RemovePublisherRequest.channel_name) } -inline std::string* RemovePublisherRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL RemovePublisherRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.RemovePublisherRequest.channel_name) return _s; } -inline const std::string& RemovePublisherRequest::_internal_channel_name() const { +inline const ::std::string& RemovePublisherRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void RemovePublisherRequest::_internal_set_channel_name(const std::string& value) { +inline void RemovePublisherRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* RemovePublisherRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL RemovePublisherRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* RemovePublisherRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE RemovePublisherRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RemovePublisherRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void RemovePublisherRequest::set_allocated_channel_name(std::string* value) { +inline void RemovePublisherRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -16958,6 +18097,8 @@ inline void RemovePublisherRequest::set_allocated_channel_name(std::string* valu inline void RemovePublisherRequest::clear_publisher_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.publisher_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t RemovePublisherRequest::publisher_id() const { // @@protoc_insertion_point(field_get:subspace.RemovePublisherRequest.publisher_id) @@ -16965,6 +18106,7 @@ inline ::int32_t RemovePublisherRequest::publisher_id() const { } inline void RemovePublisherRequest::set_publisher_id(::int32_t value) { _internal_set_publisher_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.RemovePublisherRequest.publisher_id) } inline ::int32_t RemovePublisherRequest::_internal_publisher_id() const { @@ -16984,43 +18126,60 @@ inline void RemovePublisherRequest::_internal_set_publisher_id(::int32_t value) inline void RemovePublisherResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RemovePublisherResponse::error() const +inline const ::std::string& RemovePublisherResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RemovePublisherResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void RemovePublisherResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RemovePublisherResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RemovePublisherResponse.error) } -inline std::string* RemovePublisherResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL RemovePublisherResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.RemovePublisherResponse.error) return _s; } -inline const std::string& RemovePublisherResponse::_internal_error() const { +inline const ::std::string& RemovePublisherResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void RemovePublisherResponse::_internal_set_error(const std::string& value) { +inline void RemovePublisherResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* RemovePublisherResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL RemovePublisherResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* RemovePublisherResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE RemovePublisherResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RemovePublisherResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void RemovePublisherResponse::set_allocated_error(std::string* value) { +inline void RemovePublisherResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -17036,43 +18195,60 @@ inline void RemovePublisherResponse::set_allocated_error(std::string* value) { inline void RemoveSubscriberRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RemoveSubscriberRequest::channel_name() const +inline const ::std::string& RemoveSubscriberRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RemoveSubscriberRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void RemoveSubscriberRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RemoveSubscriberRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RemoveSubscriberRequest.channel_name) } -inline std::string* RemoveSubscriberRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.RemoveSubscriberRequest.channel_name) return _s; } -inline const std::string& RemoveSubscriberRequest::_internal_channel_name() const { +inline const ::std::string& RemoveSubscriberRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void RemoveSubscriberRequest::_internal_set_channel_name(const std::string& value) { +inline void RemoveSubscriberRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* RemoveSubscriberRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* RemoveSubscriberRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE RemoveSubscriberRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RemoveSubscriberRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void RemoveSubscriberRequest::set_allocated_channel_name(std::string* value) { +inline void RemoveSubscriberRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -17084,6 +18260,8 @@ inline void RemoveSubscriberRequest::set_allocated_channel_name(std::string* val inline void RemoveSubscriberRequest::clear_subscriber_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.subscriber_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t RemoveSubscriberRequest::subscriber_id() const { // @@protoc_insertion_point(field_get:subspace.RemoveSubscriberRequest.subscriber_id) @@ -17091,6 +18269,7 @@ inline ::int32_t RemoveSubscriberRequest::subscriber_id() const { } inline void RemoveSubscriberRequest::set_subscriber_id(::int32_t value) { _internal_set_subscriber_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.RemoveSubscriberRequest.subscriber_id) } inline ::int32_t RemoveSubscriberRequest::_internal_subscriber_id() const { @@ -17110,43 +18289,60 @@ inline void RemoveSubscriberRequest::_internal_set_subscriber_id(::int32_t value inline void RemoveSubscriberResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RemoveSubscriberResponse::error() const +inline const ::std::string& RemoveSubscriberResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RemoveSubscriberResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void RemoveSubscriberResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RemoveSubscriberResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RemoveSubscriberResponse.error) } -inline std::string* RemoveSubscriberResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.RemoveSubscriberResponse.error) return _s; } -inline const std::string& RemoveSubscriberResponse::_internal_error() const { +inline const ::std::string& RemoveSubscriberResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void RemoveSubscriberResponse::_internal_set_error(const std::string& value) { +inline void RemoveSubscriberResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* RemoveSubscriberResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* RemoveSubscriberResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE RemoveSubscriberResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RemoveSubscriberResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void RemoveSubscriberResponse::set_allocated_error(std::string* value) { +inline void RemoveSubscriberResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -17162,43 +18358,60 @@ inline void RemoveSubscriberResponse::set_allocated_error(std::string* value) { inline void GetChannelInfoRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& GetChannelInfoRequest::channel_name() const +inline const ::std::string& GetChannelInfoRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.GetChannelInfoRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void GetChannelInfoRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void GetChannelInfoRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.GetChannelInfoRequest.channel_name) } -inline std::string* GetChannelInfoRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL GetChannelInfoRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.GetChannelInfoRequest.channel_name) return _s; } -inline const std::string& GetChannelInfoRequest::_internal_channel_name() const { +inline const ::std::string& GetChannelInfoRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void GetChannelInfoRequest::_internal_set_channel_name(const std::string& value) { +inline void GetChannelInfoRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* GetChannelInfoRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL GetChannelInfoRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* GetChannelInfoRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE GetChannelInfoRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.GetChannelInfoRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void GetChannelInfoRequest::set_allocated_channel_name(std::string* value) { +inline void GetChannelInfoRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -17214,43 +18427,60 @@ inline void GetChannelInfoRequest::set_allocated_channel_name(std::string* value inline void GetChannelInfoResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& GetChannelInfoResponse::error() const +inline const ::std::string& GetChannelInfoResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.GetChannelInfoResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void GetChannelInfoResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void GetChannelInfoResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.GetChannelInfoResponse.error) } -inline std::string* GetChannelInfoResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL GetChannelInfoResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.GetChannelInfoResponse.error) return _s; } -inline const std::string& GetChannelInfoResponse::_internal_error() const { +inline const ::std::string& GetChannelInfoResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void GetChannelInfoResponse::_internal_set_error(const std::string& value) { +inline void GetChannelInfoResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* GetChannelInfoResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL GetChannelInfoResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* GetChannelInfoResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE GetChannelInfoResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.GetChannelInfoResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void GetChannelInfoResponse::set_allocated_error(std::string* value) { +inline void GetChannelInfoResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -17268,14 +18498,17 @@ inline int GetChannelInfoResponse::channels_size() const { inline void GetChannelInfoResponse::clear_channels() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::subspace::ChannelInfoProto* GetChannelInfoResponse::mutable_channels(int index) +inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL GetChannelInfoResponse::mutable_channels(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:subspace.GetChannelInfoResponse.channels) return _internal_mutable_channels()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* GetChannelInfoResponse::mutable_channels() +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL GetChannelInfoResponse::mutable_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.GetChannelInfoResponse.channels) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); @@ -17285,9 +18518,13 @@ inline const ::subspace::ChannelInfoProto& GetChannelInfoResponse::channels(int // @@protoc_insertion_point(field_get:subspace.GetChannelInfoResponse.channels) return _internal_channels().Get(index); } -inline ::subspace::ChannelInfoProto* GetChannelInfoResponse::add_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL GetChannelInfoResponse::add_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelInfoProto* _add = _internal_mutable_channels()->Add(); + ::subspace::ChannelInfoProto* _add = + _internal_mutable_channels()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.GetChannelInfoResponse.channels) return _add; } @@ -17301,7 +18538,7 @@ GetChannelInfoResponse::_internal_channels() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channels_; } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL GetChannelInfoResponse::_internal_mutable_channels() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.channels_; @@ -17315,43 +18552,60 @@ GetChannelInfoResponse::_internal_mutable_channels() { inline void GetChannelStatsRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& GetChannelStatsRequest::channel_name() const +inline const ::std::string& GetChannelStatsRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.GetChannelStatsRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void GetChannelStatsRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void GetChannelStatsRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.GetChannelStatsRequest.channel_name) } -inline std::string* GetChannelStatsRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL GetChannelStatsRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.GetChannelStatsRequest.channel_name) return _s; } -inline const std::string& GetChannelStatsRequest::_internal_channel_name() const { +inline const ::std::string& GetChannelStatsRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void GetChannelStatsRequest::_internal_set_channel_name(const std::string& value) { +inline void GetChannelStatsRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* GetChannelStatsRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL GetChannelStatsRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* GetChannelStatsRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE GetChannelStatsRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.GetChannelStatsRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void GetChannelStatsRequest::set_allocated_channel_name(std::string* value) { +inline void GetChannelStatsRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -17367,43 +18621,60 @@ inline void GetChannelStatsRequest::set_allocated_channel_name(std::string* valu inline void GetChannelStatsResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& GetChannelStatsResponse::error() const +inline const ::std::string& GetChannelStatsResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.GetChannelStatsResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void GetChannelStatsResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void GetChannelStatsResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.GetChannelStatsResponse.error) } -inline std::string* GetChannelStatsResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL GetChannelStatsResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.GetChannelStatsResponse.error) return _s; } -inline const std::string& GetChannelStatsResponse::_internal_error() const { +inline const ::std::string& GetChannelStatsResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void GetChannelStatsResponse::_internal_set_error(const std::string& value) { +inline void GetChannelStatsResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* GetChannelStatsResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL GetChannelStatsResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* GetChannelStatsResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE GetChannelStatsResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.GetChannelStatsResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void GetChannelStatsResponse::set_allocated_error(std::string* value) { +inline void GetChannelStatsResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -17421,14 +18692,17 @@ inline int GetChannelStatsResponse::channels_size() const { inline void GetChannelStatsResponse::clear_channels() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::subspace::ChannelStatsProto* GetChannelStatsResponse::mutable_channels(int index) +inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL GetChannelStatsResponse::mutable_channels(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:subspace.GetChannelStatsResponse.channels) return _internal_mutable_channels()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* GetChannelStatsResponse::mutable_channels() +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL GetChannelStatsResponse::mutable_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.GetChannelStatsResponse.channels) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); @@ -17438,9 +18712,13 @@ inline const ::subspace::ChannelStatsProto& GetChannelStatsResponse::channels(in // @@protoc_insertion_point(field_get:subspace.GetChannelStatsResponse.channels) return _internal_channels().Get(index); } -inline ::subspace::ChannelStatsProto* GetChannelStatsResponse::add_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL GetChannelStatsResponse::add_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelStatsProto* _add = _internal_mutable_channels()->Add(); + ::subspace::ChannelStatsProto* _add = + _internal_mutable_channels()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.GetChannelStatsResponse.channels) return _add; } @@ -17454,7 +18732,7 @@ GetChannelStatsResponse::_internal_channels() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channels_; } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL GetChannelStatsResponse::_internal_mutable_channels() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.channels_; @@ -17468,43 +18746,60 @@ GetChannelStatsResponse::_internal_mutable_channels() { inline void ClientBufferHandleMetadataProto::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ClientBufferHandleMetadataProto::channel_name() const +inline const ::std::string& ClientBufferHandleMetadataProto::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.channel_name) } -inline std::string* ClientBufferHandleMetadataProto::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.channel_name) return _s; } -inline const std::string& ClientBufferHandleMetadataProto::_internal_channel_name() const { +inline const ::std::string& ClientBufferHandleMetadataProto::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ClientBufferHandleMetadataProto::_internal_set_channel_name(const std::string& value) { +inline void ClientBufferHandleMetadataProto::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ClientBufferHandleMetadataProto::set_allocated_channel_name(std::string* value) { +inline void ClientBufferHandleMetadataProto::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -17516,6 +18811,8 @@ inline void ClientBufferHandleMetadataProto::set_allocated_channel_name(std::str inline void ClientBufferHandleMetadataProto::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::uint64_t ClientBufferHandleMetadataProto::session_id() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.session_id) @@ -17523,6 +18820,7 @@ inline ::uint64_t ClientBufferHandleMetadataProto::session_id() const { } inline void ClientBufferHandleMetadataProto::set_session_id(::uint64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.session_id) } inline ::uint64_t ClientBufferHandleMetadataProto::_internal_session_id() const { @@ -17538,6 +18836,8 @@ inline void ClientBufferHandleMetadataProto::_internal_set_session_id(::uint64_t inline void ClientBufferHandleMetadataProto::clear_buffer_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.buffer_index_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::uint32_t ClientBufferHandleMetadataProto::buffer_index() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.buffer_index) @@ -17545,6 +18845,7 @@ inline ::uint32_t ClientBufferHandleMetadataProto::buffer_index() const { } inline void ClientBufferHandleMetadataProto::set_buffer_index(::uint32_t value) { _internal_set_buffer_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.buffer_index) } inline ::uint32_t ClientBufferHandleMetadataProto::_internal_buffer_index() const { @@ -17560,6 +18861,8 @@ inline void ClientBufferHandleMetadataProto::_internal_set_buffer_index(::uint32 inline void ClientBufferHandleMetadataProto::clear_slot_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_id_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::uint32_t ClientBufferHandleMetadataProto::slot_id() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.slot_id) @@ -17567,6 +18870,7 @@ inline ::uint32_t ClientBufferHandleMetadataProto::slot_id() const { } inline void ClientBufferHandleMetadataProto::set_slot_id(::uint32_t value) { _internal_set_slot_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.slot_id) } inline ::uint32_t ClientBufferHandleMetadataProto::_internal_slot_id() const { @@ -17582,6 +18886,8 @@ inline void ClientBufferHandleMetadataProto::_internal_set_slot_id(::uint32_t va inline void ClientBufferHandleMetadataProto::clear_is_prefix() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_prefix_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline bool ClientBufferHandleMetadataProto::is_prefix() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.is_prefix) @@ -17589,6 +18895,7 @@ inline bool ClientBufferHandleMetadataProto::is_prefix() const { } inline void ClientBufferHandleMetadataProto::set_is_prefix(bool value) { _internal_set_is_prefix(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.is_prefix) } inline bool ClientBufferHandleMetadataProto::_internal_is_prefix() const { @@ -17604,6 +18911,8 @@ inline void ClientBufferHandleMetadataProto::_internal_set_is_prefix(bool value) inline void ClientBufferHandleMetadataProto::clear_full_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.full_size_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::uint64_t ClientBufferHandleMetadataProto::full_size() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.full_size) @@ -17611,6 +18920,7 @@ inline ::uint64_t ClientBufferHandleMetadataProto::full_size() const { } inline void ClientBufferHandleMetadataProto::set_full_size(::uint64_t value) { _internal_set_full_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.full_size) } inline ::uint64_t ClientBufferHandleMetadataProto::_internal_full_size() const { @@ -17626,6 +18936,8 @@ inline void ClientBufferHandleMetadataProto::_internal_set_full_size(::uint64_t inline void ClientBufferHandleMetadataProto::clear_allocation_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.allocation_size_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::uint64_t ClientBufferHandleMetadataProto::allocation_size() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.allocation_size) @@ -17633,6 +18945,7 @@ inline ::uint64_t ClientBufferHandleMetadataProto::allocation_size() const { } inline void ClientBufferHandleMetadataProto::set_allocation_size(::uint64_t value) { _internal_set_allocation_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.allocation_size) } inline ::uint64_t ClientBufferHandleMetadataProto::_internal_allocation_size() const { @@ -17648,6 +18961,8 @@ inline void ClientBufferHandleMetadataProto::_internal_set_allocation_size(::uin inline void ClientBufferHandleMetadataProto::clear_handle() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.handle_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::uint64_t ClientBufferHandleMetadataProto::handle() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.handle) @@ -17655,6 +18970,7 @@ inline ::uint64_t ClientBufferHandleMetadataProto::handle() const { } inline void ClientBufferHandleMetadataProto::set_handle(::uint64_t value) { _internal_set_handle(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.handle) } inline ::uint64_t ClientBufferHandleMetadataProto::_internal_handle() const { @@ -17670,43 +18986,60 @@ inline void ClientBufferHandleMetadataProto::_internal_set_handle(::uint64_t val inline void ClientBufferHandleMetadataProto::clear_shadow_file() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.shadow_file_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ClientBufferHandleMetadataProto::shadow_file() const +inline const ::std::string& ClientBufferHandleMetadataProto::shadow_file() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.shadow_file) return _internal_shadow_file(); } template -inline PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_shadow_file(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_shadow_file(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.shadow_file_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.shadow_file) } -inline std::string* ClientBufferHandleMetadataProto::mutable_shadow_file() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_shadow_file(); +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_shadow_file() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_shadow_file(); // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.shadow_file) return _s; } -inline const std::string& ClientBufferHandleMetadataProto::_internal_shadow_file() const { +inline const ::std::string& ClientBufferHandleMetadataProto::_internal_shadow_file() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.shadow_file_.Get(); } -inline void ClientBufferHandleMetadataProto::_internal_set_shadow_file(const std::string& value) { +inline void ClientBufferHandleMetadataProto::_internal_set_shadow_file(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.shadow_file_.Set(value, GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::_internal_mutable_shadow_file() { +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_shadow_file() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.shadow_file_.Mutable( GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::release_shadow_file() { +inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_shadow_file() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.shadow_file) - return _impl_.shadow_file_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.shadow_file_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.shadow_file_.Set("", GetArena()); + } + return released; } -inline void ClientBufferHandleMetadataProto::set_allocated_shadow_file(std::string* value) { +inline void ClientBufferHandleMetadataProto::set_allocated_shadow_file(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.shadow_file_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.shadow_file_.IsDefault()) { _impl_.shadow_file_.Set("", GetArena()); @@ -17718,43 +19051,60 @@ inline void ClientBufferHandleMetadataProto::set_allocated_shadow_file(std::stri inline void ClientBufferHandleMetadataProto::clear_object_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.object_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& ClientBufferHandleMetadataProto::object_name() const +inline const ::std::string& ClientBufferHandleMetadataProto::object_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.object_name) return _internal_object_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_object_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_object_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.object_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.object_name) } -inline std::string* ClientBufferHandleMetadataProto::mutable_object_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_object_name(); +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_object_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_object_name(); // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.object_name) return _s; } -inline const std::string& ClientBufferHandleMetadataProto::_internal_object_name() const { +inline const ::std::string& ClientBufferHandleMetadataProto::_internal_object_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.object_name_.Get(); } -inline void ClientBufferHandleMetadataProto::_internal_set_object_name(const std::string& value) { +inline void ClientBufferHandleMetadataProto::_internal_set_object_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.object_name_.Set(value, GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::_internal_mutable_object_name() { +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_object_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.object_name_.Mutable( GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::release_object_name() { +inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_object_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.object_name) - return _impl_.object_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.object_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.object_name_.Set("", GetArena()); + } + return released; } -inline void ClientBufferHandleMetadataProto::set_allocated_object_name(std::string* value) { +inline void ClientBufferHandleMetadataProto::set_allocated_object_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } _impl_.object_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.object_name_.IsDefault()) { _impl_.object_name_.Set("", GetArena()); @@ -17766,43 +19116,60 @@ inline void ClientBufferHandleMetadataProto::set_allocated_object_name(std::stri inline void ClientBufferHandleMetadataProto::clear_allocator() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.allocator_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } -inline const std::string& ClientBufferHandleMetadataProto::allocator() const +inline const ::std::string& ClientBufferHandleMetadataProto::allocator() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.allocator) return _internal_allocator(); } template -inline PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_allocator(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_allocator(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.allocator_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.allocator) } -inline std::string* ClientBufferHandleMetadataProto::mutable_allocator() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_allocator(); +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_allocator() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_allocator(); // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.allocator) return _s; } -inline const std::string& ClientBufferHandleMetadataProto::_internal_allocator() const { +inline const ::std::string& ClientBufferHandleMetadataProto::_internal_allocator() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.allocator_.Get(); } -inline void ClientBufferHandleMetadataProto::_internal_set_allocator(const std::string& value) { +inline void ClientBufferHandleMetadataProto::_internal_set_allocator(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.allocator_.Set(value, GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::_internal_mutable_allocator() { +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_allocator() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.allocator_.Mutable( GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::release_allocator() { +inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_allocator() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.allocator) - return _impl_.allocator_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + auto* released = _impl_.allocator_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.allocator_.Set("", GetArena()); + } + return released; } -inline void ClientBufferHandleMetadataProto::set_allocated_allocator(std::string* value) { +inline void ClientBufferHandleMetadataProto::set_allocated_allocator(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + } _impl_.allocator_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.allocator_.IsDefault()) { _impl_.allocator_.Set("", GetArena()); @@ -17814,43 +19181,60 @@ inline void ClientBufferHandleMetadataProto::set_allocated_allocator(std::string inline void ClientBufferHandleMetadataProto::clear_pool_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pool_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } -inline const std::string& ClientBufferHandleMetadataProto::pool_id() const +inline const ::std::string& ClientBufferHandleMetadataProto::pool_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.pool_id) return _internal_pool_id(); } template -inline PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_pool_id(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_pool_id(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); _impl_.pool_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.pool_id) } -inline std::string* ClientBufferHandleMetadataProto::mutable_pool_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_pool_id(); +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_pool_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::std::string* _s = _internal_mutable_pool_id(); // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.pool_id) return _s; } -inline const std::string& ClientBufferHandleMetadataProto::_internal_pool_id() const { +inline const ::std::string& ClientBufferHandleMetadataProto::_internal_pool_id() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.pool_id_.Get(); } -inline void ClientBufferHandleMetadataProto::_internal_set_pool_id(const std::string& value) { +inline void ClientBufferHandleMetadataProto::_internal_set_pool_id(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pool_id_.Set(value, GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::_internal_mutable_pool_id() { +inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_pool_id() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.pool_id_.Mutable( GetArena()); } -inline std::string* ClientBufferHandleMetadataProto::release_pool_id() { +inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_pool_id() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.pool_id) - return _impl_.pool_id_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + auto* released = _impl_.pool_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.pool_id_.Set("", GetArena()); + } + return released; } -inline void ClientBufferHandleMetadataProto::set_allocated_pool_id(std::string* value) { +inline void ClientBufferHandleMetadataProto::set_allocated_pool_id(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + } _impl_.pool_id_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pool_id_.IsDefault()) { _impl_.pool_id_.Set("", GetArena()); @@ -17862,6 +19246,8 @@ inline void ClientBufferHandleMetadataProto::set_allocated_pool_id(std::string* inline void ClientBufferHandleMetadataProto::clear_cache_enabled() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cache_enabled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline bool ClientBufferHandleMetadataProto::cache_enabled() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.cache_enabled) @@ -17869,6 +19255,7 @@ inline bool ClientBufferHandleMetadataProto::cache_enabled() const { } inline void ClientBufferHandleMetadataProto::set_cache_enabled(bool value) { _internal_set_cache_enabled(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.cache_enabled) } inline bool ClientBufferHandleMetadataProto::_internal_cache_enabled() const { @@ -17884,6 +19271,8 @@ inline void ClientBufferHandleMetadataProto::_internal_set_cache_enabled(bool va inline void ClientBufferHandleMetadataProto::clear_alignment() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.alignment_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } inline ::uint32_t ClientBufferHandleMetadataProto::alignment() const { // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.alignment) @@ -17891,6 +19280,7 @@ inline ::uint32_t ClientBufferHandleMetadataProto::alignment() const { } inline void ClientBufferHandleMetadataProto::set_alignment(::uint32_t value) { _internal_set_alignment(value); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.alignment) } inline ::uint32_t ClientBufferHandleMetadataProto::_internal_alignment() const { @@ -17904,7 +19294,7 @@ inline void ClientBufferHandleMetadataProto::_internal_set_alignment(::uint32_t // .google.protobuf.Any allocator_metadata = 15; inline bool ClientBufferHandleMetadataProto::has_allocator_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); PROTOBUF_ASSUME(!value || _impl_.allocator_metadata_ != nullptr); return value; } @@ -17917,23 +19307,24 @@ inline const ::google::protobuf::Any& ClientBufferHandleMetadataProto::allocator // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.allocator_metadata) return _internal_allocator_metadata(); } -inline void ClientBufferHandleMetadataProto::unsafe_arena_set_allocated_allocator_metadata(::google::protobuf::Any* value) { +inline void ClientBufferHandleMetadataProto::unsafe_arena_set_allocated_allocator_metadata( + ::google::protobuf::Any* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.allocator_metadata_); } _impl_.allocator_metadata_ = reinterpret_cast<::google::protobuf::Any*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ClientBufferHandleMetadataProto.allocator_metadata) } -inline ::google::protobuf::Any* ClientBufferHandleMetadataProto::release_allocator_metadata() { +inline ::google::protobuf::Any* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_allocator_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); ::google::protobuf::Any* released = _impl_.allocator_metadata_; _impl_.allocator_metadata_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -17949,16 +19340,16 @@ inline ::google::protobuf::Any* ClientBufferHandleMetadataProto::release_allocat } return released; } -inline ::google::protobuf::Any* ClientBufferHandleMetadataProto::unsafe_arena_release_allocator_metadata() { +inline ::google::protobuf::Any* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::unsafe_arena_release_allocator_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.allocator_metadata) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); ::google::protobuf::Any* temp = _impl_.allocator_metadata_; _impl_.allocator_metadata_ = nullptr; return temp; } -inline ::google::protobuf::Any* ClientBufferHandleMetadataProto::_internal_mutable_allocator_metadata() { +inline ::google::protobuf::Any* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_allocator_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.allocator_metadata_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); @@ -17966,13 +19357,14 @@ inline ::google::protobuf::Any* ClientBufferHandleMetadataProto::_internal_mutab } return _impl_.allocator_metadata_; } -inline ::google::protobuf::Any* ClientBufferHandleMetadataProto::mutable_allocator_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::google::protobuf::Any* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_allocator_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::google::protobuf::Any* _msg = _internal_mutable_allocator_metadata(); // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.allocator_metadata) return _msg; } -inline void ClientBufferHandleMetadataProto::set_allocated_allocator_metadata(::google::protobuf::Any* value) { +inline void ClientBufferHandleMetadataProto::set_allocated_allocator_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { @@ -17980,13 +19372,13 @@ inline void ClientBufferHandleMetadataProto::set_allocated_allocator_metadata(:: } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } _impl_.allocator_metadata_ = reinterpret_cast<::google::protobuf::Any*>(value); @@ -17999,14 +19391,15 @@ inline void ClientBufferHandleMetadataProto::set_allocated_allocator_metadata(:: // .subspace.ClientBufferHandleMetadataProto metadata = 1; inline bool RegisterClientBufferRequest::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); return value; } inline void RegisterClientBufferRequest::clear_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::subspace::ClientBufferHandleMetadataProto& RegisterClientBufferRequest::_internal_metadata() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -18017,23 +19410,24 @@ inline const ::subspace::ClientBufferHandleMetadataProto& RegisterClientBufferRe // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferRequest.metadata) return _internal_metadata(); } -inline void RegisterClientBufferRequest::unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value) { +inline void RegisterClientBufferRequest::unsafe_arena_set_allocated_metadata( + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RegisterClientBufferRequest.metadata) } -inline ::subspace::ClientBufferHandleMetadataProto* RegisterClientBufferRequest::release_metadata() { +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE RegisterClientBufferRequest::release_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::subspace::ClientBufferHandleMetadataProto* released = _impl_.metadata_; _impl_.metadata_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -18049,16 +19443,16 @@ inline ::subspace::ClientBufferHandleMetadataProto* RegisterClientBufferRequest: } return released; } -inline ::subspace::ClientBufferHandleMetadataProto* RegisterClientBufferRequest::unsafe_arena_release_metadata() { +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE RegisterClientBufferRequest::unsafe_arena_release_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RegisterClientBufferRequest.metadata) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::subspace::ClientBufferHandleMetadataProto* temp = _impl_.metadata_; _impl_.metadata_ = nullptr; return temp; } -inline ::subspace::ClientBufferHandleMetadataProto* RegisterClientBufferRequest::_internal_mutable_metadata() { +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL RegisterClientBufferRequest::_internal_mutable_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ClientBufferHandleMetadataProto>(GetArena()); @@ -18066,33 +19460,153 @@ inline ::subspace::ClientBufferHandleMetadataProto* RegisterClientBufferRequest: } return _impl_.metadata_; } -inline ::subspace::ClientBufferHandleMetadataProto* RegisterClientBufferRequest::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL RegisterClientBufferRequest::mutable_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::subspace::ClientBufferHandleMetadataProto* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:subspace.RegisterClientBufferRequest.metadata) return _msg; } -inline void RegisterClientBufferRequest::set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value) { +inline void RegisterClientBufferRequest::set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.metadata_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); // @@protoc_insertion_point(field_set_allocated:subspace.RegisterClientBufferRequest.metadata) } +// bool has_fd = 2; +inline void RegisterClientBufferRequest::clear_has_fd() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_fd_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline bool RegisterClientBufferRequest::has_fd() const { + // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferRequest.has_fd) + return _internal_has_fd(); +} +inline void RegisterClientBufferRequest::set_has_fd(bool value) { + _internal_set_has_fd(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:subspace.RegisterClientBufferRequest.has_fd) +} +inline bool RegisterClientBufferRequest::_internal_has_fd() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.has_fd_; +} +inline void RegisterClientBufferRequest::_internal_set_has_fd(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_fd_ = value; +} + +// int32 fd_index = 3; +inline void RegisterClientBufferRequest::clear_fd_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline ::int32_t RegisterClientBufferRequest::fd_index() const { + // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferRequest.fd_index) + return _internal_fd_index(); +} +inline void RegisterClientBufferRequest::set_fd_index(::int32_t value) { + _internal_set_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + // @@protoc_insertion_point(field_set:subspace.RegisterClientBufferRequest.fd_index) +} +inline ::int32_t RegisterClientBufferRequest::_internal_fd_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.fd_index_; +} +inline void RegisterClientBufferRequest::_internal_set_fd_index(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fd_index_ = value; +} + +// ------------------------------------------------------------------- + +// RegisterClientBufferResponse + +// string error = 1; +inline void RegisterClientBufferResponse::clear_error() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& RegisterClientBufferResponse::error() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferResponse.error) + return _internal_error(); +} +template +PROTOBUF_ALWAYS_INLINE void RegisterClientBufferResponse::set_error(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.error_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:subspace.RegisterClientBufferResponse.error) +} +inline ::std::string* PROTOBUF_NONNULL RegisterClientBufferResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:subspace.RegisterClientBufferResponse.error) + return _s; +} +inline const ::std::string& RegisterClientBufferResponse::_internal_error() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.error_.Get(); +} +inline void RegisterClientBufferResponse::_internal_set_error(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL RegisterClientBufferResponse::_internal_mutable_error() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.error_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE RegisterClientBufferResponse::release_error() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:subspace.RegisterClientBufferResponse.error) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; +} +inline void RegisterClientBufferResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.error_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { + _impl_.error_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:subspace.RegisterClientBufferResponse.error) +} + // ------------------------------------------------------------------- // UnregisterClientBufferRequest @@ -18101,43 +19615,60 @@ inline void RegisterClientBufferRequest::set_allocated_metadata(::subspace::Clie inline void UnregisterClientBufferRequest::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& UnregisterClientBufferRequest::channel_name() const +inline const ::std::string& UnregisterClientBufferRequest::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.UnregisterClientBufferRequest.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void UnregisterClientBufferRequest::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void UnregisterClientBufferRequest::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.channel_name) } -inline std::string* UnregisterClientBufferRequest::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL UnregisterClientBufferRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.UnregisterClientBufferRequest.channel_name) return _s; } -inline const std::string& UnregisterClientBufferRequest::_internal_channel_name() const { +inline const ::std::string& UnregisterClientBufferRequest::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void UnregisterClientBufferRequest::_internal_set_channel_name(const std::string& value) { +inline void UnregisterClientBufferRequest::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* UnregisterClientBufferRequest::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL UnregisterClientBufferRequest::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* UnregisterClientBufferRequest::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE UnregisterClientBufferRequest::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.UnregisterClientBufferRequest.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void UnregisterClientBufferRequest::set_allocated_channel_name(std::string* value) { +inline void UnregisterClientBufferRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -18149,44 +19680,344 @@ inline void UnregisterClientBufferRequest::set_allocated_channel_name(std::strin inline void UnregisterClientBufferRequest::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::uint64_t UnregisterClientBufferRequest::session_id() const { // @@protoc_insertion_point(field_get:subspace.UnregisterClientBufferRequest.session_id) return _internal_session_id(); } -inline void UnregisterClientBufferRequest::set_session_id(::uint64_t value) { - _internal_set_session_id(value); - // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.session_id) +inline void UnregisterClientBufferRequest::set_session_id(::uint64_t value) { + _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.session_id) +} +inline ::uint64_t UnregisterClientBufferRequest::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void UnregisterClientBufferRequest::_internal_set_session_id(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} + +// uint32 buffer_index = 3; +inline void UnregisterClientBufferRequest::clear_buffer_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.buffer_index_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline ::uint32_t UnregisterClientBufferRequest::buffer_index() const { + // @@protoc_insertion_point(field_get:subspace.UnregisterClientBufferRequest.buffer_index) + return _internal_buffer_index(); +} +inline void UnregisterClientBufferRequest::set_buffer_index(::uint32_t value) { + _internal_set_buffer_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.buffer_index) +} +inline ::uint32_t UnregisterClientBufferRequest::_internal_buffer_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.buffer_index_; +} +inline void UnregisterClientBufferRequest::_internal_set_buffer_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.buffer_index_ = value; +} + +// ------------------------------------------------------------------- + +// GetClientBuffersRequest + +// string channel_name = 1; +inline void GetClientBuffersRequest::clear_channel_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); +} +inline const ::std::string& GetClientBuffersRequest::channel_name() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.GetClientBuffersRequest.channel_name) + return _internal_channel_name(); +} +template +PROTOBUF_ALWAYS_INLINE void GetClientBuffersRequest::set_channel_name(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:subspace.GetClientBuffersRequest.channel_name) +} +inline ::std::string* PROTOBUF_NONNULL GetClientBuffersRequest::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); + // @@protoc_insertion_point(field_mutable:subspace.GetClientBuffersRequest.channel_name) + return _s; +} +inline const ::std::string& GetClientBuffersRequest::_internal_channel_name() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.channel_name_.Get(); +} +inline void GetClientBuffersRequest::_internal_set_channel_name(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.channel_name_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GetClientBuffersRequest::_internal_mutable_channel_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.channel_name_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GetClientBuffersRequest::release_channel_name() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:subspace.GetClientBuffersRequest.channel_name) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; +} +inline void GetClientBuffersRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } + _impl_.channel_name_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { + _impl_.channel_name_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:subspace.GetClientBuffersRequest.channel_name) +} + +// uint64 session_id = 2; +inline void GetClientBuffersRequest::clear_session_id() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline ::uint64_t GetClientBuffersRequest::session_id() const { + // @@protoc_insertion_point(field_get:subspace.GetClientBuffersRequest.session_id) + return _internal_session_id(); +} +inline void GetClientBuffersRequest::set_session_id(::uint64_t value) { + _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:subspace.GetClientBuffersRequest.session_id) +} +inline ::uint64_t GetClientBuffersRequest::_internal_session_id() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.session_id_; +} +inline void GetClientBuffersRequest::_internal_set_session_id(::uint64_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.session_id_ = value; +} + +// uint32 buffer_index = 3; +inline void GetClientBuffersRequest::clear_buffer_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.buffer_index_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline ::uint32_t GetClientBuffersRequest::buffer_index() const { + // @@protoc_insertion_point(field_get:subspace.GetClientBuffersRequest.buffer_index) + return _internal_buffer_index(); +} +inline void GetClientBuffersRequest::set_buffer_index(::uint32_t value) { + _internal_set_buffer_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + // @@protoc_insertion_point(field_set:subspace.GetClientBuffersRequest.buffer_index) +} +inline ::uint32_t GetClientBuffersRequest::_internal_buffer_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.buffer_index_; +} +inline void GetClientBuffersRequest::_internal_set_buffer_index(::uint32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.buffer_index_ = value; +} + +// ------------------------------------------------------------------- + +// GetClientBuffersResponse + +// string error = 1; +inline void GetClientBuffersResponse::clear_error() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline const ::std::string& GetClientBuffersResponse::error() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.GetClientBuffersResponse.error) + return _internal_error(); +} +template +PROTOBUF_ALWAYS_INLINE void GetClientBuffersResponse::set_error(Arg_&& arg, Args_... args) { + ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_.error_.Set(static_cast(arg), args..., GetArena()); + // @@protoc_insertion_point(field_set:subspace.GetClientBuffersResponse.error) +} +inline ::std::string* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_error(); + // @@protoc_insertion_point(field_mutable:subspace.GetClientBuffersResponse.error) + return _s; +} +inline const ::std::string& GetClientBuffersResponse::_internal_error() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.error_.Get(); +} +inline void GetClientBuffersResponse::_internal_set_error(const ::std::string& value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.error_.Set(value, GetArena()); +} +inline ::std::string* PROTOBUF_NONNULL GetClientBuffersResponse::_internal_mutable_error() { + ::google::protobuf::internal::TSanWrite(&_impl_); + return _impl_.error_.Mutable( GetArena()); +} +inline ::std::string* PROTOBUF_NULLABLE GetClientBuffersResponse::release_error() { + ::google::protobuf::internal::TSanWrite(&_impl_); + // @@protoc_insertion_point(field_release:subspace.GetClientBuffersResponse.error) + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; +} +inline void GetClientBuffersResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } + _impl_.error_.SetAllocated(value, GetArena()); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { + _impl_.error_.Set("", GetArena()); + } + // @@protoc_insertion_point(field_set_allocated:subspace.GetClientBuffersResponse.error) +} + +// repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; +inline int GetClientBuffersResponse::_internal_metadata_size() const { + return _internal_metadata().size(); +} +inline int GetClientBuffersResponse::metadata_size() const { + return _internal_metadata_size(); +} +inline void GetClientBuffersResponse::clear_metadata() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.metadata_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); +} +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_metadata(int index) + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable:subspace.GetClientBuffersResponse.metadata) + return _internal_mutable_metadata()->Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_mutable_list:subspace.GetClientBuffersResponse.metadata) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_metadata(); +} +inline const ::subspace::ClientBufferHandleMetadataProto& GetClientBuffersResponse::metadata(int index) const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.GetClientBuffersResponse.metadata) + return _internal_metadata().Get(index); +} +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL GetClientBuffersResponse::add_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::google::protobuf::internal::TSanWrite(&_impl_); + ::subspace::ClientBufferHandleMetadataProto* _add = + _internal_mutable_metadata()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_add:subspace.GetClientBuffersResponse.metadata) + return _add; +} +inline const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& GetClientBuffersResponse::metadata() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:subspace.GetClientBuffersResponse.metadata) + return _internal_metadata(); +} +inline const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& +GetClientBuffersResponse::_internal_metadata() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.metadata_; } -inline ::uint64_t UnregisterClientBufferRequest::_internal_session_id() const { +inline ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL +GetClientBuffersResponse::_internal_mutable_metadata() { ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; + return &_impl_.metadata_; } -inline void UnregisterClientBufferRequest::_internal_set_session_id(::uint64_t value) { + +// repeated int32 fd_indexes = 3; +inline int GetClientBuffersResponse::_internal_fd_indexes_size() const { + return _internal_fd_indexes().size(); +} +inline int GetClientBuffersResponse::fd_indexes_size() const { + return _internal_fd_indexes_size(); +} +inline void GetClientBuffersResponse::clear_fd_indexes() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; + _impl_.fd_indexes_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000002U); } - -// uint32 buffer_index = 3; -inline void UnregisterClientBufferRequest::clear_buffer_index() { +inline ::int32_t GetClientBuffersResponse::fd_indexes(int index) const { + // @@protoc_insertion_point(field_get:subspace.GetClientBuffersResponse.fd_indexes) + return _internal_fd_indexes().Get(index); +} +inline void GetClientBuffersResponse::set_fd_indexes(int index, ::int32_t value) { + _internal_mutable_fd_indexes()->Set(index, value); + // @@protoc_insertion_point(field_set:subspace.GetClientBuffersResponse.fd_indexes) +} +inline void GetClientBuffersResponse::add_fd_indexes(::int32_t value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = 0u; + _internal_mutable_fd_indexes()->Add(value); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_add:subspace.GetClientBuffersResponse.fd_indexes) } -inline ::uint32_t UnregisterClientBufferRequest::buffer_index() const { - // @@protoc_insertion_point(field_get:subspace.UnregisterClientBufferRequest.buffer_index) - return _internal_buffer_index(); +inline const ::google::protobuf::RepeatedField<::int32_t>& GetClientBuffersResponse::fd_indexes() const + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_list:subspace.GetClientBuffersResponse.fd_indexes) + return _internal_fd_indexes(); } -inline void UnregisterClientBufferRequest::set_buffer_index(::uint32_t value) { - _internal_set_buffer_index(value); - // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.buffer_index) +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_fd_indexes() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_mutable_list:subspace.GetClientBuffersResponse.fd_indexes) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_fd_indexes(); } -inline ::uint32_t UnregisterClientBufferRequest::_internal_buffer_index() const { +inline const ::google::protobuf::RepeatedField<::int32_t>& +GetClientBuffersResponse::_internal_fd_indexes() const { ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.buffer_index_; + return _impl_.fd_indexes_; } -inline void UnregisterClientBufferRequest::_internal_set_buffer_index(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = value; +inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL +GetClientBuffersResponse::_internal_mutable_fd_indexes() { + ::google::protobuf::internal::TSanRead(&_impl_); + return &_impl_.fd_indexes_; } // ------------------------------------------------------------------- @@ -18214,11 +20045,11 @@ inline void Request::clear_init() { clear_has_request(); } } -inline ::subspace::InitRequest* Request::release_init() { +inline ::subspace::InitRequest* PROTOBUF_NULLABLE Request::release_init() { // @@protoc_insertion_point(field_release:subspace.Request.init) if (request_case() == kInit) { clear_has_request(); - auto* temp = _impl_.request_.init_; + auto* temp = reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18229,44 +20060,47 @@ inline ::subspace::InitRequest* Request::release_init() { } } inline const ::subspace::InitRequest& Request::_internal_init() const { - return request_case() == kInit ? *_impl_.request_.init_ : reinterpret_cast<::subspace::InitRequest&>(::subspace::_InitRequest_default_instance_); + return request_case() == kInit ? static_cast(*reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_)) + : reinterpret_cast(::subspace::_InitRequest_default_instance_); } inline const ::subspace::InitRequest& Request::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.init) return _internal_init(); } -inline ::subspace::InitRequest* Request::unsafe_arena_release_init() { +inline ::subspace::InitRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_init() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.init) if (request_case() == kInit) { clear_has_request(); - auto* temp = _impl_.request_.init_; + auto* temp = reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_); _impl_.request_.init_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_init(::subspace::InitRequest* value) { +inline void Request::unsafe_arena_set_allocated_init( + ::subspace::InitRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_init(); - _impl_.request_.init_ = value; + _impl_.request_.init_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.init) } -inline ::subspace::InitRequest* Request::_internal_mutable_init() { +inline ::subspace::InitRequest* PROTOBUF_NONNULL Request::_internal_mutable_init() { if (request_case() != kInit) { clear_request(); set_has_init(); - _impl_.request_.init_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::InitRequest>(GetArena()); + _impl_.request_.init_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::InitRequest>(GetArena())); } - return _impl_.request_.init_; + return reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_); } -inline ::subspace::InitRequest* Request::mutable_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::InitRequest* PROTOBUF_NONNULL Request::mutable_init() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::InitRequest* _msg = _internal_mutable_init(); // @@protoc_insertion_point(field_mutable:subspace.Request.init) return _msg; @@ -18293,11 +20127,11 @@ inline void Request::clear_create_publisher() { clear_has_request(); } } -inline ::subspace::CreatePublisherRequest* Request::release_create_publisher() { +inline ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE Request::release_create_publisher() { // @@protoc_insertion_point(field_release:subspace.Request.create_publisher) if (request_case() == kCreatePublisher) { clear_has_request(); - auto* temp = _impl_.request_.create_publisher_; + auto* temp = reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18308,44 +20142,47 @@ inline ::subspace::CreatePublisherRequest* Request::release_create_publisher() { } } inline const ::subspace::CreatePublisherRequest& Request::_internal_create_publisher() const { - return request_case() == kCreatePublisher ? *_impl_.request_.create_publisher_ : reinterpret_cast<::subspace::CreatePublisherRequest&>(::subspace::_CreatePublisherRequest_default_instance_); + return request_case() == kCreatePublisher ? static_cast(*reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_)) + : reinterpret_cast(::subspace::_CreatePublisherRequest_default_instance_); } inline const ::subspace::CreatePublisherRequest& Request::create_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.create_publisher) return _internal_create_publisher(); } -inline ::subspace::CreatePublisherRequest* Request::unsafe_arena_release_create_publisher() { +inline ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_create_publisher() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.create_publisher) if (request_case() == kCreatePublisher) { clear_has_request(); - auto* temp = _impl_.request_.create_publisher_; + auto* temp = reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_); _impl_.request_.create_publisher_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherRequest* value) { +inline void Request::unsafe_arena_set_allocated_create_publisher( + ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_create_publisher(); - _impl_.request_.create_publisher_ = value; + _impl_.request_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.create_publisher) } -inline ::subspace::CreatePublisherRequest* Request::_internal_mutable_create_publisher() { +inline ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL Request::_internal_mutable_create_publisher() { if (request_case() != kCreatePublisher) { clear_request(); set_has_create_publisher(); - _impl_.request_.create_publisher_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::CreatePublisherRequest>(GetArena()); + _impl_.request_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::CreatePublisherRequest>(GetArena())); } - return _impl_.request_.create_publisher_; + return reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_); } -inline ::subspace::CreatePublisherRequest* Request::mutable_create_publisher() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL Request::mutable_create_publisher() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::CreatePublisherRequest* _msg = _internal_mutable_create_publisher(); // @@protoc_insertion_point(field_mutable:subspace.Request.create_publisher) return _msg; @@ -18372,11 +20209,11 @@ inline void Request::clear_create_subscriber() { clear_has_request(); } } -inline ::subspace::CreateSubscriberRequest* Request::release_create_subscriber() { +inline ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE Request::release_create_subscriber() { // @@protoc_insertion_point(field_release:subspace.Request.create_subscriber) if (request_case() == kCreateSubscriber) { clear_has_request(); - auto* temp = _impl_.request_.create_subscriber_; + auto* temp = reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18387,44 +20224,47 @@ inline ::subspace::CreateSubscriberRequest* Request::release_create_subscriber() } } inline const ::subspace::CreateSubscriberRequest& Request::_internal_create_subscriber() const { - return request_case() == kCreateSubscriber ? *_impl_.request_.create_subscriber_ : reinterpret_cast<::subspace::CreateSubscriberRequest&>(::subspace::_CreateSubscriberRequest_default_instance_); + return request_case() == kCreateSubscriber ? static_cast(*reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_)) + : reinterpret_cast(::subspace::_CreateSubscriberRequest_default_instance_); } inline const ::subspace::CreateSubscriberRequest& Request::create_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.create_subscriber) return _internal_create_subscriber(); } -inline ::subspace::CreateSubscriberRequest* Request::unsafe_arena_release_create_subscriber() { +inline ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_create_subscriber() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.create_subscriber) if (request_case() == kCreateSubscriber) { clear_has_request(); - auto* temp = _impl_.request_.create_subscriber_; + auto* temp = reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_); _impl_.request_.create_subscriber_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* value) { +inline void Request::unsafe_arena_set_allocated_create_subscriber( + ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_create_subscriber(); - _impl_.request_.create_subscriber_ = value; + _impl_.request_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.create_subscriber) } -inline ::subspace::CreateSubscriberRequest* Request::_internal_mutable_create_subscriber() { +inline ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL Request::_internal_mutable_create_subscriber() { if (request_case() != kCreateSubscriber) { clear_request(); set_has_create_subscriber(); - _impl_.request_.create_subscriber_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::CreateSubscriberRequest>(GetArena()); + _impl_.request_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::CreateSubscriberRequest>(GetArena())); } - return _impl_.request_.create_subscriber_; + return reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_); } -inline ::subspace::CreateSubscriberRequest* Request::mutable_create_subscriber() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL Request::mutable_create_subscriber() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::CreateSubscriberRequest* _msg = _internal_mutable_create_subscriber(); // @@protoc_insertion_point(field_mutable:subspace.Request.create_subscriber) return _msg; @@ -18451,11 +20291,11 @@ inline void Request::clear_get_triggers() { clear_has_request(); } } -inline ::subspace::GetTriggersRequest* Request::release_get_triggers() { +inline ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE Request::release_get_triggers() { // @@protoc_insertion_point(field_release:subspace.Request.get_triggers) if (request_case() == kGetTriggers) { clear_has_request(); - auto* temp = _impl_.request_.get_triggers_; + auto* temp = reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18466,44 +20306,47 @@ inline ::subspace::GetTriggersRequest* Request::release_get_triggers() { } } inline const ::subspace::GetTriggersRequest& Request::_internal_get_triggers() const { - return request_case() == kGetTriggers ? *_impl_.request_.get_triggers_ : reinterpret_cast<::subspace::GetTriggersRequest&>(::subspace::_GetTriggersRequest_default_instance_); + return request_case() == kGetTriggers ? static_cast(*reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_)) + : reinterpret_cast(::subspace::_GetTriggersRequest_default_instance_); } inline const ::subspace::GetTriggersRequest& Request::get_triggers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.get_triggers) return _internal_get_triggers(); } -inline ::subspace::GetTriggersRequest* Request::unsafe_arena_release_get_triggers() { +inline ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_triggers() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_triggers) if (request_case() == kGetTriggers) { clear_has_request(); - auto* temp = _impl_.request_.get_triggers_; + auto* temp = reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_); _impl_.request_.get_triggers_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersRequest* value) { +inline void Request::unsafe_arena_set_allocated_get_triggers( + ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_get_triggers(); - _impl_.request_.get_triggers_ = value; + _impl_.request_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_triggers) } -inline ::subspace::GetTriggersRequest* Request::_internal_mutable_get_triggers() { +inline ::subspace::GetTriggersRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_triggers() { if (request_case() != kGetTriggers) { clear_request(); set_has_get_triggers(); - _impl_.request_.get_triggers_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::GetTriggersRequest>(GetArena()); + _impl_.request_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetTriggersRequest>(GetArena())); } - return _impl_.request_.get_triggers_; + return reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_); } -inline ::subspace::GetTriggersRequest* Request::mutable_get_triggers() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::GetTriggersRequest* PROTOBUF_NONNULL Request::mutable_get_triggers() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::GetTriggersRequest* _msg = _internal_mutable_get_triggers(); // @@protoc_insertion_point(field_mutable:subspace.Request.get_triggers) return _msg; @@ -18530,11 +20373,11 @@ inline void Request::clear_remove_publisher() { clear_has_request(); } } -inline ::subspace::RemovePublisherRequest* Request::release_remove_publisher() { +inline ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE Request::release_remove_publisher() { // @@protoc_insertion_point(field_release:subspace.Request.remove_publisher) if (request_case() == kRemovePublisher) { clear_has_request(); - auto* temp = _impl_.request_.remove_publisher_; + auto* temp = reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18545,44 +20388,47 @@ inline ::subspace::RemovePublisherRequest* Request::release_remove_publisher() { } } inline const ::subspace::RemovePublisherRequest& Request::_internal_remove_publisher() const { - return request_case() == kRemovePublisher ? *_impl_.request_.remove_publisher_ : reinterpret_cast<::subspace::RemovePublisherRequest&>(::subspace::_RemovePublisherRequest_default_instance_); + return request_case() == kRemovePublisher ? static_cast(*reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_)) + : reinterpret_cast(::subspace::_RemovePublisherRequest_default_instance_); } inline const ::subspace::RemovePublisherRequest& Request::remove_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.remove_publisher) return _internal_remove_publisher(); } -inline ::subspace::RemovePublisherRequest* Request::unsafe_arena_release_remove_publisher() { +inline ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_remove_publisher() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.remove_publisher) if (request_case() == kRemovePublisher) { clear_has_request(); - auto* temp = _impl_.request_.remove_publisher_; + auto* temp = reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_); _impl_.request_.remove_publisher_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherRequest* value) { +inline void Request::unsafe_arena_set_allocated_remove_publisher( + ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_remove_publisher(); - _impl_.request_.remove_publisher_ = value; + _impl_.request_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.remove_publisher) } -inline ::subspace::RemovePublisherRequest* Request::_internal_mutable_remove_publisher() { +inline ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL Request::_internal_mutable_remove_publisher() { if (request_case() != kRemovePublisher) { clear_request(); set_has_remove_publisher(); - _impl_.request_.remove_publisher_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RemovePublisherRequest>(GetArena()); + _impl_.request_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::RemovePublisherRequest>(GetArena())); } - return _impl_.request_.remove_publisher_; + return reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_); } -inline ::subspace::RemovePublisherRequest* Request::mutable_remove_publisher() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL Request::mutable_remove_publisher() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RemovePublisherRequest* _msg = _internal_mutable_remove_publisher(); // @@protoc_insertion_point(field_mutable:subspace.Request.remove_publisher) return _msg; @@ -18609,11 +20455,11 @@ inline void Request::clear_remove_subscriber() { clear_has_request(); } } -inline ::subspace::RemoveSubscriberRequest* Request::release_remove_subscriber() { +inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE Request::release_remove_subscriber() { // @@protoc_insertion_point(field_release:subspace.Request.remove_subscriber) if (request_case() == kRemoveSubscriber) { clear_has_request(); - auto* temp = _impl_.request_.remove_subscriber_; + auto* temp = reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18624,44 +20470,47 @@ inline ::subspace::RemoveSubscriberRequest* Request::release_remove_subscriber() } } inline const ::subspace::RemoveSubscriberRequest& Request::_internal_remove_subscriber() const { - return request_case() == kRemoveSubscriber ? *_impl_.request_.remove_subscriber_ : reinterpret_cast<::subspace::RemoveSubscriberRequest&>(::subspace::_RemoveSubscriberRequest_default_instance_); + return request_case() == kRemoveSubscriber ? static_cast(*reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_)) + : reinterpret_cast(::subspace::_RemoveSubscriberRequest_default_instance_); } inline const ::subspace::RemoveSubscriberRequest& Request::remove_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.remove_subscriber) return _internal_remove_subscriber(); } -inline ::subspace::RemoveSubscriberRequest* Request::unsafe_arena_release_remove_subscriber() { +inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_remove_subscriber() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.remove_subscriber) if (request_case() == kRemoveSubscriber) { clear_has_request(); - auto* temp = _impl_.request_.remove_subscriber_; + auto* temp = reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_); _impl_.request_.remove_subscriber_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* value) { +inline void Request::unsafe_arena_set_allocated_remove_subscriber( + ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_remove_subscriber(); - _impl_.request_.remove_subscriber_ = value; + _impl_.request_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.remove_subscriber) } -inline ::subspace::RemoveSubscriberRequest* Request::_internal_mutable_remove_subscriber() { +inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL Request::_internal_mutable_remove_subscriber() { if (request_case() != kRemoveSubscriber) { clear_request(); set_has_remove_subscriber(); - _impl_.request_.remove_subscriber_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RemoveSubscriberRequest>(GetArena()); + _impl_.request_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::RemoveSubscriberRequest>(GetArena())); } - return _impl_.request_.remove_subscriber_; + return reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_); } -inline ::subspace::RemoveSubscriberRequest* Request::mutable_remove_subscriber() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL Request::mutable_remove_subscriber() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RemoveSubscriberRequest* _msg = _internal_mutable_remove_subscriber(); // @@protoc_insertion_point(field_mutable:subspace.Request.remove_subscriber) return _msg; @@ -18688,11 +20537,11 @@ inline void Request::clear_get_channel_info() { clear_has_request(); } } -inline ::subspace::GetChannelInfoRequest* Request::release_get_channel_info() { +inline ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE Request::release_get_channel_info() { // @@protoc_insertion_point(field_release:subspace.Request.get_channel_info) if (request_case() == kGetChannelInfo) { clear_has_request(); - auto* temp = _impl_.request_.get_channel_info_; + auto* temp = reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18703,44 +20552,47 @@ inline ::subspace::GetChannelInfoRequest* Request::release_get_channel_info() { } } inline const ::subspace::GetChannelInfoRequest& Request::_internal_get_channel_info() const { - return request_case() == kGetChannelInfo ? *_impl_.request_.get_channel_info_ : reinterpret_cast<::subspace::GetChannelInfoRequest&>(::subspace::_GetChannelInfoRequest_default_instance_); + return request_case() == kGetChannelInfo ? static_cast(*reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_)) + : reinterpret_cast(::subspace::_GetChannelInfoRequest_default_instance_); } inline const ::subspace::GetChannelInfoRequest& Request::get_channel_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.get_channel_info) return _internal_get_channel_info(); } -inline ::subspace::GetChannelInfoRequest* Request::unsafe_arena_release_get_channel_info() { +inline ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_channel_info() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_channel_info) if (request_case() == kGetChannelInfo) { clear_has_request(); - auto* temp = _impl_.request_.get_channel_info_; + auto* temp = reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_); _impl_.request_.get_channel_info_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* value) { +inline void Request::unsafe_arena_set_allocated_get_channel_info( + ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_get_channel_info(); - _impl_.request_.get_channel_info_ = value; + _impl_.request_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_channel_info) } -inline ::subspace::GetChannelInfoRequest* Request::_internal_mutable_get_channel_info() { +inline ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_channel_info() { if (request_case() != kGetChannelInfo) { clear_request(); set_has_get_channel_info(); - _impl_.request_.get_channel_info_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelInfoRequest>(GetArena()); + _impl_.request_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelInfoRequest>(GetArena())); } - return _impl_.request_.get_channel_info_; + return reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_); } -inline ::subspace::GetChannelInfoRequest* Request::mutable_get_channel_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL Request::mutable_get_channel_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::GetChannelInfoRequest* _msg = _internal_mutable_get_channel_info(); // @@protoc_insertion_point(field_mutable:subspace.Request.get_channel_info) return _msg; @@ -18767,11 +20619,11 @@ inline void Request::clear_get_channel_stats() { clear_has_request(); } } -inline ::subspace::GetChannelStatsRequest* Request::release_get_channel_stats() { +inline ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE Request::release_get_channel_stats() { // @@protoc_insertion_point(field_release:subspace.Request.get_channel_stats) if (request_case() == kGetChannelStats) { clear_has_request(); - auto* temp = _impl_.request_.get_channel_stats_; + auto* temp = reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18782,44 +20634,47 @@ inline ::subspace::GetChannelStatsRequest* Request::release_get_channel_stats() } } inline const ::subspace::GetChannelStatsRequest& Request::_internal_get_channel_stats() const { - return request_case() == kGetChannelStats ? *_impl_.request_.get_channel_stats_ : reinterpret_cast<::subspace::GetChannelStatsRequest&>(::subspace::_GetChannelStatsRequest_default_instance_); + return request_case() == kGetChannelStats ? static_cast(*reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_)) + : reinterpret_cast(::subspace::_GetChannelStatsRequest_default_instance_); } inline const ::subspace::GetChannelStatsRequest& Request::get_channel_stats() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.get_channel_stats) return _internal_get_channel_stats(); } -inline ::subspace::GetChannelStatsRequest* Request::unsafe_arena_release_get_channel_stats() { +inline ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_channel_stats() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_channel_stats) if (request_case() == kGetChannelStats) { clear_has_request(); - auto* temp = _impl_.request_.get_channel_stats_; + auto* temp = reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_); _impl_.request_.get_channel_stats_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* value) { +inline void Request::unsafe_arena_set_allocated_get_channel_stats( + ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_get_channel_stats(); - _impl_.request_.get_channel_stats_ = value; + _impl_.request_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_channel_stats) } -inline ::subspace::GetChannelStatsRequest* Request::_internal_mutable_get_channel_stats() { +inline ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_channel_stats() { if (request_case() != kGetChannelStats) { clear_request(); set_has_get_channel_stats(); - _impl_.request_.get_channel_stats_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelStatsRequest>(GetArena()); + _impl_.request_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelStatsRequest>(GetArena())); } - return _impl_.request_.get_channel_stats_; + return reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_); } -inline ::subspace::GetChannelStatsRequest* Request::mutable_get_channel_stats() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL Request::mutable_get_channel_stats() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::GetChannelStatsRequest* _msg = _internal_mutable_get_channel_stats(); // @@protoc_insertion_point(field_mutable:subspace.Request.get_channel_stats) return _msg; @@ -18846,11 +20701,11 @@ inline void Request::clear_register_client_buffer() { clear_has_request(); } } -inline ::subspace::RegisterClientBufferRequest* Request::release_register_client_buffer() { +inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE Request::release_register_client_buffer() { // @@protoc_insertion_point(field_release:subspace.Request.register_client_buffer) if (request_case() == kRegisterClientBuffer) { clear_has_request(); - auto* temp = _impl_.request_.register_client_buffer_; + auto* temp = reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18861,44 +20716,47 @@ inline ::subspace::RegisterClientBufferRequest* Request::release_register_client } } inline const ::subspace::RegisterClientBufferRequest& Request::_internal_register_client_buffer() const { - return request_case() == kRegisterClientBuffer ? *_impl_.request_.register_client_buffer_ : reinterpret_cast<::subspace::RegisterClientBufferRequest&>(::subspace::_RegisterClientBufferRequest_default_instance_); + return request_case() == kRegisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_)) + : reinterpret_cast(::subspace::_RegisterClientBufferRequest_default_instance_); } inline const ::subspace::RegisterClientBufferRequest& Request::register_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.register_client_buffer) return _internal_register_client_buffer(); } -inline ::subspace::RegisterClientBufferRequest* Request::unsafe_arena_release_register_client_buffer() { +inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_register_client_buffer() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.register_client_buffer) if (request_case() == kRegisterClientBuffer) { clear_has_request(); - auto* temp = _impl_.request_.register_client_buffer_; + auto* temp = reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_); _impl_.request_.register_client_buffer_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* value) { +inline void Request::unsafe_arena_set_allocated_register_client_buffer( + ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_register_client_buffer(); - _impl_.request_.register_client_buffer_ = value; + _impl_.request_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.register_client_buffer) } -inline ::subspace::RegisterClientBufferRequest* Request::_internal_mutable_register_client_buffer() { +inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL Request::_internal_mutable_register_client_buffer() { if (request_case() != kRegisterClientBuffer) { clear_request(); set_has_register_client_buffer(); - _impl_.request_.register_client_buffer_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RegisterClientBufferRequest>(GetArena()); + _impl_.request_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::RegisterClientBufferRequest>(GetArena())); } - return _impl_.request_.register_client_buffer_; + return reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_); } -inline ::subspace::RegisterClientBufferRequest* Request::mutable_register_client_buffer() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL Request::mutable_register_client_buffer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RegisterClientBufferRequest* _msg = _internal_mutable_register_client_buffer(); // @@protoc_insertion_point(field_mutable:subspace.Request.register_client_buffer) return _msg; @@ -18925,11 +20783,11 @@ inline void Request::clear_unregister_client_buffer() { clear_has_request(); } } -inline ::subspace::UnregisterClientBufferRequest* Request::release_unregister_client_buffer() { +inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE Request::release_unregister_client_buffer() { // @@protoc_insertion_point(field_release:subspace.Request.unregister_client_buffer) if (request_case() == kUnregisterClientBuffer) { clear_has_request(); - auto* temp = _impl_.request_.unregister_client_buffer_; + auto* temp = reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -18940,49 +20798,134 @@ inline ::subspace::UnregisterClientBufferRequest* Request::release_unregister_cl } } inline const ::subspace::UnregisterClientBufferRequest& Request::_internal_unregister_client_buffer() const { - return request_case() == kUnregisterClientBuffer ? *_impl_.request_.unregister_client_buffer_ : reinterpret_cast<::subspace::UnregisterClientBufferRequest&>(::subspace::_UnregisterClientBufferRequest_default_instance_); + return request_case() == kUnregisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_)) + : reinterpret_cast(::subspace::_UnregisterClientBufferRequest_default_instance_); } inline const ::subspace::UnregisterClientBufferRequest& Request::unregister_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Request.unregister_client_buffer) return _internal_unregister_client_buffer(); } -inline ::subspace::UnregisterClientBufferRequest* Request::unsafe_arena_release_unregister_client_buffer() { +inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_unregister_client_buffer() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.unregister_client_buffer) if (request_case() == kUnregisterClientBuffer) { clear_has_request(); - auto* temp = _impl_.request_.unregister_client_buffer_; + auto* temp = reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_); _impl_.request_.unregister_client_buffer_ = nullptr; return temp; } else { return nullptr; } } -inline void Request::unsafe_arena_set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* value) { +inline void Request::unsafe_arena_set_allocated_unregister_client_buffer( + ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_request(); if (value) { set_has_unregister_client_buffer(); - _impl_.request_.unregister_client_buffer_ = value; + _impl_.request_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.unregister_client_buffer) } -inline ::subspace::UnregisterClientBufferRequest* Request::_internal_mutable_unregister_client_buffer() { +inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL Request::_internal_mutable_unregister_client_buffer() { if (request_case() != kUnregisterClientBuffer) { clear_request(); set_has_unregister_client_buffer(); - _impl_.request_.unregister_client_buffer_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::UnregisterClientBufferRequest>(GetArena()); + _impl_.request_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::UnregisterClientBufferRequest>(GetArena())); } - return _impl_.request_.unregister_client_buffer_; + return reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_); } -inline ::subspace::UnregisterClientBufferRequest* Request::mutable_unregister_client_buffer() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL Request::mutable_unregister_client_buffer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::UnregisterClientBufferRequest* _msg = _internal_mutable_unregister_client_buffer(); // @@protoc_insertion_point(field_mutable:subspace.Request.unregister_client_buffer) return _msg; } +// .subspace.GetClientBuffersRequest get_client_buffers = 13; +inline bool Request::has_get_client_buffers() const { + return request_case() == kGetClientBuffers; +} +inline bool Request::_internal_has_get_client_buffers() const { + return request_case() == kGetClientBuffers; +} +inline void Request::set_has_get_client_buffers() { + _impl_._oneof_case_[0] = kGetClientBuffers; +} +inline void Request::clear_get_client_buffers() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (request_case() == kGetClientBuffers) { + if (GetArena() == nullptr) { + delete _impl_.request_.get_client_buffers_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_client_buffers_); + } + clear_has_request(); + } +} +inline ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE Request::release_get_client_buffers() { + // @@protoc_insertion_point(field_release:subspace.Request.get_client_buffers) + if (request_case() == kGetClientBuffers) { + clear_has_request(); + auto* temp = reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.request_.get_client_buffers_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::subspace::GetClientBuffersRequest& Request::_internal_get_client_buffers() const { + return request_case() == kGetClientBuffers ? static_cast(*reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_)) + : reinterpret_cast(::subspace::_GetClientBuffersRequest_default_instance_); +} +inline const ::subspace::GetClientBuffersRequest& Request::get_client_buffers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.Request.get_client_buffers) + return _internal_get_client_buffers(); +} +inline ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_client_buffers() { + // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_client_buffers) + if (request_case() == kGetClientBuffers) { + clear_has_request(); + auto* temp = reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_); + _impl_.request_.get_client_buffers_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Request::unsafe_arena_set_allocated_get_client_buffers( + ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_request(); + if (value) { + set_has_get_client_buffers(); + _impl_.request_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>(value); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_client_buffers) +} +inline ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_client_buffers() { + if (request_case() != kGetClientBuffers) { + clear_request(); + set_has_get_client_buffers(); + _impl_.request_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetClientBuffersRequest>(GetArena())); + } + return reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_); +} +inline ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL Request::mutable_get_client_buffers() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::subspace::GetClientBuffersRequest* _msg = _internal_mutable_get_client_buffers(); + // @@protoc_insertion_point(field_mutable:subspace.Request.get_client_buffers) + return _msg; +} + inline bool Request::has_request() const { return request_case() != REQUEST_NOT_SET; } @@ -19017,11 +20960,11 @@ inline void Response::clear_init() { clear_has_response(); } } -inline ::subspace::InitResponse* Response::release_init() { +inline ::subspace::InitResponse* PROTOBUF_NULLABLE Response::release_init() { // @@protoc_insertion_point(field_release:subspace.Response.init) if (response_case() == kInit) { clear_has_response(); - auto* temp = _impl_.response_.init_; + auto* temp = reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19032,44 +20975,47 @@ inline ::subspace::InitResponse* Response::release_init() { } } inline const ::subspace::InitResponse& Response::_internal_init() const { - return response_case() == kInit ? *_impl_.response_.init_ : reinterpret_cast<::subspace::InitResponse&>(::subspace::_InitResponse_default_instance_); + return response_case() == kInit ? static_cast(*reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_)) + : reinterpret_cast(::subspace::_InitResponse_default_instance_); } inline const ::subspace::InitResponse& Response::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.init) return _internal_init(); } -inline ::subspace::InitResponse* Response::unsafe_arena_release_init() { +inline ::subspace::InitResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_init() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.init) if (response_case() == kInit) { clear_has_response(); - auto* temp = _impl_.response_.init_; + auto* temp = reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_); _impl_.response_.init_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_init(::subspace::InitResponse* value) { +inline void Response::unsafe_arena_set_allocated_init( + ::subspace::InitResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_init(); - _impl_.response_.init_ = value; + _impl_.response_.init_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.init) } -inline ::subspace::InitResponse* Response::_internal_mutable_init() { +inline ::subspace::InitResponse* PROTOBUF_NONNULL Response::_internal_mutable_init() { if (response_case() != kInit) { clear_response(); set_has_init(); - _impl_.response_.init_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::InitResponse>(GetArena()); + _impl_.response_.init_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::InitResponse>(GetArena())); } - return _impl_.response_.init_; + return reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_); } -inline ::subspace::InitResponse* Response::mutable_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::InitResponse* PROTOBUF_NONNULL Response::mutable_init() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::InitResponse* _msg = _internal_mutable_init(); // @@protoc_insertion_point(field_mutable:subspace.Response.init) return _msg; @@ -19096,11 +21042,11 @@ inline void Response::clear_create_publisher() { clear_has_response(); } } -inline ::subspace::CreatePublisherResponse* Response::release_create_publisher() { +inline ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE Response::release_create_publisher() { // @@protoc_insertion_point(field_release:subspace.Response.create_publisher) if (response_case() == kCreatePublisher) { clear_has_response(); - auto* temp = _impl_.response_.create_publisher_; + auto* temp = reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19111,44 +21057,47 @@ inline ::subspace::CreatePublisherResponse* Response::release_create_publisher() } } inline const ::subspace::CreatePublisherResponse& Response::_internal_create_publisher() const { - return response_case() == kCreatePublisher ? *_impl_.response_.create_publisher_ : reinterpret_cast<::subspace::CreatePublisherResponse&>(::subspace::_CreatePublisherResponse_default_instance_); + return response_case() == kCreatePublisher ? static_cast(*reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_)) + : reinterpret_cast(::subspace::_CreatePublisherResponse_default_instance_); } inline const ::subspace::CreatePublisherResponse& Response::create_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.create_publisher) return _internal_create_publisher(); } -inline ::subspace::CreatePublisherResponse* Response::unsafe_arena_release_create_publisher() { +inline ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_create_publisher() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.create_publisher) if (response_case() == kCreatePublisher) { clear_has_response(); - auto* temp = _impl_.response_.create_publisher_; + auto* temp = reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_); _impl_.response_.create_publisher_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherResponse* value) { +inline void Response::unsafe_arena_set_allocated_create_publisher( + ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_create_publisher(); - _impl_.response_.create_publisher_ = value; + _impl_.response_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.create_publisher) } -inline ::subspace::CreatePublisherResponse* Response::_internal_mutable_create_publisher() { +inline ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL Response::_internal_mutable_create_publisher() { if (response_case() != kCreatePublisher) { clear_response(); set_has_create_publisher(); - _impl_.response_.create_publisher_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::CreatePublisherResponse>(GetArena()); + _impl_.response_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::CreatePublisherResponse>(GetArena())); } - return _impl_.response_.create_publisher_; + return reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_); } -inline ::subspace::CreatePublisherResponse* Response::mutable_create_publisher() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL Response::mutable_create_publisher() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::CreatePublisherResponse* _msg = _internal_mutable_create_publisher(); // @@protoc_insertion_point(field_mutable:subspace.Response.create_publisher) return _msg; @@ -19175,11 +21124,11 @@ inline void Response::clear_create_subscriber() { clear_has_response(); } } -inline ::subspace::CreateSubscriberResponse* Response::release_create_subscriber() { +inline ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE Response::release_create_subscriber() { // @@protoc_insertion_point(field_release:subspace.Response.create_subscriber) if (response_case() == kCreateSubscriber) { clear_has_response(); - auto* temp = _impl_.response_.create_subscriber_; + auto* temp = reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19190,44 +21139,47 @@ inline ::subspace::CreateSubscriberResponse* Response::release_create_subscriber } } inline const ::subspace::CreateSubscriberResponse& Response::_internal_create_subscriber() const { - return response_case() == kCreateSubscriber ? *_impl_.response_.create_subscriber_ : reinterpret_cast<::subspace::CreateSubscriberResponse&>(::subspace::_CreateSubscriberResponse_default_instance_); + return response_case() == kCreateSubscriber ? static_cast(*reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_)) + : reinterpret_cast(::subspace::_CreateSubscriberResponse_default_instance_); } inline const ::subspace::CreateSubscriberResponse& Response::create_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.create_subscriber) return _internal_create_subscriber(); } -inline ::subspace::CreateSubscriberResponse* Response::unsafe_arena_release_create_subscriber() { +inline ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_create_subscriber() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.create_subscriber) if (response_case() == kCreateSubscriber) { clear_has_response(); - auto* temp = _impl_.response_.create_subscriber_; + auto* temp = reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_); _impl_.response_.create_subscriber_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* value) { +inline void Response::unsafe_arena_set_allocated_create_subscriber( + ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_create_subscriber(); - _impl_.response_.create_subscriber_ = value; + _impl_.response_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.create_subscriber) } -inline ::subspace::CreateSubscriberResponse* Response::_internal_mutable_create_subscriber() { +inline ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL Response::_internal_mutable_create_subscriber() { if (response_case() != kCreateSubscriber) { clear_response(); set_has_create_subscriber(); - _impl_.response_.create_subscriber_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::CreateSubscriberResponse>(GetArena()); + _impl_.response_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::CreateSubscriberResponse>(GetArena())); } - return _impl_.response_.create_subscriber_; + return reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_); } -inline ::subspace::CreateSubscriberResponse* Response::mutable_create_subscriber() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL Response::mutable_create_subscriber() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::CreateSubscriberResponse* _msg = _internal_mutable_create_subscriber(); // @@protoc_insertion_point(field_mutable:subspace.Response.create_subscriber) return _msg; @@ -19254,11 +21206,11 @@ inline void Response::clear_get_triggers() { clear_has_response(); } } -inline ::subspace::GetTriggersResponse* Response::release_get_triggers() { +inline ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE Response::release_get_triggers() { // @@protoc_insertion_point(field_release:subspace.Response.get_triggers) if (response_case() == kGetTriggers) { clear_has_response(); - auto* temp = _impl_.response_.get_triggers_; + auto* temp = reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19269,44 +21221,47 @@ inline ::subspace::GetTriggersResponse* Response::release_get_triggers() { } } inline const ::subspace::GetTriggersResponse& Response::_internal_get_triggers() const { - return response_case() == kGetTriggers ? *_impl_.response_.get_triggers_ : reinterpret_cast<::subspace::GetTriggersResponse&>(::subspace::_GetTriggersResponse_default_instance_); + return response_case() == kGetTriggers ? static_cast(*reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_)) + : reinterpret_cast(::subspace::_GetTriggersResponse_default_instance_); } inline const ::subspace::GetTriggersResponse& Response::get_triggers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.get_triggers) return _internal_get_triggers(); } -inline ::subspace::GetTriggersResponse* Response::unsafe_arena_release_get_triggers() { +inline ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_triggers() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_triggers) if (response_case() == kGetTriggers) { clear_has_response(); - auto* temp = _impl_.response_.get_triggers_; + auto* temp = reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_); _impl_.response_.get_triggers_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersResponse* value) { +inline void Response::unsafe_arena_set_allocated_get_triggers( + ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_get_triggers(); - _impl_.response_.get_triggers_ = value; + _impl_.response_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_triggers) } -inline ::subspace::GetTriggersResponse* Response::_internal_mutable_get_triggers() { +inline ::subspace::GetTriggersResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_triggers() { if (response_case() != kGetTriggers) { clear_response(); set_has_get_triggers(); - _impl_.response_.get_triggers_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::GetTriggersResponse>(GetArena()); + _impl_.response_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetTriggersResponse>(GetArena())); } - return _impl_.response_.get_triggers_; + return reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_); } -inline ::subspace::GetTriggersResponse* Response::mutable_get_triggers() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::GetTriggersResponse* PROTOBUF_NONNULL Response::mutable_get_triggers() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::GetTriggersResponse* _msg = _internal_mutable_get_triggers(); // @@protoc_insertion_point(field_mutable:subspace.Response.get_triggers) return _msg; @@ -19333,11 +21288,11 @@ inline void Response::clear_remove_publisher() { clear_has_response(); } } -inline ::subspace::RemovePublisherResponse* Response::release_remove_publisher() { +inline ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE Response::release_remove_publisher() { // @@protoc_insertion_point(field_release:subspace.Response.remove_publisher) if (response_case() == kRemovePublisher) { clear_has_response(); - auto* temp = _impl_.response_.remove_publisher_; + auto* temp = reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19348,44 +21303,47 @@ inline ::subspace::RemovePublisherResponse* Response::release_remove_publisher() } } inline const ::subspace::RemovePublisherResponse& Response::_internal_remove_publisher() const { - return response_case() == kRemovePublisher ? *_impl_.response_.remove_publisher_ : reinterpret_cast<::subspace::RemovePublisherResponse&>(::subspace::_RemovePublisherResponse_default_instance_); + return response_case() == kRemovePublisher ? static_cast(*reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_)) + : reinterpret_cast(::subspace::_RemovePublisherResponse_default_instance_); } inline const ::subspace::RemovePublisherResponse& Response::remove_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.remove_publisher) return _internal_remove_publisher(); } -inline ::subspace::RemovePublisherResponse* Response::unsafe_arena_release_remove_publisher() { +inline ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_remove_publisher() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.remove_publisher) if (response_case() == kRemovePublisher) { clear_has_response(); - auto* temp = _impl_.response_.remove_publisher_; + auto* temp = reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_); _impl_.response_.remove_publisher_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherResponse* value) { +inline void Response::unsafe_arena_set_allocated_remove_publisher( + ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_remove_publisher(); - _impl_.response_.remove_publisher_ = value; + _impl_.response_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.remove_publisher) } -inline ::subspace::RemovePublisherResponse* Response::_internal_mutable_remove_publisher() { +inline ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL Response::_internal_mutable_remove_publisher() { if (response_case() != kRemovePublisher) { clear_response(); set_has_remove_publisher(); - _impl_.response_.remove_publisher_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RemovePublisherResponse>(GetArena()); + _impl_.response_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::RemovePublisherResponse>(GetArena())); } - return _impl_.response_.remove_publisher_; + return reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_); } -inline ::subspace::RemovePublisherResponse* Response::mutable_remove_publisher() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL Response::mutable_remove_publisher() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RemovePublisherResponse* _msg = _internal_mutable_remove_publisher(); // @@protoc_insertion_point(field_mutable:subspace.Response.remove_publisher) return _msg; @@ -19412,11 +21370,11 @@ inline void Response::clear_remove_subscriber() { clear_has_response(); } } -inline ::subspace::RemoveSubscriberResponse* Response::release_remove_subscriber() { +inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE Response::release_remove_subscriber() { // @@protoc_insertion_point(field_release:subspace.Response.remove_subscriber) if (response_case() == kRemoveSubscriber) { clear_has_response(); - auto* temp = _impl_.response_.remove_subscriber_; + auto* temp = reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19427,44 +21385,47 @@ inline ::subspace::RemoveSubscriberResponse* Response::release_remove_subscriber } } inline const ::subspace::RemoveSubscriberResponse& Response::_internal_remove_subscriber() const { - return response_case() == kRemoveSubscriber ? *_impl_.response_.remove_subscriber_ : reinterpret_cast<::subspace::RemoveSubscriberResponse&>(::subspace::_RemoveSubscriberResponse_default_instance_); + return response_case() == kRemoveSubscriber ? static_cast(*reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_)) + : reinterpret_cast(::subspace::_RemoveSubscriberResponse_default_instance_); } inline const ::subspace::RemoveSubscriberResponse& Response::remove_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.remove_subscriber) return _internal_remove_subscriber(); } -inline ::subspace::RemoveSubscriberResponse* Response::unsafe_arena_release_remove_subscriber() { +inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_remove_subscriber() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.remove_subscriber) if (response_case() == kRemoveSubscriber) { clear_has_response(); - auto* temp = _impl_.response_.remove_subscriber_; + auto* temp = reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_); _impl_.response_.remove_subscriber_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* value) { +inline void Response::unsafe_arena_set_allocated_remove_subscriber( + ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_remove_subscriber(); - _impl_.response_.remove_subscriber_ = value; + _impl_.response_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.remove_subscriber) } -inline ::subspace::RemoveSubscriberResponse* Response::_internal_mutable_remove_subscriber() { +inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL Response::_internal_mutable_remove_subscriber() { if (response_case() != kRemoveSubscriber) { clear_response(); set_has_remove_subscriber(); - _impl_.response_.remove_subscriber_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RemoveSubscriberResponse>(GetArena()); + _impl_.response_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::RemoveSubscriberResponse>(GetArena())); } - return _impl_.response_.remove_subscriber_; + return reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_); } -inline ::subspace::RemoveSubscriberResponse* Response::mutable_remove_subscriber() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL Response::mutable_remove_subscriber() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RemoveSubscriberResponse* _msg = _internal_mutable_remove_subscriber(); // @@protoc_insertion_point(field_mutable:subspace.Response.remove_subscriber) return _msg; @@ -19491,11 +21452,11 @@ inline void Response::clear_get_channel_info() { clear_has_response(); } } -inline ::subspace::GetChannelInfoResponse* Response::release_get_channel_info() { +inline ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE Response::release_get_channel_info() { // @@protoc_insertion_point(field_release:subspace.Response.get_channel_info) if (response_case() == kGetChannelInfo) { clear_has_response(); - auto* temp = _impl_.response_.get_channel_info_; + auto* temp = reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19506,44 +21467,47 @@ inline ::subspace::GetChannelInfoResponse* Response::release_get_channel_info() } } inline const ::subspace::GetChannelInfoResponse& Response::_internal_get_channel_info() const { - return response_case() == kGetChannelInfo ? *_impl_.response_.get_channel_info_ : reinterpret_cast<::subspace::GetChannelInfoResponse&>(::subspace::_GetChannelInfoResponse_default_instance_); + return response_case() == kGetChannelInfo ? static_cast(*reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_)) + : reinterpret_cast(::subspace::_GetChannelInfoResponse_default_instance_); } inline const ::subspace::GetChannelInfoResponse& Response::get_channel_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.get_channel_info) return _internal_get_channel_info(); } -inline ::subspace::GetChannelInfoResponse* Response::unsafe_arena_release_get_channel_info() { +inline ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_channel_info() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_channel_info) if (response_case() == kGetChannelInfo) { clear_has_response(); - auto* temp = _impl_.response_.get_channel_info_; + auto* temp = reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_); _impl_.response_.get_channel_info_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* value) { +inline void Response::unsafe_arena_set_allocated_get_channel_info( + ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_get_channel_info(); - _impl_.response_.get_channel_info_ = value; + _impl_.response_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_channel_info) } -inline ::subspace::GetChannelInfoResponse* Response::_internal_mutable_get_channel_info() { +inline ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_channel_info() { if (response_case() != kGetChannelInfo) { clear_response(); set_has_get_channel_info(); - _impl_.response_.get_channel_info_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelInfoResponse>(GetArena()); + _impl_.response_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelInfoResponse>(GetArena())); } - return _impl_.response_.get_channel_info_; + return reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_); } -inline ::subspace::GetChannelInfoResponse* Response::mutable_get_channel_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL Response::mutable_get_channel_info() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::GetChannelInfoResponse* _msg = _internal_mutable_get_channel_info(); // @@protoc_insertion_point(field_mutable:subspace.Response.get_channel_info) return _msg; @@ -19570,11 +21534,11 @@ inline void Response::clear_get_channel_stats() { clear_has_response(); } } -inline ::subspace::GetChannelStatsResponse* Response::release_get_channel_stats() { +inline ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE Response::release_get_channel_stats() { // @@protoc_insertion_point(field_release:subspace.Response.get_channel_stats) if (response_case() == kGetChannelStats) { clear_has_response(); - auto* temp = _impl_.response_.get_channel_stats_; + auto* temp = reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -19585,49 +21549,216 @@ inline ::subspace::GetChannelStatsResponse* Response::release_get_channel_stats( } } inline const ::subspace::GetChannelStatsResponse& Response::_internal_get_channel_stats() const { - return response_case() == kGetChannelStats ? *_impl_.response_.get_channel_stats_ : reinterpret_cast<::subspace::GetChannelStatsResponse&>(::subspace::_GetChannelStatsResponse_default_instance_); + return response_case() == kGetChannelStats ? static_cast(*reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_)) + : reinterpret_cast(::subspace::_GetChannelStatsResponse_default_instance_); } inline const ::subspace::GetChannelStatsResponse& Response::get_channel_stats() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Response.get_channel_stats) return _internal_get_channel_stats(); } -inline ::subspace::GetChannelStatsResponse* Response::unsafe_arena_release_get_channel_stats() { +inline ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_channel_stats() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_channel_stats) if (response_case() == kGetChannelStats) { clear_has_response(); - auto* temp = _impl_.response_.get_channel_stats_; + auto* temp = reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_); _impl_.response_.get_channel_stats_ = nullptr; return temp; } else { return nullptr; } } -inline void Response::unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* value) { +inline void Response::unsafe_arena_set_allocated_get_channel_stats( + ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_response(); if (value) { set_has_get_channel_stats(); - _impl_.response_.get_channel_stats_ = value; + _impl_.response_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_channel_stats) } -inline ::subspace::GetChannelStatsResponse* Response::_internal_mutable_get_channel_stats() { +inline ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_channel_stats() { if (response_case() != kGetChannelStats) { clear_response(); set_has_get_channel_stats(); - _impl_.response_.get_channel_stats_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelStatsResponse>(GetArena()); + _impl_.response_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelStatsResponse>(GetArena())); } - return _impl_.response_.get_channel_stats_; + return reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_); } -inline ::subspace::GetChannelStatsResponse* Response::mutable_get_channel_stats() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL Response::mutable_get_channel_stats() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::GetChannelStatsResponse* _msg = _internal_mutable_get_channel_stats(); // @@protoc_insertion_point(field_mutable:subspace.Response.get_channel_stats) return _msg; } +// .subspace.GetClientBuffersResponse get_client_buffers = 11; +inline bool Response::has_get_client_buffers() const { + return response_case() == kGetClientBuffers; +} +inline bool Response::_internal_has_get_client_buffers() const { + return response_case() == kGetClientBuffers; +} +inline void Response::set_has_get_client_buffers() { + _impl_._oneof_case_[0] = kGetClientBuffers; +} +inline void Response::clear_get_client_buffers() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (response_case() == kGetClientBuffers) { + if (GetArena() == nullptr) { + delete _impl_.response_.get_client_buffers_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_client_buffers_); + } + clear_has_response(); + } +} +inline ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE Response::release_get_client_buffers() { + // @@protoc_insertion_point(field_release:subspace.Response.get_client_buffers) + if (response_case() == kGetClientBuffers) { + clear_has_response(); + auto* temp = reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.response_.get_client_buffers_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::subspace::GetClientBuffersResponse& Response::_internal_get_client_buffers() const { + return response_case() == kGetClientBuffers ? static_cast(*reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_)) + : reinterpret_cast(::subspace::_GetClientBuffersResponse_default_instance_); +} +inline const ::subspace::GetClientBuffersResponse& Response::get_client_buffers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.Response.get_client_buffers) + return _internal_get_client_buffers(); +} +inline ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_client_buffers() { + // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_client_buffers) + if (response_case() == kGetClientBuffers) { + clear_has_response(); + auto* temp = reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_); + _impl_.response_.get_client_buffers_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Response::unsafe_arena_set_allocated_get_client_buffers( + ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_response(); + if (value) { + set_has_get_client_buffers(); + _impl_.response_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>(value); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_client_buffers) +} +inline ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_client_buffers() { + if (response_case() != kGetClientBuffers) { + clear_response(); + set_has_get_client_buffers(); + _impl_.response_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::GetClientBuffersResponse>(GetArena())); + } + return reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_); +} +inline ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL Response::mutable_get_client_buffers() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::subspace::GetClientBuffersResponse* _msg = _internal_mutable_get_client_buffers(); + // @@protoc_insertion_point(field_mutable:subspace.Response.get_client_buffers) + return _msg; +} + +// .subspace.RegisterClientBufferResponse register_client_buffer = 12; +inline bool Response::has_register_client_buffer() const { + return response_case() == kRegisterClientBuffer; +} +inline bool Response::_internal_has_register_client_buffer() const { + return response_case() == kRegisterClientBuffer; +} +inline void Response::set_has_register_client_buffer() { + _impl_._oneof_case_[0] = kRegisterClientBuffer; +} +inline void Response::clear_register_client_buffer() { + ::google::protobuf::internal::TSanWrite(&_impl_); + if (response_case() == kRegisterClientBuffer) { + if (GetArena() == nullptr) { + delete _impl_.response_.register_client_buffer_; + } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { + ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.register_client_buffer_); + } + clear_has_response(); + } +} +inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE Response::release_register_client_buffer() { + // @@protoc_insertion_point(field_release:subspace.Response.register_client_buffer) + if (response_case() == kRegisterClientBuffer) { + clear_has_response(); + auto* temp = reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_); + if (GetArena() != nullptr) { + temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); + } + _impl_.response_.register_client_buffer_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::subspace::RegisterClientBufferResponse& Response::_internal_register_client_buffer() const { + return response_case() == kRegisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_)) + : reinterpret_cast(::subspace::_RegisterClientBufferResponse_default_instance_); +} +inline const ::subspace::RegisterClientBufferResponse& Response::register_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_get:subspace.Response.register_client_buffer) + return _internal_register_client_buffer(); +} +inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_register_client_buffer() { + // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.register_client_buffer) + if (response_case() == kRegisterClientBuffer) { + clear_has_response(); + auto* temp = reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_); + _impl_.response_.register_client_buffer_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Response::unsafe_arena_set_allocated_register_client_buffer( + ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE value) { + // We rely on the oneof clear method to free the earlier contents + // of this oneof. We can directly use the pointer we're given to + // set the new value. + clear_response(); + if (value) { + set_has_register_client_buffer(); + _impl_.response_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.register_client_buffer) +} +inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL Response::_internal_mutable_register_client_buffer() { + if (response_case() != kRegisterClientBuffer) { + clear_response(); + set_has_register_client_buffer(); + _impl_.response_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::RegisterClientBufferResponse>(GetArena())); + } + return reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_); +} +inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL Response::mutable_register_client_buffer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + ::subspace::RegisterClientBufferResponse* _msg = _internal_mutable_register_client_buffer(); + // @@protoc_insertion_point(field_mutable:subspace.Response.register_client_buffer) + return _msg; +} + inline bool Response::has_response() const { return response_case() != RESPONSE_NOT_SET; } @@ -19645,43 +21776,60 @@ inline Response::ResponseCase Response::response_case() const { inline void ChannelInfoProto::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ChannelInfoProto::name() const +inline const ::std::string& ChannelInfoProto::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.name) return _internal_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.name) } -inline std::string* ChannelInfoProto::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); +inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::mutable_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:subspace.ChannelInfoProto.name) return _s; } -inline const std::string& ChannelInfoProto::_internal_name() const { +inline const ::std::string& ChannelInfoProto::_internal_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } -inline void ChannelInfoProto::_internal_set_name(const std::string& value) { +inline void ChannelInfoProto::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.Set(value, GetArena()); } -inline std::string* ChannelInfoProto::_internal_mutable_name() { +inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.name_.Mutable( GetArena()); } -inline std::string* ChannelInfoProto::release_name() { +inline ::std::string* PROTOBUF_NULLABLE ChannelInfoProto::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ChannelInfoProto.name) - return _impl_.name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); + } + return released; } -inline void ChannelInfoProto::set_allocated_name(std::string* value) { +inline void ChannelInfoProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { _impl_.name_.Set("", GetArena()); @@ -19693,6 +21841,8 @@ inline void ChannelInfoProto::set_allocated_name(std::string* value) { inline void ChannelInfoProto::clear_slot_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t ChannelInfoProto::slot_size() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.slot_size) @@ -19700,6 +21850,7 @@ inline ::int32_t ChannelInfoProto::slot_size() const { } inline void ChannelInfoProto::set_slot_size(::int32_t value) { _internal_set_slot_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.slot_size) } inline ::int32_t ChannelInfoProto::_internal_slot_size() const { @@ -19715,6 +21866,8 @@ inline void ChannelInfoProto::_internal_set_slot_size(::int32_t value) { inline void ChannelInfoProto::clear_num_slots() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_slots_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t ChannelInfoProto::num_slots() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_slots) @@ -19722,6 +21875,7 @@ inline ::int32_t ChannelInfoProto::num_slots() const { } inline void ChannelInfoProto::set_num_slots(::int32_t value) { _internal_set_num_slots(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_slots) } inline ::int32_t ChannelInfoProto::_internal_num_slots() const { @@ -19737,43 +21891,60 @@ inline void ChannelInfoProto::_internal_set_num_slots(::int32_t value) { inline void ChannelInfoProto::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ChannelInfoProto::type() const +inline const ::std::string& ChannelInfoProto::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.type) } -inline std::string* ChannelInfoProto::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.ChannelInfoProto.type) return _s; } -inline const std::string& ChannelInfoProto::_internal_type() const { +inline const ::std::string& ChannelInfoProto::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void ChannelInfoProto::_internal_set_type(const std::string& value) { +inline void ChannelInfoProto::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* ChannelInfoProto::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* ChannelInfoProto::release_type() { +inline ::std::string* PROTOBUF_NULLABLE ChannelInfoProto::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ChannelInfoProto.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void ChannelInfoProto::set_allocated_type(std::string* value) { +inline void ChannelInfoProto::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -19785,6 +21956,8 @@ inline void ChannelInfoProto::set_allocated_type(std::string* value) { inline void ChannelInfoProto::clear_num_pubs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_pubs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::int32_t ChannelInfoProto::num_pubs() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_pubs) @@ -19792,6 +21965,7 @@ inline ::int32_t ChannelInfoProto::num_pubs() const { } inline void ChannelInfoProto::set_num_pubs(::int32_t value) { _internal_set_num_pubs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_pubs) } inline ::int32_t ChannelInfoProto::_internal_num_pubs() const { @@ -19807,6 +21981,8 @@ inline void ChannelInfoProto::_internal_set_num_pubs(::int32_t value) { inline void ChannelInfoProto::clear_num_subs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_subs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::int32_t ChannelInfoProto::num_subs() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_subs) @@ -19814,6 +21990,7 @@ inline ::int32_t ChannelInfoProto::num_subs() const { } inline void ChannelInfoProto::set_num_subs(::int32_t value) { _internal_set_num_subs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_subs) } inline ::int32_t ChannelInfoProto::_internal_num_subs() const { @@ -19829,6 +22006,8 @@ inline void ChannelInfoProto::_internal_set_num_subs(::int32_t value) { inline void ChannelInfoProto::clear_num_bridge_pubs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_bridge_pubs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::int32_t ChannelInfoProto::num_bridge_pubs() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_bridge_pubs) @@ -19836,6 +22015,7 @@ inline ::int32_t ChannelInfoProto::num_bridge_pubs() const { } inline void ChannelInfoProto::set_num_bridge_pubs(::int32_t value) { _internal_set_num_bridge_pubs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_bridge_pubs) } inline ::int32_t ChannelInfoProto::_internal_num_bridge_pubs() const { @@ -19851,6 +22031,8 @@ inline void ChannelInfoProto::_internal_set_num_bridge_pubs(::int32_t value) { inline void ChannelInfoProto::clear_num_bridge_subs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_bridge_subs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::int32_t ChannelInfoProto::num_bridge_subs() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_bridge_subs) @@ -19858,6 +22040,7 @@ inline ::int32_t ChannelInfoProto::num_bridge_subs() const { } inline void ChannelInfoProto::set_num_bridge_subs(::int32_t value) { _internal_set_num_bridge_subs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_bridge_subs) } inline ::int32_t ChannelInfoProto::_internal_num_bridge_subs() const { @@ -19873,6 +22056,8 @@ inline void ChannelInfoProto::_internal_set_num_bridge_subs(::int32_t value) { inline void ChannelInfoProto::clear_is_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline bool ChannelInfoProto::is_reliable() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.is_reliable) @@ -19880,6 +22065,7 @@ inline bool ChannelInfoProto::is_reliable() const { } inline void ChannelInfoProto::set_is_reliable(bool value) { _internal_set_is_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.is_reliable) } inline bool ChannelInfoProto::_internal_is_reliable() const { @@ -19895,6 +22081,8 @@ inline void ChannelInfoProto::_internal_set_is_reliable(bool value) { inline void ChannelInfoProto::clear_num_tunnel_pubs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_tunnel_pubs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::int32_t ChannelInfoProto::num_tunnel_pubs() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_tunnel_pubs) @@ -19902,6 +22090,7 @@ inline ::int32_t ChannelInfoProto::num_tunnel_pubs() const { } inline void ChannelInfoProto::set_num_tunnel_pubs(::int32_t value) { _internal_set_num_tunnel_pubs(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_tunnel_pubs) } inline ::int32_t ChannelInfoProto::_internal_num_tunnel_pubs() const { @@ -19917,6 +22106,8 @@ inline void ChannelInfoProto::_internal_set_num_tunnel_pubs(::int32_t value) { inline void ChannelInfoProto::clear_num_tunnel_subs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_tunnel_subs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline ::int32_t ChannelInfoProto::num_tunnel_subs() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_tunnel_subs) @@ -19924,6 +22115,7 @@ inline ::int32_t ChannelInfoProto::num_tunnel_subs() const { } inline void ChannelInfoProto::set_num_tunnel_subs(::int32_t value) { _internal_set_num_tunnel_subs(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_tunnel_subs) } inline ::int32_t ChannelInfoProto::_internal_num_tunnel_subs() const { @@ -19939,6 +22131,8 @@ inline void ChannelInfoProto::_internal_set_num_tunnel_subs(::int32_t value) { inline void ChannelInfoProto::clear_is_virtual() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_virtual_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline bool ChannelInfoProto::is_virtual() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.is_virtual) @@ -19946,6 +22140,7 @@ inline bool ChannelInfoProto::is_virtual() const { } inline void ChannelInfoProto::set_is_virtual(bool value) { _internal_set_is_virtual(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.is_virtual) } inline bool ChannelInfoProto::_internal_is_virtual() const { @@ -19961,6 +22156,8 @@ inline void ChannelInfoProto::_internal_set_is_virtual(bool value) { inline void ChannelInfoProto::clear_vchan_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vchan_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::int32_t ChannelInfoProto::vchan_id() const { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.vchan_id) @@ -19968,6 +22165,7 @@ inline ::int32_t ChannelInfoProto::vchan_id() const { } inline void ChannelInfoProto::set_vchan_id(::int32_t value) { _internal_set_vchan_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.vchan_id) } inline ::int32_t ChannelInfoProto::_internal_vchan_id() const { @@ -19983,43 +22181,60 @@ inline void ChannelInfoProto::_internal_set_vchan_id(::int32_t value) { inline void ChannelInfoProto::clear_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& ChannelInfoProto::mux() const +inline const ::std::string& ChannelInfoProto::mux() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.mux) return _internal_mux(); } template -inline PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_mux(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_mux(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.mux_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.mux) } -inline std::string* ChannelInfoProto::mutable_mux() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mux(); +inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::mutable_mux() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_mux(); // @@protoc_insertion_point(field_mutable:subspace.ChannelInfoProto.mux) return _s; } -inline const std::string& ChannelInfoProto::_internal_mux() const { +inline const ::std::string& ChannelInfoProto::_internal_mux() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mux_.Get(); } -inline void ChannelInfoProto::_internal_set_mux(const std::string& value) { +inline void ChannelInfoProto::_internal_set_mux(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.Set(value, GetArena()); } -inline std::string* ChannelInfoProto::_internal_mutable_mux() { +inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::_internal_mutable_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.mux_.Mutable( GetArena()); } -inline std::string* ChannelInfoProto::release_mux() { +inline ::std::string* PROTOBUF_NULLABLE ChannelInfoProto::release_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ChannelInfoProto.mux) - return _impl_.mux_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.mux_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mux_.Set("", GetArena()); + } + return released; } -inline void ChannelInfoProto::set_allocated_mux(std::string* value) { +inline void ChannelInfoProto::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } _impl_.mux_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { _impl_.mux_.Set("", GetArena()); @@ -20035,43 +22250,60 @@ inline void ChannelInfoProto::set_allocated_mux(std::string* value) { inline void ChannelDirectory::clear_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.server_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ChannelDirectory::server_id() const +inline const ::std::string& ChannelDirectory::server_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ChannelDirectory.server_id) return _internal_server_id(); } template -inline PROTOBUF_ALWAYS_INLINE void ChannelDirectory::set_server_id(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ChannelDirectory::set_server_id(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.server_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ChannelDirectory.server_id) } -inline std::string* ChannelDirectory::mutable_server_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_server_id(); +inline ::std::string* PROTOBUF_NONNULL ChannelDirectory::mutable_server_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_server_id(); // @@protoc_insertion_point(field_mutable:subspace.ChannelDirectory.server_id) return _s; } -inline const std::string& ChannelDirectory::_internal_server_id() const { +inline const ::std::string& ChannelDirectory::_internal_server_id() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.server_id_.Get(); } -inline void ChannelDirectory::_internal_set_server_id(const std::string& value) { +inline void ChannelDirectory::_internal_set_server_id(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.server_id_.Set(value, GetArena()); } -inline std::string* ChannelDirectory::_internal_mutable_server_id() { +inline ::std::string* PROTOBUF_NONNULL ChannelDirectory::_internal_mutable_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.server_id_.Mutable( GetArena()); } -inline std::string* ChannelDirectory::release_server_id() { +inline ::std::string* PROTOBUF_NULLABLE ChannelDirectory::release_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ChannelDirectory.server_id) - return _impl_.server_id_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.server_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.server_id_.Set("", GetArena()); + } + return released; } -inline void ChannelDirectory::set_allocated_server_id(std::string* value) { +inline void ChannelDirectory::set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.server_id_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.server_id_.IsDefault()) { _impl_.server_id_.Set("", GetArena()); @@ -20089,14 +22321,17 @@ inline int ChannelDirectory::channels_size() const { inline void ChannelDirectory::clear_channels() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::subspace::ChannelInfoProto* ChannelDirectory::mutable_channels(int index) +inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL ChannelDirectory::mutable_channels(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:subspace.ChannelDirectory.channels) return _internal_mutable_channels()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* ChannelDirectory::mutable_channels() +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL ChannelDirectory::mutable_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.ChannelDirectory.channels) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); @@ -20106,9 +22341,13 @@ inline const ::subspace::ChannelInfoProto& ChannelDirectory::channels(int index) // @@protoc_insertion_point(field_get:subspace.ChannelDirectory.channels) return _internal_channels().Get(index); } -inline ::subspace::ChannelInfoProto* ChannelDirectory::add_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL ChannelDirectory::add_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelInfoProto* _add = _internal_mutable_channels()->Add(); + ::subspace::ChannelInfoProto* _add = + _internal_mutable_channels()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.ChannelDirectory.channels) return _add; } @@ -20122,7 +22361,7 @@ ChannelDirectory::_internal_channels() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channels_; } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL ChannelDirectory::_internal_mutable_channels() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.channels_; @@ -20136,43 +22375,60 @@ ChannelDirectory::_internal_mutable_channels() { inline void ChannelStatsProto::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ChannelStatsProto::channel_name() const +inline const ::std::string& ChannelStatsProto::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ChannelStatsProto::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ChannelStatsProto::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.channel_name) } -inline std::string* ChannelStatsProto::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ChannelStatsProto::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ChannelStatsProto.channel_name) return _s; } -inline const std::string& ChannelStatsProto::_internal_channel_name() const { +inline const ::std::string& ChannelStatsProto::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ChannelStatsProto::_internal_set_channel_name(const std::string& value) { +inline void ChannelStatsProto::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ChannelStatsProto::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ChannelStatsProto::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ChannelStatsProto::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ChannelStatsProto::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ChannelStatsProto.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ChannelStatsProto::set_allocated_channel_name(std::string* value) { +inline void ChannelStatsProto::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -20184,6 +22440,8 @@ inline void ChannelStatsProto::set_allocated_channel_name(std::string* value) { inline void ChannelStatsProto::clear_total_bytes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_bytes_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int64_t ChannelStatsProto::total_bytes() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.total_bytes) @@ -20191,6 +22449,7 @@ inline ::int64_t ChannelStatsProto::total_bytes() const { } inline void ChannelStatsProto::set_total_bytes(::int64_t value) { _internal_set_total_bytes(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.total_bytes) } inline ::int64_t ChannelStatsProto::_internal_total_bytes() const { @@ -20206,6 +22465,8 @@ inline void ChannelStatsProto::_internal_set_total_bytes(::int64_t value) { inline void ChannelStatsProto::clear_total_messages() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_messages_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int64_t ChannelStatsProto::total_messages() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.total_messages) @@ -20213,6 +22474,7 @@ inline ::int64_t ChannelStatsProto::total_messages() const { } inline void ChannelStatsProto::set_total_messages(::int64_t value) { _internal_set_total_messages(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.total_messages) } inline ::int64_t ChannelStatsProto::_internal_total_messages() const { @@ -20228,6 +22490,8 @@ inline void ChannelStatsProto::_internal_set_total_messages(::int64_t value) { inline void ChannelStatsProto::clear_slot_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t ChannelStatsProto::slot_size() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.slot_size) @@ -20235,6 +22499,7 @@ inline ::int32_t ChannelStatsProto::slot_size() const { } inline void ChannelStatsProto::set_slot_size(::int32_t value) { _internal_set_slot_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.slot_size) } inline ::int32_t ChannelStatsProto::_internal_slot_size() const { @@ -20250,6 +22515,8 @@ inline void ChannelStatsProto::_internal_set_slot_size(::int32_t value) { inline void ChannelStatsProto::clear_num_slots() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_slots_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t ChannelStatsProto::num_slots() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_slots) @@ -20257,6 +22524,7 @@ inline ::int32_t ChannelStatsProto::num_slots() const { } inline void ChannelStatsProto::set_num_slots(::int32_t value) { _internal_set_num_slots(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_slots) } inline ::int32_t ChannelStatsProto::_internal_num_slots() const { @@ -20272,6 +22540,8 @@ inline void ChannelStatsProto::_internal_set_num_slots(::int32_t value) { inline void ChannelStatsProto::clear_num_pubs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_pubs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::int32_t ChannelStatsProto::num_pubs() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_pubs) @@ -20279,6 +22549,7 @@ inline ::int32_t ChannelStatsProto::num_pubs() const { } inline void ChannelStatsProto::set_num_pubs(::int32_t value) { _internal_set_num_pubs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_pubs) } inline ::int32_t ChannelStatsProto::_internal_num_pubs() const { @@ -20294,6 +22565,8 @@ inline void ChannelStatsProto::_internal_set_num_pubs(::int32_t value) { inline void ChannelStatsProto::clear_num_subs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_subs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline ::int32_t ChannelStatsProto::num_subs() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_subs) @@ -20301,6 +22574,7 @@ inline ::int32_t ChannelStatsProto::num_subs() const { } inline void ChannelStatsProto::set_num_subs(::int32_t value) { _internal_set_num_subs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_subs) } inline ::int32_t ChannelStatsProto::_internal_num_subs() const { @@ -20316,6 +22590,8 @@ inline void ChannelStatsProto::_internal_set_num_subs(::int32_t value) { inline void ChannelStatsProto::clear_max_message_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_message_size_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline ::uint32_t ChannelStatsProto::max_message_size() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.max_message_size) @@ -20323,6 +22599,7 @@ inline ::uint32_t ChannelStatsProto::max_message_size() const { } inline void ChannelStatsProto::set_max_message_size(::uint32_t value) { _internal_set_max_message_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.max_message_size) } inline ::uint32_t ChannelStatsProto::_internal_max_message_size() const { @@ -20338,6 +22615,8 @@ inline void ChannelStatsProto::_internal_set_max_message_size(::uint32_t value) inline void ChannelStatsProto::clear_total_drops() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.total_drops_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline ::uint32_t ChannelStatsProto::total_drops() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.total_drops) @@ -20345,6 +22624,7 @@ inline ::uint32_t ChannelStatsProto::total_drops() const { } inline void ChannelStatsProto::set_total_drops(::uint32_t value) { _internal_set_total_drops(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.total_drops) } inline ::uint32_t ChannelStatsProto::_internal_total_drops() const { @@ -20360,6 +22640,8 @@ inline void ChannelStatsProto::_internal_set_total_drops(::uint32_t value) { inline void ChannelStatsProto::clear_num_bridge_pubs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_bridge_pubs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::int32_t ChannelStatsProto::num_bridge_pubs() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_bridge_pubs) @@ -20367,6 +22649,7 @@ inline ::int32_t ChannelStatsProto::num_bridge_pubs() const { } inline void ChannelStatsProto::set_num_bridge_pubs(::int32_t value) { _internal_set_num_bridge_pubs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_bridge_pubs) } inline ::int32_t ChannelStatsProto::_internal_num_bridge_pubs() const { @@ -20382,6 +22665,8 @@ inline void ChannelStatsProto::_internal_set_num_bridge_pubs(::int32_t value) { inline void ChannelStatsProto::clear_num_bridge_subs() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_bridge_subs_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::int32_t ChannelStatsProto::num_bridge_subs() const { // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_bridge_subs) @@ -20389,6 +22674,7 @@ inline ::int32_t ChannelStatsProto::num_bridge_subs() const { } inline void ChannelStatsProto::set_num_bridge_subs(::int32_t value) { _internal_set_num_bridge_subs(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_bridge_subs) } inline ::int32_t ChannelStatsProto::_internal_num_bridge_subs() const { @@ -20408,43 +22694,60 @@ inline void ChannelStatsProto::_internal_set_num_bridge_subs(::int32_t value) { inline void Statistics::clear_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.server_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& Statistics::server_id() const +inline const ::std::string& Statistics::server_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Statistics.server_id) return _internal_server_id(); } template -inline PROTOBUF_ALWAYS_INLINE void Statistics::set_server_id(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void Statistics::set_server_id(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.server_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.Statistics.server_id) } -inline std::string* Statistics::mutable_server_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_server_id(); +inline ::std::string* PROTOBUF_NONNULL Statistics::mutable_server_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_server_id(); // @@protoc_insertion_point(field_mutable:subspace.Statistics.server_id) return _s; } -inline const std::string& Statistics::_internal_server_id() const { +inline const ::std::string& Statistics::_internal_server_id() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.server_id_.Get(); } -inline void Statistics::_internal_set_server_id(const std::string& value) { +inline void Statistics::_internal_set_server_id(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.server_id_.Set(value, GetArena()); } -inline std::string* Statistics::_internal_mutable_server_id() { +inline ::std::string* PROTOBUF_NONNULL Statistics::_internal_mutable_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.server_id_.Mutable( GetArena()); } -inline std::string* Statistics::release_server_id() { +inline ::std::string* PROTOBUF_NULLABLE Statistics::release_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Statistics.server_id) - return _impl_.server_id_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.server_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.server_id_.Set("", GetArena()); + } + return released; } -inline void Statistics::set_allocated_server_id(std::string* value) { +inline void Statistics::set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.server_id_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.server_id_.IsDefault()) { _impl_.server_id_.Set("", GetArena()); @@ -20456,6 +22759,8 @@ inline void Statistics::set_allocated_server_id(std::string* value) { inline void Statistics::clear_timestamp() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.timestamp_ = ::int64_t{0}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int64_t Statistics::timestamp() const { // @@protoc_insertion_point(field_get:subspace.Statistics.timestamp) @@ -20463,6 +22768,7 @@ inline ::int64_t Statistics::timestamp() const { } inline void Statistics::set_timestamp(::int64_t value) { _internal_set_timestamp(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.Statistics.timestamp) } inline ::int64_t Statistics::_internal_timestamp() const { @@ -20484,14 +22790,17 @@ inline int Statistics::channels_size() const { inline void Statistics::clear_channels() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channels_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::subspace::ChannelStatsProto* Statistics::mutable_channels(int index) +inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL Statistics::mutable_channels(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:subspace.Statistics.channels) return _internal_mutable_channels()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* Statistics::mutable_channels() +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL Statistics::mutable_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.Statistics.channels) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_channels(); @@ -20501,9 +22810,13 @@ inline const ::subspace::ChannelStatsProto& Statistics::channels(int index) cons // @@protoc_insertion_point(field_get:subspace.Statistics.channels) return _internal_channels().Get(index); } -inline ::subspace::ChannelStatsProto* Statistics::add_channels() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL Statistics::add_channels() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelStatsProto* _add = _internal_mutable_channels()->Add(); + ::subspace::ChannelStatsProto* _add = + _internal_mutable_channels()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.Statistics.channels) return _add; } @@ -20517,7 +22830,7 @@ Statistics::_internal_channels() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channels_; } -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* +inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL Statistics::_internal_mutable_channels() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.channels_; @@ -20531,43 +22844,60 @@ Statistics::_internal_mutable_channels() { inline void ChannelAddress::clear_address() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ChannelAddress::address() const +inline const ::std::string& ChannelAddress::address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ChannelAddress.address) return _internal_address(); } template -inline PROTOBUF_ALWAYS_INLINE void ChannelAddress::set_address(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ChannelAddress::set_address(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.address_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ChannelAddress.address) } -inline std::string* ChannelAddress::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_address(); +inline ::std::string* PROTOBUF_NONNULL ChannelAddress::mutable_address() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:subspace.ChannelAddress.address) return _s; } -inline const std::string& ChannelAddress::_internal_address() const { +inline const ::std::string& ChannelAddress::_internal_address() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.address_.Get(); } -inline void ChannelAddress::_internal_set_address(const std::string& value) { +inline void ChannelAddress::_internal_set_address(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.Set(value, GetArena()); } -inline std::string* ChannelAddress::_internal_mutable_address() { +inline ::std::string* PROTOBUF_NONNULL ChannelAddress::_internal_mutable_address() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.address_.Mutable( GetArena()); } -inline std::string* ChannelAddress::release_address() { +inline ::std::string* PROTOBUF_NULLABLE ChannelAddress::release_address() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ChannelAddress.address) - return _impl_.address_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.address_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.address_.Set("", GetArena()); + } + return released; } -inline void ChannelAddress::set_allocated_address(std::string* value) { +inline void ChannelAddress::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.address_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { _impl_.address_.Set("", GetArena()); @@ -20579,6 +22909,8 @@ inline void ChannelAddress::set_allocated_address(std::string* value) { inline void ChannelAddress::clear_port() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.port_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t ChannelAddress::port() const { // @@protoc_insertion_point(field_get:subspace.ChannelAddress.port) @@ -20586,6 +22918,7 @@ inline ::int32_t ChannelAddress::port() const { } inline void ChannelAddress::set_port(::int32_t value) { _internal_set_port(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ChannelAddress.port) } inline ::int32_t ChannelAddress::_internal_port() const { @@ -20605,43 +22938,60 @@ inline void ChannelAddress::_internal_set_port(::int32_t value) { inline void Subscribed::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Subscribed::channel_name() const +inline const ::std::string& Subscribed::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Subscribed.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void Subscribed::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void Subscribed::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.Subscribed.channel_name) } -inline std::string* Subscribed::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL Subscribed::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.Subscribed.channel_name) return _s; } -inline const std::string& Subscribed::_internal_channel_name() const { +inline const ::std::string& Subscribed::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void Subscribed::_internal_set_channel_name(const std::string& value) { +inline void Subscribed::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* Subscribed::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL Subscribed::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* Subscribed::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE Subscribed::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Subscribed.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void Subscribed::set_allocated_channel_name(std::string* value) { +inline void Subscribed::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -20653,6 +23003,8 @@ inline void Subscribed::set_allocated_channel_name(std::string* value) { inline void Subscribed::clear_slot_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t Subscribed::slot_size() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.slot_size) @@ -20660,6 +23012,7 @@ inline ::int32_t Subscribed::slot_size() const { } inline void Subscribed::set_slot_size(::int32_t value) { _internal_set_slot_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.Subscribed.slot_size) } inline ::int32_t Subscribed::_internal_slot_size() const { @@ -20675,6 +23028,8 @@ inline void Subscribed::_internal_set_slot_size(::int32_t value) { inline void Subscribed::clear_num_slots() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_slots_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t Subscribed::num_slots() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.num_slots) @@ -20682,6 +23037,7 @@ inline ::int32_t Subscribed::num_slots() const { } inline void Subscribed::set_num_slots(::int32_t value) { _internal_set_num_slots(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.Subscribed.num_slots) } inline ::int32_t Subscribed::_internal_num_slots() const { @@ -20697,6 +23053,8 @@ inline void Subscribed::_internal_set_num_slots(::int32_t value) { inline void Subscribed::clear_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool Subscribed::reliable() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.reliable) @@ -20704,6 +23062,7 @@ inline bool Subscribed::reliable() const { } inline void Subscribed::set_reliable(bool value) { _internal_set_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.Subscribed.reliable) } inline bool Subscribed::_internal_reliable() const { @@ -20719,6 +23078,8 @@ inline void Subscribed::_internal_set_reliable(bool value) { inline void Subscribed::clear_notify_retirement() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.notify_retirement_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool Subscribed::notify_retirement() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.notify_retirement) @@ -20726,6 +23087,7 @@ inline bool Subscribed::notify_retirement() const { } inline void Subscribed::set_notify_retirement(bool value) { _internal_set_notify_retirement(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.Subscribed.notify_retirement) } inline bool Subscribed::_internal_notify_retirement() const { @@ -20739,14 +23101,15 @@ inline void Subscribed::_internal_set_notify_retirement(bool value) { // .subspace.ChannelAddress retirement_socket = 6; inline bool Subscribed::has_retirement_socket() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); PROTOBUF_ASSUME(!value || _impl_.retirement_socket_ != nullptr); return value; } inline void Subscribed::clear_retirement_socket() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.retirement_socket_ != nullptr) _impl_.retirement_socket_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::subspace::ChannelAddress& Subscribed::_internal_retirement_socket() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -20757,23 +23120,24 @@ inline const ::subspace::ChannelAddress& Subscribed::retirement_socket() const A // @@protoc_insertion_point(field_get:subspace.Subscribed.retirement_socket) return _internal_retirement_socket(); } -inline void Subscribed::unsafe_arena_set_allocated_retirement_socket(::subspace::ChannelAddress* value) { +inline void Subscribed::unsafe_arena_set_allocated_retirement_socket( + ::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.retirement_socket_); } _impl_.retirement_socket_ = reinterpret_cast<::subspace::ChannelAddress*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Subscribed.retirement_socket) } -inline ::subspace::ChannelAddress* Subscribed::release_retirement_socket() { +inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Subscribed::release_retirement_socket() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::subspace::ChannelAddress* released = _impl_.retirement_socket_; _impl_.retirement_socket_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -20789,16 +23153,16 @@ inline ::subspace::ChannelAddress* Subscribed::release_retirement_socket() { } return released; } -inline ::subspace::ChannelAddress* Subscribed::unsafe_arena_release_retirement_socket() { +inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Subscribed::unsafe_arena_release_retirement_socket() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Subscribed.retirement_socket) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::subspace::ChannelAddress* temp = _impl_.retirement_socket_; _impl_.retirement_socket_ = nullptr; return temp; } -inline ::subspace::ChannelAddress* Subscribed::_internal_mutable_retirement_socket() { +inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Subscribed::_internal_mutable_retirement_socket() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.retirement_socket_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ChannelAddress>(GetArena()); @@ -20806,27 +23170,28 @@ inline ::subspace::ChannelAddress* Subscribed::_internal_mutable_retirement_sock } return _impl_.retirement_socket_; } -inline ::subspace::ChannelAddress* Subscribed::mutable_retirement_socket() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Subscribed::mutable_retirement_socket() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::subspace::ChannelAddress* _msg = _internal_mutable_retirement_socket(); // @@protoc_insertion_point(field_mutable:subspace.Subscribed.retirement_socket) return _msg; } -inline void Subscribed::set_allocated_retirement_socket(::subspace::ChannelAddress* value) { +inline void Subscribed::set_allocated_retirement_socket(::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.retirement_socket_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.retirement_socket_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.retirement_socket_ = reinterpret_cast<::subspace::ChannelAddress*>(value); @@ -20837,6 +23202,8 @@ inline void Subscribed::set_allocated_retirement_socket(::subspace::ChannelAddre inline void Subscribed::clear_checksum_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.checksum_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t Subscribed::checksum_size() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.checksum_size) @@ -20844,6 +23211,7 @@ inline ::int32_t Subscribed::checksum_size() const { } inline void Subscribed::set_checksum_size(::int32_t value) { _internal_set_checksum_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.Subscribed.checksum_size) } inline ::int32_t Subscribed::_internal_checksum_size() const { @@ -20859,6 +23227,8 @@ inline void Subscribed::_internal_set_checksum_size(::int32_t value) { inline void Subscribed::clear_metadata_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.metadata_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline ::int32_t Subscribed::metadata_size() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.metadata_size) @@ -20866,6 +23236,7 @@ inline ::int32_t Subscribed::metadata_size() const { } inline void Subscribed::set_metadata_size(::int32_t value) { _internal_set_metadata_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.Subscribed.metadata_size) } inline ::int32_t Subscribed::_internal_metadata_size() const { @@ -20881,6 +23252,8 @@ inline void Subscribed::_internal_set_metadata_size(::int32_t value) { inline void Subscribed::clear_split_buffers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.split_buffers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool Subscribed::split_buffers() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.split_buffers) @@ -20888,6 +23261,7 @@ inline bool Subscribed::split_buffers() const { } inline void Subscribed::set_split_buffers(bool value) { _internal_set_split_buffers(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.Subscribed.split_buffers) } inline bool Subscribed::_internal_split_buffers() const { @@ -20903,6 +23277,8 @@ inline void Subscribed::_internal_set_split_buffers(bool value) { inline void Subscribed::clear_split_buffers_over_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.split_buffers_over_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline bool Subscribed::split_buffers_over_bridge() const { // @@protoc_insertion_point(field_get:subspace.Subscribed.split_buffers_over_bridge) @@ -20910,6 +23286,7 @@ inline bool Subscribed::split_buffers_over_bridge() const { } inline void Subscribed::set_split_buffers_over_bridge(bool value) { _internal_set_split_buffers_over_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.Subscribed.split_buffers_over_bridge) } inline bool Subscribed::_internal_split_buffers_over_bridge() const { @@ -20929,6 +23306,8 @@ inline void Subscribed::_internal_set_split_buffers_over_bridge(bool value) { inline void RetirementNotification::clear_slot_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::int32_t RetirementNotification::slot_id() const { // @@protoc_insertion_point(field_get:subspace.RetirementNotification.slot_id) @@ -20936,6 +23315,7 @@ inline ::int32_t RetirementNotification::slot_id() const { } inline void RetirementNotification::set_slot_id(::int32_t value) { _internal_set_slot_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:subspace.RetirementNotification.slot_id) } inline ::int32_t RetirementNotification::_internal_slot_id() const { @@ -20955,43 +23335,60 @@ inline void RetirementNotification::_internal_set_slot_id(::int32_t value) { inline void Discovery_Query::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Discovery_Query::channel_name() const +inline const ::std::string& Discovery_Query::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Discovery.Query.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void Discovery_Query::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void Discovery_Query::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.Discovery.Query.channel_name) } -inline std::string* Discovery_Query::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL Discovery_Query::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.Query.channel_name) return _s; } -inline const std::string& Discovery_Query::_internal_channel_name() const { +inline const ::std::string& Discovery_Query::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void Discovery_Query::_internal_set_channel_name(const std::string& value) { +inline void Discovery_Query::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* Discovery_Query::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL Discovery_Query::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* Discovery_Query::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE Discovery_Query::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Discovery.Query.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void Discovery_Query::set_allocated_channel_name(std::string* value) { +inline void Discovery_Query::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -21007,43 +23404,60 @@ inline void Discovery_Query::set_allocated_channel_name(std::string* value) { inline void Discovery_Advertise::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Discovery_Advertise::channel_name() const +inline const ::std::string& Discovery_Advertise::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void Discovery_Advertise::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void Discovery_Advertise::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.channel_name) } -inline std::string* Discovery_Advertise::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL Discovery_Advertise::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.Advertise.channel_name) return _s; } -inline const std::string& Discovery_Advertise::_internal_channel_name() const { +inline const ::std::string& Discovery_Advertise::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void Discovery_Advertise::_internal_set_channel_name(const std::string& value) { +inline void Discovery_Advertise::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* Discovery_Advertise::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL Discovery_Advertise::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* Discovery_Advertise::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE Discovery_Advertise::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Discovery.Advertise.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void Discovery_Advertise::set_allocated_channel_name(std::string* value) { +inline void Discovery_Advertise::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -21055,6 +23469,8 @@ inline void Discovery_Advertise::set_allocated_channel_name(std::string* value) inline void Discovery_Advertise::clear_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool Discovery_Advertise::reliable() const { // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.reliable) @@ -21062,6 +23478,7 @@ inline bool Discovery_Advertise::reliable() const { } inline void Discovery_Advertise::set_reliable(bool value) { _internal_set_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.reliable) } inline bool Discovery_Advertise::_internal_reliable() const { @@ -21077,6 +23494,8 @@ inline void Discovery_Advertise::_internal_set_reliable(bool value) { inline void Discovery_Advertise::clear_notify_retirement() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.notify_retirement_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool Discovery_Advertise::notify_retirement() const { // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.notify_retirement) @@ -21084,6 +23503,7 @@ inline bool Discovery_Advertise::notify_retirement() const { } inline void Discovery_Advertise::set_notify_retirement(bool value) { _internal_set_notify_retirement(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.notify_retirement) } inline bool Discovery_Advertise::_internal_notify_retirement() const { @@ -21099,6 +23519,8 @@ inline void Discovery_Advertise::_internal_set_notify_retirement(bool value) { inline void Discovery_Advertise::clear_split_buffers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.split_buffers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool Discovery_Advertise::split_buffers() const { // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.split_buffers) @@ -21106,6 +23528,7 @@ inline bool Discovery_Advertise::split_buffers() const { } inline void Discovery_Advertise::set_split_buffers(bool value) { _internal_set_split_buffers(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.split_buffers) } inline bool Discovery_Advertise::_internal_split_buffers() const { @@ -21125,43 +23548,60 @@ inline void Discovery_Advertise::_internal_set_split_buffers(bool value) { inline void Discovery_Subscribe::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Discovery_Subscribe::channel_name() const +inline const ::std::string& Discovery_Subscribe::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Discovery.Subscribe.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void Discovery_Subscribe::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void Discovery_Subscribe::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.Discovery.Subscribe.channel_name) } -inline std::string* Discovery_Subscribe::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL Discovery_Subscribe::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.Subscribe.channel_name) return _s; } -inline const std::string& Discovery_Subscribe::_internal_channel_name() const { +inline const ::std::string& Discovery_Subscribe::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void Discovery_Subscribe::_internal_set_channel_name(const std::string& value) { +inline void Discovery_Subscribe::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* Discovery_Subscribe::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL Discovery_Subscribe::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* Discovery_Subscribe::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE Discovery_Subscribe::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Discovery.Subscribe.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void Discovery_Subscribe::set_allocated_channel_name(std::string* value) { +inline void Discovery_Subscribe::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -21171,14 +23611,15 @@ inline void Discovery_Subscribe::set_allocated_channel_name(std::string* value) // .subspace.ChannelAddress receiver = 2; inline bool Discovery_Subscribe::has_receiver() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); PROTOBUF_ASSUME(!value || _impl_.receiver_ != nullptr); return value; } inline void Discovery_Subscribe::clear_receiver() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.receiver_ != nullptr) _impl_.receiver_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline const ::subspace::ChannelAddress& Discovery_Subscribe::_internal_receiver() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -21189,23 +23630,24 @@ inline const ::subspace::ChannelAddress& Discovery_Subscribe::receiver() const A // @@protoc_insertion_point(field_get:subspace.Discovery.Subscribe.receiver) return _internal_receiver(); } -inline void Discovery_Subscribe::unsafe_arena_set_allocated_receiver(::subspace::ChannelAddress* value) { +inline void Discovery_Subscribe::unsafe_arena_set_allocated_receiver( + ::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receiver_); } _impl_.receiver_ = reinterpret_cast<::subspace::ChannelAddress*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.Subscribe.receiver) } -inline ::subspace::ChannelAddress* Discovery_Subscribe::release_receiver() { +inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Discovery_Subscribe::release_receiver() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::subspace::ChannelAddress* released = _impl_.receiver_; _impl_.receiver_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -21221,16 +23663,16 @@ inline ::subspace::ChannelAddress* Discovery_Subscribe::release_receiver() { } return released; } -inline ::subspace::ChannelAddress* Discovery_Subscribe::unsafe_arena_release_receiver() { +inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Discovery_Subscribe::unsafe_arena_release_receiver() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Discovery.Subscribe.receiver) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::subspace::ChannelAddress* temp = _impl_.receiver_; _impl_.receiver_ = nullptr; return temp; } -inline ::subspace::ChannelAddress* Discovery_Subscribe::_internal_mutable_receiver() { +inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Discovery_Subscribe::_internal_mutable_receiver() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.receiver_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ChannelAddress>(GetArena()); @@ -21238,27 +23680,28 @@ inline ::subspace::ChannelAddress* Discovery_Subscribe::_internal_mutable_receiv } return _impl_.receiver_; } -inline ::subspace::ChannelAddress* Discovery_Subscribe::mutable_receiver() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Discovery_Subscribe::mutable_receiver() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::subspace::ChannelAddress* _msg = _internal_mutable_receiver(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.Subscribe.receiver) return _msg; } -inline void Discovery_Subscribe::set_allocated_receiver(::subspace::ChannelAddress* value) { +inline void Discovery_Subscribe::set_allocated_receiver(::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.receiver_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receiver_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.receiver_ = reinterpret_cast<::subspace::ChannelAddress*>(value); @@ -21269,6 +23712,8 @@ inline void Discovery_Subscribe::set_allocated_receiver(::subspace::ChannelAddre inline void Discovery_Subscribe::clear_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool Discovery_Subscribe::reliable() const { // @@protoc_insertion_point(field_get:subspace.Discovery.Subscribe.reliable) @@ -21276,6 +23721,7 @@ inline bool Discovery_Subscribe::reliable() const { } inline void Discovery_Subscribe::set_reliable(bool value) { _internal_set_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.Discovery.Subscribe.reliable) } inline bool Discovery_Subscribe::_internal_reliable() const { @@ -21295,43 +23741,60 @@ inline void Discovery_Subscribe::_internal_set_reliable(bool value) { inline void Discovery::clear_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.server_id_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& Discovery::server_id() const +inline const ::std::string& Discovery::server_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Discovery.server_id) return _internal_server_id(); } template -inline PROTOBUF_ALWAYS_INLINE void Discovery::set_server_id(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void Discovery::set_server_id(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.server_id_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.Discovery.server_id) } -inline std::string* Discovery::mutable_server_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_server_id(); +inline ::std::string* PROTOBUF_NONNULL Discovery::mutable_server_id() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_server_id(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.server_id) return _s; } -inline const std::string& Discovery::_internal_server_id() const { +inline const ::std::string& Discovery::_internal_server_id() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.server_id_.Get(); } -inline void Discovery::_internal_set_server_id(const std::string& value) { +inline void Discovery::_internal_set_server_id(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.server_id_.Set(value, GetArena()); } -inline std::string* Discovery::_internal_mutable_server_id() { +inline ::std::string* PROTOBUF_NONNULL Discovery::_internal_mutable_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.server_id_.Mutable( GetArena()); } -inline std::string* Discovery::release_server_id() { +inline ::std::string* PROTOBUF_NULLABLE Discovery::release_server_id() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.Discovery.server_id) - return _impl_.server_id_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.server_id_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.server_id_.Set("", GetArena()); + } + return released; } -inline void Discovery::set_allocated_server_id(std::string* value) { +inline void Discovery::set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.server_id_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.server_id_.IsDefault()) { _impl_.server_id_.Set("", GetArena()); @@ -21343,6 +23806,8 @@ inline void Discovery::set_allocated_server_id(std::string* value) { inline void Discovery::clear_port() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.port_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t Discovery::port() const { // @@protoc_insertion_point(field_get:subspace.Discovery.port) @@ -21350,6 +23815,7 @@ inline ::int32_t Discovery::port() const { } inline void Discovery::set_port(::int32_t value) { _internal_set_port(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.Discovery.port) } inline ::int32_t Discovery::_internal_port() const { @@ -21382,11 +23848,11 @@ inline void Discovery::clear_query() { clear_has_data(); } } -inline ::subspace::Discovery_Query* Discovery::release_query() { +inline ::subspace::Discovery_Query* PROTOBUF_NULLABLE Discovery::release_query() { // @@protoc_insertion_point(field_release:subspace.Discovery.query) if (data_case() == kQuery) { clear_has_data(); - auto* temp = _impl_.data_.query_; + auto* temp = reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -21397,44 +23863,47 @@ inline ::subspace::Discovery_Query* Discovery::release_query() { } } inline const ::subspace::Discovery_Query& Discovery::_internal_query() const { - return data_case() == kQuery ? *_impl_.data_.query_ : reinterpret_cast<::subspace::Discovery_Query&>(::subspace::_Discovery_Query_default_instance_); + return data_case() == kQuery ? static_cast(*reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_)) + : reinterpret_cast(::subspace::_Discovery_Query_default_instance_); } inline const ::subspace::Discovery_Query& Discovery::query() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Discovery.query) return _internal_query(); } -inline ::subspace::Discovery_Query* Discovery::unsafe_arena_release_query() { +inline ::subspace::Discovery_Query* PROTOBUF_NULLABLE Discovery::unsafe_arena_release_query() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Discovery.query) if (data_case() == kQuery) { clear_has_data(); - auto* temp = _impl_.data_.query_; + auto* temp = reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_); _impl_.data_.query_ = nullptr; return temp; } else { return nullptr; } } -inline void Discovery::unsafe_arena_set_allocated_query(::subspace::Discovery_Query* value) { +inline void Discovery::unsafe_arena_set_allocated_query( + ::subspace::Discovery_Query* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_data(); if (value) { set_has_query(); - _impl_.data_.query_ = value; + _impl_.data_.query_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.query) } -inline ::subspace::Discovery_Query* Discovery::_internal_mutable_query() { +inline ::subspace::Discovery_Query* PROTOBUF_NONNULL Discovery::_internal_mutable_query() { if (data_case() != kQuery) { clear_data(); set_has_query(); - _impl_.data_.query_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Query>(GetArena()); + _impl_.data_.query_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Query>(GetArena())); } - return _impl_.data_.query_; + return reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_); } -inline ::subspace::Discovery_Query* Discovery::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::Discovery_Query* PROTOBUF_NONNULL Discovery::mutable_query() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::Discovery_Query* _msg = _internal_mutable_query(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.query) return _msg; @@ -21461,11 +23930,11 @@ inline void Discovery::clear_advertise() { clear_has_data(); } } -inline ::subspace::Discovery_Advertise* Discovery::release_advertise() { +inline ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE Discovery::release_advertise() { // @@protoc_insertion_point(field_release:subspace.Discovery.advertise) if (data_case() == kAdvertise) { clear_has_data(); - auto* temp = _impl_.data_.advertise_; + auto* temp = reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -21476,44 +23945,47 @@ inline ::subspace::Discovery_Advertise* Discovery::release_advertise() { } } inline const ::subspace::Discovery_Advertise& Discovery::_internal_advertise() const { - return data_case() == kAdvertise ? *_impl_.data_.advertise_ : reinterpret_cast<::subspace::Discovery_Advertise&>(::subspace::_Discovery_Advertise_default_instance_); + return data_case() == kAdvertise ? static_cast(*reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_)) + : reinterpret_cast(::subspace::_Discovery_Advertise_default_instance_); } inline const ::subspace::Discovery_Advertise& Discovery::advertise() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Discovery.advertise) return _internal_advertise(); } -inline ::subspace::Discovery_Advertise* Discovery::unsafe_arena_release_advertise() { +inline ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE Discovery::unsafe_arena_release_advertise() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Discovery.advertise) if (data_case() == kAdvertise) { clear_has_data(); - auto* temp = _impl_.data_.advertise_; + auto* temp = reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_); _impl_.data_.advertise_ = nullptr; return temp; } else { return nullptr; } } -inline void Discovery::unsafe_arena_set_allocated_advertise(::subspace::Discovery_Advertise* value) { +inline void Discovery::unsafe_arena_set_allocated_advertise( + ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_data(); if (value) { set_has_advertise(); - _impl_.data_.advertise_ = value; + _impl_.data_.advertise_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.advertise) } -inline ::subspace::Discovery_Advertise* Discovery::_internal_mutable_advertise() { +inline ::subspace::Discovery_Advertise* PROTOBUF_NONNULL Discovery::_internal_mutable_advertise() { if (data_case() != kAdvertise) { clear_data(); set_has_advertise(); - _impl_.data_.advertise_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Advertise>(GetArena()); + _impl_.data_.advertise_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Advertise>(GetArena())); } - return _impl_.data_.advertise_; + return reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_); } -inline ::subspace::Discovery_Advertise* Discovery::mutable_advertise() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::Discovery_Advertise* PROTOBUF_NONNULL Discovery::mutable_advertise() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::Discovery_Advertise* _msg = _internal_mutable_advertise(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.advertise) return _msg; @@ -21540,11 +24012,11 @@ inline void Discovery::clear_subscribe() { clear_has_data(); } } -inline ::subspace::Discovery_Subscribe* Discovery::release_subscribe() { +inline ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE Discovery::release_subscribe() { // @@protoc_insertion_point(field_release:subspace.Discovery.subscribe) if (data_case() == kSubscribe) { clear_has_data(); - auto* temp = _impl_.data_.subscribe_; + auto* temp = reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -21555,44 +24027,47 @@ inline ::subspace::Discovery_Subscribe* Discovery::release_subscribe() { } } inline const ::subspace::Discovery_Subscribe& Discovery::_internal_subscribe() const { - return data_case() == kSubscribe ? *_impl_.data_.subscribe_ : reinterpret_cast<::subspace::Discovery_Subscribe&>(::subspace::_Discovery_Subscribe_default_instance_); + return data_case() == kSubscribe ? static_cast(*reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_)) + : reinterpret_cast(::subspace::_Discovery_Subscribe_default_instance_); } inline const ::subspace::Discovery_Subscribe& Discovery::subscribe() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.Discovery.subscribe) return _internal_subscribe(); } -inline ::subspace::Discovery_Subscribe* Discovery::unsafe_arena_release_subscribe() { +inline ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE Discovery::unsafe_arena_release_subscribe() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Discovery.subscribe) if (data_case() == kSubscribe) { clear_has_data(); - auto* temp = _impl_.data_.subscribe_; + auto* temp = reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_); _impl_.data_.subscribe_ = nullptr; return temp; } else { return nullptr; } } -inline void Discovery::unsafe_arena_set_allocated_subscribe(::subspace::Discovery_Subscribe* value) { +inline void Discovery::unsafe_arena_set_allocated_subscribe( + ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_data(); if (value) { set_has_subscribe(); - _impl_.data_.subscribe_ = value; + _impl_.data_.subscribe_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.subscribe) } -inline ::subspace::Discovery_Subscribe* Discovery::_internal_mutable_subscribe() { +inline ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL Discovery::_internal_mutable_subscribe() { if (data_case() != kSubscribe) { clear_data(); set_has_subscribe(); - _impl_.data_.subscribe_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Subscribe>(GetArena()); + _impl_.data_.subscribe_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Subscribe>(GetArena())); } - return _impl_.data_.subscribe_; + return reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_); } -inline ::subspace::Discovery_Subscribe* Discovery::mutable_subscribe() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL Discovery::mutable_subscribe() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::Discovery_Subscribe* _msg = _internal_mutable_subscribe(); // @@protoc_insertion_point(field_mutable:subspace.Discovery.subscribe) return _msg; @@ -21619,43 +24094,60 @@ inline Discovery::DataCase Discovery::data_case() const { inline void RpcOpenResponse_RequestChannel::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RpcOpenResponse_RequestChannel::name() const +inline const ::std::string& RpcOpenResponse_RequestChannel::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.name) return _internal_name(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_RequestChannel::set_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_RequestChannel::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.name) } -inline std::string* RpcOpenResponse_RequestChannel::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::mutable_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.RequestChannel.name) return _s; } -inline const std::string& RpcOpenResponse_RequestChannel::_internal_name() const { +inline const ::std::string& RpcOpenResponse_RequestChannel::_internal_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } -inline void RpcOpenResponse_RequestChannel::_internal_set_name(const std::string& value) { +inline void RpcOpenResponse_RequestChannel::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.Set(value, GetArena()); } -inline std::string* RpcOpenResponse_RequestChannel::_internal_mutable_name() { +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.name_.Mutable( GetArena()); } -inline std::string* RpcOpenResponse_RequestChannel::release_name() { +inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_RequestChannel::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.RequestChannel.name) - return _impl_.name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); + } + return released; } -inline void RpcOpenResponse_RequestChannel::set_allocated_name(std::string* value) { +inline void RpcOpenResponse_RequestChannel::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { _impl_.name_.Set("", GetArena()); @@ -21667,6 +24159,8 @@ inline void RpcOpenResponse_RequestChannel::set_allocated_name(std::string* valu inline void RpcOpenResponse_RequestChannel::clear_slot_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t RpcOpenResponse_RequestChannel::slot_size() const { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.slot_size) @@ -21674,6 +24168,7 @@ inline ::int32_t RpcOpenResponse_RequestChannel::slot_size() const { } inline void RpcOpenResponse_RequestChannel::set_slot_size(::int32_t value) { _internal_set_slot_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.slot_size) } inline ::int32_t RpcOpenResponse_RequestChannel::_internal_slot_size() const { @@ -21689,6 +24184,8 @@ inline void RpcOpenResponse_RequestChannel::_internal_set_slot_size(::int32_t va inline void RpcOpenResponse_RequestChannel::clear_num_slots() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_slots_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t RpcOpenResponse_RequestChannel::num_slots() const { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.num_slots) @@ -21696,6 +24193,7 @@ inline ::int32_t RpcOpenResponse_RequestChannel::num_slots() const { } inline void RpcOpenResponse_RequestChannel::set_num_slots(::int32_t value) { _internal_set_num_slots(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.num_slots) } inline ::int32_t RpcOpenResponse_RequestChannel::_internal_num_slots() const { @@ -21711,43 +24209,60 @@ inline void RpcOpenResponse_RequestChannel::_internal_set_num_slots(::int32_t va inline void RpcOpenResponse_RequestChannel::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& RpcOpenResponse_RequestChannel::type() const +inline const ::std::string& RpcOpenResponse_RequestChannel::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_RequestChannel::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_RequestChannel::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.type) } -inline std::string* RpcOpenResponse_RequestChannel::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.RequestChannel.type) return _s; } -inline const std::string& RpcOpenResponse_RequestChannel::_internal_type() const { +inline const ::std::string& RpcOpenResponse_RequestChannel::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void RpcOpenResponse_RequestChannel::_internal_set_type(const std::string& value) { +inline void RpcOpenResponse_RequestChannel::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* RpcOpenResponse_RequestChannel::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* RpcOpenResponse_RequestChannel::release_type() { +inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_RequestChannel::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.RequestChannel.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void RpcOpenResponse_RequestChannel::set_allocated_type(std::string* value) { +inline void RpcOpenResponse_RequestChannel::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -21763,43 +24278,60 @@ inline void RpcOpenResponse_RequestChannel::set_allocated_type(std::string* valu inline void RpcOpenResponse_ResponseChannel::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RpcOpenResponse_ResponseChannel::name() const +inline const ::std::string& RpcOpenResponse_ResponseChannel::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.ResponseChannel.name) return _internal_name(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_ResponseChannel::set_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_ResponseChannel::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.ResponseChannel.name) } -inline std::string* RpcOpenResponse_ResponseChannel::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::mutable_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.ResponseChannel.name) return _s; } -inline const std::string& RpcOpenResponse_ResponseChannel::_internal_name() const { +inline const ::std::string& RpcOpenResponse_ResponseChannel::_internal_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } -inline void RpcOpenResponse_ResponseChannel::_internal_set_name(const std::string& value) { +inline void RpcOpenResponse_ResponseChannel::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.Set(value, GetArena()); } -inline std::string* RpcOpenResponse_ResponseChannel::_internal_mutable_name() { +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.name_.Mutable( GetArena()); } -inline std::string* RpcOpenResponse_ResponseChannel::release_name() { +inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_ResponseChannel::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.ResponseChannel.name) - return _impl_.name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); + } + return released; } -inline void RpcOpenResponse_ResponseChannel::set_allocated_name(std::string* value) { +inline void RpcOpenResponse_ResponseChannel::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { _impl_.name_.Set("", GetArena()); @@ -21811,43 +24343,60 @@ inline void RpcOpenResponse_ResponseChannel::set_allocated_name(std::string* val inline void RpcOpenResponse_ResponseChannel::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& RpcOpenResponse_ResponseChannel::type() const +inline const ::std::string& RpcOpenResponse_ResponseChannel::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.ResponseChannel.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_ResponseChannel::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_ResponseChannel::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.ResponseChannel.type) } -inline std::string* RpcOpenResponse_ResponseChannel::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.ResponseChannel.type) return _s; } -inline const std::string& RpcOpenResponse_ResponseChannel::_internal_type() const { +inline const ::std::string& RpcOpenResponse_ResponseChannel::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void RpcOpenResponse_ResponseChannel::_internal_set_type(const std::string& value) { +inline void RpcOpenResponse_ResponseChannel::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* RpcOpenResponse_ResponseChannel::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* RpcOpenResponse_ResponseChannel::release_type() { +inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_ResponseChannel::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.ResponseChannel.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void RpcOpenResponse_ResponseChannel::set_allocated_type(std::string* value) { +inline void RpcOpenResponse_ResponseChannel::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -21863,43 +24412,60 @@ inline void RpcOpenResponse_ResponseChannel::set_allocated_type(std::string* val inline void RpcOpenResponse_Method::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RpcOpenResponse_Method::name() const +inline const ::std::string& RpcOpenResponse_Method::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.name) return _internal_name(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_Method::set_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_Method::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.Method.name) } -inline std::string* RpcOpenResponse_Method::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.name) return _s; } -inline const std::string& RpcOpenResponse_Method::_internal_name() const { +inline const ::std::string& RpcOpenResponse_Method::_internal_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.name_.Get(); } -inline void RpcOpenResponse_Method::_internal_set_name(const std::string& value) { +inline void RpcOpenResponse_Method::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.Set(value, GetArena()); } -inline std::string* RpcOpenResponse_Method::_internal_mutable_name() { +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.name_.Mutable( GetArena()); } -inline std::string* RpcOpenResponse_Method::release_name() { +inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.name) - return _impl_.name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.name_.Set("", GetArena()); + } + return released; } -inline void RpcOpenResponse_Method::set_allocated_name(std::string* value) { +inline void RpcOpenResponse_Method::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { _impl_.name_.Set("", GetArena()); @@ -21911,6 +24477,8 @@ inline void RpcOpenResponse_Method::set_allocated_name(std::string* value) { inline void RpcOpenResponse_Method::clear_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t RpcOpenResponse_Method::id() const { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.id) @@ -21918,6 +24486,7 @@ inline ::int32_t RpcOpenResponse_Method::id() const { } inline void RpcOpenResponse_Method::set_id(::int32_t value) { _internal_set_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.Method.id) } inline ::int32_t RpcOpenResponse_Method::_internal_id() const { @@ -21931,14 +24500,15 @@ inline void RpcOpenResponse_Method::_internal_set_id(::int32_t value) { // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; inline bool RpcOpenResponse_Method::has_request_channel() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); PROTOBUF_ASSUME(!value || _impl_.request_channel_ != nullptr); return value; } inline void RpcOpenResponse_Method::clear_request_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.request_channel_ != nullptr) _impl_.request_channel_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline const ::subspace::RpcOpenResponse_RequestChannel& RpcOpenResponse_Method::_internal_request_channel() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -21949,23 +24519,24 @@ inline const ::subspace::RpcOpenResponse_RequestChannel& RpcOpenResponse_Method: // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.request_channel) return _internal_request_channel(); } -inline void RpcOpenResponse_Method::unsafe_arena_set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* value) { +inline void RpcOpenResponse_Method::unsafe_arena_set_allocated_request_channel( + ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.request_channel_); } _impl_.request_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_RequestChannel*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcOpenResponse.Method.request_channel) } -inline ::subspace::RpcOpenResponse_RequestChannel* RpcOpenResponse_Method::release_request_channel() { +inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_request_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::subspace::RpcOpenResponse_RequestChannel* released = _impl_.request_channel_; _impl_.request_channel_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -21981,16 +24552,16 @@ inline ::subspace::RpcOpenResponse_RequestChannel* RpcOpenResponse_Method::relea } return released; } -inline ::subspace::RpcOpenResponse_RequestChannel* RpcOpenResponse_Method::unsafe_arena_release_request_channel() { +inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::unsafe_arena_release_request_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.request_channel) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::subspace::RpcOpenResponse_RequestChannel* temp = _impl_.request_channel_; _impl_.request_channel_ = nullptr; return temp; } -inline ::subspace::RpcOpenResponse_RequestChannel* RpcOpenResponse_Method::_internal_mutable_request_channel() { +inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_request_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.request_channel_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenResponse_RequestChannel>(GetArena()); @@ -21998,27 +24569,28 @@ inline ::subspace::RpcOpenResponse_RequestChannel* RpcOpenResponse_Method::_inte } return _impl_.request_channel_; } -inline ::subspace::RpcOpenResponse_RequestChannel* RpcOpenResponse_Method::mutable_request_channel() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_request_channel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::subspace::RpcOpenResponse_RequestChannel* _msg = _internal_mutable_request_channel(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.request_channel) return _msg; } -inline void RpcOpenResponse_Method::set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* value) { +inline void RpcOpenResponse_Method::set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.request_channel_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.request_channel_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.request_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_RequestChannel*>(value); @@ -22027,14 +24599,15 @@ inline void RpcOpenResponse_Method::set_allocated_request_channel(::subspace::Rp // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; inline bool RpcOpenResponse_Method::has_response_channel() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); PROTOBUF_ASSUME(!value || _impl_.response_channel_ != nullptr); return value; } inline void RpcOpenResponse_Method::clear_response_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.response_channel_ != nullptr) _impl_.response_channel_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline const ::subspace::RpcOpenResponse_ResponseChannel& RpcOpenResponse_Method::_internal_response_channel() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -22045,23 +24618,24 @@ inline const ::subspace::RpcOpenResponse_ResponseChannel& RpcOpenResponse_Method // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.response_channel) return _internal_response_channel(); } -inline void RpcOpenResponse_Method::unsafe_arena_set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* value) { +inline void RpcOpenResponse_Method::unsafe_arena_set_allocated_response_channel( + ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.response_channel_); } _impl_.response_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_ResponseChannel*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcOpenResponse.Method.response_channel) } -inline ::subspace::RpcOpenResponse_ResponseChannel* RpcOpenResponse_Method::release_response_channel() { +inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_response_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); ::subspace::RpcOpenResponse_ResponseChannel* released = _impl_.response_channel_; _impl_.response_channel_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -22077,16 +24651,16 @@ inline ::subspace::RpcOpenResponse_ResponseChannel* RpcOpenResponse_Method::rele } return released; } -inline ::subspace::RpcOpenResponse_ResponseChannel* RpcOpenResponse_Method::unsafe_arena_release_response_channel() { +inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::unsafe_arena_release_response_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.response_channel) - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); ::subspace::RpcOpenResponse_ResponseChannel* temp = _impl_.response_channel_; _impl_.response_channel_ = nullptr; return temp; } -inline ::subspace::RpcOpenResponse_ResponseChannel* RpcOpenResponse_Method::_internal_mutable_response_channel() { +inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_response_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.response_channel_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenResponse_ResponseChannel>(GetArena()); @@ -22094,27 +24668,28 @@ inline ::subspace::RpcOpenResponse_ResponseChannel* RpcOpenResponse_Method::_int } return _impl_.response_channel_; } -inline ::subspace::RpcOpenResponse_ResponseChannel* RpcOpenResponse_Method::mutable_response_channel() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; +inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_response_channel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::subspace::RpcOpenResponse_ResponseChannel* _msg = _internal_mutable_response_channel(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.response_channel) return _msg; } -inline void RpcOpenResponse_Method::set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* value) { +inline void RpcOpenResponse_Method::set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.response_channel_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.response_channel_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.response_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_ResponseChannel*>(value); @@ -22125,43 +24700,60 @@ inline void RpcOpenResponse_Method::set_allocated_response_channel(::subspace::R inline void RpcOpenResponse_Method::clear_cancel_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cancel_channel_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& RpcOpenResponse_Method::cancel_channel() const +inline const ::std::string& RpcOpenResponse_Method::cancel_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.cancel_channel) return _internal_cancel_channel(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_Method::set_cancel_channel(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_Method::set_cancel_channel(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.cancel_channel_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.Method.cancel_channel) } -inline std::string* RpcOpenResponse_Method::mutable_cancel_channel() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_cancel_channel(); +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_cancel_channel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_cancel_channel(); // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.cancel_channel) return _s; } -inline const std::string& RpcOpenResponse_Method::_internal_cancel_channel() const { +inline const ::std::string& RpcOpenResponse_Method::_internal_cancel_channel() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.cancel_channel_.Get(); } -inline void RpcOpenResponse_Method::_internal_set_cancel_channel(const std::string& value) { +inline void RpcOpenResponse_Method::_internal_set_cancel_channel(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.cancel_channel_.Set(value, GetArena()); } -inline std::string* RpcOpenResponse_Method::_internal_mutable_cancel_channel() { +inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_cancel_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.cancel_channel_.Mutable( GetArena()); } -inline std::string* RpcOpenResponse_Method::release_cancel_channel() { +inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_cancel_channel() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.cancel_channel) - return _impl_.cancel_channel_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.cancel_channel_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.cancel_channel_.Set("", GetArena()); + } + return released; } -inline void RpcOpenResponse_Method::set_allocated_cancel_channel(std::string* value) { +inline void RpcOpenResponse_Method::set_allocated_cancel_channel(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.cancel_channel_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.cancel_channel_.IsDefault()) { _impl_.cancel_channel_.Set("", GetArena()); @@ -22177,6 +24769,8 @@ inline void RpcOpenResponse_Method::set_allocated_cancel_channel(std::string* va inline void RpcOpenResponse::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t RpcOpenResponse::session_id() const { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.session_id) @@ -22184,6 +24778,7 @@ inline ::int32_t RpcOpenResponse::session_id() const { } inline void RpcOpenResponse::set_session_id(::int32_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.session_id) } inline ::int32_t RpcOpenResponse::_internal_session_id() const { @@ -22205,14 +24800,17 @@ inline int RpcOpenResponse::methods_size() const { inline void RpcOpenResponse::clear_methods() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.methods_.Clear(); + ClearHasBitForRepeated(_impl_._has_bits_[0], + 0x00000001U); } -inline ::subspace::RpcOpenResponse_Method* RpcOpenResponse::mutable_methods(int index) +inline ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL RpcOpenResponse::mutable_methods(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.methods) return _internal_mutable_methods()->Mutable(index); } -inline ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* RpcOpenResponse::mutable_methods() +inline ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL RpcOpenResponse::mutable_methods() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:subspace.RpcOpenResponse.methods) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_methods(); @@ -22222,9 +24820,13 @@ inline const ::subspace::RpcOpenResponse_Method& RpcOpenResponse::methods(int in // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.methods) return _internal_methods().Get(index); } -inline ::subspace::RpcOpenResponse_Method* RpcOpenResponse::add_methods() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL RpcOpenResponse::add_methods() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::RpcOpenResponse_Method* _add = _internal_mutable_methods()->Add(); + ::subspace::RpcOpenResponse_Method* _add = + _internal_mutable_methods()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:subspace.RpcOpenResponse.methods) return _add; } @@ -22238,7 +24840,7 @@ RpcOpenResponse::_internal_methods() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.methods_; } -inline ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* +inline ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL RpcOpenResponse::_internal_mutable_methods() { ::google::protobuf::internal::TSanRead(&_impl_); return &_impl_.methods_; @@ -22248,6 +24850,8 @@ RpcOpenResponse::_internal_mutable_methods() { inline void RpcOpenResponse::clear_client_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.client_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::uint64_t RpcOpenResponse::client_id() const { // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.client_id) @@ -22255,6 +24859,7 @@ inline ::uint64_t RpcOpenResponse::client_id() const { } inline void RpcOpenResponse::set_client_id(::uint64_t value) { _internal_set_client_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.client_id) } inline ::uint64_t RpcOpenResponse::_internal_client_id() const { @@ -22274,6 +24879,8 @@ inline void RpcOpenResponse::_internal_set_client_id(::uint64_t value) { inline void RpcCloseRequest::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::int32_t RpcCloseRequest::session_id() const { // @@protoc_insertion_point(field_get:subspace.RpcCloseRequest.session_id) @@ -22281,6 +24888,7 @@ inline ::int32_t RpcCloseRequest::session_id() const { } inline void RpcCloseRequest::set_session_id(::int32_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:subspace.RpcCloseRequest.session_id) } inline ::int32_t RpcCloseRequest::_internal_session_id() const { @@ -22304,6 +24912,8 @@ inline void RpcCloseRequest::_internal_set_session_id(::int32_t value) { inline void RpcServerRequest::clear_client_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.client_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::uint64_t RpcServerRequest::client_id() const { // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.client_id) @@ -22311,6 +24921,7 @@ inline ::uint64_t RpcServerRequest::client_id() const { } inline void RpcServerRequest::set_client_id(::uint64_t value) { _internal_set_client_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:subspace.RpcServerRequest.client_id) } inline ::uint64_t RpcServerRequest::_internal_client_id() const { @@ -22326,6 +24937,8 @@ inline void RpcServerRequest::_internal_set_client_id(::uint64_t value) { inline void RpcServerRequest::clear_request_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.request_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t RpcServerRequest::request_id() const { // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.request_id) @@ -22333,6 +24946,7 @@ inline ::int32_t RpcServerRequest::request_id() const { } inline void RpcServerRequest::set_request_id(::int32_t value) { _internal_set_request_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.RpcServerRequest.request_id) } inline ::int32_t RpcServerRequest::_internal_request_id() const { @@ -22365,7 +24979,7 @@ inline void RpcServerRequest::clear_open() { clear_has_request(); } } -inline ::subspace::RpcOpenRequest* RpcServerRequest::release_open() { +inline ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE RpcServerRequest::release_open() { // @@protoc_insertion_point(field_release:subspace.RpcServerRequest.open) if (request_case() == kOpen) { clear_has_request(); @@ -22380,13 +24994,14 @@ inline ::subspace::RpcOpenRequest* RpcServerRequest::release_open() { } } inline const ::subspace::RpcOpenRequest& RpcServerRequest::_internal_open() const { - return request_case() == kOpen ? *_impl_.request_.open_ : reinterpret_cast<::subspace::RpcOpenRequest&>(::subspace::_RpcOpenRequest_default_instance_); + return request_case() == kOpen ? static_cast(*_impl_.request_.open_) + : reinterpret_cast(::subspace::_RpcOpenRequest_default_instance_); } inline const ::subspace::RpcOpenRequest& RpcServerRequest::open() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.open) return _internal_open(); } -inline ::subspace::RpcOpenRequest* RpcServerRequest::unsafe_arena_release_open() { +inline ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE RpcServerRequest::unsafe_arena_release_open() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerRequest.open) if (request_case() == kOpen) { clear_has_request(); @@ -22397,7 +25012,8 @@ inline ::subspace::RpcOpenRequest* RpcServerRequest::unsafe_arena_release_open() return nullptr; } } -inline void RpcServerRequest::unsafe_arena_set_allocated_open(::subspace::RpcOpenRequest* value) { +inline void RpcServerRequest::unsafe_arena_set_allocated_open( + ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. @@ -22408,16 +25024,17 @@ inline void RpcServerRequest::unsafe_arena_set_allocated_open(::subspace::RpcOpe } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerRequest.open) } -inline ::subspace::RpcOpenRequest* RpcServerRequest::_internal_mutable_open() { +inline ::subspace::RpcOpenRequest* PROTOBUF_NONNULL RpcServerRequest::_internal_mutable_open() { if (request_case() != kOpen) { clear_request(); set_has_open(); - _impl_.request_.open_ = + _impl_.request_.open_ = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenRequest>(GetArena()); } return _impl_.request_.open_; } -inline ::subspace::RpcOpenRequest* RpcServerRequest::mutable_open() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RpcOpenRequest* PROTOBUF_NONNULL RpcServerRequest::mutable_open() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RpcOpenRequest* _msg = _internal_mutable_open(); // @@protoc_insertion_point(field_mutable:subspace.RpcServerRequest.open) return _msg; @@ -22444,7 +25061,7 @@ inline void RpcServerRequest::clear_close() { clear_has_request(); } } -inline ::subspace::RpcCloseRequest* RpcServerRequest::release_close() { +inline ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE RpcServerRequest::release_close() { // @@protoc_insertion_point(field_release:subspace.RpcServerRequest.close) if (request_case() == kClose) { clear_has_request(); @@ -22459,13 +25076,14 @@ inline ::subspace::RpcCloseRequest* RpcServerRequest::release_close() { } } inline const ::subspace::RpcCloseRequest& RpcServerRequest::_internal_close() const { - return request_case() == kClose ? *_impl_.request_.close_ : reinterpret_cast<::subspace::RpcCloseRequest&>(::subspace::_RpcCloseRequest_default_instance_); + return request_case() == kClose ? static_cast(*_impl_.request_.close_) + : reinterpret_cast(::subspace::_RpcCloseRequest_default_instance_); } inline const ::subspace::RpcCloseRequest& RpcServerRequest::close() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.close) return _internal_close(); } -inline ::subspace::RpcCloseRequest* RpcServerRequest::unsafe_arena_release_close() { +inline ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE RpcServerRequest::unsafe_arena_release_close() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerRequest.close) if (request_case() == kClose) { clear_has_request(); @@ -22476,7 +25094,8 @@ inline ::subspace::RpcCloseRequest* RpcServerRequest::unsafe_arena_release_close return nullptr; } } -inline void RpcServerRequest::unsafe_arena_set_allocated_close(::subspace::RpcCloseRequest* value) { +inline void RpcServerRequest::unsafe_arena_set_allocated_close( + ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. @@ -22487,16 +25106,17 @@ inline void RpcServerRequest::unsafe_arena_set_allocated_close(::subspace::RpcCl } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerRequest.close) } -inline ::subspace::RpcCloseRequest* RpcServerRequest::_internal_mutable_close() { +inline ::subspace::RpcCloseRequest* PROTOBUF_NONNULL RpcServerRequest::_internal_mutable_close() { if (request_case() != kClose) { clear_request(); set_has_close(); - _impl_.request_.close_ = + _impl_.request_.close_ = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcCloseRequest>(GetArena()); } return _impl_.request_.close_; } -inline ::subspace::RpcCloseRequest* RpcServerRequest::mutable_close() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RpcCloseRequest* PROTOBUF_NONNULL RpcServerRequest::mutable_close() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RpcCloseRequest* _msg = _internal_mutable_close(); // @@protoc_insertion_point(field_mutable:subspace.RpcServerRequest.close) return _msg; @@ -22519,6 +25139,8 @@ inline RpcServerRequest::RequestCase RpcServerRequest::request_case() const { inline void RpcServerResponse::clear_client_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.client_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::uint64_t RpcServerResponse::client_id() const { // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.client_id) @@ -22526,6 +25148,7 @@ inline ::uint64_t RpcServerResponse::client_id() const { } inline void RpcServerResponse::set_client_id(::uint64_t value) { _internal_set_client_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.RpcServerResponse.client_id) } inline ::uint64_t RpcServerResponse::_internal_client_id() const { @@ -22541,6 +25164,8 @@ inline void RpcServerResponse::_internal_set_client_id(::uint64_t value) { inline void RpcServerResponse::clear_request_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.request_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t RpcServerResponse::request_id() const { // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.request_id) @@ -22548,6 +25173,7 @@ inline ::int32_t RpcServerResponse::request_id() const { } inline void RpcServerResponse::set_request_id(::int32_t value) { _internal_set_request_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.RpcServerResponse.request_id) } inline ::int32_t RpcServerResponse::_internal_request_id() const { @@ -22580,7 +25206,7 @@ inline void RpcServerResponse::clear_open() { clear_has_response(); } } -inline ::subspace::RpcOpenResponse* RpcServerResponse::release_open() { +inline ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE RpcServerResponse::release_open() { // @@protoc_insertion_point(field_release:subspace.RpcServerResponse.open) if (response_case() == kOpen) { clear_has_response(); @@ -22595,13 +25221,14 @@ inline ::subspace::RpcOpenResponse* RpcServerResponse::release_open() { } } inline const ::subspace::RpcOpenResponse& RpcServerResponse::_internal_open() const { - return response_case() == kOpen ? *_impl_.response_.open_ : reinterpret_cast<::subspace::RpcOpenResponse&>(::subspace::_RpcOpenResponse_default_instance_); + return response_case() == kOpen ? static_cast(*_impl_.response_.open_) + : reinterpret_cast(::subspace::_RpcOpenResponse_default_instance_); } inline const ::subspace::RpcOpenResponse& RpcServerResponse::open() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.open) return _internal_open(); } -inline ::subspace::RpcOpenResponse* RpcServerResponse::unsafe_arena_release_open() { +inline ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE RpcServerResponse::unsafe_arena_release_open() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerResponse.open) if (response_case() == kOpen) { clear_has_response(); @@ -22612,7 +25239,8 @@ inline ::subspace::RpcOpenResponse* RpcServerResponse::unsafe_arena_release_open return nullptr; } } -inline void RpcServerResponse::unsafe_arena_set_allocated_open(::subspace::RpcOpenResponse* value) { +inline void RpcServerResponse::unsafe_arena_set_allocated_open( + ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. @@ -22623,16 +25251,17 @@ inline void RpcServerResponse::unsafe_arena_set_allocated_open(::subspace::RpcOp } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerResponse.open) } -inline ::subspace::RpcOpenResponse* RpcServerResponse::_internal_mutable_open() { +inline ::subspace::RpcOpenResponse* PROTOBUF_NONNULL RpcServerResponse::_internal_mutable_open() { if (response_case() != kOpen) { clear_response(); set_has_open(); - _impl_.response_.open_ = + _impl_.response_.open_ = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenResponse>(GetArena()); } return _impl_.response_.open_; } -inline ::subspace::RpcOpenResponse* RpcServerResponse::mutable_open() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RpcOpenResponse* PROTOBUF_NONNULL RpcServerResponse::mutable_open() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RpcOpenResponse* _msg = _internal_mutable_open(); // @@protoc_insertion_point(field_mutable:subspace.RpcServerResponse.open) return _msg; @@ -22659,7 +25288,7 @@ inline void RpcServerResponse::clear_close() { clear_has_response(); } } -inline ::subspace::RpcCloseResponse* RpcServerResponse::release_close() { +inline ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE RpcServerResponse::release_close() { // @@protoc_insertion_point(field_release:subspace.RpcServerResponse.close) if (response_case() == kClose) { clear_has_response(); @@ -22674,13 +25303,14 @@ inline ::subspace::RpcCloseResponse* RpcServerResponse::release_close() { } } inline const ::subspace::RpcCloseResponse& RpcServerResponse::_internal_close() const { - return response_case() == kClose ? *_impl_.response_.close_ : reinterpret_cast<::subspace::RpcCloseResponse&>(::subspace::_RpcCloseResponse_default_instance_); + return response_case() == kClose ? static_cast(*_impl_.response_.close_) + : reinterpret_cast(::subspace::_RpcCloseResponse_default_instance_); } inline const ::subspace::RpcCloseResponse& RpcServerResponse::close() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.close) return _internal_close(); } -inline ::subspace::RpcCloseResponse* RpcServerResponse::unsafe_arena_release_close() { +inline ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE RpcServerResponse::unsafe_arena_release_close() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerResponse.close) if (response_case() == kClose) { clear_has_response(); @@ -22691,7 +25321,8 @@ inline ::subspace::RpcCloseResponse* RpcServerResponse::unsafe_arena_release_clo return nullptr; } } -inline void RpcServerResponse::unsafe_arena_set_allocated_close(::subspace::RpcCloseResponse* value) { +inline void RpcServerResponse::unsafe_arena_set_allocated_close( + ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. @@ -22702,16 +25333,17 @@ inline void RpcServerResponse::unsafe_arena_set_allocated_close(::subspace::RpcC } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerResponse.close) } -inline ::subspace::RpcCloseResponse* RpcServerResponse::_internal_mutable_close() { +inline ::subspace::RpcCloseResponse* PROTOBUF_NONNULL RpcServerResponse::_internal_mutable_close() { if (response_case() != kClose) { clear_response(); set_has_close(); - _impl_.response_.close_ = + _impl_.response_.close_ = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcCloseResponse>(GetArena()); } return _impl_.response_.close_; } -inline ::subspace::RpcCloseResponse* RpcServerResponse::mutable_close() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::RpcCloseResponse* PROTOBUF_NONNULL RpcServerResponse::mutable_close() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::RpcCloseResponse* _msg = _internal_mutable_close(); // @@protoc_insertion_point(field_mutable:subspace.RpcServerResponse.close) return _msg; @@ -22721,43 +25353,60 @@ inline ::subspace::RpcCloseResponse* RpcServerResponse::mutable_close() ABSL_ATT inline void RpcServerResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RpcServerResponse::error() const +inline const ::std::string& RpcServerResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcServerResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcServerResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcServerResponse.error) } -inline std::string* RpcServerResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL RpcServerResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.RpcServerResponse.error) return _s; } -inline const std::string& RpcServerResponse::_internal_error() const { +inline const ::std::string& RpcServerResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void RpcServerResponse::_internal_set_error(const std::string& value) { +inline void RpcServerResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* RpcServerResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL RpcServerResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* RpcServerResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE RpcServerResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcServerResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void RpcServerResponse::set_allocated_error(std::string* value) { +inline void RpcServerResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -22782,6 +25431,8 @@ inline RpcServerResponse::ResponseCase RpcServerResponse::response_case() const inline void RpcRequest::clear_method() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.method_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t RpcRequest::method() const { // @@protoc_insertion_point(field_get:subspace.RpcRequest.method) @@ -22789,6 +25440,7 @@ inline ::int32_t RpcRequest::method() const { } inline void RpcRequest::set_method(::int32_t value) { _internal_set_method(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.RpcRequest.method) } inline ::int32_t RpcRequest::_internal_method() const { @@ -22802,7 +25454,7 @@ inline void RpcRequest::_internal_set_method(::int32_t value) { // .google.protobuf.Any argument = 2; inline bool RpcRequest::has_argument() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); PROTOBUF_ASSUME(!value || _impl_.argument_ != nullptr); return value; } @@ -22815,23 +25467,24 @@ inline const ::google::protobuf::Any& RpcRequest::argument() const ABSL_ATTRIBUT // @@protoc_insertion_point(field_get:subspace.RpcRequest.argument) return _internal_argument(); } -inline void RpcRequest::unsafe_arena_set_allocated_argument(::google::protobuf::Any* value) { +inline void RpcRequest::unsafe_arena_set_allocated_argument( + ::google::protobuf::Any* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.argument_); } _impl_.argument_ = reinterpret_cast<::google::protobuf::Any*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcRequest.argument) } -inline ::google::protobuf::Any* RpcRequest::release_argument() { +inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcRequest::release_argument() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::google::protobuf::Any* released = _impl_.argument_; _impl_.argument_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -22847,16 +25500,16 @@ inline ::google::protobuf::Any* RpcRequest::release_argument() { } return released; } -inline ::google::protobuf::Any* RpcRequest::unsafe_arena_release_argument() { +inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcRequest::unsafe_arena_release_argument() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcRequest.argument) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::google::protobuf::Any* temp = _impl_.argument_; _impl_.argument_ = nullptr; return temp; } -inline ::google::protobuf::Any* RpcRequest::_internal_mutable_argument() { +inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcRequest::_internal_mutable_argument() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.argument_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); @@ -22864,13 +25517,14 @@ inline ::google::protobuf::Any* RpcRequest::_internal_mutable_argument() { } return _impl_.argument_; } -inline ::google::protobuf::Any* RpcRequest::mutable_argument() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcRequest::mutable_argument() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::google::protobuf::Any* _msg = _internal_mutable_argument(); // @@protoc_insertion_point(field_mutable:subspace.RpcRequest.argument) return _msg; } -inline void RpcRequest::set_allocated_argument(::google::protobuf::Any* value) { +inline void RpcRequest::set_allocated_argument(::google::protobuf::Any* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { @@ -22878,13 +25532,13 @@ inline void RpcRequest::set_allocated_argument(::google::protobuf::Any* value) { } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.argument_ = reinterpret_cast<::google::protobuf::Any*>(value); @@ -22895,6 +25549,8 @@ inline void RpcRequest::set_allocated_argument(::google::protobuf::Any* value) { inline void RpcRequest::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t RpcRequest::session_id() const { // @@protoc_insertion_point(field_get:subspace.RpcRequest.session_id) @@ -22902,6 +25558,7 @@ inline ::int32_t RpcRequest::session_id() const { } inline void RpcRequest::set_session_id(::int32_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.RpcRequest.session_id) } inline ::int32_t RpcRequest::_internal_session_id() const { @@ -22917,6 +25574,8 @@ inline void RpcRequest::_internal_set_session_id(::int32_t value) { inline void RpcRequest::clear_request_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.request_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t RpcRequest::request_id() const { // @@protoc_insertion_point(field_get:subspace.RpcRequest.request_id) @@ -22924,6 +25583,7 @@ inline ::int32_t RpcRequest::request_id() const { } inline void RpcRequest::set_request_id(::int32_t value) { _internal_set_request_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.RpcRequest.request_id) } inline ::int32_t RpcRequest::_internal_request_id() const { @@ -22939,6 +25599,8 @@ inline void RpcRequest::_internal_set_request_id(::int32_t value) { inline void RpcRequest::clear_client_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.client_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::uint64_t RpcRequest::client_id() const { // @@protoc_insertion_point(field_get:subspace.RpcRequest.client_id) @@ -22946,6 +25608,7 @@ inline ::uint64_t RpcRequest::client_id() const { } inline void RpcRequest::set_client_id(::uint64_t value) { _internal_set_client_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.RpcRequest.client_id) } inline ::uint64_t RpcRequest::_internal_client_id() const { @@ -22965,43 +25628,60 @@ inline void RpcRequest::_internal_set_client_id(::uint64_t value) { inline void RpcResponse::clear_error() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RpcResponse::error() const +inline const ::std::string& RpcResponse::error() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RpcResponse.error) return _internal_error(); } template -inline PROTOBUF_ALWAYS_INLINE void RpcResponse::set_error(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RpcResponse::set_error(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.error_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RpcResponse.error) } -inline std::string* RpcResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_error(); +inline ::std::string* PROTOBUF_NONNULL RpcResponse::mutable_error() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_error(); // @@protoc_insertion_point(field_mutable:subspace.RpcResponse.error) return _s; } -inline const std::string& RpcResponse::_internal_error() const { +inline const ::std::string& RpcResponse::_internal_error() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.error_.Get(); } -inline void RpcResponse::_internal_set_error(const std::string& value) { +inline void RpcResponse::_internal_set_error(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.error_.Set(value, GetArena()); } -inline std::string* RpcResponse::_internal_mutable_error() { +inline ::std::string* PROTOBUF_NONNULL RpcResponse::_internal_mutable_error() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.error_.Mutable( GetArena()); } -inline std::string* RpcResponse::release_error() { +inline ::std::string* PROTOBUF_NULLABLE RpcResponse::release_error() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcResponse.error) - return _impl_.error_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.error_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.error_.Set("", GetArena()); + } + return released; } -inline void RpcResponse::set_allocated_error(std::string* value) { +inline void RpcResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.error_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { _impl_.error_.Set("", GetArena()); @@ -23011,7 +25691,7 @@ inline void RpcResponse::set_allocated_error(std::string* value) { // .google.protobuf.Any result = 2; inline bool RpcResponse::has_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); PROTOBUF_ASSUME(!value || _impl_.result_ != nullptr); return value; } @@ -23024,23 +25704,24 @@ inline const ::google::protobuf::Any& RpcResponse::result() const ABSL_ATTRIBUTE // @@protoc_insertion_point(field_get:subspace.RpcResponse.result) return _internal_result(); } -inline void RpcResponse::unsafe_arena_set_allocated_result(::google::protobuf::Any* value) { +inline void RpcResponse::unsafe_arena_set_allocated_result( + ::google::protobuf::Any* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_); } _impl_.result_ = reinterpret_cast<::google::protobuf::Any*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcResponse.result) } -inline ::google::protobuf::Any* RpcResponse::release_result() { +inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcResponse::release_result() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::google::protobuf::Any* released = _impl_.result_; _impl_.result_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -23056,16 +25737,16 @@ inline ::google::protobuf::Any* RpcResponse::release_result() { } return released; } -inline ::google::protobuf::Any* RpcResponse::unsafe_arena_release_result() { +inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcResponse::unsafe_arena_release_result() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RpcResponse.result) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::google::protobuf::Any* temp = _impl_.result_; _impl_.result_ = nullptr; return temp; } -inline ::google::protobuf::Any* RpcResponse::_internal_mutable_result() { +inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcResponse::_internal_mutable_result() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.result_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); @@ -23073,13 +25754,14 @@ inline ::google::protobuf::Any* RpcResponse::_internal_mutable_result() { } return _impl_.result_; } -inline ::google::protobuf::Any* RpcResponse::mutable_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcResponse::mutable_result() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::google::protobuf::Any* _msg = _internal_mutable_result(); // @@protoc_insertion_point(field_mutable:subspace.RpcResponse.result) return _msg; } -inline void RpcResponse::set_allocated_result(::google::protobuf::Any* value) { +inline void RpcResponse::set_allocated_result(::google::protobuf::Any* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { @@ -23087,13 +25769,13 @@ inline void RpcResponse::set_allocated_result(::google::protobuf::Any* value) { } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.result_ = reinterpret_cast<::google::protobuf::Any*>(value); @@ -23104,6 +25786,8 @@ inline void RpcResponse::set_allocated_result(::google::protobuf::Any* value) { inline void RpcResponse::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::int32_t RpcResponse::session_id() const { // @@protoc_insertion_point(field_get:subspace.RpcResponse.session_id) @@ -23111,6 +25795,7 @@ inline ::int32_t RpcResponse::session_id() const { } inline void RpcResponse::set_session_id(::int32_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.RpcResponse.session_id) } inline ::int32_t RpcResponse::_internal_session_id() const { @@ -23126,6 +25811,8 @@ inline void RpcResponse::_internal_set_session_id(::int32_t value) { inline void RpcResponse::clear_request_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.request_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t RpcResponse::request_id() const { // @@protoc_insertion_point(field_get:subspace.RpcResponse.request_id) @@ -23133,6 +25820,7 @@ inline ::int32_t RpcResponse::request_id() const { } inline void RpcResponse::set_request_id(::int32_t value) { _internal_set_request_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.RpcResponse.request_id) } inline ::int32_t RpcResponse::_internal_request_id() const { @@ -23148,6 +25836,8 @@ inline void RpcResponse::_internal_set_request_id(::int32_t value) { inline void RpcResponse::clear_client_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.client_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::uint64_t RpcResponse::client_id() const { // @@protoc_insertion_point(field_get:subspace.RpcResponse.client_id) @@ -23155,6 +25845,7 @@ inline ::uint64_t RpcResponse::client_id() const { } inline void RpcResponse::set_client_id(::uint64_t value) { _internal_set_client_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.RpcResponse.client_id) } inline ::uint64_t RpcResponse::_internal_client_id() const { @@ -23170,6 +25861,8 @@ inline void RpcResponse::_internal_set_client_id(::uint64_t value) { inline void RpcResponse::clear_is_last() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_last_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool RpcResponse::is_last() const { // @@protoc_insertion_point(field_get:subspace.RpcResponse.is_last) @@ -23177,6 +25870,7 @@ inline bool RpcResponse::is_last() const { } inline void RpcResponse::set_is_last(bool value) { _internal_set_is_last(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.RpcResponse.is_last) } inline bool RpcResponse::_internal_is_last() const { @@ -23192,6 +25886,8 @@ inline void RpcResponse::_internal_set_is_last(bool value) { inline void RpcResponse::clear_is_cancelled() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_cancelled_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool RpcResponse::is_cancelled() const { // @@protoc_insertion_point(field_get:subspace.RpcResponse.is_cancelled) @@ -23199,6 +25895,7 @@ inline bool RpcResponse::is_cancelled() const { } inline void RpcResponse::set_is_cancelled(bool value) { _internal_set_is_cancelled(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.RpcResponse.is_cancelled) } inline bool RpcResponse::_internal_is_cancelled() const { @@ -23218,6 +25915,8 @@ inline void RpcResponse::_internal_set_is_cancelled(bool value) { inline void RpcCancelRequest::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::int32_t RpcCancelRequest::session_id() const { // @@protoc_insertion_point(field_get:subspace.RpcCancelRequest.session_id) @@ -23225,6 +25924,7 @@ inline ::int32_t RpcCancelRequest::session_id() const { } inline void RpcCancelRequest::set_session_id(::int32_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:subspace.RpcCancelRequest.session_id) } inline ::int32_t RpcCancelRequest::_internal_session_id() const { @@ -23240,6 +25940,8 @@ inline void RpcCancelRequest::_internal_set_session_id(::int32_t value) { inline void RpcCancelRequest::clear_request_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.request_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t RpcCancelRequest::request_id() const { // @@protoc_insertion_point(field_get:subspace.RpcCancelRequest.request_id) @@ -23247,6 +25949,7 @@ inline ::int32_t RpcCancelRequest::request_id() const { } inline void RpcCancelRequest::set_request_id(::int32_t value) { _internal_set_request_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.RpcCancelRequest.request_id) } inline ::int32_t RpcCancelRequest::_internal_request_id() const { @@ -23262,6 +25965,8 @@ inline void RpcCancelRequest::_internal_set_request_id(::int32_t value) { inline void RpcCancelRequest::clear_client_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.client_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::uint64_t RpcCancelRequest::client_id() const { // @@protoc_insertion_point(field_get:subspace.RpcCancelRequest.client_id) @@ -23269,6 +25974,7 @@ inline ::uint64_t RpcCancelRequest::client_id() const { } inline void RpcCancelRequest::set_client_id(::uint64_t value) { _internal_set_client_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.RpcCancelRequest.client_id) } inline ::uint64_t RpcCancelRequest::_internal_client_id() const { @@ -23288,43 +25994,60 @@ inline void RpcCancelRequest::_internal_set_client_id(::uint64_t value) { inline void RawMessage::clear_data() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.data_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& RawMessage::data() const +inline const ::std::string& RawMessage::data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.RawMessage.data) return _internal_data(); } template -inline PROTOBUF_ALWAYS_INLINE void RawMessage::set_data(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void RawMessage::set_data(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.RawMessage.data) } -inline std::string* RawMessage::mutable_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_data(); +inline ::std::string* PROTOBUF_NONNULL RawMessage::mutable_data() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_data(); // @@protoc_insertion_point(field_mutable:subspace.RawMessage.data) return _s; } -inline const std::string& RawMessage::_internal_data() const { +inline const ::std::string& RawMessage::_internal_data() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.data_.Get(); } -inline void RawMessage::_internal_set_data(const std::string& value) { +inline void RawMessage::_internal_set_data(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.data_.Set(value, GetArena()); } -inline std::string* RawMessage::_internal_mutable_data() { +inline ::std::string* PROTOBUF_NONNULL RawMessage::_internal_mutable_data() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.data_.Mutable( GetArena()); } -inline std::string* RawMessage::release_data() { +inline ::std::string* PROTOBUF_NULLABLE RawMessage::release_data() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.RawMessage.data) - return _impl_.data_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.data_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.data_.Set("", GetArena()); + } + return released; } -inline void RawMessage::set_allocated_data(std::string* value) { +inline void RawMessage::set_allocated_data(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.data_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) { _impl_.data_.Set("", GetArena()); @@ -23361,11 +26084,11 @@ inline void ShadowEvent::clear_init() { clear_has_event(); } } -inline ::subspace::ShadowInit* ShadowEvent::release_init() { +inline ::subspace::ShadowInit* PROTOBUF_NULLABLE ShadowEvent::release_init() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.init) if (event_case() == kInit) { clear_has_event(); - auto* temp = _impl_.event_.init_; + auto* temp = reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23376,44 +26099,47 @@ inline ::subspace::ShadowInit* ShadowEvent::release_init() { } } inline const ::subspace::ShadowInit& ShadowEvent::_internal_init() const { - return event_case() == kInit ? *_impl_.event_.init_ : reinterpret_cast<::subspace::ShadowInit&>(::subspace::_ShadowInit_default_instance_); + return event_case() == kInit ? static_cast(*reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_)) + : reinterpret_cast(::subspace::_ShadowInit_default_instance_); } inline const ::subspace::ShadowInit& ShadowEvent::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.init) return _internal_init(); } -inline ::subspace::ShadowInit* ShadowEvent::unsafe_arena_release_init() { +inline ::subspace::ShadowInit* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_init() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.init) if (event_case() == kInit) { clear_has_event(); - auto* temp = _impl_.event_.init_; + auto* temp = reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_); _impl_.event_.init_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_init(::subspace::ShadowInit* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_init( + ::subspace::ShadowInit* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_init(); - _impl_.event_.init_ = value; + _impl_.event_.init_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.init) } -inline ::subspace::ShadowInit* ShadowEvent::_internal_mutable_init() { +inline ::subspace::ShadowInit* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_init() { if (event_case() != kInit) { clear_event(); set_has_init(); - _impl_.event_.init_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowInit>(GetArena()); + _impl_.event_.init_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowInit>(GetArena())); } - return _impl_.event_.init_; + return reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_); } -inline ::subspace::ShadowInit* ShadowEvent::mutable_init() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowInit* PROTOBUF_NONNULL ShadowEvent::mutable_init() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowInit* _msg = _internal_mutable_init(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.init) return _msg; @@ -23440,11 +26166,11 @@ inline void ShadowEvent::clear_create_channel() { clear_has_event(); } } -inline ::subspace::ShadowCreateChannel* ShadowEvent::release_create_channel() { +inline ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE ShadowEvent::release_create_channel() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.create_channel) if (event_case() == kCreateChannel) { clear_has_event(); - auto* temp = _impl_.event_.create_channel_; + auto* temp = reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23455,44 +26181,47 @@ inline ::subspace::ShadowCreateChannel* ShadowEvent::release_create_channel() { } } inline const ::subspace::ShadowCreateChannel& ShadowEvent::_internal_create_channel() const { - return event_case() == kCreateChannel ? *_impl_.event_.create_channel_ : reinterpret_cast<::subspace::ShadowCreateChannel&>(::subspace::_ShadowCreateChannel_default_instance_); + return event_case() == kCreateChannel ? static_cast(*reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_)) + : reinterpret_cast(::subspace::_ShadowCreateChannel_default_instance_); } inline const ::subspace::ShadowCreateChannel& ShadowEvent::create_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.create_channel) return _internal_create_channel(); } -inline ::subspace::ShadowCreateChannel* ShadowEvent::unsafe_arena_release_create_channel() { +inline ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_create_channel() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.create_channel) if (event_case() == kCreateChannel) { clear_has_event(); - auto* temp = _impl_.event_.create_channel_; + auto* temp = reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_); _impl_.event_.create_channel_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_create_channel(::subspace::ShadowCreateChannel* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_create_channel( + ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_create_channel(); - _impl_.event_.create_channel_ = value; + _impl_.event_.create_channel_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.create_channel) } -inline ::subspace::ShadowCreateChannel* ShadowEvent::_internal_mutable_create_channel() { +inline ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_create_channel() { if (event_case() != kCreateChannel) { clear_event(); set_has_create_channel(); - _impl_.event_.create_channel_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowCreateChannel>(GetArena()); + _impl_.event_.create_channel_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowCreateChannel>(GetArena())); } - return _impl_.event_.create_channel_; + return reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_); } -inline ::subspace::ShadowCreateChannel* ShadowEvent::mutable_create_channel() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL ShadowEvent::mutable_create_channel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowCreateChannel* _msg = _internal_mutable_create_channel(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.create_channel) return _msg; @@ -23519,11 +26248,11 @@ inline void ShadowEvent::clear_remove_channel() { clear_has_event(); } } -inline ::subspace::ShadowRemoveChannel* ShadowEvent::release_remove_channel() { +inline ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE ShadowEvent::release_remove_channel() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.remove_channel) if (event_case() == kRemoveChannel) { clear_has_event(); - auto* temp = _impl_.event_.remove_channel_; + auto* temp = reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23534,44 +26263,47 @@ inline ::subspace::ShadowRemoveChannel* ShadowEvent::release_remove_channel() { } } inline const ::subspace::ShadowRemoveChannel& ShadowEvent::_internal_remove_channel() const { - return event_case() == kRemoveChannel ? *_impl_.event_.remove_channel_ : reinterpret_cast<::subspace::ShadowRemoveChannel&>(::subspace::_ShadowRemoveChannel_default_instance_); + return event_case() == kRemoveChannel ? static_cast(*reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_)) + : reinterpret_cast(::subspace::_ShadowRemoveChannel_default_instance_); } inline const ::subspace::ShadowRemoveChannel& ShadowEvent::remove_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.remove_channel) return _internal_remove_channel(); } -inline ::subspace::ShadowRemoveChannel* ShadowEvent::unsafe_arena_release_remove_channel() { +inline ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_remove_channel() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.remove_channel) if (event_case() == kRemoveChannel) { clear_has_event(); - auto* temp = _impl_.event_.remove_channel_; + auto* temp = reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_); _impl_.event_.remove_channel_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_remove_channel(::subspace::ShadowRemoveChannel* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_remove_channel( + ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_remove_channel(); - _impl_.event_.remove_channel_ = value; + _impl_.event_.remove_channel_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.remove_channel) } -inline ::subspace::ShadowRemoveChannel* ShadowEvent::_internal_mutable_remove_channel() { +inline ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_remove_channel() { if (event_case() != kRemoveChannel) { clear_event(); set_has_remove_channel(); - _impl_.event_.remove_channel_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemoveChannel>(GetArena()); + _impl_.event_.remove_channel_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemoveChannel>(GetArena())); } - return _impl_.event_.remove_channel_; + return reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_); } -inline ::subspace::ShadowRemoveChannel* ShadowEvent::mutable_remove_channel() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL ShadowEvent::mutable_remove_channel() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowRemoveChannel* _msg = _internal_mutable_remove_channel(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.remove_channel) return _msg; @@ -23598,11 +26330,11 @@ inline void ShadowEvent::clear_add_publisher() { clear_has_event(); } } -inline ::subspace::ShadowAddPublisher* ShadowEvent::release_add_publisher() { +inline ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE ShadowEvent::release_add_publisher() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.add_publisher) if (event_case() == kAddPublisher) { clear_has_event(); - auto* temp = _impl_.event_.add_publisher_; + auto* temp = reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23613,44 +26345,47 @@ inline ::subspace::ShadowAddPublisher* ShadowEvent::release_add_publisher() { } } inline const ::subspace::ShadowAddPublisher& ShadowEvent::_internal_add_publisher() const { - return event_case() == kAddPublisher ? *_impl_.event_.add_publisher_ : reinterpret_cast<::subspace::ShadowAddPublisher&>(::subspace::_ShadowAddPublisher_default_instance_); + return event_case() == kAddPublisher ? static_cast(*reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_)) + : reinterpret_cast(::subspace::_ShadowAddPublisher_default_instance_); } inline const ::subspace::ShadowAddPublisher& ShadowEvent::add_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.add_publisher) return _internal_add_publisher(); } -inline ::subspace::ShadowAddPublisher* ShadowEvent::unsafe_arena_release_add_publisher() { +inline ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_add_publisher() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.add_publisher) if (event_case() == kAddPublisher) { clear_has_event(); - auto* temp = _impl_.event_.add_publisher_; + auto* temp = reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_); _impl_.event_.add_publisher_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_add_publisher(::subspace::ShadowAddPublisher* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_add_publisher( + ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_add_publisher(); - _impl_.event_.add_publisher_ = value; + _impl_.event_.add_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.add_publisher) } -inline ::subspace::ShadowAddPublisher* ShadowEvent::_internal_mutable_add_publisher() { +inline ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_add_publisher() { if (event_case() != kAddPublisher) { clear_event(); set_has_add_publisher(); - _impl_.event_.add_publisher_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowAddPublisher>(GetArena()); + _impl_.event_.add_publisher_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowAddPublisher>(GetArena())); } - return _impl_.event_.add_publisher_; + return reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_); } -inline ::subspace::ShadowAddPublisher* ShadowEvent::mutable_add_publisher() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL ShadowEvent::mutable_add_publisher() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowAddPublisher* _msg = _internal_mutable_add_publisher(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.add_publisher) return _msg; @@ -23677,11 +26412,11 @@ inline void ShadowEvent::clear_remove_publisher() { clear_has_event(); } } -inline ::subspace::ShadowRemovePublisher* ShadowEvent::release_remove_publisher() { +inline ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE ShadowEvent::release_remove_publisher() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.remove_publisher) if (event_case() == kRemovePublisher) { clear_has_event(); - auto* temp = _impl_.event_.remove_publisher_; + auto* temp = reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23692,44 +26427,47 @@ inline ::subspace::ShadowRemovePublisher* ShadowEvent::release_remove_publisher( } } inline const ::subspace::ShadowRemovePublisher& ShadowEvent::_internal_remove_publisher() const { - return event_case() == kRemovePublisher ? *_impl_.event_.remove_publisher_ : reinterpret_cast<::subspace::ShadowRemovePublisher&>(::subspace::_ShadowRemovePublisher_default_instance_); + return event_case() == kRemovePublisher ? static_cast(*reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_)) + : reinterpret_cast(::subspace::_ShadowRemovePublisher_default_instance_); } inline const ::subspace::ShadowRemovePublisher& ShadowEvent::remove_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.remove_publisher) return _internal_remove_publisher(); } -inline ::subspace::ShadowRemovePublisher* ShadowEvent::unsafe_arena_release_remove_publisher() { +inline ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_remove_publisher() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.remove_publisher) if (event_case() == kRemovePublisher) { clear_has_event(); - auto* temp = _impl_.event_.remove_publisher_; + auto* temp = reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_); _impl_.event_.remove_publisher_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_remove_publisher( + ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_remove_publisher(); - _impl_.event_.remove_publisher_ = value; + _impl_.event_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.remove_publisher) } -inline ::subspace::ShadowRemovePublisher* ShadowEvent::_internal_mutable_remove_publisher() { +inline ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_remove_publisher() { if (event_case() != kRemovePublisher) { clear_event(); set_has_remove_publisher(); - _impl_.event_.remove_publisher_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemovePublisher>(GetArena()); + _impl_.event_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemovePublisher>(GetArena())); } - return _impl_.event_.remove_publisher_; + return reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_); } -inline ::subspace::ShadowRemovePublisher* ShadowEvent::mutable_remove_publisher() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL ShadowEvent::mutable_remove_publisher() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowRemovePublisher* _msg = _internal_mutable_remove_publisher(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.remove_publisher) return _msg; @@ -23756,11 +26494,11 @@ inline void ShadowEvent::clear_add_subscriber() { clear_has_event(); } } -inline ::subspace::ShadowAddSubscriber* ShadowEvent::release_add_subscriber() { +inline ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE ShadowEvent::release_add_subscriber() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.add_subscriber) if (event_case() == kAddSubscriber) { clear_has_event(); - auto* temp = _impl_.event_.add_subscriber_; + auto* temp = reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23771,44 +26509,47 @@ inline ::subspace::ShadowAddSubscriber* ShadowEvent::release_add_subscriber() { } } inline const ::subspace::ShadowAddSubscriber& ShadowEvent::_internal_add_subscriber() const { - return event_case() == kAddSubscriber ? *_impl_.event_.add_subscriber_ : reinterpret_cast<::subspace::ShadowAddSubscriber&>(::subspace::_ShadowAddSubscriber_default_instance_); + return event_case() == kAddSubscriber ? static_cast(*reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_)) + : reinterpret_cast(::subspace::_ShadowAddSubscriber_default_instance_); } inline const ::subspace::ShadowAddSubscriber& ShadowEvent::add_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.add_subscriber) return _internal_add_subscriber(); } -inline ::subspace::ShadowAddSubscriber* ShadowEvent::unsafe_arena_release_add_subscriber() { +inline ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_add_subscriber() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.add_subscriber) if (event_case() == kAddSubscriber) { clear_has_event(); - auto* temp = _impl_.event_.add_subscriber_; + auto* temp = reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_); _impl_.event_.add_subscriber_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_add_subscriber( + ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_add_subscriber(); - _impl_.event_.add_subscriber_ = value; + _impl_.event_.add_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.add_subscriber) } -inline ::subspace::ShadowAddSubscriber* ShadowEvent::_internal_mutable_add_subscriber() { +inline ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_add_subscriber() { if (event_case() != kAddSubscriber) { clear_event(); set_has_add_subscriber(); - _impl_.event_.add_subscriber_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowAddSubscriber>(GetArena()); + _impl_.event_.add_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowAddSubscriber>(GetArena())); } - return _impl_.event_.add_subscriber_; + return reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_); } -inline ::subspace::ShadowAddSubscriber* ShadowEvent::mutable_add_subscriber() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL ShadowEvent::mutable_add_subscriber() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowAddSubscriber* _msg = _internal_mutable_add_subscriber(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.add_subscriber) return _msg; @@ -23835,11 +26576,11 @@ inline void ShadowEvent::clear_remove_subscriber() { clear_has_event(); } } -inline ::subspace::ShadowRemoveSubscriber* ShadowEvent::release_remove_subscriber() { +inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE ShadowEvent::release_remove_subscriber() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.remove_subscriber) if (event_case() == kRemoveSubscriber) { clear_has_event(); - auto* temp = _impl_.event_.remove_subscriber_; + auto* temp = reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23850,44 +26591,47 @@ inline ::subspace::ShadowRemoveSubscriber* ShadowEvent::release_remove_subscribe } } inline const ::subspace::ShadowRemoveSubscriber& ShadowEvent::_internal_remove_subscriber() const { - return event_case() == kRemoveSubscriber ? *_impl_.event_.remove_subscriber_ : reinterpret_cast<::subspace::ShadowRemoveSubscriber&>(::subspace::_ShadowRemoveSubscriber_default_instance_); + return event_case() == kRemoveSubscriber ? static_cast(*reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_)) + : reinterpret_cast(::subspace::_ShadowRemoveSubscriber_default_instance_); } inline const ::subspace::ShadowRemoveSubscriber& ShadowEvent::remove_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.remove_subscriber) return _internal_remove_subscriber(); } -inline ::subspace::ShadowRemoveSubscriber* ShadowEvent::unsafe_arena_release_remove_subscriber() { +inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_remove_subscriber() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.remove_subscriber) if (event_case() == kRemoveSubscriber) { clear_has_event(); - auto* temp = _impl_.event_.remove_subscriber_; + auto* temp = reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_); _impl_.event_.remove_subscriber_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_remove_subscriber( + ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_remove_subscriber(); - _impl_.event_.remove_subscriber_ = value; + _impl_.event_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.remove_subscriber) } -inline ::subspace::ShadowRemoveSubscriber* ShadowEvent::_internal_mutable_remove_subscriber() { +inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_remove_subscriber() { if (event_case() != kRemoveSubscriber) { clear_event(); set_has_remove_subscriber(); - _impl_.event_.remove_subscriber_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemoveSubscriber>(GetArena()); + _impl_.event_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemoveSubscriber>(GetArena())); } - return _impl_.event_.remove_subscriber_; + return reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_); } -inline ::subspace::ShadowRemoveSubscriber* ShadowEvent::mutable_remove_subscriber() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL ShadowEvent::mutable_remove_subscriber() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowRemoveSubscriber* _msg = _internal_mutable_remove_subscriber(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.remove_subscriber) return _msg; @@ -23914,11 +26658,11 @@ inline void ShadowEvent::clear_state_dump() { clear_has_event(); } } -inline ::subspace::ShadowStateDump* ShadowEvent::release_state_dump() { +inline ::subspace::ShadowStateDump* PROTOBUF_NULLABLE ShadowEvent::release_state_dump() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.state_dump) if (event_case() == kStateDump) { clear_has_event(); - auto* temp = _impl_.event_.state_dump_; + auto* temp = reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -23929,44 +26673,47 @@ inline ::subspace::ShadowStateDump* ShadowEvent::release_state_dump() { } } inline const ::subspace::ShadowStateDump& ShadowEvent::_internal_state_dump() const { - return event_case() == kStateDump ? *_impl_.event_.state_dump_ : reinterpret_cast<::subspace::ShadowStateDump&>(::subspace::_ShadowStateDump_default_instance_); + return event_case() == kStateDump ? static_cast(*reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_)) + : reinterpret_cast(::subspace::_ShadowStateDump_default_instance_); } inline const ::subspace::ShadowStateDump& ShadowEvent::state_dump() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.state_dump) return _internal_state_dump(); } -inline ::subspace::ShadowStateDump* ShadowEvent::unsafe_arena_release_state_dump() { +inline ::subspace::ShadowStateDump* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_state_dump() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.state_dump) if (event_case() == kStateDump) { clear_has_event(); - auto* temp = _impl_.event_.state_dump_; + auto* temp = reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_); _impl_.event_.state_dump_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_state_dump(::subspace::ShadowStateDump* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_state_dump( + ::subspace::ShadowStateDump* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_state_dump(); - _impl_.event_.state_dump_ = value; + _impl_.event_.state_dump_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.state_dump) } -inline ::subspace::ShadowStateDump* ShadowEvent::_internal_mutable_state_dump() { +inline ::subspace::ShadowStateDump* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_state_dump() { if (event_case() != kStateDump) { clear_event(); set_has_state_dump(); - _impl_.event_.state_dump_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowStateDump>(GetArena()); + _impl_.event_.state_dump_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowStateDump>(GetArena())); } - return _impl_.event_.state_dump_; + return reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_); } -inline ::subspace::ShadowStateDump* ShadowEvent::mutable_state_dump() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowStateDump* PROTOBUF_NONNULL ShadowEvent::mutable_state_dump() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowStateDump* _msg = _internal_mutable_state_dump(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.state_dump) return _msg; @@ -23993,11 +26740,11 @@ inline void ShadowEvent::clear_state_done() { clear_has_event(); } } -inline ::subspace::ShadowStateDone* ShadowEvent::release_state_done() { +inline ::subspace::ShadowStateDone* PROTOBUF_NULLABLE ShadowEvent::release_state_done() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.state_done) if (event_case() == kStateDone) { clear_has_event(); - auto* temp = _impl_.event_.state_done_; + auto* temp = reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -24008,44 +26755,47 @@ inline ::subspace::ShadowStateDone* ShadowEvent::release_state_done() { } } inline const ::subspace::ShadowStateDone& ShadowEvent::_internal_state_done() const { - return event_case() == kStateDone ? *_impl_.event_.state_done_ : reinterpret_cast<::subspace::ShadowStateDone&>(::subspace::_ShadowStateDone_default_instance_); + return event_case() == kStateDone ? static_cast(*reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_)) + : reinterpret_cast(::subspace::_ShadowStateDone_default_instance_); } inline const ::subspace::ShadowStateDone& ShadowEvent::state_done() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.state_done) return _internal_state_done(); } -inline ::subspace::ShadowStateDone* ShadowEvent::unsafe_arena_release_state_done() { +inline ::subspace::ShadowStateDone* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_state_done() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.state_done) if (event_case() == kStateDone) { clear_has_event(); - auto* temp = _impl_.event_.state_done_; + auto* temp = reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_); _impl_.event_.state_done_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_state_done(::subspace::ShadowStateDone* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_state_done( + ::subspace::ShadowStateDone* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_state_done(); - _impl_.event_.state_done_ = value; + _impl_.event_.state_done_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.state_done) } -inline ::subspace::ShadowStateDone* ShadowEvent::_internal_mutable_state_done() { +inline ::subspace::ShadowStateDone* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_state_done() { if (event_case() != kStateDone) { clear_event(); set_has_state_done(); - _impl_.event_.state_done_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowStateDone>(GetArena()); + _impl_.event_.state_done_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowStateDone>(GetArena())); } - return _impl_.event_.state_done_; + return reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_); } -inline ::subspace::ShadowStateDone* ShadowEvent::mutable_state_done() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowStateDone* PROTOBUF_NONNULL ShadowEvent::mutable_state_done() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowStateDone* _msg = _internal_mutable_state_done(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.state_done) return _msg; @@ -24072,11 +26822,11 @@ inline void ShadowEvent::clear_register_client_buffer() { clear_has_event(); } } -inline ::subspace::ShadowRegisterClientBuffer* ShadowEvent::release_register_client_buffer() { +inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::release_register_client_buffer() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.register_client_buffer) if (event_case() == kRegisterClientBuffer) { clear_has_event(); - auto* temp = _impl_.event_.register_client_buffer_; + auto* temp = reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -24087,44 +26837,47 @@ inline ::subspace::ShadowRegisterClientBuffer* ShadowEvent::release_register_cli } } inline const ::subspace::ShadowRegisterClientBuffer& ShadowEvent::_internal_register_client_buffer() const { - return event_case() == kRegisterClientBuffer ? *_impl_.event_.register_client_buffer_ : reinterpret_cast<::subspace::ShadowRegisterClientBuffer&>(::subspace::_ShadowRegisterClientBuffer_default_instance_); + return event_case() == kRegisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_)) + : reinterpret_cast(::subspace::_ShadowRegisterClientBuffer_default_instance_); } inline const ::subspace::ShadowRegisterClientBuffer& ShadowEvent::register_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.register_client_buffer) return _internal_register_client_buffer(); } -inline ::subspace::ShadowRegisterClientBuffer* ShadowEvent::unsafe_arena_release_register_client_buffer() { +inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_register_client_buffer() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.register_client_buffer) if (event_case() == kRegisterClientBuffer) { clear_has_event(); - auto* temp = _impl_.event_.register_client_buffer_; + auto* temp = reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_); _impl_.event_.register_client_buffer_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_register_client_buffer( + ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_register_client_buffer(); - _impl_.event_.register_client_buffer_ = value; + _impl_.event_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.register_client_buffer) } -inline ::subspace::ShadowRegisterClientBuffer* ShadowEvent::_internal_mutable_register_client_buffer() { +inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_register_client_buffer() { if (event_case() != kRegisterClientBuffer) { clear_event(); set_has_register_client_buffer(); - _impl_.event_.register_client_buffer_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRegisterClientBuffer>(GetArena()); + _impl_.event_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRegisterClientBuffer>(GetArena())); } - return _impl_.event_.register_client_buffer_; + return reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_); } -inline ::subspace::ShadowRegisterClientBuffer* ShadowEvent::mutable_register_client_buffer() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::mutable_register_client_buffer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowRegisterClientBuffer* _msg = _internal_mutable_register_client_buffer(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.register_client_buffer) return _msg; @@ -24151,11 +26904,11 @@ inline void ShadowEvent::clear_unregister_client_buffer() { clear_has_event(); } } -inline ::subspace::ShadowUnregisterClientBuffer* ShadowEvent::release_unregister_client_buffer() { +inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::release_unregister_client_buffer() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.unregister_client_buffer) if (event_case() == kUnregisterClientBuffer) { clear_has_event(); - auto* temp = _impl_.event_.unregister_client_buffer_; + auto* temp = reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -24166,44 +26919,47 @@ inline ::subspace::ShadowUnregisterClientBuffer* ShadowEvent::release_unregister } } inline const ::subspace::ShadowUnregisterClientBuffer& ShadowEvent::_internal_unregister_client_buffer() const { - return event_case() == kUnregisterClientBuffer ? *_impl_.event_.unregister_client_buffer_ : reinterpret_cast<::subspace::ShadowUnregisterClientBuffer&>(::subspace::_ShadowUnregisterClientBuffer_default_instance_); + return event_case() == kUnregisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_)) + : reinterpret_cast(::subspace::_ShadowUnregisterClientBuffer_default_instance_); } inline const ::subspace::ShadowUnregisterClientBuffer& ShadowEvent::unregister_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.unregister_client_buffer) return _internal_unregister_client_buffer(); } -inline ::subspace::ShadowUnregisterClientBuffer* ShadowEvent::unsafe_arena_release_unregister_client_buffer() { +inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_unregister_client_buffer() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.unregister_client_buffer) if (event_case() == kUnregisterClientBuffer) { clear_has_event(); - auto* temp = _impl_.event_.unregister_client_buffer_; + auto* temp = reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_); _impl_.event_.unregister_client_buffer_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_unregister_client_buffer( + ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_unregister_client_buffer(); - _impl_.event_.unregister_client_buffer_ = value; + _impl_.event_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.unregister_client_buffer) } -inline ::subspace::ShadowUnregisterClientBuffer* ShadowEvent::_internal_mutable_unregister_client_buffer() { +inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_unregister_client_buffer() { if (event_case() != kUnregisterClientBuffer) { clear_event(); set_has_unregister_client_buffer(); - _impl_.event_.unregister_client_buffer_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowUnregisterClientBuffer>(GetArena()); + _impl_.event_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowUnregisterClientBuffer>(GetArena())); } - return _impl_.event_.unregister_client_buffer_; + return reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_); } -inline ::subspace::ShadowUnregisterClientBuffer* ShadowEvent::mutable_unregister_client_buffer() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::mutable_unregister_client_buffer() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowUnregisterClientBuffer* _msg = _internal_mutable_unregister_client_buffer(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.unregister_client_buffer) return _msg; @@ -24230,11 +26986,11 @@ inline void ShadowEvent::clear_update_channel_options() { clear_has_event(); } } -inline ::subspace::ShadowUpdateChannelOptions* ShadowEvent::release_update_channel_options() { +inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE ShadowEvent::release_update_channel_options() { // @@protoc_insertion_point(field_release:subspace.ShadowEvent.update_channel_options) if (event_case() == kUpdateChannelOptions) { clear_has_event(); - auto* temp = _impl_.event_.update_channel_options_; + auto* temp = reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_); if (GetArena() != nullptr) { temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); } @@ -24245,44 +27001,47 @@ inline ::subspace::ShadowUpdateChannelOptions* ShadowEvent::release_update_chann } } inline const ::subspace::ShadowUpdateChannelOptions& ShadowEvent::_internal_update_channel_options() const { - return event_case() == kUpdateChannelOptions ? *_impl_.event_.update_channel_options_ : reinterpret_cast<::subspace::ShadowUpdateChannelOptions&>(::subspace::_ShadowUpdateChannelOptions_default_instance_); + return event_case() == kUpdateChannelOptions ? static_cast(*reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_)) + : reinterpret_cast(::subspace::_ShadowUpdateChannelOptions_default_instance_); } inline const ::subspace::ShadowUpdateChannelOptions& ShadowEvent::update_channel_options() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowEvent.update_channel_options) return _internal_update_channel_options(); } -inline ::subspace::ShadowUpdateChannelOptions* ShadowEvent::unsafe_arena_release_update_channel_options() { +inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_update_channel_options() { // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.update_channel_options) if (event_case() == kUpdateChannelOptions) { clear_has_event(); - auto* temp = _impl_.event_.update_channel_options_; + auto* temp = reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_); _impl_.event_.update_channel_options_ = nullptr; return temp; } else { return nullptr; } } -inline void ShadowEvent::unsafe_arena_set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* value) { +inline void ShadowEvent::unsafe_arena_set_allocated_update_channel_options( + ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE value) { // We rely on the oneof clear method to free the earlier contents // of this oneof. We can directly use the pointer we're given to // set the new value. clear_event(); if (value) { set_has_update_channel_options(); - _impl_.event_.update_channel_options_ = value; + _impl_.event_.update_channel_options_ = reinterpret_cast<::google::protobuf::Message*>(value); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.update_channel_options) } -inline ::subspace::ShadowUpdateChannelOptions* ShadowEvent::_internal_mutable_update_channel_options() { +inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_update_channel_options() { if (event_case() != kUpdateChannelOptions) { clear_event(); set_has_update_channel_options(); - _impl_.event_.update_channel_options_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowUpdateChannelOptions>(GetArena()); + _impl_.event_.update_channel_options_ = reinterpret_cast<::google::protobuf::Message*>( + ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowUpdateChannelOptions>(GetArena())); } - return _impl_.event_.update_channel_options_; + return reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_); } -inline ::subspace::ShadowUpdateChannelOptions* ShadowEvent::mutable_update_channel_options() ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL ShadowEvent::mutable_update_channel_options() + ABSL_ATTRIBUTE_LIFETIME_BOUND { ::subspace::ShadowUpdateChannelOptions* _msg = _internal_mutable_update_channel_options(); // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.update_channel_options) return _msg; @@ -24305,6 +27064,8 @@ inline ShadowEvent::EventCase ShadowEvent::event_case() const { inline void ShadowInit::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::uint64_t ShadowInit::session_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowInit.session_id) @@ -24312,6 +27073,7 @@ inline ::uint64_t ShadowInit::session_id() const { } inline void ShadowInit::set_session_id(::uint64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:subspace.ShadowInit.session_id) } inline ::uint64_t ShadowInit::_internal_session_id() const { @@ -24331,43 +27093,60 @@ inline void ShadowInit::_internal_set_session_id(::uint64_t value) { inline void ShadowCreateChannel::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowCreateChannel::channel_name() const +inline const ::std::string& ShadowCreateChannel::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.channel_name) } -inline std::string* ShadowCreateChannel::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowCreateChannel.channel_name) return _s; } -inline const std::string& ShadowCreateChannel::_internal_channel_name() const { +inline const ::std::string& ShadowCreateChannel::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowCreateChannel::_internal_set_channel_name(const std::string& value) { +inline void ShadowCreateChannel::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowCreateChannel::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowCreateChannel::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowCreateChannel::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowCreateChannel.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowCreateChannel::set_allocated_channel_name(std::string* value) { +inline void ShadowCreateChannel::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -24379,6 +27158,8 @@ inline void ShadowCreateChannel::set_allocated_channel_name(std::string* value) inline void ShadowCreateChannel::clear_channel_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline ::int32_t ShadowCreateChannel::channel_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.channel_id) @@ -24386,6 +27167,7 @@ inline ::int32_t ShadowCreateChannel::channel_id() const { } inline void ShadowCreateChannel::set_channel_id(::int32_t value) { _internal_set_channel_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.channel_id) } inline ::int32_t ShadowCreateChannel::_internal_channel_id() const { @@ -24401,6 +27183,8 @@ inline void ShadowCreateChannel::_internal_set_channel_id(::int32_t value) { inline void ShadowCreateChannel::clear_slot_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.slot_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline ::int32_t ShadowCreateChannel::slot_size() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.slot_size) @@ -24408,6 +27192,7 @@ inline ::int32_t ShadowCreateChannel::slot_size() const { } inline void ShadowCreateChannel::set_slot_size(::int32_t value) { _internal_set_slot_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.slot_size) } inline ::int32_t ShadowCreateChannel::_internal_slot_size() const { @@ -24423,6 +27208,8 @@ inline void ShadowCreateChannel::_internal_set_slot_size(::int32_t value) { inline void ShadowCreateChannel::clear_num_slots() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_slots_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::int32_t ShadowCreateChannel::num_slots() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.num_slots) @@ -24430,6 +27217,7 @@ inline ::int32_t ShadowCreateChannel::num_slots() const { } inline void ShadowCreateChannel::set_num_slots(::int32_t value) { _internal_set_num_slots(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.num_slots) } inline ::int32_t ShadowCreateChannel::_internal_num_slots() const { @@ -24445,43 +27233,60 @@ inline void ShadowCreateChannel::_internal_set_num_slots(::int32_t value) { inline void ShadowCreateChannel::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } -inline const std::string& ShadowCreateChannel::type() const +inline const ::std::string& ShadowCreateChannel::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.type) return _internal_type(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_type(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.type) } -inline std::string* ShadowCreateChannel::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_type(); +inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::mutable_type() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:subspace.ShadowCreateChannel.type) return _s; } -inline const std::string& ShadowCreateChannel::_internal_type() const { +inline const ::std::string& ShadowCreateChannel::_internal_type() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.type_.Get(); } -inline void ShadowCreateChannel::_internal_set_type(const std::string& value) { +inline void ShadowCreateChannel::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Set(value, GetArena()); } -inline std::string* ShadowCreateChannel::_internal_mutable_type() { +inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.type_.Mutable( GetArena()); } -inline std::string* ShadowCreateChannel::release_type() { +inline ::std::string* PROTOBUF_NULLABLE ShadowCreateChannel::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowCreateChannel.type) - return _impl_.type_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + auto* released = _impl_.type_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.type_.Set("", GetArena()); + } + return released; } -inline void ShadowCreateChannel::set_allocated_type(std::string* value) { +inline void ShadowCreateChannel::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { _impl_.type_.Set("", GetArena()); @@ -24493,6 +27298,8 @@ inline void ShadowCreateChannel::set_allocated_type(std::string* value) { inline void ShadowCreateChannel::clear_is_local() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_local_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool ShadowCreateChannel::is_local() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.is_local) @@ -24500,6 +27307,7 @@ inline bool ShadowCreateChannel::is_local() const { } inline void ShadowCreateChannel::set_is_local(bool value) { _internal_set_is_local(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.is_local) } inline bool ShadowCreateChannel::_internal_is_local() const { @@ -24515,6 +27323,8 @@ inline void ShadowCreateChannel::_internal_set_is_local(bool value) { inline void ShadowCreateChannel::clear_is_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool ShadowCreateChannel::is_reliable() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.is_reliable) @@ -24522,6 +27332,7 @@ inline bool ShadowCreateChannel::is_reliable() const { } inline void ShadowCreateChannel::set_is_reliable(bool value) { _internal_set_is_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.is_reliable) } inline bool ShadowCreateChannel::_internal_is_reliable() const { @@ -24537,6 +27348,8 @@ inline void ShadowCreateChannel::_internal_set_is_reliable(bool value) { inline void ShadowCreateChannel::clear_is_fixed_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_fixed_size_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000100U); } inline bool ShadowCreateChannel::is_fixed_size() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.is_fixed_size) @@ -24544,6 +27357,7 @@ inline bool ShadowCreateChannel::is_fixed_size() const { } inline void ShadowCreateChannel::set_is_fixed_size(bool value) { _internal_set_is_fixed_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.is_fixed_size) } inline bool ShadowCreateChannel::_internal_is_fixed_size() const { @@ -24559,6 +27373,8 @@ inline void ShadowCreateChannel::_internal_set_is_fixed_size(bool value) { inline void ShadowCreateChannel::clear_checksum_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.checksum_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000400U); } inline ::int32_t ShadowCreateChannel::checksum_size() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.checksum_size) @@ -24566,6 +27382,7 @@ inline ::int32_t ShadowCreateChannel::checksum_size() const { } inline void ShadowCreateChannel::set_checksum_size(::int32_t value) { _internal_set_checksum_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.checksum_size) } inline ::int32_t ShadowCreateChannel::_internal_checksum_size() const { @@ -24581,6 +27398,8 @@ inline void ShadowCreateChannel::_internal_set_checksum_size(::int32_t value) { inline void ShadowCreateChannel::clear_metadata_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.metadata_size_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000800U); } inline ::int32_t ShadowCreateChannel::metadata_size() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.metadata_size) @@ -24588,6 +27407,7 @@ inline ::int32_t ShadowCreateChannel::metadata_size() const { } inline void ShadowCreateChannel::set_metadata_size(::int32_t value) { _internal_set_metadata_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.metadata_size) } inline ::int32_t ShadowCreateChannel::_internal_metadata_size() const { @@ -24603,43 +27423,60 @@ inline void ShadowCreateChannel::_internal_set_metadata_size(::int32_t value) { inline void ShadowCreateChannel::clear_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } -inline const std::string& ShadowCreateChannel::mux() const +inline const ::std::string& ShadowCreateChannel::mux() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.mux) return _internal_mux(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_mux(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_mux(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.mux_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.mux) } -inline std::string* ShadowCreateChannel::mutable_mux() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mux(); +inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::mutable_mux() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_mux(); // @@protoc_insertion_point(field_mutable:subspace.ShadowCreateChannel.mux) return _s; } -inline const std::string& ShadowCreateChannel::_internal_mux() const { +inline const ::std::string& ShadowCreateChannel::_internal_mux() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.mux_.Get(); } -inline void ShadowCreateChannel::_internal_set_mux(const std::string& value) { +inline void ShadowCreateChannel::_internal_set_mux(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.mux_.Set(value, GetArena()); } -inline std::string* ShadowCreateChannel::_internal_mutable_mux() { +inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::_internal_mutable_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.mux_.Mutable( GetArena()); } -inline std::string* ShadowCreateChannel::release_mux() { +inline ::std::string* PROTOBUF_NULLABLE ShadowCreateChannel::release_mux() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowCreateChannel.mux) - return _impl_.mux_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + auto* released = _impl_.mux_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.mux_.Set("", GetArena()); + } + return released; } -inline void ShadowCreateChannel::set_allocated_mux(std::string* value) { +inline void ShadowCreateChannel::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + } _impl_.mux_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { _impl_.mux_.Set("", GetArena()); @@ -24651,6 +27488,8 @@ inline void ShadowCreateChannel::set_allocated_mux(std::string* value) { inline void ShadowCreateChannel::clear_vchan_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.vchan_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00001000U); } inline ::int32_t ShadowCreateChannel::vchan_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.vchan_id) @@ -24658,6 +27497,7 @@ inline ::int32_t ShadowCreateChannel::vchan_id() const { } inline void ShadowCreateChannel::set_vchan_id(::int32_t value) { _internal_set_vchan_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.vchan_id) } inline ::int32_t ShadowCreateChannel::_internal_vchan_id() const { @@ -24673,6 +27513,8 @@ inline void ShadowCreateChannel::_internal_set_vchan_id(::int32_t value) { inline void ShadowCreateChannel::clear_has_split_buffer_options() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_split_buffer_options_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000200U); } inline bool ShadowCreateChannel::has_split_buffer_options() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.has_split_buffer_options) @@ -24680,6 +27522,7 @@ inline bool ShadowCreateChannel::has_split_buffer_options() const { } inline void ShadowCreateChannel::set_has_split_buffer_options(bool value) { _internal_set_has_split_buffer_options(value); + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.has_split_buffer_options) } inline bool ShadowCreateChannel::_internal_has_split_buffer_options() const { @@ -24695,6 +27538,8 @@ inline void ShadowCreateChannel::_internal_set_has_split_buffer_options(bool val inline void ShadowCreateChannel::clear_use_split_buffers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.use_split_buffers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00002000U); } inline bool ShadowCreateChannel::use_split_buffers() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.use_split_buffers) @@ -24702,6 +27547,7 @@ inline bool ShadowCreateChannel::use_split_buffers() const { } inline void ShadowCreateChannel::set_use_split_buffers(bool value) { _internal_set_use_split_buffers(value); + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.use_split_buffers) } inline bool ShadowCreateChannel::_internal_use_split_buffers() const { @@ -24717,6 +27563,8 @@ inline void ShadowCreateChannel::_internal_set_use_split_buffers(bool value) { inline void ShadowCreateChannel::clear_has_max_publishers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_max_publishers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00004000U); } inline bool ShadowCreateChannel::has_max_publishers() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.has_max_publishers) @@ -24724,6 +27572,7 @@ inline bool ShadowCreateChannel::has_max_publishers() const { } inline void ShadowCreateChannel::set_has_max_publishers(bool value) { _internal_set_has_max_publishers(value); + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.has_max_publishers) } inline bool ShadowCreateChannel::_internal_has_max_publishers() const { @@ -24739,6 +27588,8 @@ inline void ShadowCreateChannel::_internal_set_has_max_publishers(bool value) { inline void ShadowCreateChannel::clear_max_publishers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_publishers_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00010000U); } inline ::int32_t ShadowCreateChannel::max_publishers() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.max_publishers) @@ -24746,6 +27597,7 @@ inline ::int32_t ShadowCreateChannel::max_publishers() const { } inline void ShadowCreateChannel::set_max_publishers(::int32_t value) { _internal_set_max_publishers(value); + SetHasBit(_impl_._has_bits_[0], 0x00010000U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.max_publishers) } inline ::int32_t ShadowCreateChannel::_internal_max_publishers() const { @@ -24761,6 +27613,8 @@ inline void ShadowCreateChannel::_internal_set_max_publishers(::int32_t value) { inline void ShadowCreateChannel::clear_split_buffers_over_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.split_buffers_over_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00008000U); } inline bool ShadowCreateChannel::split_buffers_over_bridge() const { // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.split_buffers_over_bridge) @@ -24768,6 +27622,7 @@ inline bool ShadowCreateChannel::split_buffers_over_bridge() const { } inline void ShadowCreateChannel::set_split_buffers_over_bridge(bool value) { _internal_set_split_buffers_over_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00008000U); // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.split_buffers_over_bridge) } inline bool ShadowCreateChannel::_internal_split_buffers_over_bridge() const { @@ -24787,43 +27642,60 @@ inline void ShadowCreateChannel::_internal_set_split_buffers_over_bridge(bool va inline void ShadowRemoveChannel::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowRemoveChannel::channel_name() const +inline const ::std::string& ShadowRemoveChannel::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowRemoveChannel.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowRemoveChannel::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowRemoveChannel::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowRemoveChannel.channel_name) } -inline std::string* ShadowRemoveChannel::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowRemoveChannel::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowRemoveChannel.channel_name) return _s; } -inline const std::string& ShadowRemoveChannel::_internal_channel_name() const { +inline const ::std::string& ShadowRemoveChannel::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowRemoveChannel::_internal_set_channel_name(const std::string& value) { +inline void ShadowRemoveChannel::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowRemoveChannel::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowRemoveChannel::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowRemoveChannel::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowRemoveChannel::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowRemoveChannel.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowRemoveChannel::set_allocated_channel_name(std::string* value) { +inline void ShadowRemoveChannel::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -24835,6 +27707,8 @@ inline void ShadowRemoveChannel::set_allocated_channel_name(std::string* value) inline void ShadowRemoveChannel::clear_channel_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t ShadowRemoveChannel::channel_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowRemoveChannel.channel_id) @@ -24842,6 +27716,7 @@ inline ::int32_t ShadowRemoveChannel::channel_id() const { } inline void ShadowRemoveChannel::set_channel_id(::int32_t value) { _internal_set_channel_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowRemoveChannel.channel_id) } inline ::int32_t ShadowRemoveChannel::_internal_channel_id() const { @@ -24861,43 +27736,60 @@ inline void ShadowRemoveChannel::_internal_set_channel_id(::int32_t value) { inline void ShadowAddPublisher::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowAddPublisher::channel_name() const +inline const ::std::string& ShadowAddPublisher::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowAddPublisher::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowAddPublisher::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.channel_name) } -inline std::string* ShadowAddPublisher::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowAddPublisher::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowAddPublisher.channel_name) return _s; } -inline const std::string& ShadowAddPublisher::_internal_channel_name() const { +inline const ::std::string& ShadowAddPublisher::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowAddPublisher::_internal_set_channel_name(const std::string& value) { +inline void ShadowAddPublisher::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowAddPublisher::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowAddPublisher::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowAddPublisher::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowAddPublisher::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowAddPublisher.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowAddPublisher::set_allocated_channel_name(std::string* value) { +inline void ShadowAddPublisher::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -24909,6 +27801,8 @@ inline void ShadowAddPublisher::set_allocated_channel_name(std::string* value) { inline void ShadowAddPublisher::clear_publisher_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.publisher_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t ShadowAddPublisher::publisher_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.publisher_id) @@ -24916,6 +27810,7 @@ inline ::int32_t ShadowAddPublisher::publisher_id() const { } inline void ShadowAddPublisher::set_publisher_id(::int32_t value) { _internal_set_publisher_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.publisher_id) } inline ::int32_t ShadowAddPublisher::_internal_publisher_id() const { @@ -24931,6 +27826,8 @@ inline void ShadowAddPublisher::_internal_set_publisher_id(::int32_t value) { inline void ShadowAddPublisher::clear_is_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool ShadowAddPublisher::is_reliable() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_reliable) @@ -24938,6 +27835,7 @@ inline bool ShadowAddPublisher::is_reliable() const { } inline void ShadowAddPublisher::set_is_reliable(bool value) { _internal_set_is_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_reliable) } inline bool ShadowAddPublisher::_internal_is_reliable() const { @@ -24953,6 +27851,8 @@ inline void ShadowAddPublisher::_internal_set_is_reliable(bool value) { inline void ShadowAddPublisher::clear_is_local() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_local_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool ShadowAddPublisher::is_local() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_local) @@ -24960,6 +27860,7 @@ inline bool ShadowAddPublisher::is_local() const { } inline void ShadowAddPublisher::set_is_local(bool value) { _internal_set_is_local(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_local) } inline bool ShadowAddPublisher::_internal_is_local() const { @@ -24975,6 +27876,8 @@ inline void ShadowAddPublisher::_internal_set_is_local(bool value) { inline void ShadowAddPublisher::clear_is_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool ShadowAddPublisher::is_bridge() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_bridge) @@ -24982,6 +27885,7 @@ inline bool ShadowAddPublisher::is_bridge() const { } inline void ShadowAddPublisher::set_is_bridge(bool value) { _internal_set_is_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_bridge) } inline bool ShadowAddPublisher::_internal_is_bridge() const { @@ -24997,6 +27901,8 @@ inline void ShadowAddPublisher::_internal_set_is_bridge(bool value) { inline void ShadowAddPublisher::clear_is_fixed_size() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_fixed_size_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline bool ShadowAddPublisher::is_fixed_size() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_fixed_size) @@ -25004,6 +27910,7 @@ inline bool ShadowAddPublisher::is_fixed_size() const { } inline void ShadowAddPublisher::set_is_fixed_size(bool value) { _internal_set_is_fixed_size(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_fixed_size) } inline bool ShadowAddPublisher::_internal_is_fixed_size() const { @@ -25019,6 +27926,8 @@ inline void ShadowAddPublisher::_internal_set_is_fixed_size(bool value) { inline void ShadowAddPublisher::clear_notify_retirement() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.notify_retirement_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000040U); } inline bool ShadowAddPublisher::notify_retirement() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.notify_retirement) @@ -25026,6 +27935,7 @@ inline bool ShadowAddPublisher::notify_retirement() const { } inline void ShadowAddPublisher::set_notify_retirement(bool value) { _internal_set_notify_retirement(value); + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.notify_retirement) } inline bool ShadowAddPublisher::_internal_notify_retirement() const { @@ -25041,6 +27951,8 @@ inline void ShadowAddPublisher::_internal_set_notify_retirement(bool value) { inline void ShadowAddPublisher::clear_for_tunnel() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.for_tunnel_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000080U); } inline bool ShadowAddPublisher::for_tunnel() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.for_tunnel) @@ -25048,6 +27960,7 @@ inline bool ShadowAddPublisher::for_tunnel() const { } inline void ShadowAddPublisher::set_for_tunnel(bool value) { _internal_set_for_tunnel(value); + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.for_tunnel) } inline bool ShadowAddPublisher::_internal_for_tunnel() const { @@ -25067,43 +27980,60 @@ inline void ShadowAddPublisher::_internal_set_for_tunnel(bool value) { inline void ShadowRemovePublisher::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowRemovePublisher::channel_name() const +inline const ::std::string& ShadowRemovePublisher::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowRemovePublisher.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowRemovePublisher::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowRemovePublisher::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowRemovePublisher.channel_name) } -inline std::string* ShadowRemovePublisher::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowRemovePublisher::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowRemovePublisher.channel_name) return _s; } -inline const std::string& ShadowRemovePublisher::_internal_channel_name() const { +inline const ::std::string& ShadowRemovePublisher::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowRemovePublisher::_internal_set_channel_name(const std::string& value) { +inline void ShadowRemovePublisher::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowRemovePublisher::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowRemovePublisher::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowRemovePublisher::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowRemovePublisher::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowRemovePublisher.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowRemovePublisher::set_allocated_channel_name(std::string* value) { +inline void ShadowRemovePublisher::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -25115,6 +28045,8 @@ inline void ShadowRemovePublisher::set_allocated_channel_name(std::string* value inline void ShadowRemovePublisher::clear_publisher_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.publisher_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t ShadowRemovePublisher::publisher_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowRemovePublisher.publisher_id) @@ -25122,6 +28054,7 @@ inline ::int32_t ShadowRemovePublisher::publisher_id() const { } inline void ShadowRemovePublisher::set_publisher_id(::int32_t value) { _internal_set_publisher_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowRemovePublisher.publisher_id) } inline ::int32_t ShadowRemovePublisher::_internal_publisher_id() const { @@ -25141,43 +28074,60 @@ inline void ShadowRemovePublisher::_internal_set_publisher_id(::int32_t value) { inline void ShadowAddSubscriber::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowAddSubscriber::channel_name() const +inline const ::std::string& ShadowAddSubscriber::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowAddSubscriber::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowAddSubscriber::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.channel_name) } -inline std::string* ShadowAddSubscriber::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowAddSubscriber::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowAddSubscriber.channel_name) return _s; } -inline const std::string& ShadowAddSubscriber::_internal_channel_name() const { +inline const ::std::string& ShadowAddSubscriber::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowAddSubscriber::_internal_set_channel_name(const std::string& value) { +inline void ShadowAddSubscriber::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowAddSubscriber::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowAddSubscriber::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowAddSubscriber::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowAddSubscriber::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowAddSubscriber.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowAddSubscriber::set_allocated_channel_name(std::string* value) { +inline void ShadowAddSubscriber::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -25189,6 +28139,8 @@ inline void ShadowAddSubscriber::set_allocated_channel_name(std::string* value) inline void ShadowAddSubscriber::clear_subscriber_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.subscriber_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t ShadowAddSubscriber::subscriber_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.subscriber_id) @@ -25196,6 +28148,7 @@ inline ::int32_t ShadowAddSubscriber::subscriber_id() const { } inline void ShadowAddSubscriber::set_subscriber_id(::int32_t value) { _internal_set_subscriber_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.subscriber_id) } inline ::int32_t ShadowAddSubscriber::_internal_subscriber_id() const { @@ -25211,6 +28164,8 @@ inline void ShadowAddSubscriber::_internal_set_subscriber_id(::int32_t value) { inline void ShadowAddSubscriber::clear_is_reliable() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_reliable_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool ShadowAddSubscriber::is_reliable() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.is_reliable) @@ -25218,6 +28173,7 @@ inline bool ShadowAddSubscriber::is_reliable() const { } inline void ShadowAddSubscriber::set_is_reliable(bool value) { _internal_set_is_reliable(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.is_reliable) } inline bool ShadowAddSubscriber::_internal_is_reliable() const { @@ -25233,6 +28189,8 @@ inline void ShadowAddSubscriber::_internal_set_is_reliable(bool value) { inline void ShadowAddSubscriber::clear_is_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.is_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool ShadowAddSubscriber::is_bridge() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.is_bridge) @@ -25240,6 +28198,7 @@ inline bool ShadowAddSubscriber::is_bridge() const { } inline void ShadowAddSubscriber::set_is_bridge(bool value) { _internal_set_is_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.is_bridge) } inline bool ShadowAddSubscriber::_internal_is_bridge() const { @@ -25255,6 +28214,8 @@ inline void ShadowAddSubscriber::_internal_set_is_bridge(bool value) { inline void ShadowAddSubscriber::clear_max_active_messages() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_active_messages_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::int32_t ShadowAddSubscriber::max_active_messages() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.max_active_messages) @@ -25262,6 +28223,7 @@ inline ::int32_t ShadowAddSubscriber::max_active_messages() const { } inline void ShadowAddSubscriber::set_max_active_messages(::int32_t value) { _internal_set_max_active_messages(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.max_active_messages) } inline ::int32_t ShadowAddSubscriber::_internal_max_active_messages() const { @@ -25277,6 +28239,8 @@ inline void ShadowAddSubscriber::_internal_set_max_active_messages(::int32_t val inline void ShadowAddSubscriber::clear_for_tunnel() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.for_tunnel_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool ShadowAddSubscriber::for_tunnel() const { // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.for_tunnel) @@ -25284,6 +28248,7 @@ inline bool ShadowAddSubscriber::for_tunnel() const { } inline void ShadowAddSubscriber::set_for_tunnel(bool value) { _internal_set_for_tunnel(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.for_tunnel) } inline bool ShadowAddSubscriber::_internal_for_tunnel() const { @@ -25303,43 +28268,60 @@ inline void ShadowAddSubscriber::_internal_set_for_tunnel(bool value) { inline void ShadowRemoveSubscriber::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowRemoveSubscriber::channel_name() const +inline const ::std::string& ShadowRemoveSubscriber::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowRemoveSubscriber.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowRemoveSubscriber::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowRemoveSubscriber::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowRemoveSubscriber.channel_name) } -inline std::string* ShadowRemoveSubscriber::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowRemoveSubscriber::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowRemoveSubscriber.channel_name) return _s; } -inline const std::string& ShadowRemoveSubscriber::_internal_channel_name() const { +inline const ::std::string& ShadowRemoveSubscriber::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowRemoveSubscriber::_internal_set_channel_name(const std::string& value) { +inline void ShadowRemoveSubscriber::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowRemoveSubscriber::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowRemoveSubscriber::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowRemoveSubscriber::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowRemoveSubscriber::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowRemoveSubscriber.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowRemoveSubscriber::set_allocated_channel_name(std::string* value) { +inline void ShadowRemoveSubscriber::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -25351,6 +28333,8 @@ inline void ShadowRemoveSubscriber::set_allocated_channel_name(std::string* valu inline void ShadowRemoveSubscriber::clear_subscriber_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.subscriber_id_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t ShadowRemoveSubscriber::subscriber_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowRemoveSubscriber.subscriber_id) @@ -25358,6 +28342,7 @@ inline ::int32_t ShadowRemoveSubscriber::subscriber_id() const { } inline void ShadowRemoveSubscriber::set_subscriber_id(::int32_t value) { _internal_set_subscriber_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowRemoveSubscriber.subscriber_id) } inline ::int32_t ShadowRemoveSubscriber::_internal_subscriber_id() const { @@ -25377,6 +28362,8 @@ inline void ShadowRemoveSubscriber::_internal_set_subscriber_id(::int32_t value) inline void ShadowStateDump::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline ::uint64_t ShadowStateDump::session_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowStateDump.session_id) @@ -25384,6 +28371,7 @@ inline ::uint64_t ShadowStateDump::session_id() const { } inline void ShadowStateDump::set_session_id(::uint64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:subspace.ShadowStateDump.session_id) } inline ::uint64_t ShadowStateDump::_internal_session_id() const { @@ -25399,6 +28387,8 @@ inline void ShadowStateDump::_internal_set_session_id(::uint64_t value) { inline void ShadowStateDump::clear_num_channels() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.num_channels_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::int32_t ShadowStateDump::num_channels() const { // @@protoc_insertion_point(field_get:subspace.ShadowStateDump.num_channels) @@ -25406,6 +28396,7 @@ inline ::int32_t ShadowStateDump::num_channels() const { } inline void ShadowStateDump::set_num_channels(::int32_t value) { _internal_set_num_channels(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowStateDump.num_channels) } inline ::int32_t ShadowStateDump::_internal_num_channels() const { @@ -25427,14 +28418,15 @@ inline void ShadowStateDump::_internal_set_num_channels(::int32_t value) { // .subspace.ClientBufferHandleMetadataProto metadata = 1; inline bool ShadowRegisterClientBuffer::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); return value; } inline void ShadowRegisterClientBuffer::clear_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } inline const ::subspace::ClientBufferHandleMetadataProto& ShadowRegisterClientBuffer::_internal_metadata() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -25445,23 +28437,24 @@ inline const ::subspace::ClientBufferHandleMetadataProto& ShadowRegisterClientBu // @@protoc_insertion_point(field_get:subspace.ShadowRegisterClientBuffer.metadata) return _internal_metadata(); } -inline void ShadowRegisterClientBuffer::unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value) { +inline void ShadowRegisterClientBuffer::unsafe_arena_set_allocated_metadata( + ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (GetArena() == nullptr) { delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowRegisterClientBuffer.metadata) } -inline ::subspace::ClientBufferHandleMetadataProto* ShadowRegisterClientBuffer::release_metadata() { +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE ShadowRegisterClientBuffer::release_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::subspace::ClientBufferHandleMetadataProto* released = _impl_.metadata_; _impl_.metadata_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -25477,16 +28470,16 @@ inline ::subspace::ClientBufferHandleMetadataProto* ShadowRegisterClientBuffer:: } return released; } -inline ::subspace::ClientBufferHandleMetadataProto* ShadowRegisterClientBuffer::unsafe_arena_release_metadata() { +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE ShadowRegisterClientBuffer::unsafe_arena_release_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowRegisterClientBuffer.metadata) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::subspace::ClientBufferHandleMetadataProto* temp = _impl_.metadata_; _impl_.metadata_ = nullptr; return temp; } -inline ::subspace::ClientBufferHandleMetadataProto* ShadowRegisterClientBuffer::_internal_mutable_metadata() { +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL ShadowRegisterClientBuffer::_internal_mutable_metadata() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.metadata_ == nullptr) { auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ClientBufferHandleMetadataProto>(GetArena()); @@ -25494,33 +28487,84 @@ inline ::subspace::ClientBufferHandleMetadataProto* ShadowRegisterClientBuffer:: } return _impl_.metadata_; } -inline ::subspace::ClientBufferHandleMetadataProto* ShadowRegisterClientBuffer::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; +inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL ShadowRegisterClientBuffer::mutable_metadata() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::subspace::ClientBufferHandleMetadataProto* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:subspace.ShadowRegisterClientBuffer.metadata) return _msg; } -inline void ShadowRegisterClientBuffer::set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* value) { +inline void ShadowRegisterClientBuffer::set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { ::google::protobuf::Arena* message_arena = GetArena(); ::google::protobuf::internal::TSanWrite(&_impl_); if (message_arena == nullptr) { - delete (_impl_.metadata_); + delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); } if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = (value)->GetArena(); + ::google::protobuf::Arena* submessage_arena = value->GetArena(); if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); // @@protoc_insertion_point(field_set_allocated:subspace.ShadowRegisterClientBuffer.metadata) } +// bool has_fd = 2; +inline void ShadowRegisterClientBuffer::clear_has_fd() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_fd_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); +} +inline bool ShadowRegisterClientBuffer::has_fd() const { + // @@protoc_insertion_point(field_get:subspace.ShadowRegisterClientBuffer.has_fd) + return _internal_has_fd(); +} +inline void ShadowRegisterClientBuffer::set_has_fd(bool value) { + _internal_set_has_fd(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_set:subspace.ShadowRegisterClientBuffer.has_fd) +} +inline bool ShadowRegisterClientBuffer::_internal_has_fd() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.has_fd_; +} +inline void ShadowRegisterClientBuffer::_internal_set_has_fd(bool value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.has_fd_ = value; +} + +// int32 fd_index = 3; +inline void ShadowRegisterClientBuffer::clear_fd_index() { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fd_index_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); +} +inline ::int32_t ShadowRegisterClientBuffer::fd_index() const { + // @@protoc_insertion_point(field_get:subspace.ShadowRegisterClientBuffer.fd_index) + return _internal_fd_index(); +} +inline void ShadowRegisterClientBuffer::set_fd_index(::int32_t value) { + _internal_set_fd_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); + // @@protoc_insertion_point(field_set:subspace.ShadowRegisterClientBuffer.fd_index) +} +inline ::int32_t ShadowRegisterClientBuffer::_internal_fd_index() const { + ::google::protobuf::internal::TSanRead(&_impl_); + return _impl_.fd_index_; +} +inline void ShadowRegisterClientBuffer::_internal_set_fd_index(::int32_t value) { + ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_.fd_index_ = value; +} + // ------------------------------------------------------------------- // ShadowUnregisterClientBuffer @@ -25529,43 +28573,60 @@ inline void ShadowRegisterClientBuffer::set_allocated_metadata(::subspace::Clien inline void ShadowUnregisterClientBuffer::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowUnregisterClientBuffer::channel_name() const +inline const ::std::string& ShadowUnregisterClientBuffer::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowUnregisterClientBuffer.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowUnregisterClientBuffer::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowUnregisterClientBuffer::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowUnregisterClientBuffer.channel_name) } -inline std::string* ShadowUnregisterClientBuffer::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowUnregisterClientBuffer.channel_name) return _s; } -inline const std::string& ShadowUnregisterClientBuffer::_internal_channel_name() const { +inline const ::std::string& ShadowUnregisterClientBuffer::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowUnregisterClientBuffer::_internal_set_channel_name(const std::string& value) { +inline void ShadowUnregisterClientBuffer::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowUnregisterClientBuffer::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowUnregisterClientBuffer::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowUnregisterClientBuffer::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowUnregisterClientBuffer.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowUnregisterClientBuffer::set_allocated_channel_name(std::string* value) { +inline void ShadowUnregisterClientBuffer::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -25577,6 +28638,8 @@ inline void ShadowUnregisterClientBuffer::set_allocated_channel_name(std::string inline void ShadowUnregisterClientBuffer::clear_session_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.session_id_ = ::uint64_t{0u}; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline ::uint64_t ShadowUnregisterClientBuffer::session_id() const { // @@protoc_insertion_point(field_get:subspace.ShadowUnregisterClientBuffer.session_id) @@ -25584,6 +28647,7 @@ inline ::uint64_t ShadowUnregisterClientBuffer::session_id() const { } inline void ShadowUnregisterClientBuffer::set_session_id(::uint64_t value) { _internal_set_session_id(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowUnregisterClientBuffer.session_id) } inline ::uint64_t ShadowUnregisterClientBuffer::_internal_session_id() const { @@ -25599,6 +28663,8 @@ inline void ShadowUnregisterClientBuffer::_internal_set_session_id(::uint64_t va inline void ShadowUnregisterClientBuffer::clear_buffer_index() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.buffer_index_ = 0u; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline ::uint32_t ShadowUnregisterClientBuffer::buffer_index() const { // @@protoc_insertion_point(field_get:subspace.ShadowUnregisterClientBuffer.buffer_index) @@ -25606,6 +28672,7 @@ inline ::uint32_t ShadowUnregisterClientBuffer::buffer_index() const { } inline void ShadowUnregisterClientBuffer::set_buffer_index(::uint32_t value) { _internal_set_buffer_index(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.ShadowUnregisterClientBuffer.buffer_index) } inline ::uint32_t ShadowUnregisterClientBuffer::_internal_buffer_index() const { @@ -25625,43 +28692,60 @@ inline void ShadowUnregisterClientBuffer::_internal_set_buffer_index(::uint32_t inline void ShadowUpdateChannelOptions::clear_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.ClearToEmpty(); + ClearHasBit(_impl_._has_bits_[0], + 0x00000001U); } -inline const std::string& ShadowUpdateChannelOptions::channel_name() const +inline const ::std::string& ShadowUpdateChannelOptions::channel_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.channel_name) return _internal_channel_name(); } template -inline PROTOBUF_ALWAYS_INLINE void ShadowUpdateChannelOptions::set_channel_name(Arg_&& arg, - Args_... args) { +PROTOBUF_ALWAYS_INLINE void ShadowUpdateChannelOptions::set_channel_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.channel_name) } -inline std::string* ShadowUpdateChannelOptions::mutable_channel_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_channel_name(); +inline ::std::string* PROTOBUF_NONNULL ShadowUpdateChannelOptions::mutable_channel_name() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_channel_name(); // @@protoc_insertion_point(field_mutable:subspace.ShadowUpdateChannelOptions.channel_name) return _s; } -inline const std::string& ShadowUpdateChannelOptions::_internal_channel_name() const { +inline const ::std::string& ShadowUpdateChannelOptions::_internal_channel_name() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.channel_name_.Get(); } -inline void ShadowUpdateChannelOptions::_internal_set_channel_name(const std::string& value) { +inline void ShadowUpdateChannelOptions::_internal_set_channel_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.channel_name_.Set(value, GetArena()); } -inline std::string* ShadowUpdateChannelOptions::_internal_mutable_channel_name() { +inline ::std::string* PROTOBUF_NONNULL ShadowUpdateChannelOptions::_internal_mutable_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.channel_name_.Mutable( GetArena()); } -inline std::string* ShadowUpdateChannelOptions::release_channel_name() { +inline ::std::string* PROTOBUF_NULLABLE ShadowUpdateChannelOptions::release_channel_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:subspace.ShadowUpdateChannelOptions.channel_name) - return _impl_.channel_name_.Release(); + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + return nullptr; + } + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + auto* released = _impl_.channel_name_.Release(); + if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { + _impl_.channel_name_.Set("", GetArena()); + } + return released; } -inline void ShadowUpdateChannelOptions::set_allocated_channel_name(std::string* value) { +inline void ShadowUpdateChannelOptions::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (value != nullptr) { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + } else { + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + } _impl_.channel_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { _impl_.channel_name_.Set("", GetArena()); @@ -25673,6 +28757,8 @@ inline void ShadowUpdateChannelOptions::set_allocated_channel_name(std::string* inline void ShadowUpdateChannelOptions::clear_has_split_buffer_options() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_split_buffer_options_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000002U); } inline bool ShadowUpdateChannelOptions::has_split_buffer_options() const { // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.has_split_buffer_options) @@ -25680,6 +28766,7 @@ inline bool ShadowUpdateChannelOptions::has_split_buffer_options() const { } inline void ShadowUpdateChannelOptions::set_has_split_buffer_options(bool value) { _internal_set_has_split_buffer_options(value); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.has_split_buffer_options) } inline bool ShadowUpdateChannelOptions::_internal_has_split_buffer_options() const { @@ -25695,6 +28782,8 @@ inline void ShadowUpdateChannelOptions::_internal_set_has_split_buffer_options(b inline void ShadowUpdateChannelOptions::clear_use_split_buffers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.use_split_buffers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000004U); } inline bool ShadowUpdateChannelOptions::use_split_buffers() const { // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.use_split_buffers) @@ -25702,6 +28791,7 @@ inline bool ShadowUpdateChannelOptions::use_split_buffers() const { } inline void ShadowUpdateChannelOptions::set_use_split_buffers(bool value) { _internal_set_use_split_buffers(value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.use_split_buffers) } inline bool ShadowUpdateChannelOptions::_internal_use_split_buffers() const { @@ -25717,6 +28807,8 @@ inline void ShadowUpdateChannelOptions::_internal_set_use_split_buffers(bool val inline void ShadowUpdateChannelOptions::clear_has_max_publishers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.has_max_publishers_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000008U); } inline bool ShadowUpdateChannelOptions::has_max_publishers() const { // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.has_max_publishers) @@ -25724,6 +28816,7 @@ inline bool ShadowUpdateChannelOptions::has_max_publishers() const { } inline void ShadowUpdateChannelOptions::set_has_max_publishers(bool value) { _internal_set_has_max_publishers(value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.has_max_publishers) } inline bool ShadowUpdateChannelOptions::_internal_has_max_publishers() const { @@ -25739,6 +28832,8 @@ inline void ShadowUpdateChannelOptions::_internal_set_has_max_publishers(bool va inline void ShadowUpdateChannelOptions::clear_max_publishers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_publishers_ = 0; + ClearHasBit(_impl_._has_bits_[0], + 0x00000020U); } inline ::int32_t ShadowUpdateChannelOptions::max_publishers() const { // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.max_publishers) @@ -25746,6 +28841,7 @@ inline ::int32_t ShadowUpdateChannelOptions::max_publishers() const { } inline void ShadowUpdateChannelOptions::set_max_publishers(::int32_t value) { _internal_set_max_publishers(value); + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.max_publishers) } inline ::int32_t ShadowUpdateChannelOptions::_internal_max_publishers() const { @@ -25761,6 +28857,8 @@ inline void ShadowUpdateChannelOptions::_internal_set_max_publishers(::int32_t v inline void ShadowUpdateChannelOptions::clear_split_buffers_over_bridge() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.split_buffers_over_bridge_ = false; + ClearHasBit(_impl_._has_bits_[0], + 0x00000010U); } inline bool ShadowUpdateChannelOptions::split_buffers_over_bridge() const { // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.split_buffers_over_bridge) @@ -25768,6 +28866,7 @@ inline bool ShadowUpdateChannelOptions::split_buffers_over_bridge() const { } inline void ShadowUpdateChannelOptions::set_split_buffers_over_bridge(bool value) { _internal_set_split_buffers_over_bridge(value); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.split_buffers_over_bridge) } inline bool ShadowUpdateChannelOptions::_internal_split_buffers_over_bridge() const { diff --git a/proto/subspace.proto b/proto/subspace.proto index 25bf595..e587d5e 100644 --- a/proto/subspace.proto +++ b/proto/subspace.proto @@ -156,6 +156,15 @@ message ClientBufferHandleMetadataProto { message RegisterClientBufferRequest { ClientBufferHandleMetadataProto metadata = 1; + // Optional backing FD sent via SCM_RIGHTS. If has_fd is true, fd_index is an + // index into the received FD list. Path-backed/shared-name allocators leave + // has_fd false. + bool has_fd = 2; + int32 fd_index = 3; +} + +message RegisterClientBufferResponse { + string error = 1; } message UnregisterClientBufferRequest { @@ -164,6 +173,18 @@ message UnregisterClientBufferRequest { uint32 buffer_index = 3; } +message GetClientBuffersRequest { + string channel_name = 1; + uint64 session_id = 2; + uint32 buffer_index = 3; +} + +message GetClientBuffersResponse { + string error = 1; + repeated ClientBufferHandleMetadataProto metadata = 2; + repeated int32 fd_indexes = 3; +} + message Request { oneof request { InitRequest init = 1; @@ -176,6 +197,7 @@ message Request { GetChannelStatsRequest get_channel_stats = 10; RegisterClientBufferRequest register_client_buffer = 11; UnregisterClientBufferRequest unregister_client_buffer = 12; + GetClientBuffersRequest get_client_buffers = 13; } } @@ -189,6 +211,8 @@ message Response { RemoveSubscriberResponse remove_subscriber = 6; GetChannelInfoResponse get_channel_info = 9; GetChannelStatsResponse get_channel_stats = 10; + GetClientBuffersResponse get_client_buffers = 11; + RegisterClientBufferResponse register_client_buffer = 12; } } @@ -488,6 +512,9 @@ message ShadowStateDone { message ShadowRegisterClientBuffer { ClientBufferHandleMetadataProto metadata = 1; + // Optional backing FD sent via SCM_RIGHTS. + bool has_fd = 2; + int32 fd_index = 3; } message ShadowUnregisterClientBuffer { diff --git a/server/client_handler.cc b/server/client_handler.cc index 4a92c5e..331a4cf 100644 --- a/server/client_handler.cc +++ b/server/client_handler.cc @@ -30,6 +30,25 @@ FromProto(const ClientBufferHandleMetadataProto &proto) { return metadata; } +void ToProto(const ClientBufferHandleMetadata &metadata, + ClientBufferHandleMetadataProto *proto) { + proto->set_channel_name(metadata.channel_name); + proto->set_session_id(metadata.session_id); + proto->set_buffer_index(metadata.buffer_index); + proto->set_slot_id(metadata.slot_id); + proto->set_is_prefix(metadata.is_prefix); + proto->set_full_size(metadata.full_size); + proto->set_allocation_size(metadata.allocation_size); + proto->set_handle(static_cast(metadata.handle)); + proto->set_shadow_file(metadata.shadow_file); + proto->set_object_name(metadata.object_name); + proto->set_allocator(metadata.allocator); + proto->set_pool_id(metadata.pool_id); + proto->set_cache_enabled(metadata.cache_enabled); + proto->set_alignment(metadata.alignment); + *proto->mutable_allocator_metadata() = metadata.allocator_metadata; +} + SplitBufferOptions FromPublisherSplitBufferRequest(const CreatePublisherRequest &req) { return {.use_split_buffers = req.use_split_buffers(), @@ -65,16 +84,31 @@ void ClientHandler::Run() { } } + std::vector fds; + subspace::Response response; if (request.request_case() == subspace::Request::kRegisterClientBuffer) { + std::vector register_fds; + if (request.register_client_buffer().has_fd()) { + if (absl::Status s = socket_.ReceiveFds(register_fds, co::self); + !s.ok()) { + server_->logger_.Log(toolbelt::LogLevel::kError, "%s\n", + s.ToString().c_str()); + return; + } + } if (absl::Status s = - HandleRegisterClientBuffer(request.register_client_buffer()); + HandleRegisterClientBuffer(request.register_client_buffer(), + register_fds); !s.ok()) { server_->logger_.Log(toolbelt::LogLevel::kError, "%s\n", s.ToString().c_str()); + response.mutable_register_client_buffer()->set_error( + s.ToString()); + } else { + response.mutable_register_client_buffer(); } - continue; - } - if (request.request_case() == subspace::Request::kUnregisterClientBuffer) { + } else if (request.request_case() == + subspace::Request::kUnregisterClientBuffer) { if (absl::Status s = HandleUnregisterClientBuffer(request.unregister_client_buffer()); !s.ok()) { @@ -82,14 +116,12 @@ void ClientHandler::Run() { s.ToString().c_str()); } continue; - } - - std::vector fds; - subspace::Response response; - if (absl::Status s = HandleMessage(request, response, fds); !s.ok()) { - server_->logger_.Log(toolbelt::LogLevel::kError, "%s\n", - s.ToString().c_str()); - return; + } else { + if (absl::Status s = HandleMessage(request, response, fds); !s.ok()) { + server_->logger_.Log(toolbelt::LogLevel::kError, "%s\n", + s.ToString().c_str()); + return; + } } size_t msglen = response.ByteSizeLong(); @@ -155,8 +187,13 @@ ClientHandler::HandleMessage(const subspace::Request &req, resp.mutable_get_channel_stats(), fds); break; + case subspace::Request::kGetClientBuffers: + HandleGetClientBuffers(req.get_client_buffers(), + resp.mutable_get_client_buffers(), fds); + break; + case subspace::Request::kRegisterClientBuffer: - return HandleRegisterClientBuffer(req.register_client_buffer()); + return HandleRegisterClientBuffer(req.register_client_buffer(), fds); case subspace::Request::kUnregisterClientBuffer: return HandleUnregisterClientBuffer(req.unregister_client_buffer()); @@ -168,7 +205,8 @@ ClientHandler::HandleMessage(const subspace::Request &req, } absl::Status ClientHandler::HandleRegisterClientBuffer( - const subspace::RegisterClientBufferRequest &req) { + const subspace::RegisterClientBufferRequest &req, + std::vector &fds) { ClientBufferHandleMetadata metadata = FromProto(req.metadata()); if (metadata.session_id != server_->GetSessionId()) { return absl::InternalError(absl::StrFormat( @@ -185,8 +223,21 @@ absl::Status ClientHandler::HandleRegisterClientBuffer( if (channel->IsVirtual()) { channel = static_cast(channel)->GetMux(); } - channel->RegisterClientBuffer(metadata); + toolbelt::FileDescriptor fd; + if (req.has_fd() && static_cast(req.fd_index()) < fds.size()) { + fd = std::move(fds[size_t(req.fd_index())]); + } + channel->RegisterClientBuffer(metadata, std::move(fd)); server_->ForEachShadow([&](const std::unique_ptr &shadow) { + const auto matches = + channel->FindClientBuffers(metadata.session_id, metadata.buffer_index); + for (const RegisteredClientBuffer *buffer : matches) { + if (buffer->metadata.slot_id == metadata.slot_id && + buffer->metadata.is_prefix == metadata.is_prefix) { + shadow->SendRegisterClientBuffer(buffer->metadata, buffer->fd); + return; + } + } shadow->SendRegisterClientBuffer(metadata); }); return absl::OkStatus(); @@ -212,6 +263,31 @@ absl::Status ClientHandler::HandleUnregisterClientBuffer( return absl::OkStatus(); } +void ClientHandler::HandleGetClientBuffers( + const subspace::GetClientBuffersRequest &req, + subspace::GetClientBuffersResponse *response, + std::vector &fds) { + ServerChannel *channel = server_->FindChannel(req.channel_name()); + if (channel == nullptr) { + response->set_error(absl::StrFormat("Unknown channel %s", + req.channel_name())); + return; + } + if (channel->IsVirtual()) { + channel = static_cast(channel)->GetMux(); + } + for (const RegisteredClientBuffer *buffer : + channel->FindClientBuffers(req.session_id(), req.buffer_index())) { + ToProto(buffer->metadata, response->add_metadata()); + if (buffer->fd.Valid()) { + response->add_fd_indexes(static_cast(fds.size())); + fds.push_back(buffer->fd); + } else { + response->add_fd_indexes(-1); + } + } +} + void ClientHandler::HandleInit(const subspace::InitRequest &req, subspace::InitResponse *response, std::vector &fds) { diff --git a/server/client_handler.h b/server/client_handler.h index 3848f10..b67bb84 100644 --- a/server/client_handler.h +++ b/server/client_handler.h @@ -64,9 +64,13 @@ class ClientHandler { subspace::GetChannelStatsResponse *response, std::vector &fds); absl::Status - HandleRegisterClientBuffer(const subspace::RegisterClientBufferRequest &req); + HandleRegisterClientBuffer(const subspace::RegisterClientBufferRequest &req, + std::vector &fds); absl::Status HandleUnregisterClientBuffer( const subspace::UnregisterClientBufferRequest &req); + void HandleGetClientBuffers(const subspace::GetClientBuffersRequest &req, + subspace::GetClientBuffersResponse *response, + std::vector &fds); Server *server_; toolbelt::UnixSocket socket_; std::string client_name_; diff --git a/server/server.cc b/server/server.cc index ecddfd8..2e67646 100644 --- a/server/server.cc +++ b/server/server.cc @@ -531,15 +531,8 @@ void Server::CleanupAfterSession() { "subspace_." + std::to_string(session_id_); #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - const std::string &shm_dir = GetAndroidShmDir(); - if (std::filesystem::exists(shm_dir)) { - for (const auto &entry : std::filesystem::directory_iterator(shm_dir)) { - std::string filename = entry.path().filename().string(); - if (filename.rfind("subspace_", 0) == 0) { - (void)std::filesystem::remove(entry.path()); - } - } - } + // Android uses anonymous fd-backed shared memory; there are no shm files to + // remove for a session. #elif SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_POSIX // Remove all files starting with "subspace_SESSION" in /tmp. These refer to @@ -583,15 +576,8 @@ void Server::CleanupAfterSession() { void Server::CleanupFilesystem() { logger_.Log(toolbelt::LogLevel::kInfo, "Cleaning up filesystem..."); #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - const std::string &shm_dir = GetAndroidShmDir(); - if (std::filesystem::exists(shm_dir)) { - for (const auto &entry : std::filesystem::directory_iterator(shm_dir)) { - std::string filename = entry.path().filename().string(); - if (filename.rfind("subspace_", 0) == 0) { - (void)std::filesystem::remove(entry.path()); - } - } - } + // Android uses anonymous fd-backed shared memory; there are no shm files to + // remove. #elif SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_POSIX // Remove all files starting with "subspace_" in /tmp. These refer to @@ -632,18 +618,6 @@ void Server::CleanupFilesystem() { absl::Status Server::Run() { std::vector poll_fds; -#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - // Ensure the Android SHM directory exists. - const std::string &shm_dir = GetAndroidShmDir(); - std::error_code ec; - std::filesystem::create_directories(shm_dir, ec); - if (ec) { - return absl::InternalError( - absl::StrFormat("Failed to create SHM directory %s: %s", shm_dir, - ec.message())); - } -#endif - #ifndef __linux__ // Remove socket name if it exists. On Non-Linux systems the socket // is a file in the file system. On Linux it's in the abstract @@ -782,9 +756,8 @@ absl::Status Server::Run() { if (recovered) { for (auto &[name, ch] : channels_) { shadow->SendCreateChannel(ch.get()); - for (const ClientBufferHandleMetadata &metadata : - ch->ClientBuffers()) { - shadow->SendRegisterClientBuffer(metadata); + for (const RegisteredClientBuffer &buffer : ch->ClientBuffers()) { + shadow->SendRegisterClientBuffer(buffer.metadata, buffer.fd); } for (auto &[uid, user] : ch->GetUsers()) { if (user == nullptr) { @@ -1124,8 +1097,9 @@ absl::Status Server::RecoverFromShadow(RecoveredState &state) { !s.ok()) { return s; } - for (ClientBufferHandleMetadata &metadata : rch.client_buffers) { - channel->RegisterClientBuffer(std::move(metadata)); + for (RegisteredClientBuffer &buffer : rch.client_buffers) { + channel->RegisterClientBuffer(std::move(buffer.metadata), + std::move(buffer.fd)); } for (auto &rpub : rch.publishers) { diff --git a/server/server_channel.cc b/server/server_channel.cc index 05b0dd4..9edf262 100644 --- a/server/server_channel.cc +++ b/server/server_channel.cc @@ -7,6 +7,12 @@ #include "server/server.h" #include #include +#if defined(__ANDROID__) +#include +#ifndef MFD_CLOEXEC +#define MFD_CLOEXEC 0x0001U +#endif +#endif #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_POSIX && defined(__APPLE__) #include #endif @@ -28,21 +34,21 @@ static absl::StatusOr CreateSharedMemory(int id, const char *suffix, int tmpfd; #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - // On Android, /dev/shm does not exist and shm_open is not usable for - // cross-process named memory. Use regular files in a tmpfs-backed - // directory; the fd is passed to clients via SCM_RIGHTS. - const std::string &shm_dir = GetAndroidShmDir(); - snprintf(shm_file, sizeof(shm_file), "%s/%d.%s.XXXXXX", shm_dir.c_str(), id, - suffix); - tmpfd = mkstemp(shm_file); + snprintf(shm_file, sizeof(shm_file), "subspace.%d.%s", id, suffix); +#ifdef __NR_memfd_create + tmpfd = static_cast(syscall( + __NR_memfd_create, shm_file, static_cast(MFD_CLOEXEC))); if (tmpfd == -1) { return absl::InternalError(absl::StrFormat( - "Failed to create temp file %s: %s", shm_file, strerror(errno))); + "Failed to create anonymous shared memory %s: %s", shm_file, + strerror(errno))); } +#else + return absl::UnimplementedError("memfd_create is not available"); +#endif int e = ftruncate(tmpfd, size); if (e == -1) { - unlink(shm_file); close(tmpfd); return absl::InternalError( absl::StrFormat("Failed to set length of shared memory %s: %s", @@ -53,15 +59,12 @@ static absl::StatusOr CreateSharedMemory(int id, const char *suffix, if (map) { p = MapMemory(tmpfd, size, PROT_READ | PROT_WRITE, suffix); if (p == MAP_FAILED) { - unlink(shm_file); close(tmpfd); return absl::InternalError(absl::StrFormat( "Failed to map shared memory %s: %s", shm_file, strerror(errno))); } } - // Unlink immediately; the fd remains valid for mmap and SCM_RIGHTS passing. - unlink(shm_file); fd.SetFd(tmpfd); return p; @@ -186,7 +189,8 @@ void ServerChannel::RemoveBuffer(uint64_t session_id, Server *server) { } for (int i = 0; i < ccb_->num_buffers; i++) { std::string filename = BufferSharedMemoryName(session_id, i); - for (const ClientBufferHandleMetadata &metadata : client_buffers_) { + for (const RegisteredClientBuffer &buffer : client_buffers_) { + const ClientBufferHandleMetadata &metadata = buffer.metadata; if (metadata.session_id != session_id || metadata.buffer_index != static_cast(i)) { continue; @@ -201,8 +205,8 @@ void ServerChannel::RemoveBuffer(uint64_t session_id, Server *server) { } if (!plugin_freed && !metadata.object_name.empty()) { #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - std::string path = GetAndroidShmDir() + "/" + metadata.object_name; - (void)unlink(path.c_str()); + // Anonymous fd-backed Android buffers are released when the server's + // registered fd is closed. #else (void)shm_unlink(metadata.object_name.c_str()); #endif @@ -233,7 +237,8 @@ uint64_t ServerChannel::GetVirtualMemoryUsage() const { } uint64_t split_buffer_size = 0; - for (const ClientBufferHandleMetadata &metadata : client_buffers_) { + for (const RegisteredClientBuffer &buffer : client_buffers_) { + const ClientBufferHandleMetadata &metadata = buffer.metadata; if (metadata.buffer_index >= static_cast(ccb_->num_buffers)) { continue; } diff --git a/server/server_channel.h b/server/server_channel.h index 62bb58f..56519b7 100644 --- a/server/server_channel.h +++ b/server/server_channel.h @@ -272,19 +272,47 @@ class ServerChannel : public Channel { } virtual void RemoveBuffer(uint64_t session_id, Server *server = nullptr); - void RegisterClientBuffer(ClientBufferHandleMetadata metadata) { - client_buffers_.push_back(std::move(metadata)); + void RegisterClientBuffer(ClientBufferHandleMetadata metadata, + toolbelt::FileDescriptor fd = {}) { + auto existing = + std::find_if(client_buffers_.begin(), client_buffers_.end(), + [&metadata](const RegisteredClientBuffer &buffer) { + return buffer.metadata.session_id == + metadata.session_id && + buffer.metadata.buffer_index == + metadata.buffer_index && + buffer.metadata.slot_id == metadata.slot_id && + buffer.metadata.is_prefix == metadata.is_prefix; + }); + RegisteredClientBuffer buffer{.metadata = std::move(metadata), + .fd = std::move(fd)}; + if (existing != client_buffers_.end()) { + *existing = std::move(buffer); + return; + } + client_buffers_.push_back(std::move(buffer)); } - const std::vector &ClientBuffers() const { + const std::vector &ClientBuffers() const { return client_buffers_; } + std::vector + FindClientBuffers(uint64_t session_id, uint32_t buffer_index) const { + std::vector result; + for (const auto &buffer : client_buffers_) { + if (buffer.metadata.session_id == session_id && + buffer.metadata.buffer_index == buffer_index) { + result.push_back(&buffer); + } + } + return result; + } void UnregisterClientBuffer(uint64_t session_id, uint32_t buffer_index) { client_buffers_.erase( std::remove_if(client_buffers_.begin(), client_buffers_.end(), [session_id, buffer_index]( - const ClientBufferHandleMetadata &metadata) { - return metadata.session_id == session_id && - metadata.buffer_index == buffer_index; + const RegisteredClientBuffer &buffer) { + return buffer.metadata.session_id == session_id && + buffer.metadata.buffer_index == buffer_index; }), client_buffers_.end()); } @@ -377,7 +405,7 @@ class ServerChannel : public Channel { absl::flat_hash_map> users_; toolbelt::BitSet user_ids_; absl::flat_hash_map bridged_publishers_; - std::vector client_buffers_; + std::vector client_buffers_; SharedMemoryFds shared_memory_fds_; bool is_virtual_ = false; bool skip_cleanup_ = false; diff --git a/server/shadow_replicator.cc b/server/shadow_replicator.cc index 9ded4e1..47350f7 100644 --- a/server/shadow_replicator.cc +++ b/server/shadow_replicator.cc @@ -228,11 +228,18 @@ void ShadowReplicator::SendRemoveSubscriber(const std::string &channel_name, } void ShadowReplicator::SendRegisterClientBuffer( - const ClientBufferHandleMetadata &metadata) { + const ClientBufferHandleMetadata &metadata, + const toolbelt::FileDescriptor &fd) { ShadowEvent event; auto *msg = event.mutable_register_client_buffer(); ToProto(metadata, msg->mutable_metadata()); - SendEvent(event); + std::vector fds; + if (fd.Valid()) { + msg->set_has_fd(true); + msg->set_fd_index(0); + fds.push_back(fd); + } + SendEvent(event, fds); } void ShadowReplicator::SendUnregisterClientBuffer( @@ -281,7 +288,9 @@ ShadowReplicator::ReceiveEvent(std::vector &fds) { } bool has_fds = event.has_create_channel() || event.has_add_publisher() || - event.has_add_subscriber(); + event.has_add_subscriber() || + (event.has_register_client_buffer() && + event.register_client_buffer().has_fd()); if (has_fds) { absl::Status s = socket_.ReceiveFds(fds); if (!s.ok()) { @@ -391,7 +400,13 @@ absl::StatusOr ShadowReplicator::ReceiveStateDump() { if (!ch.ok()) { return ch.status(); } - (*ch)->client_buffers.push_back(std::move(metadata)); + toolbelt::FileDescriptor fd; + if (msg.has_fd() && static_cast(msg.fd_index()) < fds.size()) { + fd = std::move(fds[size_t(msg.fd_index())]); + } + (*ch)->client_buffers.push_back( + RegisteredClientBuffer{.metadata = std::move(metadata), + .fd = std::move(fd)}); continue; } diff --git a/server/shadow_replicator.h b/server/shadow_replicator.h index 1681271..85b94cb 100644 --- a/server/shadow_replicator.h +++ b/server/shadow_replicator.h @@ -66,7 +66,7 @@ struct RecoveredChannel { int max_publishers = 0; toolbelt::FileDescriptor ccb_fd; toolbelt::FileDescriptor bcb_fd; - std::vector client_buffers; + std::vector client_buffers; std::vector publishers; std::vector subscribers; }; @@ -102,7 +102,8 @@ class ShadowReplicator { void SendAddSubscriber(const std::string &channel_name, const SubscriberUser *sub); void SendRemoveSubscriber(const std::string &channel_name, int sub_id); - void SendRegisterClientBuffer(const ClientBufferHandleMetadata &metadata); + void SendRegisterClientBuffer(const ClientBufferHandleMetadata &metadata, + const toolbelt::FileDescriptor &fd = {}); void SendUnregisterClientBuffer(const std::string &channel_name, uint64_t session_id, uint32_t buffer_index); void SendUpdateChannelOptions(const ServerChannel *channel); diff --git a/shadow/shadow.cc b/shadow/shadow.cc index de8617e..6c10056 100644 --- a/shadow/shadow.cc +++ b/shadow/shadow.cc @@ -137,7 +137,9 @@ void Shadow::ClientCoroutine( } bool has_fds = event.has_init() || event.has_create_channel() || - event.has_add_publisher() || event.has_add_subscriber(); + event.has_add_publisher() || event.has_add_subscriber() || + (event.has_register_client_buffer() && + event.register_client_buffer().has_fd()); std::vector fds; if (has_fds) { @@ -181,7 +183,7 @@ absl::Status Shadow::HandleEvent(const ShadowEvent &event, case ShadowEvent::kRemoveSubscriber: return HandleRemoveSubscriber(event.remove_subscriber()); case ShadowEvent::kRegisterClientBuffer: - return HandleRegisterClientBuffer(event.register_client_buffer()); + return HandleRegisterClientBuffer(event.register_client_buffer(), fds); case ShadowEvent::kUnregisterClientBuffer: return HandleUnregisterClientBuffer(event.unregister_client_buffer()); case ShadowEvent::kUpdateChannelOptions: @@ -369,7 +371,8 @@ absl::Status Shadow::HandleRemoveSubscriber(const ShadowRemoveSubscriber &msg) { } absl::Status -Shadow::HandleRegisterClientBuffer(const ShadowRegisterClientBuffer &msg) { +Shadow::HandleRegisterClientBuffer(const ShadowRegisterClientBuffer &msg, + std::vector &fds) { ClientBufferHandleMetadata metadata = FromProto(msg.metadata()); auto it = channels_.find(metadata.channel_name); if (it == channels_.end()) { @@ -378,19 +381,27 @@ Shadow::HandleRegisterClientBuffer(const ShadowRegisterClientBuffer &msg) { metadata.channel_name)); } + toolbelt::FileDescriptor fd; + if (msg.has_fd() && static_cast(msg.fd_index()) < fds.size()) { + fd = std::move(fds[size_t(msg.fd_index())]); + } + auto &buffers = it->second.client_buffers; auto existing = std::find_if(buffers.begin(), buffers.end(), - [&metadata](const ClientBufferHandleMetadata &buffer) { - return buffer.session_id == metadata.session_id && - buffer.buffer_index == metadata.buffer_index && - buffer.slot_id == metadata.slot_id && - buffer.is_prefix == metadata.is_prefix; + [&metadata](const RegisteredClientBuffer &buffer) { + return buffer.metadata.session_id == metadata.session_id && + buffer.metadata.buffer_index == + metadata.buffer_index && + buffer.metadata.slot_id == metadata.slot_id && + buffer.metadata.is_prefix == metadata.is_prefix; }); + RegisteredClientBuffer registered{.metadata = std::move(metadata), + .fd = std::move(fd)}; if (existing != buffers.end()) { - *existing = std::move(metadata); + *existing = std::move(registered); } else { - buffers.push_back(std::move(metadata)); + buffers.push_back(std::move(registered)); } logger_.Log(toolbelt::LogLevel::kDebug, "Shadow: register client buffer '%s' session=%lu buffer=%u " @@ -411,9 +422,10 @@ Shadow::HandleUnregisterClientBuffer(const ShadowUnregisterClientBuffer &msg) { auto &buffers = it->second.client_buffers; buffers.erase( std::remove_if(buffers.begin(), buffers.end(), - [&msg](const ClientBufferHandleMetadata &buffer) { - return buffer.session_id == msg.session_id() && - buffer.buffer_index == msg.buffer_index(); + [&msg](const RegisteredClientBuffer &buffer) { + return buffer.metadata.session_id == msg.session_id() && + buffer.metadata.buffer_index == + msg.buffer_index(); }), buffers.end()); return absl::OkStatus(); @@ -513,11 +525,17 @@ absl::Status Shadow::SendStateDump(toolbelt::UnixSocket &socket) { } // Client-owned split buffers. - for (const ClientBufferHandleMetadata &metadata : ch.client_buffers) { + for (const RegisteredClientBuffer &buffer : ch.client_buffers) { ShadowEvent event; auto *msg = event.mutable_register_client_buffer(); - ToProto(metadata, msg->mutable_metadata()); - if (absl::Status s = SendEvent(socket, event); !s.ok()) { + ToProto(buffer.metadata, msg->mutable_metadata()); + std::vector fds; + if (buffer.fd.Valid()) { + msg->set_has_fd(true); + msg->set_fd_index(0); + fds.push_back(buffer.fd); + } + if (absl::Status s = SendEvent(socket, event, fds); !s.ok()) { return s; } } diff --git a/shadow/shadow.h b/shadow/shadow.h index 9c6536e..09dbb83 100644 --- a/shadow/shadow.h +++ b/shadow/shadow.h @@ -63,7 +63,7 @@ struct ShadowChannel { int max_publishers = 0; toolbelt::FileDescriptor ccb_fd; toolbelt::FileDescriptor bcb_fd; - std::vector client_buffers; + std::vector client_buffers; absl::flat_hash_map publishers; absl::flat_hash_map subscribers; }; @@ -124,7 +124,8 @@ class Shadow { std::vector &fds); absl::Status HandleRemoveSubscriber(const ShadowRemoveSubscriber &msg); absl::Status - HandleRegisterClientBuffer(const ShadowRegisterClientBuffer &msg); + HandleRegisterClientBuffer(const ShadowRegisterClientBuffer &msg, + std::vector &fds); absl::Status HandleUnregisterClientBuffer(const ShadowUnregisterClientBuffer &msg); absl::Status From 09fdbe948860b75296eb7b5728bd3656afd89275 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 12:03:18 -0700 Subject: [PATCH 02/19] Refine Android client buffer registration Use typed allocator metadata for registered client buffers, remove unused fields, and stop checking in generated protobuf outputs while keeping Android fd-backed buffers shareable across publishers and subscribers. --- .gitignore | 2 + MODULE.bazel.lock | 4 +- c_client/client_test.cc | 8 + client/bridge_test.cc | 4 +- client/client.cc | 44 +- client/client_channel.cc | 98 +- client/client_test.cc | 4 + client/publisher.cc | 43 + client/syscall_failure_test.cc | 11 +- client/test_fixture.h | 4 + common/client_buffer.h | 32 +- docs/android.md | 11 +- plugins/split_buffer_free_test_plugin.cc | 9 +- proto/CMakeLists.txt | 39 +- proto/subspace.pb.cc | 27970 -------------------- proto/subspace.pb.h | 28893 --------------------- proto/subspace.proto | 16 +- rpc/client/client_test.cc | 8 + rpc/server/server_test.cc | 8 + rpc/test/rpc_test.cc | 8 + server/client_handler.cc | 45 +- server/shadow_replicator.cc | 44 +- shadow/shadow.cc | 44 +- shadow/shadow_test.cc | 22 +- 24 files changed, 361 insertions(+), 57010 deletions(-) delete mode 100644 proto/subspace.pb.cc delete mode 100644 proto/subspace.pb.h diff --git a/.gitignore b/.gitignore index 5b4e390..a4d56ae 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ build rust_client/target rust_rpc/target user.bazelrc +proto/*.pb.cc +proto/*.pb.h diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 835ce52..ed1abf9 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -327,7 +327,7 @@ "@@rules_android_ndk+//:extension.bzl%android_ndk_repository_extension": { "general": { "bzlTransitiveDigest": "j+NMXk5/a1vnDypModKL+ToEo/4o7DJeXSFhTfbJ7rI=", - "usagesDigest": "TItR9CHlQeATFb93dsFSm1Q0KP5bwlwGGfzE10p5D/c=", + "usagesDigest": "Dshe+RJHb2CHJNFJG53h45menXtSyF3M1AMuHpTXiGU=", "recordedInputs": [], "generatedRepoSpecs": { "androidndk": { @@ -595,7 +595,7 @@ "@@rules_rust+//crate_universe:extensions.bzl%crate": { "general": { "bzlTransitiveDigest": "KnoFc60aLWU0GPkk2YxX0MzTPpyFIWzv8bMO30Tfq6E=", - "usagesDigest": "KyvZKPfBv/dV/uHvW4yR1BO9VzoALFef2zQ8yx7/fws=", + "usagesDigest": "/BgLa1QXl04f1VN+daWFRiA9R2aF6eCMLnYpzYfQsgU=", "recordedInputs": [ "ENV:CARGO_BAZEL_DEBUG \\0", "ENV:CARGO_BAZEL_GENERATOR_SHA256 \\0", diff --git a/c_client/client_test.cc b/c_client/client_test.cc index 8f7e57c..3ac5e2b 100644 --- a/c_client/client_test.cc +++ b/c_client/client_test.cc @@ -32,7 +32,11 @@ class ClientTest : public ::testing::Test { // We run one server for the duration of the whole test suite. static void SetUpTestSuite() { printf("Starting Subspace server\n"); +#if defined(__ANDROID__) + char socket_name_template[] = "/data/local/tmp/subspaceXXXXXX"; // NOLINT +#else char socket_name_template[] = "/tmp/subspaceXXXXXX"; // NOLINT +#endif ::close(mkstemp(&socket_name_template[0])); socket_ = &socket_name_template[0]; @@ -88,7 +92,11 @@ class ClientTest : public ::testing::Test { }; co::CoroutineScheduler ClientTest::scheduler_; +#if defined(__ANDROID__) +std::string ClientTest::socket_ = "/data/local/tmp/subspace"; +#else std::string ClientTest::socket_ = "/tmp/subspace"; +#endif int ClientTest::server_pipe_[2]; std::unique_ptr ClientTest::server_; std::thread ClientTest::server_thread_; diff --git a/client/bridge_test.cc b/client/bridge_test.cc index a24bd8e..5b68edb 100644 --- a/client/bridge_test.cc +++ b/client/bridge_test.cc @@ -275,7 +275,7 @@ class ScopedBridgeServerPair { ~ScopedBridgeServerPair() { Stop(); } void Start(const std::array &ranges) { - int lock_fd = ::open("/tmp/subspace_bridge_test_port.lock", + int lock_fd = ::open(BRIDGE_TEST_TMP "/subspace_bridge_test_port.lock", O_CREAT | O_RDWR, 0666); ASSERT_NE(-1, lock_fd); ASSERT_EQ(0, ::flock(lock_fd, LOCK_EX)); @@ -289,7 +289,7 @@ class ScopedBridgeServerPair { } for (int i = 0; i < 2; i++) { - char socket_name_template[] = "/tmp/subspaceXXXXXX"; // NOLINT + char socket_name_template[] = BRIDGE_TEST_TMP "/subspaceXXXXXX"; // NOLINT ::close(mkstemp(&socket_name_template[0])); socket_[i] = &socket_name_template[0]; diff --git a/client/client.cc b/client/client.cc index 558dc05..7bf4747 100644 --- a/client/client.cc +++ b/client/client.cc @@ -20,6 +20,38 @@ namespace subspace { namespace { std::atomic default_use_split_buffers{false}; + +ClientBufferAllocatorKind FromProtoAllocator(ClientBufferAllocator allocator) { + switch (allocator) { + case CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD: + return ClientBufferAllocatorKind::kAndroidMemfd; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM: + return ClientBufferAllocatorKind::kSplitShm; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK: + return ClientBufferAllocatorKind::kSplitCallback; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST: + return ClientBufferAllocatorKind::kSplitBufferFreeTest; + case CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED: + default: + return ClientBufferAllocatorKind::kUnspecified; + } +} + +ClientBufferAllocator ToProtoAllocator(ClientBufferAllocatorKind allocator) { + switch (allocator) { + case ClientBufferAllocatorKind::kAndroidMemfd: + return CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD; + case ClientBufferAllocatorKind::kSplitShm: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM; + case ClientBufferAllocatorKind::kSplitCallback: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK; + case ClientBufferAllocatorKind::kSplitBufferFreeTest: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST; + case ClientBufferAllocatorKind::kUnspecified: + default: + return CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED; + } +} } using ClientChannel = details::ClientChannel; @@ -58,11 +90,7 @@ static void ToProto(const ClientBufferHandleMetadata &metadata, proto->set_handle(static_cast(metadata.handle)); proto->set_shadow_file(metadata.shadow_file); proto->set_object_name(metadata.object_name); - proto->set_allocator(metadata.allocator); - proto->set_pool_id(metadata.pool_id); - proto->set_cache_enabled(metadata.cache_enabled); - proto->set_alignment(metadata.alignment); - *proto->mutable_allocator_metadata() = metadata.allocator_metadata; + proto->set_allocator(ToProtoAllocator(metadata.allocator)); } static ClientBufferHandleMetadata @@ -78,11 +106,7 @@ FromProto(const ClientBufferHandleMetadataProto &proto) { metadata.handle = static_cast(proto.handle()); metadata.shadow_file = proto.shadow_file(); metadata.object_name = proto.object_name(); - metadata.allocator = proto.allocator(); - metadata.pool_id = proto.pool_id(); - metadata.cache_enabled = proto.cache_enabled(); - metadata.alignment = proto.alignment(); - metadata.allocator_metadata = proto.allocator_metadata(); + metadata.allocator = FromProtoAllocator(proto.allocator()); return metadata; } diff --git a/client/client_channel.cc b/client/client_channel.cc index 00cfab3..b4f8911 100644 --- a/client/client_channel.cc +++ b/client/client_channel.cc @@ -43,7 +43,7 @@ ReadSplitBufferMetadataFileWithRetry(const std::string &shadow_file) { } ClientBufferHandleMetadata ClientBufferFromSplitMetadata( - const SplitBufferMetadata &metadata, std::string allocator) { + const SplitBufferMetadata &metadata, ClientBufferAllocatorKind allocator) { return {.channel_name = metadata.channel_name, .session_id = metadata.session_id, .buffer_index = metadata.buffer_index, @@ -54,7 +54,21 @@ ClientBufferHandleMetadata ClientBufferFromSplitMetadata( .handle = metadata.handle, .shadow_file = metadata.shadow_file, .object_name = metadata.object_name, - .allocator = std::move(allocator)}; + .allocator = allocator}; +} + +[[maybe_unused]] SplitBufferMetadata SplitMetadataFromClientBuffer( + const ClientBufferHandleMetadata &metadata) { + return {.channel_name = metadata.channel_name, + .session_id = metadata.session_id, + .buffer_index = metadata.buffer_index, + .slot_id = metadata.slot_id, + .is_prefix = metadata.is_prefix, + .full_size = metadata.full_size, + .allocation_size = metadata.allocation_size, + .handle = metadata.handle, + .shadow_file = metadata.shadow_file, + .object_name = metadata.object_name}; } } // namespace @@ -418,30 +432,7 @@ CreateAnonymousSharedMemory(const std::string &name, size_t size) { absl::StatusOr ClientChannel::CreateAndroidBuffer(const std::string &filename, size_t size) { - auto shm_fd = CreateAnonymousSharedMemory(filename, size); - if (!shm_fd.ok()) { - return shm_fd.status(); - } - if (client_buffer_registration_callback_) { - ClientBufferHandleMetadata metadata = { - .channel_name = ResolvedName(), - .session_id = session_id_, - .buffer_index = static_cast(buffers_.size()), - .slot_id = 0, - .is_prefix = false, - .full_size = size, - .allocation_size = size, - .handle = static_cast(shm_fd->Fd()), - .allocator = "android_memfd", - }; - if (absl::Status status = - client_buffer_registration_callback_(metadata, &*shm_fd); - !status.ok()) { - return status; - } - } - - return *shm_fd; + return CreateAnonymousSharedMemory(filename, size); } absl::StatusOr @@ -450,25 +441,33 @@ ClientChannel::GetRegisteredClientBuffer(uint32_t buffer_index, bool is_prefix, if (!client_buffer_lookup_callback_) { return absl::InternalError("No client buffer lookup callback registered"); } - absl::StatusOr> buffers = - client_buffer_lookup_callback_(ResolvedName(), session_id_, buffer_index); - if (!buffers.ok()) { - return buffers.status(); - } - for (RegisteredClientBuffer &buffer : *buffers) { - if (buffer.metadata.is_prefix == is_prefix && - buffer.metadata.slot_id == slot_id) { - if (!buffer.fd.Valid()) { - return absl::InternalError(absl::StrFormat( - "Registered client buffer %s/%u/%u missing FD", ResolvedName(), - buffer_index, slot_id)); + absl::Status status; + for (int attempt = 0; attempt < 100; attempt++) { + absl::StatusOr> buffers = + client_buffer_lookup_callback_(ResolvedName(), session_id_, + buffer_index); + if (!buffers.ok()) { + return buffers.status(); + } + for (RegisteredClientBuffer &buffer : *buffers) { + if (buffer.metadata.is_prefix == is_prefix && + buffer.metadata.slot_id == slot_id) { + if (!buffer.fd.Valid() && + buffer.metadata.allocator != + ClientBufferAllocatorKind::kSplitCallback) { + return absl::InternalError(absl::StrFormat( + "Registered client buffer %s/%u/%u missing FD", ResolvedName(), + buffer_index, slot_id)); + } + return std::move(buffer); } - return std::move(buffer); } + status = absl::NotFoundError(absl::StrFormat( + "No registered client buffer for %s buffer %u slot %u prefix %d", + ResolvedName(), buffer_index, slot_id, is_prefix)); + std::this_thread::sleep_for(std::chrono::milliseconds(1)); } - return absl::NotFoundError(absl::StrFormat( - "No registered client buffer for %s buffer %u slot %u prefix %d", - ResolvedName(), buffer_index, slot_id, is_prefix)); + return status; } #endif @@ -619,7 +618,8 @@ ClientChannel::CreateSplitBufferSet(size_t buffer_index, size_t full_size, #endif if (client_buffer_registration_callback_) { if (absl::Status status = client_buffer_registration_callback_( - ClientBufferFromSplitMetadata(prefix_metadata, "split_shm"), + ClientBufferFromSplitMetadata( + prefix_metadata, ClientBufferAllocatorKind::kSplitShm), &*prefix_fd); !status.ok()) { (void)DestroySplitSharedMemoryBuffer(prefix_metadata); @@ -709,8 +709,10 @@ ClientChannel::CreateSplitBufferSet(size_t buffer_index, size_t full_size, if (client_buffer_registration_callback_) { if (absl::Status status = client_buffer_registration_callback_( ClientBufferFromSplitMetadata( - metadata, buffer->uses_split_callbacks ? "split_callback" - : "split_shm"), + metadata, + buffer->uses_split_callbacks + ? ClientBufferAllocatorKind::kSplitCallback + : ClientBufferAllocatorKind::kSplitShm), slot_fd.has_value() ? &*slot_fd : nullptr); !status.ok()) { return status; @@ -754,7 +756,8 @@ ClientChannel::OpenSplitBufferSet(size_t buffer_index, size_t full_size, buffer->split_prefix_buffer = *prefix_addr; buffer->split_prefix_buffer_size = prefix_registered->metadata.allocation_size; - buffer->split_prefix_metadata = std::move(prefix_registered->metadata); + buffer->split_prefix_metadata = + SplitMetadataFromClientBuffer(prefix_registered->metadata); #else auto prefix_metadata = ReadSplitBufferMetadataFileWithRetry(prefix_name); if (!prefix_metadata.ok()) { @@ -791,7 +794,8 @@ ClientChannel::OpenSplitBufferSet(size_t buffer_index, size_t full_size, if (!registered.ok()) { return registered.status(); } - SplitBufferMetadata metadata = std::move(registered->metadata); + SplitBufferMetadata metadata = + SplitMetadataFromClientBuffer(registered->metadata); #else std::string shadow_file = absl::StrFormat("%s_slot_%d", metadata_base, slot); auto metadata_or = ReadSplitBufferMetadataFileWithRetry(shadow_file); diff --git a/client/client_test.cc b/client/client_test.cc index 185341d..11a07e2 100644 --- a/client/client_test.cc +++ b/client/client_test.cc @@ -5300,7 +5300,11 @@ class PluginTest : public ::testing::Test { public: static void SetUpTestSuite() { printf("Starting Subspace server with NOP plugin\n"); +#if defined(__ANDROID__) + char socket_name_template[] = "/data/local/tmp/subspaceXXXXXX"; // NOLINT +#else char socket_name_template[] = "/tmp/subspaceXXXXXX"; // NOLINT +#endif ::close(mkstemp(&socket_name_template[0])); socket_ = &socket_name_template[0]; diff --git a/client/publisher.cc b/client/publisher.cc index 71cff2c..56aa8e6 100644 --- a/client/publisher.cc +++ b/client/publisher.cc @@ -5,6 +5,7 @@ #include "client/publisher.h" #include "client/checksum.h" #include "client_channel.h" +#include "common/client_buffer.h" #include "toolbelt/clock.h" #include #include @@ -38,7 +39,14 @@ absl::Status PublisherImpl::CreateOrAttachBuffers(uint64_t final_slot_size) { current_slot_size = final_slot_size; continue; } +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + absl::StatusOr shm_fd = + buffer_index < size_t(num_buffers) + ? OpenBuffer(buffer_index) + : CreateBuffer(buffer_index, final_buffer_size); +#else auto shm_fd = CreateBuffer(buffer_index, final_buffer_size); +#endif if (!shm_fd.ok()) { return shm_fd.status(); } @@ -89,12 +97,47 @@ absl::Status PublisherImpl::CreateOrAttachBuffers(uint64_t final_slot_size) { // Update the atomic numBuffers in the CCB. If this fails it means // something else got there before us and we just go back and remap any new // buffers. +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + int old_num_buffers = num_buffers; +#endif if (ccb_->num_buffers.compare_exchange_strong(num_buffers, new_num_buffers, std::memory_order_release, std::memory_order_relaxed)) { +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + if (!UseSplitBuffers() && client_buffer_registration_callback_) { + for (int i = old_num_buffers; i < new_num_buffers; i++) { + BufferSet &buffer = *buffers_[i]; + ClientBufferHandleMetadata metadata = { + .channel_name = ResolvedName(), + .session_id = session_id_, + .buffer_index = static_cast(i), + .slot_id = 0, + .is_prefix = false, + .full_size = buffer.full_size, + .allocation_size = buffer.full_size, + .handle = static_cast(buffer.fd.Fd()), + .allocator = ClientBufferAllocatorKind::kAndroidMemfd, + }; + if (absl::Status status = + client_buffer_registration_callback_(metadata, &buffer.fd); + !status.ok()) { + return status; + } + } + } +#endif // We successfully updated the number of buffers in the CCB. break; } +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + if (!UseSplitBuffers()) { + for (size_t i = 0; i < buffers_.size(); i++) { + UnmapBufferSet(i, *buffers_[i], /*destroy_owned_buffers=*/false); + } + buffers_.clear(); + current_slot_size = 0; + } +#endif // Another thread has updated the number of buffers in the CCB. We need to // retry. } diff --git a/client/syscall_failure_test.cc b/client/syscall_failure_test.cc index 6f16214..befcbb9 100644 --- a/client/syscall_failure_test.cc +++ b/client/syscall_failure_test.cc @@ -86,6 +86,7 @@ TEST_F(SyscallFailureTest, MmapFailOnBcb) { // shm_open failures during CreateBuffer // --------------------------------------------------------------------------- +#if !defined(__ANDROID__) TEST_F(SyscallFailureTest, ShmOpenFail) { auto client = EVAL_AND_ASSERT_OK( subspace::Client::Create(Socket(), "shm_open_test")); @@ -101,6 +102,7 @@ TEST_F(SyscallFailureTest, ShmOpenFail) { EXPECT_THAT(pub.status().message(), ::testing::HasSubstr("Failed to open shared memory")); } +#endif // --------------------------------------------------------------------------- // ftruncate failure after successful shm_open (should shm_unlink on cleanup) @@ -123,13 +125,15 @@ TEST_F(SyscallFailureTest, FtruncateFailAfterShmOpen) { pub.status().message(), ::testing::AnyOf( ::testing::HasSubstr("Failed to set length of shared memory"), - ::testing::HasSubstr("Failed to truncate shadow file"))); + ::testing::HasSubstr("Failed to truncate shadow file"), + ::testing::HasSubstr("Failed to size anonymous shared memory"))); } // --------------------------------------------------------------------------- // chmod failure during CreateBuffer // --------------------------------------------------------------------------- +#if !defined(__ANDROID__) TEST_F(SyscallFailureTest, ChmodFail) { auto client = EVAL_AND_ASSERT_OK( subspace::Client::Create(Socket(), "chmod_test")); @@ -145,6 +149,7 @@ TEST_F(SyscallFailureTest, ChmodFail) { EXPECT_THAT(pub.status().message(), ::testing::HasSubstr("Failed to change permissions")); } +#endif // --------------------------------------------------------------------------- // poll failures in WaitForSubscriber @@ -244,12 +249,16 @@ TEST_F(SyscallFailureTest, ShimCallCounting) { // Verify that mmap was called at least 3 times (SCB, CCB, BCB). EXPECT_GE(shim.mmap_call_count, 3); +#if !defined(__ANDROID__) // Verify that shm_open was called at least once (for buffer creation). EXPECT_GE(shim.shm_open_call_count, 1); +#endif // Verify that ftruncate was called at least once. EXPECT_GE(shim.ftruncate_call_count, 1); +#if !defined(__ANDROID__) // Verify that chmod was called at least once. EXPECT_GE(shim.chmod_call_count, 1); +#endif } // --------------------------------------------------------------------------- diff --git a/client/test_fixture.h b/client/test_fixture.h index e188100..296107e 100644 --- a/client/test_fixture.h +++ b/client/test_fixture.h @@ -42,7 +42,11 @@ class SubspaceTestBase : public ::testing::Test { public: static void SetUpTestSuite() { printf("Starting Subspace server\n"); +#if defined(__ANDROID__) + char socket_name_template[] = "/data/local/tmp/subspaceXXXXXX"; // NOLINT +#else char socket_name_template[] = "/tmp/subspaceXXXXXX"; // NOLINT +#endif ::close(mkstemp(&socket_name_template[0])); socket_ = &socket_name_template[0]; diff --git a/common/client_buffer.h b/common/client_buffer.h index ff3bfc0..777425c 100644 --- a/common/client_buffer.h +++ b/common/client_buffer.h @@ -4,7 +4,6 @@ #pragma once -#include "google/protobuf/any.pb.h" #include "toolbelt/fd.h" #include @@ -12,6 +11,31 @@ namespace subspace { +enum class ClientBufferAllocatorKind { + kUnspecified = 0, + kAndroidMemfd = 1, + kSplitShm = 2, + kSplitCallback = 3, + kSplitBufferFreeTest = 4, +}; + +inline const char * +ClientBufferAllocatorName(ClientBufferAllocatorKind allocator) { + switch (allocator) { + case ClientBufferAllocatorKind::kAndroidMemfd: + return "android_memfd"; + case ClientBufferAllocatorKind::kSplitShm: + return "split_shm"; + case ClientBufferAllocatorKind::kSplitCallback: + return "split_callback"; + case ClientBufferAllocatorKind::kSplitBufferFreeTest: + return "split_buffer_free_test"; + case ClientBufferAllocatorKind::kUnspecified: + default: + return "unspecified"; + } +} + // Metadata for memory allocated by a client but cleaned up by the server if the // client cannot release it itself. The handle is allocator-defined; plugins // decide whether they understand it. @@ -26,11 +50,7 @@ struct ClientBufferHandleMetadata { uintptr_t handle = 0; std::string shadow_file; std::string object_name; - std::string allocator; - std::string pool_id; - bool cache_enabled = false; - uint32_t alignment = 0; - google::protobuf::Any allocator_metadata; + ClientBufferAllocatorKind allocator = ClientBufferAllocatorKind::kUnspecified; }; struct RegisteredClientBuffer { diff --git a/docs/android.md b/docs/android.md index a09773d..00fe072 100644 --- a/docs/android.md +++ b/docs/android.md @@ -173,14 +173,9 @@ cmake -S . -B build/android \ cmake --build build/android --parallel ``` -Pre-generated protobuf files (`proto/subspace.pb.{cc,h}`) are included in the -repository so cross-compilation works without needing a host-native `protoc`. -If `subspace.proto` changes, regenerate them with a native build: - -```bash -cmake -S . -B build/native && cmake --build build/native --target subspace_proto -cp build/native/proto/subspace.pb.{cc,h} proto/ -``` +CMake cross-compiles generate protobuf sources in the build tree. Ensure a +host-native `protoc` is available on `PATH`, or pass it explicitly with +`-DPROTOC_EXECUTABLE=/path/to/protoc`. ## AOSP / Soong (Blueprint) Build diff --git a/plugins/split_buffer_free_test_plugin.cc b/plugins/split_buffer_free_test_plugin.cc index afacee7..7944b15 100644 --- a/plugins/split_buffer_free_test_plugin.cc +++ b/plugins/split_buffer_free_test_plugin.cc @@ -37,8 +37,10 @@ absl::StatusOr OnFreeClientBuffer( subspace::Server & /*s*/, const subspace::ClientBufferHandleMetadata &metadata, subspace::PluginContext * /*ctx*/) { - if (metadata.allocator != "split_callback" && - metadata.allocator != "split_buffer_free_test") { + if (metadata.allocator != + subspace::ClientBufferAllocatorKind::kSplitCallback && + metadata.allocator != + subspace::ClientBufferAllocatorKind::kSplitBufferFreeTest) { return false; } @@ -53,7 +55,8 @@ absl::StatusOr OnFreeClientBuffer( } log << metadata.channel_name << " " << metadata.session_id << " " << metadata.buffer_index << " " << metadata.slot_id << " " - << metadata.handle << " " << metadata.allocator << "\n"; + << metadata.handle << " " + << subspace::ClientBufferAllocatorName(metadata.allocator) << "\n"; return true; } diff --git a/proto/CMakeLists.txt b/proto/CMakeLists.txt index e44b032..e50cc7c 100644 --- a/proto/CMakeLists.txt +++ b/proto/CMakeLists.txt @@ -28,32 +28,20 @@ set(SUBSPACE_PROTO_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}") set(PROTO_SRC "${CMAKE_CURRENT_BINARY_DIR}/subspace.pb.cc") set(PROTO_HDR "${CMAKE_CURRENT_BINARY_DIR}/subspace.pb.h") -# When cross-compiling, use pre-generated protobuf files to avoid needing -# a host-native protoc that matches the library version. if(CMAKE_CROSSCOMPILING) - if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/subspace.pb.cc") - set(PROTO_SRC "${CMAKE_CURRENT_SOURCE_DIR}/subspace.pb.cc") - set(PROTO_HDR "${CMAKE_CURRENT_SOURCE_DIR}/subspace.pb.h") - message(STATUS "Cross-compiling: using pre-generated protobuf files") - else() - find_program(PROTOC_EXECUTABLE protoc REQUIRED) - message(STATUS "Cross-compiling: using host protoc at ${PROTOC_EXECUTABLE}") - set(PROTO_SRC "${CMAKE_CURRENT_BINARY_DIR}/subspace.pb.cc") - set(PROTO_HDR "${CMAKE_CURRENT_BINARY_DIR}/subspace.pb.h") - add_custom_command( - OUTPUT ${PROTO_SRC} ${PROTO_HDR} - COMMAND ${PROTOC_EXECUTABLE} - ARGS --cpp_out=${CMAKE_CURRENT_BINARY_DIR} - --proto_path=${CMAKE_CURRENT_SOURCE_DIR} - --proto_path=${protobuf_SOURCE_DIR}/src - ${CMAKE_CURRENT_SOURCE_DIR}/subspace.proto - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/subspace.proto - COMMENT "Generating C++ code from subspace.proto (cross-compile)" - ) - endif() + find_program(PROTOC_EXECUTABLE protoc REQUIRED) + message(STATUS "Cross-compiling: using host protoc at ${PROTOC_EXECUTABLE}") + add_custom_command( + OUTPUT ${PROTO_SRC} ${PROTO_HDR} + COMMAND ${PROTOC_EXECUTABLE} + ARGS --cpp_out=${CMAKE_CURRENT_BINARY_DIR} + --proto_path=${CMAKE_CURRENT_SOURCE_DIR} + --proto_path=${protobuf_SOURCE_DIR}/src + ${CMAKE_CURRENT_SOURCE_DIR}/subspace.proto + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/subspace.proto + COMMENT "Generating C++ code from subspace.proto (cross-compile)" + ) else() - set(PROTO_SRC "${CMAKE_CURRENT_BINARY_DIR}/subspace.pb.cc") - set(PROTO_HDR "${CMAKE_CURRENT_BINARY_DIR}/subspace.pb.h") add_custom_command( OUTPUT ${PROTO_SRC} ${PROTO_HDR} COMMAND $ @@ -75,11 +63,8 @@ add_library(subspace_proto STATIC # Add the directory containing the generated headers to the include paths. -# The parent dir is added so "proto/subspace.pb.h" resolves when using -# pre-generated files from the source tree. target_include_directories(subspace_proto PUBLIC ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR} ) # Link the generated library against the main Protobuf library diff --git a/proto/subspace.pb.cc b/proto/subspace.pb.cc deleted file mode 100644 index 2a5c5c8..0000000 --- a/proto/subspace.pb.cc +++ /dev/null @@ -1,27970 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: subspace.proto -// Protobuf C++ Version: 6.33.4 - -#include "subspace.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/descriptor.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/reflection_ops.h" -#include "google/protobuf/wire_format.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace subspace { -template -PROTOBUF_CONSTEXPR VoidMessage::VoidMessage(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(VoidMessage_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase() { -} -#endif // PROTOBUF_CUSTOM_VTABLE -struct VoidMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR VoidMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~VoidMessageDefaultTypeInternal() {} - union { - VoidMessage _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VoidMessageDefaultTypeInternal _VoidMessage_default_instance_; - -inline constexpr UnregisterClientBufferRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - session_id_{::uint64_t{0u}}, - buffer_index_{0u} {} - -template -PROTOBUF_CONSTEXPR UnregisterClientBufferRequest::UnregisterClientBufferRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(UnregisterClientBufferRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct UnregisterClientBufferRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnregisterClientBufferRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UnregisterClientBufferRequestDefaultTypeInternal() {} - union { - UnregisterClientBufferRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnregisterClientBufferRequestDefaultTypeInternal _UnregisterClientBufferRequest_default_instance_; - -inline constexpr ShadowUpdateChannelOptions::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - has_split_buffer_options_{false}, - use_split_buffers_{false}, - has_max_publishers_{false}, - split_buffers_over_bridge_{false}, - max_publishers_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowUpdateChannelOptions::ShadowUpdateChannelOptions(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowUpdateChannelOptions_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowUpdateChannelOptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowUpdateChannelOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowUpdateChannelOptionsDefaultTypeInternal() {} - union { - ShadowUpdateChannelOptions _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowUpdateChannelOptionsDefaultTypeInternal _ShadowUpdateChannelOptions_default_instance_; - -inline constexpr ShadowUnregisterClientBuffer::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - session_id_{::uint64_t{0u}}, - buffer_index_{0u} {} - -template -PROTOBUF_CONSTEXPR ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowUnregisterClientBuffer_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowUnregisterClientBufferDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowUnregisterClientBufferDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowUnregisterClientBufferDefaultTypeInternal() {} - union { - ShadowUnregisterClientBuffer _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowUnregisterClientBufferDefaultTypeInternal _ShadowUnregisterClientBuffer_default_instance_; - -inline constexpr ShadowStateDump::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - session_id_{::uint64_t{0u}}, - num_channels_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowStateDump::ShadowStateDump(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowStateDump_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowStateDumpDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowStateDumpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowStateDumpDefaultTypeInternal() {} - union { - ShadowStateDump _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowStateDumpDefaultTypeInternal _ShadowStateDump_default_instance_; -template -PROTOBUF_CONSTEXPR ShadowStateDone::ShadowStateDone(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(ShadowStateDone_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase() { -} -#endif // PROTOBUF_CUSTOM_VTABLE -struct ShadowStateDoneDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowStateDoneDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowStateDoneDefaultTypeInternal() {} - union { - ShadowStateDone _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowStateDoneDefaultTypeInternal _ShadowStateDone_default_instance_; - -inline constexpr ShadowRemoveSubscriber::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subscriber_id_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowRemoveSubscriber::ShadowRemoveSubscriber(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowRemoveSubscriber_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowRemoveSubscriberDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowRemoveSubscriberDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowRemoveSubscriberDefaultTypeInternal() {} - union { - ShadowRemoveSubscriber _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowRemoveSubscriberDefaultTypeInternal _ShadowRemoveSubscriber_default_instance_; - -inline constexpr ShadowRemovePublisher::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - publisher_id_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowRemovePublisher::ShadowRemovePublisher(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowRemovePublisher_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowRemovePublisherDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowRemovePublisherDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowRemovePublisherDefaultTypeInternal() {} - union { - ShadowRemovePublisher _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowRemovePublisherDefaultTypeInternal _ShadowRemovePublisher_default_instance_; - -inline constexpr ShadowRemoveChannel::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - channel_id_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowRemoveChannel::ShadowRemoveChannel(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowRemoveChannel_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowRemoveChannelDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowRemoveChannelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowRemoveChannelDefaultTypeInternal() {} - union { - ShadowRemoveChannel _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowRemoveChannelDefaultTypeInternal _ShadowRemoveChannel_default_instance_; - -inline constexpr ShadowInit::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - session_id_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR ShadowInit::ShadowInit(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowInit_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowInitDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowInitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowInitDefaultTypeInternal() {} - union { - ShadowInit _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowInitDefaultTypeInternal _ShadowInit_default_instance_; - -inline constexpr ShadowCreateChannel::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mux_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - channel_id_{0}, - slot_size_{0}, - num_slots_{0}, - is_local_{false}, - is_reliable_{false}, - is_fixed_size_{false}, - has_split_buffer_options_{false}, - checksum_size_{0}, - metadata_size_{0}, - vchan_id_{0}, - use_split_buffers_{false}, - has_max_publishers_{false}, - split_buffers_over_bridge_{false}, - max_publishers_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowCreateChannel::ShadowCreateChannel(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowCreateChannel_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowCreateChannelDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowCreateChannelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowCreateChannelDefaultTypeInternal() {} - union { - ShadowCreateChannel _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowCreateChannelDefaultTypeInternal _ShadowCreateChannel_default_instance_; - -inline constexpr ShadowAddSubscriber::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subscriber_id_{0}, - is_reliable_{false}, - is_bridge_{false}, - for_tunnel_{false}, - max_active_messages_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowAddSubscriber::ShadowAddSubscriber(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowAddSubscriber_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowAddSubscriberDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowAddSubscriberDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowAddSubscriberDefaultTypeInternal() {} - union { - ShadowAddSubscriber _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowAddSubscriberDefaultTypeInternal _ShadowAddSubscriber_default_instance_; - -inline constexpr ShadowAddPublisher::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - publisher_id_{0}, - is_reliable_{false}, - is_local_{false}, - is_bridge_{false}, - is_fixed_size_{false}, - notify_retirement_{false}, - for_tunnel_{false} {} - -template -PROTOBUF_CONSTEXPR ShadowAddPublisher::ShadowAddPublisher(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowAddPublisher_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowAddPublisherDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowAddPublisherDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowAddPublisherDefaultTypeInternal() {} - union { - ShadowAddPublisher _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowAddPublisherDefaultTypeInternal _ShadowAddPublisher_default_instance_; - -inline constexpr RpcOpenResponse_ResponseChannel::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcOpenResponse_ResponseChannel_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcOpenResponse_ResponseChannelDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcOpenResponse_ResponseChannelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcOpenResponse_ResponseChannelDefaultTypeInternal() {} - union { - RpcOpenResponse_ResponseChannel _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenResponse_ResponseChannelDefaultTypeInternal _RpcOpenResponse_ResponseChannel_default_instance_; - -inline constexpr RpcOpenResponse_RequestChannel::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - slot_size_{0}, - num_slots_{0} {} - -template -PROTOBUF_CONSTEXPR RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcOpenResponse_RequestChannel_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcOpenResponse_RequestChannelDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcOpenResponse_RequestChannelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcOpenResponse_RequestChannelDefaultTypeInternal() {} - union { - RpcOpenResponse_RequestChannel _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenResponse_RequestChannelDefaultTypeInternal _RpcOpenResponse_RequestChannel_default_instance_; -template -PROTOBUF_CONSTEXPR RpcOpenRequest::RpcOpenRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(RpcOpenRequest_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase() { -} -#endif // PROTOBUF_CUSTOM_VTABLE -struct RpcOpenRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcOpenRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcOpenRequestDefaultTypeInternal() {} - union { - RpcOpenRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenRequestDefaultTypeInternal _RpcOpenRequest_default_instance_; -template -PROTOBUF_CONSTEXPR RpcCloseResponse::RpcCloseResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(RpcCloseResponse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase() { -} -#endif // PROTOBUF_CUSTOM_VTABLE -struct RpcCloseResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcCloseResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcCloseResponseDefaultTypeInternal() {} - union { - RpcCloseResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcCloseResponseDefaultTypeInternal _RpcCloseResponse_default_instance_; - -inline constexpr RpcCloseRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - session_id_{0} {} - -template -PROTOBUF_CONSTEXPR RpcCloseRequest::RpcCloseRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcCloseRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcCloseRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcCloseRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcCloseRequestDefaultTypeInternal() {} - union { - RpcCloseRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcCloseRequestDefaultTypeInternal _RpcCloseRequest_default_instance_; - -inline constexpr RpcCancelRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - session_id_{0}, - request_id_{0}, - client_id_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR RpcCancelRequest::RpcCancelRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcCancelRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcCancelRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcCancelRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcCancelRequestDefaultTypeInternal() {} - union { - RpcCancelRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcCancelRequestDefaultTypeInternal _RpcCancelRequest_default_instance_; - -inline constexpr RetirementNotification::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - slot_id_{0} {} - -template -PROTOBUF_CONSTEXPR RetirementNotification::RetirementNotification(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RetirementNotification_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RetirementNotificationDefaultTypeInternal { - PROTOBUF_CONSTEXPR RetirementNotificationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RetirementNotificationDefaultTypeInternal() {} - union { - RetirementNotification _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RetirementNotificationDefaultTypeInternal _RetirementNotification_default_instance_; - -inline constexpr RemoveSubscriberResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR RemoveSubscriberResponse::RemoveSubscriberResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RemoveSubscriberResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RemoveSubscriberResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveSubscriberResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveSubscriberResponseDefaultTypeInternal() {} - union { - RemoveSubscriberResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveSubscriberResponseDefaultTypeInternal _RemoveSubscriberResponse_default_instance_; - -inline constexpr RemoveSubscriberRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subscriber_id_{0} {} - -template -PROTOBUF_CONSTEXPR RemoveSubscriberRequest::RemoveSubscriberRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RemoveSubscriberRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RemoveSubscriberRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemoveSubscriberRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemoveSubscriberRequestDefaultTypeInternal() {} - union { - RemoveSubscriberRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemoveSubscriberRequestDefaultTypeInternal _RemoveSubscriberRequest_default_instance_; - -inline constexpr RemovePublisherResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR RemovePublisherResponse::RemovePublisherResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RemovePublisherResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RemovePublisherResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemovePublisherResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemovePublisherResponseDefaultTypeInternal() {} - union { - RemovePublisherResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemovePublisherResponseDefaultTypeInternal _RemovePublisherResponse_default_instance_; - -inline constexpr RemovePublisherRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - publisher_id_{0} {} - -template -PROTOBUF_CONSTEXPR RemovePublisherRequest::RemovePublisherRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RemovePublisherRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RemovePublisherRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RemovePublisherRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RemovePublisherRequestDefaultTypeInternal() {} - union { - RemovePublisherRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RemovePublisherRequestDefaultTypeInternal _RemovePublisherRequest_default_instance_; - -inline constexpr RegisterClientBufferResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR RegisterClientBufferResponse::RegisterClientBufferResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RegisterClientBufferResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RegisterClientBufferResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RegisterClientBufferResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RegisterClientBufferResponseDefaultTypeInternal() {} - union { - RegisterClientBufferResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterClientBufferResponseDefaultTypeInternal _RegisterClientBufferResponse_default_instance_; - -inline constexpr RawMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR RawMessage::RawMessage(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RawMessage_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RawMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR RawMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RawMessageDefaultTypeInternal() {} - union { - RawMessage _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RawMessageDefaultTypeInternal _RawMessage_default_instance_; - -inline constexpr InitResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - session_id_{::int64_t{0}}, - scb_fd_index_{0}, - user_id_{0}, - group_id_{0} {} - -template -PROTOBUF_CONSTEXPR InitResponse::InitResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(InitResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct InitResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR InitResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InitResponseDefaultTypeInternal() {} - union { - InitResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InitResponseDefaultTypeInternal _InitResponse_default_instance_; - -inline constexpr InitRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - client_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR InitRequest::InitRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(InitRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct InitRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR InitRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InitRequestDefaultTypeInternal() {} - union { - InitRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InitRequestDefaultTypeInternal _InitRequest_default_instance_; - -inline constexpr GetTriggersResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - reliable_pub_trigger_fd_indexes_{}, - _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, - sub_trigger_fd_indexes_{}, - _sub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetTriggersResponse::GetTriggersResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetTriggersResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetTriggersResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTriggersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTriggersResponseDefaultTypeInternal() {} - union { - GetTriggersResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTriggersResponseDefaultTypeInternal _GetTriggersResponse_default_instance_; - -inline constexpr GetTriggersRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetTriggersRequest::GetTriggersRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetTriggersRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetTriggersRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTriggersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTriggersRequestDefaultTypeInternal() {} - union { - GetTriggersRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTriggersRequestDefaultTypeInternal _GetTriggersRequest_default_instance_; - -inline constexpr GetClientBuffersRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - session_id_{::uint64_t{0u}}, - buffer_index_{0u} {} - -template -PROTOBUF_CONSTEXPR GetClientBuffersRequest::GetClientBuffersRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetClientBuffersRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetClientBuffersRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetClientBuffersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetClientBuffersRequestDefaultTypeInternal() {} - union { - GetClientBuffersRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClientBuffersRequestDefaultTypeInternal _GetClientBuffersRequest_default_instance_; - -inline constexpr GetChannelStatsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetChannelStatsRequest::GetChannelStatsRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetChannelStatsRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetChannelStatsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetChannelStatsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetChannelStatsRequestDefaultTypeInternal() {} - union { - GetChannelStatsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetChannelStatsRequestDefaultTypeInternal _GetChannelStatsRequest_default_instance_; - -inline constexpr GetChannelInfoRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetChannelInfoRequest::GetChannelInfoRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetChannelInfoRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetChannelInfoRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetChannelInfoRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetChannelInfoRequestDefaultTypeInternal() {} - union { - GetChannelInfoRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetChannelInfoRequestDefaultTypeInternal _GetChannelInfoRequest_default_instance_; - -inline constexpr Discovery_Query::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR Discovery_Query::Discovery_Query(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Discovery_Query_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Discovery_QueryDefaultTypeInternal { - PROTOBUF_CONSTEXPR Discovery_QueryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Discovery_QueryDefaultTypeInternal() {} - union { - Discovery_Query _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Discovery_QueryDefaultTypeInternal _Discovery_Query_default_instance_; - -inline constexpr Discovery_Advertise::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - reliable_{false}, - notify_retirement_{false}, - split_buffers_{false} {} - -template -PROTOBUF_CONSTEXPR Discovery_Advertise::Discovery_Advertise(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Discovery_Advertise_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Discovery_AdvertiseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Discovery_AdvertiseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Discovery_AdvertiseDefaultTypeInternal() {} - union { - Discovery_Advertise _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Discovery_AdvertiseDefaultTypeInternal _Discovery_Advertise_default_instance_; - -inline constexpr CreateSubscriberResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - reliable_pub_trigger_fd_indexes_{}, - _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - channel_id_{0}, - subscriber_id_{0}, - ccb_fd_index_{0}, - bcb_fd_index_{0}, - trigger_fd_index_{0}, - poll_fd_index_{0}, - slot_size_{0}, - num_slots_{0}, - num_pub_updates_{0}, - vchan_id_{0}, - checksum_size_{0}, - metadata_size_{0}, - use_split_buffers_{false} {} - -template -PROTOBUF_CONSTEXPR CreateSubscriberResponse::CreateSubscriberResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(CreateSubscriberResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct CreateSubscriberResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateSubscriberResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateSubscriberResponseDefaultTypeInternal() {} - union { - CreateSubscriberResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateSubscriberResponseDefaultTypeInternal _CreateSubscriberResponse_default_instance_; - -inline constexpr CreateSubscriberRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mux_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - subscriber_id_{0}, - is_reliable_{false}, - is_bridge_{false}, - for_tunnel_{false}, - max_active_messages_{0}, - vchan_id_{0} {} - -template -PROTOBUF_CONSTEXPR CreateSubscriberRequest::CreateSubscriberRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(CreateSubscriberRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct CreateSubscriberRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreateSubscriberRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreateSubscriberRequestDefaultTypeInternal() {} - union { - CreateSubscriberRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateSubscriberRequestDefaultTypeInternal _CreateSubscriberRequest_default_instance_; - -inline constexpr CreatePublisherResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - sub_trigger_fd_indexes_{}, - _sub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - channel_id_{0}, - publisher_id_{0}, - ccb_fd_index_{0}, - bcb_fd_index_{0}, - pub_poll_fd_index_{0}, - pub_trigger_fd_index_{0}, - num_sub_updates_{0}, - vchan_id_{0}, - retirement_fd_index_{0} {} - -template -PROTOBUF_CONSTEXPR CreatePublisherResponse::CreatePublisherResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(CreatePublisherResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct CreatePublisherResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreatePublisherResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreatePublisherResponseDefaultTypeInternal() {} - union { - CreatePublisherResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreatePublisherResponseDefaultTypeInternal _CreatePublisherResponse_default_instance_; - -inline constexpr CreatePublisherRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mux_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - num_slots_{0}, - slot_size_{0}, - is_local_{false}, - is_reliable_{false}, - is_bridge_{false}, - is_fixed_size_{false}, - vchan_id_{0}, - checksum_size_{0}, - metadata_size_{0}, - publisher_id_{0}, - notify_retirement_{false}, - for_tunnel_{false}, - use_split_buffers_{false}, - split_buffers_over_bridge_{false}, - max_publishers_{0} {} - -template -PROTOBUF_CONSTEXPR CreatePublisherRequest::CreatePublisherRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(CreatePublisherRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct CreatePublisherRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR CreatePublisherRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CreatePublisherRequestDefaultTypeInternal() {} - union { - CreatePublisherRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreatePublisherRequestDefaultTypeInternal _CreatePublisherRequest_default_instance_; - -inline constexpr ChannelStatsProto::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - total_bytes_{::int64_t{0}}, - total_messages_{::int64_t{0}}, - slot_size_{0}, - num_slots_{0}, - num_pubs_{0}, - num_subs_{0}, - max_message_size_{0u}, - total_drops_{0u}, - num_bridge_pubs_{0}, - num_bridge_subs_{0} {} - -template -PROTOBUF_CONSTEXPR ChannelStatsProto::ChannelStatsProto(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ChannelStatsProto_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ChannelStatsProtoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChannelStatsProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChannelStatsProtoDefaultTypeInternal() {} - union { - ChannelStatsProto _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChannelStatsProtoDefaultTypeInternal _ChannelStatsProto_default_instance_; - -inline constexpr ChannelInfoProto::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mux_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - slot_size_{0}, - num_slots_{0}, - num_pubs_{0}, - num_subs_{0}, - num_bridge_pubs_{0}, - num_bridge_subs_{0}, - is_reliable_{false}, - is_virtual_{false}, - vchan_id_{0}, - num_tunnel_pubs_{0}, - num_tunnel_subs_{0} {} - -template -PROTOBUF_CONSTEXPR ChannelInfoProto::ChannelInfoProto(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ChannelInfoProto_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ChannelInfoProtoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChannelInfoProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChannelInfoProtoDefaultTypeInternal() {} - union { - ChannelInfoProto _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChannelInfoProtoDefaultTypeInternal _ChannelInfoProto_default_instance_; - -inline constexpr ChannelAddress::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - port_{0} {} - -template -PROTOBUF_CONSTEXPR ChannelAddress::ChannelAddress(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ChannelAddress_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ChannelAddressDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChannelAddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChannelAddressDefaultTypeInternal() {} - union { - ChannelAddress _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChannelAddressDefaultTypeInternal _ChannelAddress_default_instance_; - -inline constexpr Subscribed::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - retirement_socket_{nullptr}, - slot_size_{0}, - num_slots_{0}, - checksum_size_{0}, - reliable_{false}, - notify_retirement_{false}, - split_buffers_{false}, - split_buffers_over_bridge_{false}, - metadata_size_{0} {} - -template -PROTOBUF_CONSTEXPR Subscribed::Subscribed(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Subscribed_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SubscribedDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubscribedDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubscribedDefaultTypeInternal() {} - union { - Subscribed _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubscribedDefaultTypeInternal _Subscribed_default_instance_; - -inline constexpr Statistics::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channels_{}, - server_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - timestamp_{::int64_t{0}} {} - -template -PROTOBUF_CONSTEXPR Statistics::Statistics(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Statistics_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct StatisticsDefaultTypeInternal { - PROTOBUF_CONSTEXPR StatisticsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StatisticsDefaultTypeInternal() {} - union { - Statistics _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StatisticsDefaultTypeInternal _Statistics_default_instance_; - -inline constexpr RpcServerRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - client_id_{::uint64_t{0u}}, - request_id_{0}, - request_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR RpcServerRequest::RpcServerRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcServerRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcServerRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcServerRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcServerRequestDefaultTypeInternal() {} - union { - RpcServerRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcServerRequestDefaultTypeInternal _RpcServerRequest_default_instance_; - -inline constexpr RpcResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - result_{nullptr}, - session_id_{0}, - request_id_{0}, - client_id_{::uint64_t{0u}}, - is_last_{false}, - is_cancelled_{false} {} - -template -PROTOBUF_CONSTEXPR RpcResponse::RpcResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcResponseDefaultTypeInternal() {} - union { - RpcResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcResponseDefaultTypeInternal _RpcResponse_default_instance_; - -inline constexpr RpcRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - argument_{nullptr}, - method_{0}, - session_id_{0}, - client_id_{::uint64_t{0u}}, - request_id_{0} {} - -template -PROTOBUF_CONSTEXPR RpcRequest::RpcRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcRequestDefaultTypeInternal() {} - union { - RpcRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcRequestDefaultTypeInternal _RpcRequest_default_instance_; - -inline constexpr RpcOpenResponse_Method::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - cancel_channel_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - request_channel_{nullptr}, - response_channel_{nullptr}, - id_{0} {} - -template -PROTOBUF_CONSTEXPR RpcOpenResponse_Method::RpcOpenResponse_Method(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcOpenResponse_Method_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcOpenResponse_MethodDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcOpenResponse_MethodDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcOpenResponse_MethodDefaultTypeInternal() {} - union { - RpcOpenResponse_Method _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenResponse_MethodDefaultTypeInternal _RpcOpenResponse_Method_default_instance_; - -inline constexpr GetChannelStatsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channels_{}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetChannelStatsResponse::GetChannelStatsResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetChannelStatsResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetChannelStatsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetChannelStatsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetChannelStatsResponseDefaultTypeInternal() {} - union { - GetChannelStatsResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetChannelStatsResponseDefaultTypeInternal _GetChannelStatsResponse_default_instance_; - -inline constexpr GetChannelInfoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channels_{}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetChannelInfoResponse::GetChannelInfoResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetChannelInfoResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetChannelInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetChannelInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetChannelInfoResponseDefaultTypeInternal() {} - union { - GetChannelInfoResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetChannelInfoResponseDefaultTypeInternal _GetChannelInfoResponse_default_instance_; - -inline constexpr Discovery_Subscribe::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - receiver_{nullptr}, - reliable_{false} {} - -template -PROTOBUF_CONSTEXPR Discovery_Subscribe::Discovery_Subscribe(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Discovery_Subscribe_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Discovery_SubscribeDefaultTypeInternal { - PROTOBUF_CONSTEXPR Discovery_SubscribeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Discovery_SubscribeDefaultTypeInternal() {} - union { - Discovery_Subscribe _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Discovery_SubscribeDefaultTypeInternal _Discovery_Subscribe_default_instance_; - -inline constexpr ClientBufferHandleMetadataProto::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channel_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - shadow_file_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - object_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - allocator_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pool_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - allocator_metadata_{nullptr}, - session_id_{::uint64_t{0u}}, - buffer_index_{0u}, - slot_id_{0u}, - full_size_{::uint64_t{0u}}, - allocation_size_{::uint64_t{0u}}, - handle_{::uint64_t{0u}}, - is_prefix_{false}, - cache_enabled_{false}, - alignment_{0u} {} - -template -PROTOBUF_CONSTEXPR ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ClientBufferHandleMetadataProto_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ClientBufferHandleMetadataProtoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ClientBufferHandleMetadataProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ClientBufferHandleMetadataProtoDefaultTypeInternal() {} - union { - ClientBufferHandleMetadataProto _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientBufferHandleMetadataProtoDefaultTypeInternal _ClientBufferHandleMetadataProto_default_instance_; - -inline constexpr ChannelDirectory::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - channels_{}, - server_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR ChannelDirectory::ChannelDirectory(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ChannelDirectory_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ChannelDirectoryDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChannelDirectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChannelDirectoryDefaultTypeInternal() {} - union { - ChannelDirectory _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChannelDirectoryDefaultTypeInternal _ChannelDirectory_default_instance_; - -inline constexpr ShadowRegisterClientBuffer::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - metadata_{nullptr}, - has_fd_{false}, - fd_index_{0} {} - -template -PROTOBUF_CONSTEXPR ShadowRegisterClientBuffer::ShadowRegisterClientBuffer(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowRegisterClientBuffer_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowRegisterClientBufferDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowRegisterClientBufferDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowRegisterClientBufferDefaultTypeInternal() {} - union { - ShadowRegisterClientBuffer _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowRegisterClientBufferDefaultTypeInternal _ShadowRegisterClientBuffer_default_instance_; - -inline constexpr RpcOpenResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - methods_{}, - client_id_{::uint64_t{0u}}, - session_id_{0} {} - -template -PROTOBUF_CONSTEXPR RpcOpenResponse::RpcOpenResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcOpenResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcOpenResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcOpenResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcOpenResponseDefaultTypeInternal() {} - union { - RpcOpenResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcOpenResponseDefaultTypeInternal _RpcOpenResponse_default_instance_; - -inline constexpr RegisterClientBufferRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - metadata_{nullptr}, - has_fd_{false}, - fd_index_{0} {} - -template -PROTOBUF_CONSTEXPR RegisterClientBufferRequest::RegisterClientBufferRequest(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RegisterClientBufferRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RegisterClientBufferRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RegisterClientBufferRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RegisterClientBufferRequestDefaultTypeInternal() {} - union { - RegisterClientBufferRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegisterClientBufferRequestDefaultTypeInternal _RegisterClientBufferRequest_default_instance_; - -inline constexpr GetClientBuffersResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - metadata_{}, - fd_indexes_{}, - _fd_indexes_cached_byte_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR GetClientBuffersResponse::GetClientBuffersResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GetClientBuffersResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GetClientBuffersResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetClientBuffersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetClientBuffersResponseDefaultTypeInternal() {} - union { - GetClientBuffersResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetClientBuffersResponseDefaultTypeInternal _GetClientBuffersResponse_default_instance_; - -inline constexpr Discovery::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - server_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - port_{0}, - data_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Discovery::Discovery(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Discovery_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct DiscoveryDefaultTypeInternal { - PROTOBUF_CONSTEXPR DiscoveryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DiscoveryDefaultTypeInternal() {} - union { - Discovery _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DiscoveryDefaultTypeInternal _Discovery_default_instance_; - -inline constexpr ShadowEvent::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : event_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR ShadowEvent::ShadowEvent(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ShadowEvent_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ShadowEventDefaultTypeInternal { - PROTOBUF_CONSTEXPR ShadowEventDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ShadowEventDefaultTypeInternal() {} - union { - ShadowEvent _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShadowEventDefaultTypeInternal _ShadowEvent_default_instance_; - -inline constexpr RpcServerResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - error_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - client_id_{::uint64_t{0u}}, - request_id_{0}, - response_{}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR RpcServerResponse::RpcServerResponse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(RpcServerResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RpcServerResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR RpcServerResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RpcServerResponseDefaultTypeInternal() {} - union { - RpcServerResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RpcServerResponseDefaultTypeInternal _RpcServerResponse_default_instance_; - -inline constexpr Response::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : response_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Response::Response(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Response_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseDefaultTypeInternal() {} - union { - Response _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; - -inline constexpr Request::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : request_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR Request::Request(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Request_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct RequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR RequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RequestDefaultTypeInternal() {} - union { - Request _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestDefaultTypeInternal _Request_default_instance_; -} // namespace subspace -static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE - file_level_enum_descriptors_subspace_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE - file_level_service_descriptors_subspace_2eproto = nullptr; -const ::uint32_t - TableStruct_subspace_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::InitRequest, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::InitRequest, _impl_.client_name_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_._has_bits_), - 7, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.scb_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.user_id_), - PROTOBUF_FIELD_OFFSET(::subspace::InitResponse, _impl_.group_id_), - 1, - 0, - 2, - 3, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_._has_bits_), - 21, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.num_slots_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.slot_size_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.is_local_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.is_reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.is_bridge_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.is_fixed_size_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.for_tunnel_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.mux_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.vchan_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.notify_retirement_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.checksum_size_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.metadata_size_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.publisher_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.use_split_buffers_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.max_publishers_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherRequest, _impl_.split_buffers_over_bridge_), - 0, - 3, - 4, - 5, - 6, - 7, - 1, - 8, - 14, - 2, - 9, - 13, - 10, - 11, - 12, - 15, - 17, - 16, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_._has_bits_), - 16, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.channel_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.publisher_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.ccb_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.bcb_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.pub_poll_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.pub_trigger_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.num_sub_updates_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.vchan_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.retirement_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreatePublisherResponse, _impl_.retirement_fd_indexes_), - 2, - 4, - 5, - 6, - 7, - 8, - 9, - 0, - 10, - 3, - 11, - 12, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_._has_bits_), - 12, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.subscriber_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.is_reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.is_bridge_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.max_active_messages_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.for_tunnel_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.mux_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberRequest, _impl_.vchan_id_), - 0, - 3, - 4, - 5, - 1, - 7, - 6, - 2, - 8, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_._has_bits_), - 20, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.channel_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.subscriber_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.ccb_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.bcb_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.trigger_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.poll_fd_index_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.slot_size_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.num_slots_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.num_pub_updates_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.vchan_id_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.retirement_fd_indexes_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.checksum_size_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.metadata_size_), - PROTOBUF_FIELD_OFFSET(::subspace::CreateSubscriberResponse, _impl_.use_split_buffers_), - 2, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 0, - 12, - 3, - 13, - 1, - 14, - 15, - 16, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersRequest, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersRequest, _impl_.channel_name_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_._has_bits_), - 7, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_), - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.sub_trigger_fd_indexes_), - PROTOBUF_FIELD_OFFSET(::subspace::GetTriggersResponse, _impl_.retirement_fd_indexes_), - 3, - 0, - 1, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherRequest, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherRequest, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherRequest, _impl_.publisher_id_), - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherResponse, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RemovePublisherResponse, _impl_.error_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberRequest, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberRequest, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberRequest, _impl_.subscriber_id_), - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberResponse, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RemoveSubscriberResponse, _impl_.error_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoRequest, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoRequest, _impl_.channel_name_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoResponse, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelInfoResponse, _impl_.channels_), - 1, - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsRequest, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsRequest, _impl_.channel_name_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsResponse, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::GetChannelStatsResponse, _impl_.channels_), - 1, - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_._has_bits_), - 18, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.buffer_index_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.slot_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.is_prefix_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.full_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.allocation_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.handle_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.shadow_file_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.object_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.allocator_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.pool_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.cache_enabled_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.alignment_), - PROTOBUF_FIELD_OFFSET(::subspace::ClientBufferHandleMetadataProto, _impl_.allocator_metadata_), - 0, - 6, - 7, - 8, - 12, - 9, - 10, - 11, - 1, - 2, - 3, - 4, - 13, - 14, - 5, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_.metadata_), - PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_.has_fd_), - PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferRequest, _impl_.fd_index_), - 0, - 1, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferResponse, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RegisterClientBufferResponse, _impl_.error_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::UnregisterClientBufferRequest, _impl_.buffer_index_), - 0, - 1, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersRequest, _impl_.buffer_index_), - 0, - 1, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_.metadata_), - PROTOBUF_FIELD_OFFSET(::subspace::GetClientBuffersResponse, _impl_.fd_indexes_), - 2, - 0, - 1, - 0x004, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_._oneof_case_[0]), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_.request_), - 0x004, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_._oneof_case_[0]), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_.response_), - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_._has_bits_), - 17, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.slot_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_slots_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_pubs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_subs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_bridge_pubs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_bridge_subs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.is_reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_tunnel_pubs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.num_tunnel_subs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.is_virtual_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.vchan_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelInfoProto, _impl_.mux_), - 0, - 3, - 4, - 1, - 5, - 6, - 7, - 8, - 9, - 12, - 13, - 10, - 11, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ChannelDirectory, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ChannelDirectory, _impl_.server_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelDirectory, _impl_.channels_), - 1, - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_._has_bits_), - 14, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.total_bytes_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.total_messages_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.slot_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.num_slots_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.num_pubs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.num_subs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.max_message_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.total_drops_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.num_bridge_pubs_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelStatsProto, _impl_.num_bridge_subs_), - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_.server_id_), - PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_.timestamp_), - PROTOBUF_FIELD_OFFSET(::subspace::Statistics, _impl_.channels_), - 1, - 2, - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ChannelAddress, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ChannelAddress, _impl_.address_), - PROTOBUF_FIELD_OFFSET(::subspace::ChannelAddress, _impl_.port_), - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_._has_bits_), - 13, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.slot_size_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.num_slots_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.notify_retirement_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.retirement_socket_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.checksum_size_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.metadata_size_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.split_buffers_), - PROTOBUF_FIELD_OFFSET(::subspace::Subscribed, _impl_.split_buffers_over_bridge_), - 0, - 2, - 3, - 5, - 6, - 1, - 4, - 9, - 7, - 8, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RetirementNotification, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RetirementNotification, _impl_.slot_id_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Query, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Query, _impl_.channel_name_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_._has_bits_), - 7, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.notify_retirement_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Advertise, _impl_.split_buffers_), - 0, - 1, - 2, - 3, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_.receiver_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery_Subscribe, _impl_.reliable_), - 0, - 1, - 2, - 0x085, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_._oneof_case_[0]), - 10, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.server_id_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.port_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_.data_), - 0, - 1, - ~0u, - ~0u, - ~0u, - 0x000, // bitmap - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_._has_bits_), - 7, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.slot_size_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.num_slots_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_RequestChannel, _impl_.type_), - 0, - 2, - 3, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_ResponseChannel, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_ResponseChannel, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_ResponseChannel, _impl_.type_), - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_._has_bits_), - 8, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.request_channel_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.response_channel_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse_Method, _impl_.cancel_channel_), - 0, - 4, - 2, - 3, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_.methods_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcOpenResponse, _impl_.client_id_), - 2, - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcCloseRequest, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcCloseRequest, _impl_.session_id_), - 0, - 0x000, // bitmap - 0x085, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_._oneof_case_[0]), - 9, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.client_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_.request_), - 0, - 1, - ~0u, - ~0u, - 0x085, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_._oneof_case_[0]), - 10, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.client_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.request_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.response_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_.response_), - 1, - 2, - ~0u, - ~0u, - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_._has_bits_), - 8, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.method_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.argument_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.request_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcRequest, _impl_.client_id_), - 1, - 0, - 2, - 4, - 3, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_._has_bits_), - 10, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.error_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.result_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.request_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.client_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.is_last_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcResponse, _impl_.is_cancelled_), - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_.request_id_), - PROTOBUF_FIELD_OFFSET(::subspace::RpcCancelRequest, _impl_.client_id_), - 0, - 1, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::RawMessage, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::RawMessage, _impl_.data_), - 0, - 0x000, // bitmap - 0x004, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_._oneof_case_[0]), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_.event_), - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowInit, _impl_._has_bits_), - 4, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowInit, _impl_.session_id_), - 0, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_._has_bits_), - 20, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.channel_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.slot_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.num_slots_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.is_local_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.is_reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.is_fixed_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.checksum_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.metadata_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.mux_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.vchan_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.has_split_buffer_options_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.use_split_buffers_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.has_max_publishers_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.max_publishers_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowCreateChannel, _impl_.split_buffers_over_bridge_), - 0, - 3, - 4, - 5, - 1, - 6, - 7, - 8, - 10, - 11, - 2, - 12, - 9, - 13, - 14, - 16, - 15, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveChannel, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveChannel, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveChannel, _impl_.channel_id_), - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_._has_bits_), - 11, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.publisher_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.is_reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.is_local_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.is_bridge_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.is_fixed_size_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.notify_retirement_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddPublisher, _impl_.for_tunnel_), - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemovePublisher, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemovePublisher, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemovePublisher, _impl_.publisher_id_), - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_._has_bits_), - 9, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.subscriber_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.is_reliable_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.is_bridge_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.max_active_messages_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowAddSubscriber, _impl_.for_tunnel_), - 0, - 1, - 2, - 3, - 5, - 4, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveSubscriber, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveSubscriber, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRemoveSubscriber, _impl_.subscriber_id_), - 0, - 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDump, _impl_._has_bits_), - 5, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDump, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowStateDump, _impl_.num_channels_), - 0, - 1, - 0x000, // bitmap - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_.metadata_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_.has_fd_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowRegisterClientBuffer, _impl_.fd_index_), - 0, - 1, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_._has_bits_), - 6, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_.session_id_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUnregisterClientBuffer, _impl_.buffer_index_), - 0, - 1, - 2, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_._has_bits_), - 9, // hasbit index offset - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.channel_name_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.use_split_buffers_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.has_max_publishers_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.max_publishers_), - PROTOBUF_FIELD_OFFSET(::subspace::ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_), - 0, - 1, - 2, - 3, - 5, - 4, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, sizeof(::subspace::InitRequest)}, - {5, sizeof(::subspace::InitResponse)}, - {16, sizeof(::subspace::CreatePublisherRequest)}, - {55, sizeof(::subspace::CreatePublisherResponse)}, - {84, sizeof(::subspace::CreateSubscriberRequest)}, - {105, sizeof(::subspace::CreateSubscriberResponse)}, - {142, sizeof(::subspace::GetTriggersRequest)}, - {147, sizeof(::subspace::GetTriggersResponse)}, - {158, sizeof(::subspace::RemovePublisherRequest)}, - {165, sizeof(::subspace::RemovePublisherResponse)}, - {170, sizeof(::subspace::RemoveSubscriberRequest)}, - {177, sizeof(::subspace::RemoveSubscriberResponse)}, - {182, sizeof(::subspace::GetChannelInfoRequest)}, - {187, sizeof(::subspace::GetChannelInfoResponse)}, - {194, sizeof(::subspace::GetChannelStatsRequest)}, - {199, sizeof(::subspace::GetChannelStatsResponse)}, - {206, sizeof(::subspace::ClientBufferHandleMetadataProto)}, - {239, sizeof(::subspace::RegisterClientBufferRequest)}, - {248, sizeof(::subspace::RegisterClientBufferResponse)}, - {253, sizeof(::subspace::UnregisterClientBufferRequest)}, - {262, sizeof(::subspace::GetClientBuffersRequest)}, - {271, sizeof(::subspace::GetClientBuffersResponse)}, - {280, sizeof(::subspace::Request)}, - {294, sizeof(::subspace::Response)}, - {307, sizeof(::subspace::ChannelInfoProto)}, - {338, sizeof(::subspace::ChannelDirectory)}, - {345, sizeof(::subspace::ChannelStatsProto)}, - {370, sizeof(::subspace::Statistics)}, - {379, sizeof(::subspace::ChannelAddress)}, - {386, sizeof(::subspace::Subscribed)}, - {409, sizeof(::subspace::RetirementNotification)}, - {414, sizeof(::subspace::Discovery_Query)}, - {419, sizeof(::subspace::Discovery_Advertise)}, - {430, sizeof(::subspace::Discovery_Subscribe)}, - {439, sizeof(::subspace::Discovery)}, - {454, sizeof(::subspace::RpcOpenRequest)}, - {455, sizeof(::subspace::RpcOpenResponse_RequestChannel)}, - {466, sizeof(::subspace::RpcOpenResponse_ResponseChannel)}, - {473, sizeof(::subspace::RpcOpenResponse_Method)}, - {486, sizeof(::subspace::RpcOpenResponse)}, - {495, sizeof(::subspace::RpcCloseRequest)}, - {500, sizeof(::subspace::RpcCloseResponse)}, - {501, sizeof(::subspace::RpcServerRequest)}, - {514, sizeof(::subspace::RpcServerResponse)}, - {529, sizeof(::subspace::RpcRequest)}, - {542, sizeof(::subspace::RpcResponse)}, - {559, sizeof(::subspace::RpcCancelRequest)}, - {568, sizeof(::subspace::RawMessage)}, - {573, sizeof(::subspace::VoidMessage)}, - {574, sizeof(::subspace::ShadowEvent)}, - {589, sizeof(::subspace::ShadowInit)}, - {594, sizeof(::subspace::ShadowCreateChannel)}, - {631, sizeof(::subspace::ShadowRemoveChannel)}, - {638, sizeof(::subspace::ShadowAddPublisher)}, - {657, sizeof(::subspace::ShadowRemovePublisher)}, - {664, sizeof(::subspace::ShadowAddSubscriber)}, - {679, sizeof(::subspace::ShadowRemoveSubscriber)}, - {686, sizeof(::subspace::ShadowStateDump)}, - {693, sizeof(::subspace::ShadowStateDone)}, - {694, sizeof(::subspace::ShadowRegisterClientBuffer)}, - {703, sizeof(::subspace::ShadowUnregisterClientBuffer)}, - {712, sizeof(::subspace::ShadowUpdateChannelOptions)}, -}; -static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { - &::subspace::_InitRequest_default_instance_._instance, - &::subspace::_InitResponse_default_instance_._instance, - &::subspace::_CreatePublisherRequest_default_instance_._instance, - &::subspace::_CreatePublisherResponse_default_instance_._instance, - &::subspace::_CreateSubscriberRequest_default_instance_._instance, - &::subspace::_CreateSubscriberResponse_default_instance_._instance, - &::subspace::_GetTriggersRequest_default_instance_._instance, - &::subspace::_GetTriggersResponse_default_instance_._instance, - &::subspace::_RemovePublisherRequest_default_instance_._instance, - &::subspace::_RemovePublisherResponse_default_instance_._instance, - &::subspace::_RemoveSubscriberRequest_default_instance_._instance, - &::subspace::_RemoveSubscriberResponse_default_instance_._instance, - &::subspace::_GetChannelInfoRequest_default_instance_._instance, - &::subspace::_GetChannelInfoResponse_default_instance_._instance, - &::subspace::_GetChannelStatsRequest_default_instance_._instance, - &::subspace::_GetChannelStatsResponse_default_instance_._instance, - &::subspace::_ClientBufferHandleMetadataProto_default_instance_._instance, - &::subspace::_RegisterClientBufferRequest_default_instance_._instance, - &::subspace::_RegisterClientBufferResponse_default_instance_._instance, - &::subspace::_UnregisterClientBufferRequest_default_instance_._instance, - &::subspace::_GetClientBuffersRequest_default_instance_._instance, - &::subspace::_GetClientBuffersResponse_default_instance_._instance, - &::subspace::_Request_default_instance_._instance, - &::subspace::_Response_default_instance_._instance, - &::subspace::_ChannelInfoProto_default_instance_._instance, - &::subspace::_ChannelDirectory_default_instance_._instance, - &::subspace::_ChannelStatsProto_default_instance_._instance, - &::subspace::_Statistics_default_instance_._instance, - &::subspace::_ChannelAddress_default_instance_._instance, - &::subspace::_Subscribed_default_instance_._instance, - &::subspace::_RetirementNotification_default_instance_._instance, - &::subspace::_Discovery_Query_default_instance_._instance, - &::subspace::_Discovery_Advertise_default_instance_._instance, - &::subspace::_Discovery_Subscribe_default_instance_._instance, - &::subspace::_Discovery_default_instance_._instance, - &::subspace::_RpcOpenRequest_default_instance_._instance, - &::subspace::_RpcOpenResponse_RequestChannel_default_instance_._instance, - &::subspace::_RpcOpenResponse_ResponseChannel_default_instance_._instance, - &::subspace::_RpcOpenResponse_Method_default_instance_._instance, - &::subspace::_RpcOpenResponse_default_instance_._instance, - &::subspace::_RpcCloseRequest_default_instance_._instance, - &::subspace::_RpcCloseResponse_default_instance_._instance, - &::subspace::_RpcServerRequest_default_instance_._instance, - &::subspace::_RpcServerResponse_default_instance_._instance, - &::subspace::_RpcRequest_default_instance_._instance, - &::subspace::_RpcResponse_default_instance_._instance, - &::subspace::_RpcCancelRequest_default_instance_._instance, - &::subspace::_RawMessage_default_instance_._instance, - &::subspace::_VoidMessage_default_instance_._instance, - &::subspace::_ShadowEvent_default_instance_._instance, - &::subspace::_ShadowInit_default_instance_._instance, - &::subspace::_ShadowCreateChannel_default_instance_._instance, - &::subspace::_ShadowRemoveChannel_default_instance_._instance, - &::subspace::_ShadowAddPublisher_default_instance_._instance, - &::subspace::_ShadowRemovePublisher_default_instance_._instance, - &::subspace::_ShadowAddSubscriber_default_instance_._instance, - &::subspace::_ShadowRemoveSubscriber_default_instance_._instance, - &::subspace::_ShadowStateDump_default_instance_._instance, - &::subspace::_ShadowStateDone_default_instance_._instance, - &::subspace::_ShadowRegisterClientBuffer_default_instance_._instance, - &::subspace::_ShadowUnregisterClientBuffer_default_instance_._instance, - &::subspace::_ShadowUpdateChannelOptions_default_instance_._instance, -}; -const char descriptor_table_protodef_subspace_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\016subspace.proto\022\010subspace\032\031google/proto" - "buf/any.proto\"\"\n\013InitRequest\022\023\n\013client_n" - "ame\030\001 \001(\t\"[\n\014InitResponse\022\024\n\014scb_fd_inde" - "x\030\001 \001(\005\022\022\n\nsession_id\030\002 \001(\003\022\017\n\007user_id\030\003" - " \001(\005\022\020\n\010group_id\030\004 \001(\005\"\233\003\n\026CreatePublish" - "erRequest\022\024\n\014channel_name\030\001 \001(\t\022\021\n\tnum_s" - "lots\030\002 \001(\005\022\021\n\tslot_size\030\003 \001(\005\022\020\n\010is_loca" - "l\030\004 \001(\010\022\023\n\013is_reliable\030\005 \001(\010\022\021\n\tis_bridg" - "e\030\006 \001(\010\022\014\n\004type\030\007 \001(\014\022\025\n\ris_fixed_size\030\010" - " \001(\010\022\022\n\nfor_tunnel\030\017 \001(\010\022\013\n\003mux\030\t \001(\t\022\020\n" - "\010vchan_id\030\n \001(\005\022\031\n\021notify_retirement\030\013 \001" - "(\010\022\025\n\rchecksum_size\030\014 \001(\005\022\025\n\rmetadata_si" - "ze\030\r \001(\005\022\024\n\014publisher_id\030\016 \001(\005\022\031\n\021use_sp" - "lit_buffers\030\020 \001(\010\022\026\n\016max_publishers\030\021 \001(" - "\005\022!\n\031split_buffers_over_bridge\030\022 \001(\010\"\314\002\n" - "\027CreatePublisherResponse\022\r\n\005error\030\001 \001(\t\022" - "\022\n\nchannel_id\030\002 \001(\005\022\024\n\014publisher_id\030\003 \001(" - "\005\022\024\n\014ccb_fd_index\030\004 \001(\005\022\024\n\014bcb_fd_index\030" - "\005 \001(\005\022\031\n\021pub_poll_fd_index\030\006 \001(\005\022\034\n\024pub_" - "trigger_fd_index\030\007 \001(\005\022\036\n\026sub_trigger_fd" - "_indexes\030\010 \003(\005\022\027\n\017num_sub_updates\030\t \001(\005\022" - "\014\n\004type\030\n \001(\014\022\020\n\010vchan_id\030\013 \001(\005\022\033\n\023retir" - "ement_fd_index\030\016 \001(\005\022\035\n\025retirement_fd_in" - "dexes\030\017 \003(\005\"\314\001\n\027CreateSubscriberRequest\022" - "\024\n\014channel_name\030\001 \001(\t\022\025\n\rsubscriber_id\030\002" - " \001(\005\022\023\n\013is_reliable\030\003 \001(\010\022\021\n\tis_bridge\030\004" - " \001(\010\022\014\n\004type\030\005 \001(\014\022\033\n\023max_active_message" - "s\030\006 \001(\005\022\022\n\nfor_tunnel\030\t \001(\010\022\013\n\003mux\030\007 \001(\t" - "\022\020\n\010vchan_id\030\010 \001(\005\"\241\003\n\030CreateSubscriberR" - "esponse\022\r\n\005error\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001" - "(\005\022\025\n\rsubscriber_id\030\003 \001(\005\022\024\n\014ccb_fd_inde" - "x\030\004 \001(\005\022\024\n\014bcb_fd_index\030\005 \001(\005\022\030\n\020trigger" - "_fd_index\030\006 \001(\005\022\025\n\rpoll_fd_index\030\007 \001(\005\022\021" - "\n\tslot_size\030\010 \001(\005\022\021\n\tnum_slots\030\t \001(\005\022\'\n\037" - "reliable_pub_trigger_fd_indexes\030\n \003(\005\022\027\n" - "\017num_pub_updates\030\013 \001(\005\022\014\n\004type\030\014 \001(\014\022\020\n\010" - "vchan_id\030\r \001(\005\022\035\n\025retirement_fd_indexes\030" - "\016 \003(\005\022\025\n\rchecksum_size\030\017 \001(\005\022\025\n\rmetadata" - "_size\030\020 \001(\005\022\031\n\021use_split_buffers\030\021 \001(\010\"*" - "\n\022GetTriggersRequest\022\024\n\014channel_name\030\001 \001" - "(\t\"\214\001\n\023GetTriggersResponse\022\r\n\005error\030\001 \001(" - "\t\022\'\n\037reliable_pub_trigger_fd_indexes\030\002 \003" - "(\005\022\036\n\026sub_trigger_fd_indexes\030\003 \003(\005\022\035\n\025re" - "tirement_fd_indexes\030\004 \003(\005\"D\n\026RemovePubli" - "sherRequest\022\024\n\014channel_name\030\001 \001(\t\022\024\n\014pub" - "lisher_id\030\002 \001(\005\"(\n\027RemovePublisherRespon" - "se\022\r\n\005error\030\001 \001(\t\"F\n\027RemoveSubscriberReq" - "uest\022\024\n\014channel_name\030\001 \001(\t\022\025\n\rsubscriber" - "_id\030\002 \001(\005\")\n\030RemoveSubscriberResponse\022\r\n" - "\005error\030\001 \001(\t\"-\n\025GetChannelInfoRequest\022\024\n" - "\014channel_name\030\001 \001(\t\"U\n\026GetChannelInfoRes" - "ponse\022\r\n\005error\030\001 \001(\t\022,\n\010channels\030\002 \003(\0132\032" - ".subspace.ChannelInfoProto\".\n\026GetChannel" - "StatsRequest\022\024\n\014channel_name\030\001 \001(\t\"W\n\027Ge" - "tChannelStatsResponse\022\r\n\005error\030\001 \001(\t\022-\n\010" - "channels\030\002 \003(\0132\033.subspace.ChannelStatsPr" - "oto\"\353\002\n\037ClientBufferHandleMetadataProto\022" - "\024\n\014channel_name\030\001 \001(\t\022\022\n\nsession_id\030\002 \001(" - "\004\022\024\n\014buffer_index\030\003 \001(\r\022\017\n\007slot_id\030\004 \001(\r" - "\022\021\n\tis_prefix\030\005 \001(\010\022\021\n\tfull_size\030\006 \001(\004\022\027" - "\n\017allocation_size\030\007 \001(\004\022\016\n\006handle\030\010 \001(\004\022" - "\023\n\013shadow_file\030\t \001(\t\022\023\n\013object_name\030\n \001(" - "\t\022\021\n\tallocator\030\013 \001(\t\022\017\n\007pool_id\030\014 \001(\t\022\025\n" - "\rcache_enabled\030\r \001(\010\022\021\n\talignment\030\016 \001(\r\022" - "0\n\022allocator_metadata\030\017 \001(\0132\024.google.pro" - "tobuf.Any\"|\n\033RegisterClientBufferRequest" - "\022;\n\010metadata\030\001 \001(\0132).subspace.ClientBuff" - "erHandleMetadataProto\022\016\n\006has_fd\030\002 \001(\010\022\020\n" - "\010fd_index\030\003 \001(\005\"-\n\034RegisterClientBufferR" - "esponse\022\r\n\005error\030\001 \001(\t\"_\n\035UnregisterClie" - "ntBufferRequest\022\024\n\014channel_name\030\001 \001(\t\022\022\n" - "\nsession_id\030\002 \001(\004\022\024\n\014buffer_index\030\003 \001(\r\"" - "Y\n\027GetClientBuffersRequest\022\024\n\014channel_na" - "me\030\001 \001(\t\022\022\n\nsession_id\030\002 \001(\004\022\024\n\014buffer_i" - "ndex\030\003 \001(\r\"z\n\030GetClientBuffersResponse\022\r" - "\n\005error\030\001 \001(\t\022;\n\010metadata\030\002 \003(\0132).subspa" - "ce.ClientBufferHandleMetadataProto\022\022\n\nfd" - "_indexes\030\003 \003(\005\"\300\005\n\007Request\022%\n\004init\030\001 \001(\013" - "2\025.subspace.InitRequestH\000\022<\n\020create_publ" - "isher\030\002 \001(\0132 .subspace.CreatePublisherRe" - "questH\000\022>\n\021create_subscriber\030\003 \001(\0132!.sub" - "space.CreateSubscriberRequestH\000\0224\n\014get_t" - "riggers\030\004 \001(\0132\034.subspace.GetTriggersRequ" - "estH\000\022<\n\020remove_publisher\030\005 \001(\0132 .subspa" - "ce.RemovePublisherRequestH\000\022>\n\021remove_su" - "bscriber\030\006 \001(\0132!.subspace.RemoveSubscrib" - "erRequestH\000\022;\n\020get_channel_info\030\t \001(\0132\037." - "subspace.GetChannelInfoRequestH\000\022=\n\021get_" - "channel_stats\030\n \001(\0132 .subspace.GetChanne" - "lStatsRequestH\000\022G\n\026register_client_buffe" - "r\030\013 \001(\0132%.subspace.RegisterClientBufferR" - "equestH\000\022K\n\030unregister_client_buffer\030\014 \001" - "(\0132\'.subspace.UnregisterClientBufferRequ" - "estH\000\022\?\n\022get_client_buffers\030\r \001(\0132!.subs" - "pace.GetClientBuffersRequestH\000B\t\n\007reques" - "t\"\377\004\n\010Response\022&\n\004init\030\001 \001(\0132\026.subspace." - "InitResponseH\000\022=\n\020create_publisher\030\002 \001(\013" - "2!.subspace.CreatePublisherResponseH\000\022\?\n" - "\021create_subscriber\030\003 \001(\0132\".subspace.Crea" - "teSubscriberResponseH\000\0225\n\014get_triggers\030\004" - " \001(\0132\035.subspace.GetTriggersResponseH\000\022=\n" - "\020remove_publisher\030\005 \001(\0132!.subspace.Remov" - "ePublisherResponseH\000\022\?\n\021remove_subscribe" - "r\030\006 \001(\0132\".subspace.RemoveSubscriberRespo" - "nseH\000\022<\n\020get_channel_info\030\t \001(\0132 .subspa" - "ce.GetChannelInfoResponseH\000\022>\n\021get_chann" - "el_stats\030\n \001(\0132!.subspace.GetChannelStat" - "sResponseH\000\022@\n\022get_client_buffers\030\013 \001(\0132" - "\".subspace.GetClientBuffersResponseH\000\022H\n" - "\026register_client_buffer\030\014 \001(\0132&.subspace" - ".RegisterClientBufferResponseH\000B\n\n\010respo" - "nse\"\244\002\n\020ChannelInfoProto\022\014\n\004name\030\001 \001(\t\022\021" - "\n\tslot_size\030\002 \001(\005\022\021\n\tnum_slots\030\003 \001(\005\022\014\n\004" - "type\030\004 \001(\014\022\020\n\010num_pubs\030\005 \001(\005\022\020\n\010num_subs" - "\030\006 \001(\005\022\027\n\017num_bridge_pubs\030\007 \001(\005\022\027\n\017num_b" - "ridge_subs\030\010 \001(\005\022\023\n\013is_reliable\030\t \001(\010\022\027\n" - "\017num_tunnel_pubs\030\r \001(\005\022\027\n\017num_tunnel_sub" - "s\030\016 \001(\005\022\022\n\nis_virtual\030\n \001(\010\022\020\n\010vchan_id\030" - "\013 \001(\005\022\013\n\003mux\030\014 \001(\t\"S\n\020ChannelDirectory\022\021" - "\n\tserver_id\030\001 \001(\t\022,\n\010channels\030\002 \003(\0132\032.su" - "bspace.ChannelInfoProto\"\201\002\n\021ChannelStats" - "Proto\022\024\n\014channel_name\030\001 \001(\t\022\023\n\013total_byt" - "es\030\002 \001(\003\022\026\n\016total_messages\030\003 \001(\003\022\021\n\tslot" - "_size\030\004 \001(\005\022\021\n\tnum_slots\030\005 \001(\005\022\020\n\010num_pu" - "bs\030\006 \001(\005\022\020\n\010num_subs\030\007 \001(\005\022\030\n\020max_messag" - "e_size\030\010 \001(\r\022\023\n\013total_drops\030\t \001(\r\022\027\n\017num" - "_bridge_pubs\030\n \001(\005\022\027\n\017num_bridge_subs\030\013 " - "\001(\005\"a\n\nStatistics\022\021\n\tserver_id\030\001 \001(\t\022\021\n\t" - "timestamp\030\002 \001(\003\022-\n\010channels\030\003 \003(\0132\033.subs" - "pace.ChannelStatsProto\"/\n\016ChannelAddress" - "\022\017\n\007address\030\001 \001(\014\022\014\n\004port\030\002 \001(\005\"\222\002\n\nSubs" - "cribed\022\024\n\014channel_name\030\001 \001(\t\022\021\n\tslot_siz" - "e\030\002 \001(\005\022\021\n\tnum_slots\030\003 \001(\005\022\020\n\010reliable\030\004" - " \001(\010\022\031\n\021notify_retirement\030\005 \001(\010\0223\n\021retir" - "ement_socket\030\006 \001(\0132\030.subspace.ChannelAdd" - "ress\022\025\n\rchecksum_size\030\007 \001(\005\022\025\n\rmetadata_" - "size\030\010 \001(\005\022\025\n\rsplit_buffers\030\t \001(\010\022!\n\031spl" - "it_buffers_over_bridge\030\n \001(\010\")\n\026Retireme" - "ntNotification\022\017\n\007slot_id\030\001 \001(\005\"\257\003\n\tDisc" - "overy\022\021\n\tserver_id\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\022*" - "\n\005query\030\003 \001(\0132\031.subspace.Discovery.Query" - "H\000\0222\n\tadvertise\030\004 \001(\0132\035.subspace.Discove" - "ry.AdvertiseH\000\0222\n\tsubscribe\030\005 \001(\0132\035.subs" - "pace.Discovery.SubscribeH\000\032\035\n\005Query\022\024\n\014c" - "hannel_name\030\001 \001(\t\032e\n\tAdvertise\022\024\n\014channe" - "l_name\030\001 \001(\t\022\020\n\010reliable\030\002 \001(\010\022\031\n\021notify" - "_retirement\030\003 \001(\010\022\025\n\rsplit_buffers\030\004 \001(\010" - "\032_\n\tSubscribe\022\024\n\014channel_name\030\001 \001(\t\022*\n\010r" - "eceiver\030\002 \001(\0132\030.subspace.ChannelAddress\022" - "\020\n\010reliable\030\003 \001(\010B\006\n\004data\"\020\n\016RpcOpenRequ" - "est\"\263\003\n\017RpcOpenResponse\022\022\n\nsession_id\030\001 " - "\001(\005\0221\n\007methods\030\002 \003(\0132 .subspace.RpcOpenR" - "esponse.Method\022\021\n\tclient_id\030\003 \001(\004\032R\n\016Req" - "uestChannel\022\014\n\004name\030\001 \001(\t\022\021\n\tslot_size\030\002" - " \001(\005\022\021\n\tnum_slots\030\003 \001(\005\022\014\n\004type\030\004 \001(\t\032-\n" - "\017ResponseChannel\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002" - " \001(\t\032\302\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030\002 \001(" - "\005\022A\n\017request_channel\030\003 \001(\0132(.subspace.Rp" - "cOpenResponse.RequestChannel\022C\n\020response" - "_channel\030\004 \001(\0132).subspace.RpcOpenRespons" - "e.ResponseChannel\022\026\n\016cancel_channel\030\005 \001(" - "\t\"%\n\017RpcCloseRequest\022\022\n\nsession_id\030\001 \001(\005" - "\"\022\n\020RpcCloseResponse\"\232\001\n\020RpcServerReques" - "t\022\021\n\tclient_id\030\001 \001(\004\022\022\n\nrequest_id\030\002 \001(\005" - "\022(\n\004open\030\003 \001(\0132\030.subspace.RpcOpenRequest" - "H\000\022*\n\005close\030\004 \001(\0132\031.subspace.RpcCloseReq" - "uestH\000B\t\n\007request\"\255\001\n\021RpcServerResponse\022" - "\021\n\tclient_id\030\001 \001(\004\022\022\n\nrequest_id\030\002 \001(\005\022)" - "\n\004open\030\003 \001(\0132\031.subspace.RpcOpenResponseH" - "\000\022+\n\005close\030\004 \001(\0132\032.subspace.RpcCloseResp" - "onseH\000\022\r\n\005error\030\005 \001(\tB\n\n\010response\"\177\n\nRpc" - "Request\022\016\n\006method\030\001 \001(\005\022&\n\010argument\030\002 \001(" - "\0132\024.google.protobuf.Any\022\022\n\nsession_id\030\003 " - "\001(\005\022\022\n\nrequest_id\030\004 \001(\005\022\021\n\tclient_id\030\005 \001" - "(\004\"\244\001\n\013RpcResponse\022\r\n\005error\030\001 \001(\t\022$\n\006res" - "ult\030\002 \001(\0132\024.google.protobuf.Any\022\022\n\nsessi" - "on_id\030\003 \001(\005\022\022\n\nrequest_id\030\004 \001(\005\022\021\n\tclien" - "t_id\030\005 \001(\004\022\017\n\007is_last\030\006 \001(\010\022\024\n\014is_cancel" - "led\030\007 \001(\010\"M\n\020RpcCancelRequest\022\022\n\nsession" - "_id\030\001 \001(\005\022\022\n\nrequest_id\030\002 \001(\005\022\021\n\tclient_" - "id\030\003 \001(\004\"\032\n\nRawMessage\022\014\n\004data\030\001 \001(\014\"\r\n\013" - "VoidMessage\"\330\005\n\013ShadowEvent\022$\n\004init\030\001 \001(" - "\0132\024.subspace.ShadowInitH\000\0227\n\016create_chan" - "nel\030\002 \001(\0132\035.subspace.ShadowCreateChannel" - "H\000\0227\n\016remove_channel\030\003 \001(\0132\035.subspace.Sh" - "adowRemoveChannelH\000\0225\n\radd_publisher\030\004 \001" - "(\0132\034.subspace.ShadowAddPublisherH\000\022;\n\020re" - "move_publisher\030\005 \001(\0132\037.subspace.ShadowRe" - "movePublisherH\000\0227\n\016add_subscriber\030\006 \001(\0132" - "\035.subspace.ShadowAddSubscriberH\000\022=\n\021remo" - "ve_subscriber\030\007 \001(\0132 .subspace.ShadowRem" - "oveSubscriberH\000\022/\n\nstate_dump\030\010 \001(\0132\031.su" - "bspace.ShadowStateDumpH\000\022/\n\nstate_done\030\t" - " \001(\0132\031.subspace.ShadowStateDoneH\000\022F\n\026reg" - "ister_client_buffer\030\n \001(\0132$.subspace.Sha" - "dowRegisterClientBufferH\000\022J\n\030unregister_" - "client_buffer\030\013 \001(\0132&.subspace.ShadowUnr" - "egisterClientBufferH\000\022F\n\026update_channel_" - "options\030\014 \001(\0132$.subspace.ShadowUpdateCha" - "nnelOptionsH\000B\007\n\005event\" \n\nShadowInit\022\022\n\n" - "session_id\030\001 \001(\004\"\222\003\n\023ShadowCreateChannel" - "\022\024\n\014channel_name\030\001 \001(\t\022\022\n\nchannel_id\030\002 \001" - "(\005\022\021\n\tslot_size\030\003 \001(\005\022\021\n\tnum_slots\030\004 \001(\005" - "\022\014\n\004type\030\005 \001(\014\022\020\n\010is_local\030\006 \001(\010\022\023\n\013is_r" - "eliable\030\007 \001(\010\022\025\n\ris_fixed_size\030\010 \001(\010\022\025\n\r" - "checksum_size\030\t \001(\005\022\025\n\rmetadata_size\030\n \001" - "(\005\022\013\n\003mux\030\013 \001(\t\022\020\n\010vchan_id\030\014 \001(\005\022 \n\030has" - "_split_buffer_options\030\r \001(\010\022\031\n\021use_split" - "_buffers\030\016 \001(\010\022\032\n\022has_max_publishers\030\017 \001" - "(\010\022\026\n\016max_publishers\030\020 \001(\005\022!\n\031split_buff" - "ers_over_bridge\030\021 \001(\010\"\?\n\023ShadowRemoveCha" - "nnel\022\024\n\014channel_name\030\001 \001(\t\022\022\n\nchannel_id" - "\030\002 \001(\005\"\300\001\n\022ShadowAddPublisher\022\024\n\014channel" - "_name\030\001 \001(\t\022\024\n\014publisher_id\030\002 \001(\005\022\023\n\013is_" - "reliable\030\003 \001(\010\022\020\n\010is_local\030\004 \001(\010\022\021\n\tis_b" - "ridge\030\005 \001(\010\022\025\n\ris_fixed_size\030\006 \001(\010\022\031\n\021no" - "tify_retirement\030\007 \001(\010\022\022\n\nfor_tunnel\030\010 \001(" - "\010\"C\n\025ShadowRemovePublisher\022\024\n\014channel_na" - "me\030\001 \001(\t\022\024\n\014publisher_id\030\002 \001(\005\"\233\001\n\023Shado" - "wAddSubscriber\022\024\n\014channel_name\030\001 \001(\t\022\025\n\r" - "subscriber_id\030\002 \001(\005\022\023\n\013is_reliable\030\003 \001(\010" - "\022\021\n\tis_bridge\030\004 \001(\010\022\033\n\023max_active_messag" - "es\030\005 \001(\005\022\022\n\nfor_tunnel\030\006 \001(\010\"E\n\026ShadowRe" - "moveSubscriber\022\024\n\014channel_name\030\001 \001(\t\022\025\n\r" - "subscriber_id\030\002 \001(\005\";\n\017ShadowStateDump\022\022" - "\n\nsession_id\030\001 \001(\004\022\024\n\014num_channels\030\002 \001(\005" - "\"\021\n\017ShadowStateDone\"{\n\032ShadowRegisterCli" - "entBuffer\022;\n\010metadata\030\001 \001(\0132).subspace.C" - "lientBufferHandleMetadataProto\022\016\n\006has_fd" - "\030\002 \001(\010\022\020\n\010fd_index\030\003 \001(\005\"^\n\034ShadowUnregi" - "sterClientBuffer\022\024\n\014channel_name\030\001 \001(\t\022\022" - "\n\nsession_id\030\002 \001(\004\022\024\n\014buffer_index\030\003 \001(\r" - "\"\306\001\n\032ShadowUpdateChannelOptions\022\024\n\014chann" - "el_name\030\001 \001(\t\022 \n\030has_split_buffer_option" - "s\030\002 \001(\010\022\031\n\021use_split_buffers\030\003 \001(\010\022\032\n\022ha" - "s_max_publishers\030\004 \001(\010\022\026\n\016max_publishers" - "\030\005 \001(\005\022!\n\031split_buffers_over_bridge\030\006 \001(" - "\010b\006proto3" -}; -static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const - descriptor_table_subspace_2eproto_deps[1] = { - &::descriptor_table_google_2fprotobuf_2fany_2eproto, -}; -static ::absl::once_flag descriptor_table_subspace_2eproto_once; -PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_subspace_2eproto = { - false, - false, - 9489, - descriptor_table_protodef_subspace_2eproto, - "subspace.proto", - &descriptor_table_subspace_2eproto_once, - descriptor_table_subspace_2eproto_deps, - 1, - 62, - schemas, - file_default_instances, - TableStruct_subspace_2eproto::offsets, - file_level_enum_descriptors_subspace_2eproto, - file_level_service_descriptors_subspace_2eproto, -}; -namespace subspace { -// =================================================================== - -class InitRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InitRequest, _impl_._has_bits_); -}; - -InitRequest::InitRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, InitRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.InitRequest) -} -PROTOBUF_NDEBUG_INLINE InitRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::InitRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - client_name_(arena, from.client_name_) {} - -InitRequest::InitRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const InitRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, InitRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - InitRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.InitRequest) -} -PROTOBUF_NDEBUG_INLINE InitRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - client_name_(arena) {} - -inline void InitRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -InitRequest::~InitRequest() { - // @@protoc_insertion_point(destructor:subspace.InitRequest) - SharedDtor(*this); -} -inline void InitRequest::SharedDtor(MessageLite& self) { - InitRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.client_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL InitRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) InitRequest(arena); -} -constexpr auto InitRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(InitRequest), - alignof(InitRequest)); -} -constexpr auto InitRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_InitRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &InitRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &InitRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &InitRequest::ByteSizeLong, - &InitRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(InitRequest, _impl_._cached_size_), - false, - }, - &InitRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull InitRequest_class_data_ = - InitRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -InitRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&InitRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(InitRequest_class_data_.tc_table); - return InitRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 40, 2> -InitRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(InitRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - InitRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::InitRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string client_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(InitRequest, _impl_.client_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string client_name = 1; - {PROTOBUF_FIELD_OFFSET(InitRequest, _impl_.client_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\24\13\0\0\0\0\0\0" - "subspace.InitRequest" - "client_name" - }}, -}; -PROTOBUF_NOINLINE void InitRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.InitRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.client_name_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL InitRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const InitRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL InitRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const InitRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.InitRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string client_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_client_name().empty()) { - const ::std::string& _s = this_._internal_client_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.InitRequest.client_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.InitRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t InitRequest::ByteSizeLong(const MessageLite& base) { - const InitRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t InitRequest::ByteSizeLong() const { - const InitRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.InitRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string client_name = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_client_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_client_name()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void InitRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.InitRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_client_name().empty()) { - _this->_internal_set_client_name(from._internal_client_name()); - } else { - if (_this->_impl_.client_name_.IsDefault()) { - _this->_internal_set_client_name(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void InitRequest::CopyFrom(const InitRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.InitRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void InitRequest::InternalSwap(InitRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.client_name_, &other->_impl_.client_name_, arena); -} - -::google::protobuf::Metadata InitRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class InitResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InitResponse, _impl_._has_bits_); -}; - -InitResponse::InitResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, InitResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.InitResponse) -} -InitResponse::InitResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, InitResponse_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE InitResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void InitResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - 0, - offsetof(Impl_, group_id_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::group_id_)); -} -InitResponse::~InitResponse() { - // @@protoc_insertion_point(destructor:subspace.InitResponse) - SharedDtor(*this); -} -inline void InitResponse::SharedDtor(MessageLite& self) { - InitResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL InitResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) InitResponse(arena); -} -constexpr auto InitResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(InitResponse), - alignof(InitResponse)); -} -constexpr auto InitResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_InitResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &InitResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &InitResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &InitResponse::ByteSizeLong, - &InitResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_._cached_size_), - false, - }, - &InitResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull InitResponse_class_data_ = - InitResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -InitResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&InitResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(InitResponse_class_data_.tc_table); - return InitResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> -InitResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - InitResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::InitResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 group_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.group_id_), 3>(), - {32, 3, 0, - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_)}}, - // int32 scb_fd_index = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.scb_fd_index_), 1>(), - {8, 1, 0, - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.scb_fd_index_)}}, - // int64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(InitResponse, _impl_.session_id_), 0>(), - {16, 0, 0, - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.session_id_)}}, - // int32 user_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(InitResponse, _impl_.user_id_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.user_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 scb_fd_index = 1; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.scb_fd_index_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int32 user_id = 3; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.user_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 group_id = 4; - {PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void InitResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.InitResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.group_id_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.group_id_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL InitResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const InitResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL InitResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const InitResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.InitResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // int32 scb_fd_index = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_scb_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_scb_fd_index(), target); - } - } - - // int64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( - stream, this_._internal_session_id(), target); - } - } - - // int32 user_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_user_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_user_id(), target); - } - } - - // int32 group_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_group_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( - stream, this_._internal_group_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.InitResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t InitResponse::ByteSizeLong(const MessageLite& base) { - const InitResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t InitResponse::ByteSizeLong() const { - const InitResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.InitResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // int64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_session_id()); - } - } - // int32 scb_fd_index = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_scb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_scb_fd_index()); - } - } - // int32 user_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_user_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_user_id()); - } - } - // int32 group_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_group_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_group_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void InitResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.InitResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_scb_fd_index() != 0) { - _this->_impl_.scb_fd_index_ = from._impl_.scb_fd_index_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_user_id() != 0) { - _this->_impl_.user_id_ = from._impl_.user_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_group_id() != 0) { - _this->_impl_.group_id_ = from._impl_.group_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void InitResponse::CopyFrom(const InitResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.InitResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void InitResponse::InternalSwap(InitResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.group_id_) - + sizeof(InitResponse::_impl_.group_id_) - - PROTOBUF_FIELD_OFFSET(InitResponse, _impl_.session_id_)>( - reinterpret_cast(&_impl_.session_id_), - reinterpret_cast(&other->_impl_.session_id_)); -} - -::google::protobuf::Metadata InitResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class CreatePublisherRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_._has_bits_); -}; - -CreatePublisherRequest::CreatePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreatePublisherRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.CreatePublisherRequest) -} -PROTOBUF_NDEBUG_INLINE CreatePublisherRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::CreatePublisherRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_), - type_(arena, from.type_), - mux_(arena, from.mux_) {} - -CreatePublisherRequest::CreatePublisherRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const CreatePublisherRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreatePublisherRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - CreatePublisherRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, num_slots_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, num_slots_), - offsetof(Impl_, max_publishers_) - - offsetof(Impl_, num_slots_) + - sizeof(Impl_::max_publishers_)); - - // @@protoc_insertion_point(copy_constructor:subspace.CreatePublisherRequest) -} -PROTOBUF_NDEBUG_INLINE CreatePublisherRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena), - type_(arena), - mux_(arena) {} - -inline void CreatePublisherRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, num_slots_), - 0, - offsetof(Impl_, max_publishers_) - - offsetof(Impl_, num_slots_) + - sizeof(Impl_::max_publishers_)); -} -CreatePublisherRequest::~CreatePublisherRequest() { - // @@protoc_insertion_point(destructor:subspace.CreatePublisherRequest) - SharedDtor(*this); -} -inline void CreatePublisherRequest::SharedDtor(MessageLite& self) { - CreatePublisherRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.mux_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL CreatePublisherRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) CreatePublisherRequest(arena); -} -constexpr auto CreatePublisherRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CreatePublisherRequest), - alignof(CreatePublisherRequest)); -} -constexpr auto CreatePublisherRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_CreatePublisherRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreatePublisherRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreatePublisherRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreatePublisherRequest::ByteSizeLong, - &CreatePublisherRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_._cached_size_), - false, - }, - &CreatePublisherRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull CreatePublisherRequest_class_data_ = - CreatePublisherRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -CreatePublisherRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&CreatePublisherRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(CreatePublisherRequest_class_data_.tc_table); - return CreatePublisherRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 18, 0, 71, 2> -CreatePublisherRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_._has_bits_), - 0, // no _extensions_ - 18, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294705152, // skipmap - offsetof(decltype(_table_), field_entries), - 18, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - CreatePublisherRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::CreatePublisherRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.channel_name_)}}, - // int32 num_slots = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.num_slots_), 3>(), - {16, 3, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.num_slots_)}}, - // int32 slot_size = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.slot_size_), 4>(), - {24, 4, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.slot_size_)}}, - // bool is_local = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 5, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_local_)}}, - // bool is_reliable = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 6, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_reliable_)}}, - // bool is_bridge = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 7, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_bridge_)}}, - // bytes type = 7; - {::_pbi::TcParser::FastBS1, - {58, 1, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.type_)}}, - // bool is_fixed_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 8, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_fixed_size_)}}, - // string mux = 9; - {::_pbi::TcParser::FastUS1, - {74, 2, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.mux_)}}, - // int32 vchan_id = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.vchan_id_), 9>(), - {80, 9, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.vchan_id_)}}, - // bool notify_retirement = 11; - {::_pbi::TcParser::SingularVarintNoZag1(), - {88, 13, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.notify_retirement_)}}, - // int32 checksum_size = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.checksum_size_), 10>(), - {96, 10, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.checksum_size_)}}, - // int32 metadata_size = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.metadata_size_), 11>(), - {104, 11, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.metadata_size_)}}, - // int32 publisher_id = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherRequest, _impl_.publisher_id_), 12>(), - {112, 12, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.publisher_id_)}}, - // bool for_tunnel = 15; - {::_pbi::TcParser::SingularVarintNoZag1(), - {120, 14, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.for_tunnel_)}}, - // bool use_split_buffers = 16; - {::_pbi::TcParser::FastV8S2, - {384, 15, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.use_split_buffers_)}}, - // int32 max_publishers = 17; - {::_pbi::TcParser::FastV32S2, - {392, 17, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.max_publishers_)}}, - // bool split_buffers_over_bridge = 18; - {::_pbi::TcParser::FastV8S2, - {400, 16, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.split_buffers_over_bridge_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 num_slots = 2; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.num_slots_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 slot_size = 3; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.slot_size_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool is_local = 4; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_local_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_reliable = 5; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_reliable_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_bridge = 6; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_bridge_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bytes type = 7; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool is_fixed_size = 8; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.is_fixed_size_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // string mux = 9; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 vchan_id = 10; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.vchan_id_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool notify_retirement = 11; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 checksum_size = 12; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.checksum_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 metadata_size = 13; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.metadata_size_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 publisher_id = 14; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.publisher_id_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool for_tunnel = 15; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool use_split_buffers = 16; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 max_publishers = 17; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.max_publishers_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool split_buffers_over_bridge = 18; - {PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\37\14\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "subspace.CreatePublisherRequest" - "channel_name" - "mux" - }}, -}; -PROTOBUF_NOINLINE void CreatePublisherRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.CreatePublisherRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.mux_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { - ::memset(&_impl_.num_slots_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_bridge_) - - reinterpret_cast(&_impl_.num_slots_)) + sizeof(_impl_.is_bridge_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - ::memset(&_impl_.is_fixed_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.use_split_buffers_) - - reinterpret_cast(&_impl_.is_fixed_size_)) + sizeof(_impl_.use_split_buffers_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) { - ::memset(&_impl_.split_buffers_over_bridge_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_publishers_) - - reinterpret_cast(&_impl_.split_buffers_over_bridge_)) + sizeof(_impl_.max_publishers_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL CreatePublisherRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const CreatePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL CreatePublisherRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const CreatePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreatePublisherRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 num_slots = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_num_slots() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_num_slots(), target); - } - } - - // int32 slot_size = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_slot_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_slot_size(), target); - } - } - - // bool is_local = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_local() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_local(), target); - } - } - - // bool is_reliable = 5; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_is_reliable(), target); - } - } - - // bool is_bridge = 6; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_bridge(), target); - } - } - - // bytes type = 7; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - } - } - - // bool is_fixed_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_is_fixed_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this_._internal_is_fixed_size(), target); - } - } - - // string mux = 9; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - const ::std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherRequest.mux"); - target = stream->WriteStringMaybeAliased(9, _s, target); - } - } - - // int32 vchan_id = 10; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_vchan_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( - stream, this_._internal_vchan_id(), target); - } - } - - // bool notify_retirement = 11; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 11, this_._internal_notify_retirement(), target); - } - } - - // int32 checksum_size = 12; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_checksum_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>( - stream, this_._internal_checksum_size(), target); - } - } - - // int32 metadata_size = 13; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_metadata_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>( - stream, this_._internal_metadata_size(), target); - } - } - - // int32 publisher_id = 14; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_publisher_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( - stream, this_._internal_publisher_id(), target); - } - } - - // bool for_tunnel = 15; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 15, this_._internal_for_tunnel(), target); - } - } - - // bool use_split_buffers = 16; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 16, this_._internal_use_split_buffers(), target); - } - } - - // int32 max_publishers = 17; - if (CheckHasBit(cached_has_bits, 0x00020000U)) { - if (this_._internal_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 17, this_._internal_max_publishers(), target); - } - } - - // bool split_buffers_over_bridge = 18; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 18, this_._internal_split_buffers_over_bridge(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreatePublisherRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t CreatePublisherRequest::ByteSizeLong(const MessageLite& base) { - const CreatePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t CreatePublisherRequest::ByteSizeLong() const { - const CreatePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreatePublisherRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // bytes type = 7; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - } - // string mux = 9; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - } - // int32 num_slots = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - // int32 slot_size = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - } - // bool is_local = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_local() != 0) { - total_size += 2; - } - } - // bool is_reliable = 5; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - } - // bool is_bridge = 6; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - // bool is_fixed_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_is_fixed_size() != 0) { - total_size += 2; - } - } - // int32 vchan_id = 10; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - } - // int32 checksum_size = 12; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - } - // int32 metadata_size = 13; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_metadata_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_metadata_size()); - } - } - // int32 publisher_id = 14; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - } - // bool notify_retirement = 11; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - } - // bool for_tunnel = 15; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - } - // bool use_split_buffers = 16; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (this_._internal_use_split_buffers() != 0) { - total_size += 3; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) { - // bool split_buffers_over_bridge = 18; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 3; - } - } - // int32 max_publishers = 17; - if (CheckHasBit(cached_has_bits, 0x00020000U)) { - if (this_._internal_max_publishers() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_max_publishers()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void CreatePublisherRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreatePublisherRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); - } else { - if (_this->_impl_.mux_.IsDefault()) { - _this->_internal_set_mux(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_is_local() != 0) { - _this->_impl_.is_local_ = from._impl_.is_local_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_is_fixed_size() != 0) { - _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; - } - } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; - } - } - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00030000U)) { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; - } - } - if (CheckHasBit(cached_has_bits, 0x00020000U)) { - if (from._internal_max_publishers() != 0) { - _this->_impl_.max_publishers_ = from._impl_.max_publishers_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void CreatePublisherRequest::CopyFrom(const CreatePublisherRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreatePublisherRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void CreatePublisherRequest::InternalSwap(CreatePublisherRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.max_publishers_) - + sizeof(CreatePublisherRequest::_impl_.max_publishers_) - - PROTOBUF_FIELD_OFFSET(CreatePublisherRequest, _impl_.num_slots_)>( - reinterpret_cast(&_impl_.num_slots_), - reinterpret_cast(&other->_impl_.num_slots_)); -} - -::google::protobuf::Metadata CreatePublisherRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class CreatePublisherResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_._has_bits_); -}; - -CreatePublisherResponse::CreatePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreatePublisherResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.CreatePublisherResponse) -} -PROTOBUF_NDEBUG_INLINE CreatePublisherResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::CreatePublisherResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - sub_trigger_fd_indexes_{visibility, arena, from.sub_trigger_fd_indexes_}, - _sub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{visibility, arena, from.retirement_fd_indexes_}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena, from.error_), - type_(arena, from.type_) {} - -CreatePublisherResponse::CreatePublisherResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const CreatePublisherResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreatePublisherResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - CreatePublisherResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, channel_id_), - offsetof(Impl_, retirement_fd_index_) - - offsetof(Impl_, channel_id_) + - sizeof(Impl_::retirement_fd_index_)); - - // @@protoc_insertion_point(copy_constructor:subspace.CreatePublisherResponse) -} -PROTOBUF_NDEBUG_INLINE CreatePublisherResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - sub_trigger_fd_indexes_{visibility, arena}, - _sub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{visibility, arena}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena), - type_(arena) {} - -inline void CreatePublisherResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_id_), - 0, - offsetof(Impl_, retirement_fd_index_) - - offsetof(Impl_, channel_id_) + - sizeof(Impl_::retirement_fd_index_)); -} -CreatePublisherResponse::~CreatePublisherResponse() { - // @@protoc_insertion_point(destructor:subspace.CreatePublisherResponse) - SharedDtor(*this); -} -inline void CreatePublisherResponse::SharedDtor(MessageLite& self) { - CreatePublisherResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL CreatePublisherResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) CreatePublisherResponse(arena); -} -constexpr auto CreatePublisherResponse::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_) + - decltype(CreatePublisherResponse::_impl_.sub_trigger_fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_indexes_) + - decltype(CreatePublisherResponse::_impl_.retirement_fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(CreatePublisherResponse), alignof(CreatePublisherResponse), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&CreatePublisherResponse::PlacementNew_, - sizeof(CreatePublisherResponse), - alignof(CreatePublisherResponse)); - } -} -constexpr auto CreatePublisherResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_CreatePublisherResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreatePublisherResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreatePublisherResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreatePublisherResponse::ByteSizeLong, - &CreatePublisherResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_._cached_size_), - false, - }, - &CreatePublisherResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull CreatePublisherResponse_class_data_ = - CreatePublisherResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -CreatePublisherResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&CreatePublisherResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(CreatePublisherResponse_class_data_.tc_table); - return CreatePublisherResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 13, 0, 54, 2> -CreatePublisherResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_._has_bits_), - 0, // no _extensions_ - 15, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294940672, // skipmap - offsetof(decltype(_table_), field_entries), - 13, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - CreatePublisherResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::CreatePublisherResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 2, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.error_)}}, - // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.channel_id_), 4>(), - {16, 4, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.channel_id_)}}, - // int32 publisher_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.publisher_id_), 5>(), - {24, 5, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.publisher_id_)}}, - // int32 ccb_fd_index = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.ccb_fd_index_), 6>(), - {32, 6, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.ccb_fd_index_)}}, - // int32 bcb_fd_index = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.bcb_fd_index_), 7>(), - {40, 7, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.bcb_fd_index_)}}, - // int32 pub_poll_fd_index = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.pub_poll_fd_index_), 8>(), - {48, 8, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_poll_fd_index_)}}, - // int32 pub_trigger_fd_index = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.pub_trigger_fd_index_), 9>(), - {56, 9, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_trigger_fd_index_)}}, - // repeated int32 sub_trigger_fd_indexes = 8; - {::_pbi::TcParser::FastV32P1, - {66, 0, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_)}}, - // int32 num_sub_updates = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.num_sub_updates_), 10>(), - {72, 10, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.num_sub_updates_)}}, - // bytes type = 10; - {::_pbi::TcParser::FastBS1, - {82, 3, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.type_)}}, - // int32 vchan_id = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.vchan_id_), 11>(), - {88, 11, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.vchan_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // int32 retirement_fd_index = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreatePublisherResponse, _impl_.retirement_fd_index_), 12>(), - {112, 12, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_index_)}}, - // repeated int32 retirement_fd_indexes = 15; - {::_pbi::TcParser::FastV32P1, - {122, 1, 0, - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_indexes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.error_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.channel_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 publisher_id = 3; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.publisher_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 ccb_fd_index = 4; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.ccb_fd_index_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 bcb_fd_index = 5; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.bcb_fd_index_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 pub_poll_fd_index = 6; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_poll_fd_index_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 pub_trigger_fd_index = 7; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.pub_trigger_fd_index_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // repeated int32 sub_trigger_fd_indexes = 8; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.sub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // int32 num_sub_updates = 9; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.num_sub_updates_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bytes type = 10; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // int32 vchan_id = 11; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.vchan_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 retirement_fd_index = 14; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_index_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // repeated int32 retirement_fd_indexes = 15; - {PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - }}, - // no aux_entries - {{ - "\40\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "subspace.CreatePublisherResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void CreatePublisherResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.CreatePublisherResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.sub_trigger_fd_indexes_.Clear(); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _impl_.retirement_fd_indexes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { - ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.bcb_fd_index_) - - reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.bcb_fd_index_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { - ::memset(&_impl_.pub_poll_fd_index_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.retirement_fd_index_) - - reinterpret_cast(&_impl_.pub_poll_fd_index_)) + sizeof(_impl_.retirement_fd_index_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL CreatePublisherResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const CreatePublisherResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL CreatePublisherResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const CreatePublisherResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreatePublisherResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreatePublisherResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_channel_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - } - - // int32 publisher_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_publisher_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_publisher_id(), target); - } - } - - // int32 ccb_fd_index = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_ccb_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( - stream, this_._internal_ccb_fd_index(), target); - } - } - - // int32 bcb_fd_index = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_bcb_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( - stream, this_._internal_bcb_fd_index(), target); - } - } - - // int32 pub_poll_fd_index = 6; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_pub_poll_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( - stream, this_._internal_pub_poll_fd_index(), target); - } - } - - // int32 pub_trigger_fd_index = 7; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_pub_trigger_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( - stream, this_._internal_pub_trigger_fd_index(), target); - } - } - - // repeated int32 sub_trigger_fd_indexes = 8; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - { - int byte_size = this_._impl_._sub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 8, this_._internal_sub_trigger_fd_indexes(), byte_size, target); - } - } - } - - // int32 num_sub_updates = 9; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_num_sub_updates() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( - stream, this_._internal_num_sub_updates(), target); - } - } - - // bytes type = 10; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(10, _s, target); - } - } - - // int32 vchan_id = 11; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_vchan_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( - stream, this_._internal_vchan_id(), target); - } - } - - // int32 retirement_fd_index = 14; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_retirement_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( - stream, this_._internal_retirement_fd_index(), target); - } - } - - // repeated int32 retirement_fd_indexes = 15; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - { - int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 15, this_._internal_retirement_fd_indexes(), byte_size, target); - } - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreatePublisherResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t CreatePublisherResponse::ByteSizeLong(const MessageLite& base) { - const CreatePublisherResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t CreatePublisherResponse::ByteSizeLong() const { - const CreatePublisherResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreatePublisherResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // repeated int32 sub_trigger_fd_indexes = 8; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_sub_trigger_fd_indexes(), 1, - this_._impl_._sub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 retirement_fd_indexes = 15; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_retirement_fd_indexes(), 1, - this_._impl_._retirement_fd_indexes_cached_byte_size_); - } - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - // bytes type = 10; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - } - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - } - // int32 publisher_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - } - // int32 ccb_fd_index = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_ccb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_ccb_fd_index()); - } - } - // int32 bcb_fd_index = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_bcb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_bcb_fd_index()); - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { - // int32 pub_poll_fd_index = 6; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_pub_poll_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_pub_poll_fd_index()); - } - } - // int32 pub_trigger_fd_index = 7; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_pub_trigger_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_pub_trigger_fd_index()); - } - } - // int32 num_sub_updates = 9; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_num_sub_updates() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_sub_updates()); - } - } - // int32 vchan_id = 11; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - } - // int32 retirement_fd_index = 14; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_retirement_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_retirement_fd_index()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void CreatePublisherResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreatePublisherResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_sub_trigger_fd_indexes()->MergeFrom(from._internal_sub_trigger_fd_indexes()); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_ccb_fd_index() != 0) { - _this->_impl_.ccb_fd_index_ = from._impl_.ccb_fd_index_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_bcb_fd_index() != 0) { - _this->_impl_.bcb_fd_index_ = from._impl_.bcb_fd_index_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00001f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_pub_poll_fd_index() != 0) { - _this->_impl_.pub_poll_fd_index_ = from._impl_.pub_poll_fd_index_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_pub_trigger_fd_index() != 0) { - _this->_impl_.pub_trigger_fd_index_ = from._impl_.pub_trigger_fd_index_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (from._internal_num_sub_updates() != 0) { - _this->_impl_.num_sub_updates_ = from._impl_.num_sub_updates_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (from._internal_retirement_fd_index() != 0) { - _this->_impl_.retirement_fd_index_ = from._impl_.retirement_fd_index_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void CreatePublisherResponse::CopyFrom(const CreatePublisherResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreatePublisherResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void CreatePublisherResponse::InternalSwap(CreatePublisherResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.sub_trigger_fd_indexes_.InternalSwap(&other->_impl_.sub_trigger_fd_indexes_); - _impl_.retirement_fd_indexes_.InternalSwap(&other->_impl_.retirement_fd_indexes_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.retirement_fd_index_) - + sizeof(CreatePublisherResponse::_impl_.retirement_fd_index_) - - PROTOBUF_FIELD_OFFSET(CreatePublisherResponse, _impl_.channel_id_)>( - reinterpret_cast(&_impl_.channel_id_), - reinterpret_cast(&other->_impl_.channel_id_)); -} - -::google::protobuf::Metadata CreatePublisherResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class CreateSubscriberRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_._has_bits_); -}; - -CreateSubscriberRequest::CreateSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreateSubscriberRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.CreateSubscriberRequest) -} -PROTOBUF_NDEBUG_INLINE CreateSubscriberRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::CreateSubscriberRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_), - type_(arena, from.type_), - mux_(arena, from.mux_) {} - -CreateSubscriberRequest::CreateSubscriberRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const CreateSubscriberRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreateSubscriberRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - CreateSubscriberRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, subscriber_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, subscriber_id_), - offsetof(Impl_, vchan_id_) - - offsetof(Impl_, subscriber_id_) + - sizeof(Impl_::vchan_id_)); - - // @@protoc_insertion_point(copy_constructor:subspace.CreateSubscriberRequest) -} -PROTOBUF_NDEBUG_INLINE CreateSubscriberRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena), - type_(arena), - mux_(arena) {} - -inline void CreateSubscriberRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, subscriber_id_), - 0, - offsetof(Impl_, vchan_id_) - - offsetof(Impl_, subscriber_id_) + - sizeof(Impl_::vchan_id_)); -} -CreateSubscriberRequest::~CreateSubscriberRequest() { - // @@protoc_insertion_point(destructor:subspace.CreateSubscriberRequest) - SharedDtor(*this); -} -inline void CreateSubscriberRequest::SharedDtor(MessageLite& self) { - CreateSubscriberRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.mux_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL CreateSubscriberRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) CreateSubscriberRequest(arena); -} -constexpr auto CreateSubscriberRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CreateSubscriberRequest), - alignof(CreateSubscriberRequest)); -} -constexpr auto CreateSubscriberRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_CreateSubscriberRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreateSubscriberRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreateSubscriberRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreateSubscriberRequest::ByteSizeLong, - &CreateSubscriberRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_._cached_size_), - false, - }, - &CreateSubscriberRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull CreateSubscriberRequest_class_data_ = - CreateSubscriberRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -CreateSubscriberRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&CreateSubscriberRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(CreateSubscriberRequest_class_data_.tc_table); - return CreateSubscriberRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 9, 0, 64, 2> -CreateSubscriberRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_._has_bits_), - 0, // no _extensions_ - 9, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966784, // skipmap - offsetof(decltype(_table_), field_entries), - 9, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - CreateSubscriberRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::CreateSubscriberRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.channel_name_)}}, - // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.subscriber_id_), 3>(), - {16, 3, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_)}}, - // bool is_reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 4, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_reliable_)}}, - // bool is_bridge = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 5, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_bridge_)}}, - // bytes type = 5; - {::_pbi::TcParser::FastBS1, - {42, 1, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.type_)}}, - // int32 max_active_messages = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.max_active_messages_), 7>(), - {48, 7, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.max_active_messages_)}}, - // string mux = 7; - {::_pbi::TcParser::FastUS1, - {58, 2, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.mux_)}}, - // int32 vchan_id = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberRequest, _impl_.vchan_id_), 8>(), - {64, 8, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_)}}, - // bool for_tunnel = 9; - {::_pbi::TcParser::SingularVarintNoZag1(), - {72, 6, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.for_tunnel_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool is_reliable = 3; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_reliable_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_bridge = 4; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.is_bridge_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bytes type = 5; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // int32 max_active_messages = 6; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.max_active_messages_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // string mux = 7; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 vchan_id = 8; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool for_tunnel = 9; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\40\14\0\0\0\0\0\3\0\0\0\0\0\0\0\0" - "subspace.CreateSubscriberRequest" - "channel_name" - "mux" - }}, -}; -PROTOBUF_NOINLINE void CreateSubscriberRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.CreateSubscriberRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.mux_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { - ::memset(&_impl_.subscriber_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_active_messages_) - - reinterpret_cast(&_impl_.subscriber_id_)) + sizeof(_impl_.max_active_messages_)); - } - _impl_.vchan_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL CreateSubscriberRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const CreateSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL CreateSubscriberRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const CreateSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreateSubscriberRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_subscriber_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - } - - // bool is_reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_is_reliable(), target); - } - } - - // bool is_bridge = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_bridge(), target); - } - } - - // bytes type = 5; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - } - - // int32 max_active_messages = 6; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_max_active_messages() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( - stream, this_._internal_max_active_messages(), target); - } - } - - // string mux = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - const ::std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberRequest.mux"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - } - - // int32 vchan_id = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_vchan_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( - stream, this_._internal_vchan_id(), target); - } - } - - // bool for_tunnel = 9; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 9, this_._internal_for_tunnel(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreateSubscriberRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t CreateSubscriberRequest::ByteSizeLong(const MessageLite& base) { - const CreateSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t CreateSubscriberRequest::ByteSizeLong() const { - const CreateSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreateSubscriberRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // bytes type = 5; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - } - // string mux = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - } - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - } - // bool is_reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - } - // bool is_bridge = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - } - // bool for_tunnel = 9; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - } - // int32 max_active_messages = 6; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_max_active_messages() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_max_active_messages()); - } - } - } - { - // int32 vchan_id = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void CreateSubscriberRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreateSubscriberRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); - } else { - if (_this->_impl_.mux_.IsDefault()) { - _this->_internal_set_mux(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_max_active_messages() != 0) { - _this->_impl_.max_active_messages_ = from._impl_.max_active_messages_; - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void CreateSubscriberRequest::CopyFrom(const CreateSubscriberRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreateSubscriberRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void CreateSubscriberRequest::InternalSwap(CreateSubscriberRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.vchan_id_) - + sizeof(CreateSubscriberRequest::_impl_.vchan_id_) - - PROTOBUF_FIELD_OFFSET(CreateSubscriberRequest, _impl_.subscriber_id_)>( - reinterpret_cast(&_impl_.subscriber_id_), - reinterpret_cast(&other->_impl_.subscriber_id_)); -} - -::google::protobuf::Metadata CreateSubscriberRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class CreateSubscriberResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_._has_bits_); -}; - -CreateSubscriberResponse::CreateSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreateSubscriberResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.CreateSubscriberResponse) -} -PROTOBUF_NDEBUG_INLINE CreateSubscriberResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::CreateSubscriberResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - reliable_pub_trigger_fd_indexes_{visibility, arena, from.reliable_pub_trigger_fd_indexes_}, - _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{visibility, arena, from.retirement_fd_indexes_}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena, from.error_), - type_(arena, from.type_) {} - -CreateSubscriberResponse::CreateSubscriberResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const CreateSubscriberResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CreateSubscriberResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - CreateSubscriberResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, channel_id_), - offsetof(Impl_, use_split_buffers_) - - offsetof(Impl_, channel_id_) + - sizeof(Impl_::use_split_buffers_)); - - // @@protoc_insertion_point(copy_constructor:subspace.CreateSubscriberResponse) -} -PROTOBUF_NDEBUG_INLINE CreateSubscriberResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - reliable_pub_trigger_fd_indexes_{visibility, arena}, - _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{visibility, arena}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena), - type_(arena) {} - -inline void CreateSubscriberResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_id_), - 0, - offsetof(Impl_, use_split_buffers_) - - offsetof(Impl_, channel_id_) + - sizeof(Impl_::use_split_buffers_)); -} -CreateSubscriberResponse::~CreateSubscriberResponse() { - // @@protoc_insertion_point(destructor:subspace.CreateSubscriberResponse) - SharedDtor(*this); -} -inline void CreateSubscriberResponse::SharedDtor(MessageLite& self) { - CreateSubscriberResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL CreateSubscriberResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) CreateSubscriberResponse(arena); -} -constexpr auto CreateSubscriberResponse::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_) + - decltype(CreateSubscriberResponse::_impl_.reliable_pub_trigger_fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.retirement_fd_indexes_) + - decltype(CreateSubscriberResponse::_impl_.retirement_fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(CreateSubscriberResponse), alignof(CreateSubscriberResponse), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&CreateSubscriberResponse::PlacementNew_, - sizeof(CreateSubscriberResponse), - alignof(CreateSubscriberResponse)); - } -} -constexpr auto CreateSubscriberResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_CreateSubscriberResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CreateSubscriberResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CreateSubscriberResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CreateSubscriberResponse::ByteSizeLong, - &CreateSubscriberResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_._cached_size_), - false, - }, - &CreateSubscriberResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull CreateSubscriberResponse_class_data_ = - CreateSubscriberResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -CreateSubscriberResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&CreateSubscriberResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(CreateSubscriberResponse_class_data_.tc_table); - return CreateSubscriberResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 17, 0, 63, 2> -CreateSubscriberResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_._has_bits_), - 0, // no _extensions_ - 17, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294836224, // skipmap - offsetof(decltype(_table_), field_entries), - 17, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - CreateSubscriberResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::CreateSubscriberResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 2, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.error_)}}, - // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.channel_id_), 4>(), - {16, 4, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_)}}, - // int32 subscriber_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.subscriber_id_), 5>(), - {24, 5, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.subscriber_id_)}}, - // int32 ccb_fd_index = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.ccb_fd_index_), 6>(), - {32, 6, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.ccb_fd_index_)}}, - // int32 bcb_fd_index = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.bcb_fd_index_), 7>(), - {40, 7, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.bcb_fd_index_)}}, - // int32 trigger_fd_index = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.trigger_fd_index_), 8>(), - {48, 8, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.trigger_fd_index_)}}, - // int32 poll_fd_index = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.poll_fd_index_), 9>(), - {56, 9, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.poll_fd_index_)}}, - // int32 slot_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.slot_size_), 10>(), - {64, 10, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.slot_size_)}}, - // int32 num_slots = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.num_slots_), 11>(), - {72, 11, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_slots_)}}, - // repeated int32 reliable_pub_trigger_fd_indexes = 10; - {::_pbi::TcParser::FastV32P1, - {82, 0, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_)}}, - // int32 num_pub_updates = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.num_pub_updates_), 12>(), - {88, 12, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_pub_updates_)}}, - // bytes type = 12; - {::_pbi::TcParser::FastBS1, - {98, 3, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.type_)}}, - // int32 vchan_id = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.vchan_id_), 13>(), - {104, 13, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.vchan_id_)}}, - // repeated int32 retirement_fd_indexes = 14; - {::_pbi::TcParser::FastV32P1, - {114, 1, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.retirement_fd_indexes_)}}, - // int32 checksum_size = 15; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(CreateSubscriberResponse, _impl_.checksum_size_), 14>(), - {120, 14, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.checksum_size_)}}, - // int32 metadata_size = 16; - {::_pbi::TcParser::FastV32S2, - {384, 15, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.metadata_size_)}}, - // bool use_split_buffers = 17; - {::_pbi::TcParser::FastV8S2, - {392, 16, 0, - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.error_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 subscriber_id = 3; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 ccb_fd_index = 4; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.ccb_fd_index_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 bcb_fd_index = 5; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.bcb_fd_index_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 trigger_fd_index = 6; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.trigger_fd_index_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 poll_fd_index = 7; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.poll_fd_index_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 slot_size = 8; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.slot_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_slots = 9; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_slots_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // repeated int32 reliable_pub_trigger_fd_indexes = 10; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.reliable_pub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // int32 num_pub_updates = 11; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.num_pub_updates_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bytes type = 12; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // int32 vchan_id = 13; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.vchan_id_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // repeated int32 retirement_fd_indexes = 14; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.retirement_fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // int32 checksum_size = 15; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.checksum_size_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 metadata_size = 16; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.metadata_size_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool use_split_buffers = 17; - {PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\41\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "subspace.CreateSubscriberResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void CreateSubscriberResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.CreateSubscriberResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.reliable_pub_trigger_fd_indexes_.Clear(); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _impl_.retirement_fd_indexes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { - ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.bcb_fd_index_) - - reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.bcb_fd_index_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - ::memset(&_impl_.trigger_fd_index_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.metadata_size_) - - reinterpret_cast(&_impl_.trigger_fd_index_)) + sizeof(_impl_.metadata_size_)); - } - _impl_.use_split_buffers_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL CreateSubscriberResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const CreateSubscriberResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL CreateSubscriberResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const CreateSubscriberResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.CreateSubscriberResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.CreateSubscriberResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_channel_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - } - - // int32 subscriber_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_subscriber_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_subscriber_id(), target); - } - } - - // int32 ccb_fd_index = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_ccb_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( - stream, this_._internal_ccb_fd_index(), target); - } - } - - // int32 bcb_fd_index = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_bcb_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( - stream, this_._internal_bcb_fd_index(), target); - } - } - - // int32 trigger_fd_index = 6; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_trigger_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( - stream, this_._internal_trigger_fd_index(), target); - } - } - - // int32 poll_fd_index = 7; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_poll_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( - stream, this_._internal_poll_fd_index(), target); - } - } - - // int32 slot_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_slot_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( - stream, this_._internal_slot_size(), target); - } - } - - // int32 num_slots = 9; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_num_slots() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( - stream, this_._internal_num_slots(), target); - } - } - - // repeated int32 reliable_pub_trigger_fd_indexes = 10; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - { - int byte_size = this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 10, this_._internal_reliable_pub_trigger_fd_indexes(), byte_size, target); - } - } - } - - // int32 num_pub_updates = 11; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_num_pub_updates() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( - stream, this_._internal_num_pub_updates(), target); - } - } - - // bytes type = 12; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(12, _s, target); - } - } - - // int32 vchan_id = 13; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_vchan_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>( - stream, this_._internal_vchan_id(), target); - } - } - - // repeated int32 retirement_fd_indexes = 14; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - { - int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 14, this_._internal_retirement_fd_indexes(), byte_size, target); - } - } - } - - // int32 checksum_size = 15; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_checksum_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<15>( - stream, this_._internal_checksum_size(), target); - } - } - - // int32 metadata_size = 16; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (this_._internal_metadata_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 16, this_._internal_metadata_size(), target); - } - } - - // bool use_split_buffers = 17; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 17, this_._internal_use_split_buffers(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.CreateSubscriberResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t CreateSubscriberResponse::ByteSizeLong(const MessageLite& base) { - const CreateSubscriberResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t CreateSubscriberResponse::ByteSizeLong() const { - const CreateSubscriberResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.CreateSubscriberResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // repeated int32 reliable_pub_trigger_fd_indexes = 10; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_reliable_pub_trigger_fd_indexes(), 1, - this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 retirement_fd_indexes = 14; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_retirement_fd_indexes(), 1, - this_._impl_._retirement_fd_indexes_cached_byte_size_); - } - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - // bytes type = 12; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - } - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - } - // int32 subscriber_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - } - // int32 ccb_fd_index = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_ccb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_ccb_fd_index()); - } - } - // int32 bcb_fd_index = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_bcb_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_bcb_fd_index()); - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - // int32 trigger_fd_index = 6; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_trigger_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_trigger_fd_index()); - } - } - // int32 poll_fd_index = 7; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_poll_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_poll_fd_index()); - } - } - // int32 slot_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - } - // int32 num_slots = 9; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - // int32 num_pub_updates = 11; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_num_pub_updates() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_pub_updates()); - } - } - // int32 vchan_id = 13; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - } - // int32 checksum_size = 15; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - } - // int32 metadata_size = 16; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (this_._internal_metadata_size() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_metadata_size()); - } - } - } - { - // bool use_split_buffers = 17; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (this_._internal_use_split_buffers() != 0) { - total_size += 3; - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void CreateSubscriberResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.CreateSubscriberResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_reliable_pub_trigger_fd_indexes()->MergeFrom(from._internal_reliable_pub_trigger_fd_indexes()); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_ccb_fd_index() != 0) { - _this->_impl_.ccb_fd_index_ = from._impl_.ccb_fd_index_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_bcb_fd_index() != 0) { - _this->_impl_.bcb_fd_index_ = from._impl_.bcb_fd_index_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_trigger_fd_index() != 0) { - _this->_impl_.trigger_fd_index_ = from._impl_.trigger_fd_index_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_poll_fd_index() != 0) { - _this->_impl_.poll_fd_index_ = from._impl_.poll_fd_index_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (from._internal_num_pub_updates() != 0) { - _this->_impl_.num_pub_updates_ = from._impl_.num_pub_updates_; - } - } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; - } - } - } - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void CreateSubscriberResponse::CopyFrom(const CreateSubscriberResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.CreateSubscriberResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void CreateSubscriberResponse::InternalSwap(CreateSubscriberResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.reliable_pub_trigger_fd_indexes_.InternalSwap(&other->_impl_.reliable_pub_trigger_fd_indexes_); - _impl_.retirement_fd_indexes_.InternalSwap(&other->_impl_.retirement_fd_indexes_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.use_split_buffers_) - + sizeof(CreateSubscriberResponse::_impl_.use_split_buffers_) - - PROTOBUF_FIELD_OFFSET(CreateSubscriberResponse, _impl_.channel_id_)>( - reinterpret_cast(&_impl_.channel_id_), - reinterpret_cast(&other->_impl_.channel_id_)); -} - -::google::protobuf::Metadata CreateSubscriberResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetTriggersRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_._has_bits_); -}; - -GetTriggersRequest::GetTriggersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetTriggersRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetTriggersRequest) -} -PROTOBUF_NDEBUG_INLINE GetTriggersRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetTriggersRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -GetTriggersRequest::GetTriggersRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetTriggersRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetTriggersRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetTriggersRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.GetTriggersRequest) -} -PROTOBUF_NDEBUG_INLINE GetTriggersRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void GetTriggersRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetTriggersRequest::~GetTriggersRequest() { - // @@protoc_insertion_point(destructor:subspace.GetTriggersRequest) - SharedDtor(*this); -} -inline void GetTriggersRequest::SharedDtor(MessageLite& self) { - GetTriggersRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetTriggersRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetTriggersRequest(arena); -} -constexpr auto GetTriggersRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetTriggersRequest), - alignof(GetTriggersRequest)); -} -constexpr auto GetTriggersRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetTriggersRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetTriggersRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetTriggersRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetTriggersRequest::ByteSizeLong, - &GetTriggersRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_._cached_size_), - false, - }, - &GetTriggersRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetTriggersRequest_class_data_ = - GetTriggersRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetTriggersRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetTriggersRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetTriggersRequest_class_data_.tc_table); - return GetTriggersRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 48, 2> -GetTriggersRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - GetTriggersRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetTriggersRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(GetTriggersRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\33\14\0\0\0\0\0\0" - "subspace.GetTriggersRequest" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void GetTriggersRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetTriggersRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetTriggersRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetTriggersRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetTriggersRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetTriggersRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetTriggersRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetTriggersRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetTriggersRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetTriggersRequest::ByteSizeLong(const MessageLite& base) { - const GetTriggersRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetTriggersRequest::ByteSizeLong() const { - const GetTriggersRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetTriggersRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string channel_name = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetTriggersRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetTriggersRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetTriggersRequest::CopyFrom(const GetTriggersRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetTriggersRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetTriggersRequest::InternalSwap(GetTriggersRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); -} - -::google::protobuf::Metadata GetTriggersRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetTriggersResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_._has_bits_); -}; - -GetTriggersResponse::GetTriggersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetTriggersResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetTriggersResponse) -} -PROTOBUF_NDEBUG_INLINE GetTriggersResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetTriggersResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - reliable_pub_trigger_fd_indexes_{visibility, arena, from.reliable_pub_trigger_fd_indexes_}, - _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, - sub_trigger_fd_indexes_{visibility, arena, from.sub_trigger_fd_indexes_}, - _sub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{visibility, arena, from.retirement_fd_indexes_}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena, from.error_) {} - -GetTriggersResponse::GetTriggersResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetTriggersResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetTriggersResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetTriggersResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.GetTriggersResponse) -} -PROTOBUF_NDEBUG_INLINE GetTriggersResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - reliable_pub_trigger_fd_indexes_{visibility, arena}, - _reliable_pub_trigger_fd_indexes_cached_byte_size_{0}, - sub_trigger_fd_indexes_{visibility, arena}, - _sub_trigger_fd_indexes_cached_byte_size_{0}, - retirement_fd_indexes_{visibility, arena}, - _retirement_fd_indexes_cached_byte_size_{0}, - error_(arena) {} - -inline void GetTriggersResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetTriggersResponse::~GetTriggersResponse() { - // @@protoc_insertion_point(destructor:subspace.GetTriggersResponse) - SharedDtor(*this); -} -inline void GetTriggersResponse::SharedDtor(MessageLite& self) { - GetTriggersResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetTriggersResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetTriggersResponse(arena); -} -constexpr auto GetTriggersResponse::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_) + - decltype(GetTriggersResponse::_impl_.reliable_pub_trigger_fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.sub_trigger_fd_indexes_) + - decltype(GetTriggersResponse::_impl_.sub_trigger_fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.retirement_fd_indexes_) + - decltype(GetTriggersResponse::_impl_.retirement_fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(GetTriggersResponse), alignof(GetTriggersResponse), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GetTriggersResponse::PlacementNew_, - sizeof(GetTriggersResponse), - alignof(GetTriggersResponse)); - } -} -constexpr auto GetTriggersResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetTriggersResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetTriggersResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetTriggersResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetTriggersResponse::ByteSizeLong, - &GetTriggersResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_._cached_size_), - false, - }, - &GetTriggersResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetTriggersResponse_class_data_ = - GetTriggersResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetTriggersResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetTriggersResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetTriggersResponse_class_data_.tc_table); - return GetTriggersResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 42, 2> -GetTriggersResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - GetTriggersResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetTriggersResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated int32 retirement_fd_indexes = 4; - {::_pbi::TcParser::FastV32P1, - {34, 2, 0, - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.retirement_fd_indexes_)}}, - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 3, 0, - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.error_)}}, - // repeated int32 reliable_pub_trigger_fd_indexes = 2; - {::_pbi::TcParser::FastV32P1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_)}}, - // repeated int32 sub_trigger_fd_indexes = 3; - {::_pbi::TcParser::FastV32P1, - {26, 1, 0, - PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.sub_trigger_fd_indexes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.error_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated int32 reliable_pub_trigger_fd_indexes = 2; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.reliable_pub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // repeated int32 sub_trigger_fd_indexes = 3; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.sub_trigger_fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - // repeated int32 retirement_fd_indexes = 4; - {PROTOBUF_FIELD_OFFSET(GetTriggersResponse, _impl_.retirement_fd_indexes_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - }}, - // no aux_entries - {{ - "\34\5\0\0\0\0\0\0" - "subspace.GetTriggersResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void GetTriggersResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetTriggersResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.reliable_pub_trigger_fd_indexes_.Clear(); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _impl_.sub_trigger_fd_indexes_.Clear(); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { - _impl_.retirement_fd_indexes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetTriggersResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetTriggersResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetTriggersResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetTriggersResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetTriggersResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetTriggersResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // repeated int32 reliable_pub_trigger_fd_indexes = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - { - int byte_size = this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 2, this_._internal_reliable_pub_trigger_fd_indexes(), byte_size, target); - } - } - } - - // repeated int32 sub_trigger_fd_indexes = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - { - int byte_size = this_._impl_._sub_trigger_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 3, this_._internal_sub_trigger_fd_indexes(), byte_size, target); - } - } - } - - // repeated int32 retirement_fd_indexes = 4; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { - { - int byte_size = this_._impl_._retirement_fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 4, this_._internal_retirement_fd_indexes(), byte_size, target); - } - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetTriggersResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetTriggersResponse::ByteSizeLong(const MessageLite& base) { - const GetTriggersResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetTriggersResponse::ByteSizeLong() const { - const GetTriggersResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetTriggersResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // repeated int32 reliable_pub_trigger_fd_indexes = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_reliable_pub_trigger_fd_indexes(), 1, - this_._impl_._reliable_pub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 sub_trigger_fd_indexes = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_sub_trigger_fd_indexes(), 1, - this_._impl_._sub_trigger_fd_indexes_cached_byte_size_); - } - // repeated int32 retirement_fd_indexes = 4; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_retirement_fd_indexes(), 1, - this_._impl_._retirement_fd_indexes_cached_byte_size_); - } - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetTriggersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetTriggersResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_reliable_pub_trigger_fd_indexes()->MergeFrom(from._internal_reliable_pub_trigger_fd_indexes()); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_sub_trigger_fd_indexes()->MergeFrom(from._internal_sub_trigger_fd_indexes()); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000004U)) { - _this->_internal_mutable_retirement_fd_indexes()->MergeFrom(from._internal_retirement_fd_indexes()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetTriggersResponse::CopyFrom(const GetTriggersResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetTriggersResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetTriggersResponse::InternalSwap(GetTriggersResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.reliable_pub_trigger_fd_indexes_.InternalSwap(&other->_impl_.reliable_pub_trigger_fd_indexes_); - _impl_.sub_trigger_fd_indexes_.InternalSwap(&other->_impl_.sub_trigger_fd_indexes_); - _impl_.retirement_fd_indexes_.InternalSwap(&other->_impl_.retirement_fd_indexes_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); -} - -::google::protobuf::Metadata GetTriggersResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RemovePublisherRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_._has_bits_); -}; - -RemovePublisherRequest::RemovePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemovePublisherRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RemovePublisherRequest) -} -PROTOBUF_NDEBUG_INLINE RemovePublisherRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RemovePublisherRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -RemovePublisherRequest::RemovePublisherRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RemovePublisherRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemovePublisherRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RemovePublisherRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.publisher_id_ = from._impl_.publisher_id_; - - // @@protoc_insertion_point(copy_constructor:subspace.RemovePublisherRequest) -} -PROTOBUF_NDEBUG_INLINE RemovePublisherRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void RemovePublisherRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.publisher_id_ = {}; -} -RemovePublisherRequest::~RemovePublisherRequest() { - // @@protoc_insertion_point(destructor:subspace.RemovePublisherRequest) - SharedDtor(*this); -} -inline void RemovePublisherRequest::SharedDtor(MessageLite& self) { - RemovePublisherRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RemovePublisherRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RemovePublisherRequest(arena); -} -constexpr auto RemovePublisherRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemovePublisherRequest), - alignof(RemovePublisherRequest)); -} -constexpr auto RemovePublisherRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RemovePublisherRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemovePublisherRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemovePublisherRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemovePublisherRequest::ByteSizeLong, - &RemovePublisherRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_._cached_size_), - false, - }, - &RemovePublisherRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RemovePublisherRequest_class_data_ = - RemovePublisherRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RemovePublisherRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RemovePublisherRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RemovePublisherRequest_class_data_.tc_table); - return RemovePublisherRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 52, 2> -RemovePublisherRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RemovePublisherRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RemovePublisherRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 publisher_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RemovePublisherRequest, _impl_.publisher_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.publisher_id_)}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 publisher_id = 2; - {PROTOBUF_FIELD_OFFSET(RemovePublisherRequest, _impl_.publisher_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\37\14\0\0\0\0\0\0" - "subspace.RemovePublisherRequest" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void RemovePublisherRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RemovePublisherRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_.publisher_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RemovePublisherRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RemovePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RemovePublisherRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RemovePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemovePublisherRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemovePublisherRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 publisher_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_publisher_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_publisher_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemovePublisherRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RemovePublisherRequest::ByteSizeLong(const MessageLite& base) { - const RemovePublisherRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RemovePublisherRequest::ByteSizeLong() const { - const RemovePublisherRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemovePublisherRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int32 publisher_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RemovePublisherRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemovePublisherRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RemovePublisherRequest::CopyFrom(const RemovePublisherRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemovePublisherRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RemovePublisherRequest::InternalSwap(RemovePublisherRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.publisher_id_, other->_impl_.publisher_id_); -} - -::google::protobuf::Metadata RemovePublisherRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RemovePublisherResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_._has_bits_); -}; - -RemovePublisherResponse::RemovePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemovePublisherResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RemovePublisherResponse) -} -PROTOBUF_NDEBUG_INLINE RemovePublisherResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RemovePublisherResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - error_(arena, from.error_) {} - -RemovePublisherResponse::RemovePublisherResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RemovePublisherResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemovePublisherResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RemovePublisherResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.RemovePublisherResponse) -} -PROTOBUF_NDEBUG_INLINE RemovePublisherResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - error_(arena) {} - -inline void RemovePublisherResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -RemovePublisherResponse::~RemovePublisherResponse() { - // @@protoc_insertion_point(destructor:subspace.RemovePublisherResponse) - SharedDtor(*this); -} -inline void RemovePublisherResponse::SharedDtor(MessageLite& self) { - RemovePublisherResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RemovePublisherResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RemovePublisherResponse(arena); -} -constexpr auto RemovePublisherResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemovePublisherResponse), - alignof(RemovePublisherResponse)); -} -constexpr auto RemovePublisherResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RemovePublisherResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemovePublisherResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemovePublisherResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemovePublisherResponse::ByteSizeLong, - &RemovePublisherResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_._cached_size_), - false, - }, - &RemovePublisherResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RemovePublisherResponse_class_data_ = - RemovePublisherResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RemovePublisherResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RemovePublisherResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RemovePublisherResponse_class_data_.tc_table); - return RemovePublisherResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 46, 2> -RemovePublisherResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RemovePublisherResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RemovePublisherResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_.error_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(RemovePublisherResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\40\5\0\0\0\0\0\0" - "subspace.RemovePublisherResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void RemovePublisherResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RemovePublisherResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RemovePublisherResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RemovePublisherResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RemovePublisherResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RemovePublisherResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemovePublisherResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemovePublisherResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemovePublisherResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RemovePublisherResponse::ByteSizeLong(const MessageLite& base) { - const RemovePublisherResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RemovePublisherResponse::ByteSizeLong() const { - const RemovePublisherResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemovePublisherResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string error = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RemovePublisherResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemovePublisherResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RemovePublisherResponse::CopyFrom(const RemovePublisherResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemovePublisherResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RemovePublisherResponse::InternalSwap(RemovePublisherResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); -} - -::google::protobuf::Metadata RemovePublisherResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RemoveSubscriberRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_._has_bits_); -}; - -RemoveSubscriberRequest::RemoveSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemoveSubscriberRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RemoveSubscriberRequest) -} -PROTOBUF_NDEBUG_INLINE RemoveSubscriberRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RemoveSubscriberRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -RemoveSubscriberRequest::RemoveSubscriberRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RemoveSubscriberRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemoveSubscriberRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RemoveSubscriberRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.subscriber_id_ = from._impl_.subscriber_id_; - - // @@protoc_insertion_point(copy_constructor:subspace.RemoveSubscriberRequest) -} -PROTOBUF_NDEBUG_INLINE RemoveSubscriberRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void RemoveSubscriberRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.subscriber_id_ = {}; -} -RemoveSubscriberRequest::~RemoveSubscriberRequest() { - // @@protoc_insertion_point(destructor:subspace.RemoveSubscriberRequest) - SharedDtor(*this); -} -inline void RemoveSubscriberRequest::SharedDtor(MessageLite& self) { - RemoveSubscriberRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RemoveSubscriberRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RemoveSubscriberRequest(arena); -} -constexpr auto RemoveSubscriberRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemoveSubscriberRequest), - alignof(RemoveSubscriberRequest)); -} -constexpr auto RemoveSubscriberRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RemoveSubscriberRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemoveSubscriberRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemoveSubscriberRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemoveSubscriberRequest::ByteSizeLong, - &RemoveSubscriberRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_._cached_size_), - false, - }, - &RemoveSubscriberRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RemoveSubscriberRequest_class_data_ = - RemoveSubscriberRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RemoveSubscriberRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RemoveSubscriberRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RemoveSubscriberRequest_class_data_.tc_table); - return RemoveSubscriberRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 53, 2> -RemoveSubscriberRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RemoveSubscriberRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RemoveSubscriberRequest, _impl_.subscriber_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.subscriber_id_)}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(RemoveSubscriberRequest, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\40\14\0\0\0\0\0\0" - "subspace.RemoveSubscriberRequest" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void RemoveSubscriberRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RemoveSubscriberRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_.subscriber_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RemoveSubscriberRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RemoveSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RemoveSubscriberRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RemoveSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemoveSubscriberRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemoveSubscriberRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_subscriber_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemoveSubscriberRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RemoveSubscriberRequest::ByteSizeLong(const MessageLite& base) { - const RemoveSubscriberRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RemoveSubscriberRequest::ByteSizeLong() const { - const RemoveSubscriberRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemoveSubscriberRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RemoveSubscriberRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemoveSubscriberRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RemoveSubscriberRequest::CopyFrom(const RemoveSubscriberRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemoveSubscriberRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RemoveSubscriberRequest::InternalSwap(RemoveSubscriberRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.subscriber_id_, other->_impl_.subscriber_id_); -} - -::google::protobuf::Metadata RemoveSubscriberRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RemoveSubscriberResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_._has_bits_); -}; - -RemoveSubscriberResponse::RemoveSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemoveSubscriberResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RemoveSubscriberResponse) -} -PROTOBUF_NDEBUG_INLINE RemoveSubscriberResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RemoveSubscriberResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - error_(arena, from.error_) {} - -RemoveSubscriberResponse::RemoveSubscriberResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RemoveSubscriberResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RemoveSubscriberResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RemoveSubscriberResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.RemoveSubscriberResponse) -} -PROTOBUF_NDEBUG_INLINE RemoveSubscriberResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - error_(arena) {} - -inline void RemoveSubscriberResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -RemoveSubscriberResponse::~RemoveSubscriberResponse() { - // @@protoc_insertion_point(destructor:subspace.RemoveSubscriberResponse) - SharedDtor(*this); -} -inline void RemoveSubscriberResponse::SharedDtor(MessageLite& self) { - RemoveSubscriberResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RemoveSubscriberResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RemoveSubscriberResponse(arena); -} -constexpr auto RemoveSubscriberResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RemoveSubscriberResponse), - alignof(RemoveSubscriberResponse)); -} -constexpr auto RemoveSubscriberResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RemoveSubscriberResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RemoveSubscriberResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RemoveSubscriberResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RemoveSubscriberResponse::ByteSizeLong, - &RemoveSubscriberResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_._cached_size_), - false, - }, - &RemoveSubscriberResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RemoveSubscriberResponse_class_data_ = - RemoveSubscriberResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RemoveSubscriberResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RemoveSubscriberResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RemoveSubscriberResponse_class_data_.tc_table); - return RemoveSubscriberResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 47, 2> -RemoveSubscriberResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RemoveSubscriberResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_.error_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(RemoveSubscriberResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\41\5\0\0\0\0\0\0" - "subspace.RemoveSubscriberResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void RemoveSubscriberResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RemoveSubscriberResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RemoveSubscriberResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RemoveSubscriberResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RemoveSubscriberResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RemoveSubscriberResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RemoveSubscriberResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RemoveSubscriberResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RemoveSubscriberResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RemoveSubscriberResponse::ByteSizeLong(const MessageLite& base) { - const RemoveSubscriberResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RemoveSubscriberResponse::ByteSizeLong() const { - const RemoveSubscriberResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RemoveSubscriberResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string error = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RemoveSubscriberResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RemoveSubscriberResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RemoveSubscriberResponse::CopyFrom(const RemoveSubscriberResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RemoveSubscriberResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RemoveSubscriberResponse::InternalSwap(RemoveSubscriberResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); -} - -::google::protobuf::Metadata RemoveSubscriberResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetChannelInfoRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_._has_bits_); -}; - -GetChannelInfoRequest::GetChannelInfoRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelInfoRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetChannelInfoRequest) -} -PROTOBUF_NDEBUG_INLINE GetChannelInfoRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetChannelInfoRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -GetChannelInfoRequest::GetChannelInfoRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetChannelInfoRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelInfoRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetChannelInfoRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.GetChannelInfoRequest) -} -PROTOBUF_NDEBUG_INLINE GetChannelInfoRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void GetChannelInfoRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetChannelInfoRequest::~GetChannelInfoRequest() { - // @@protoc_insertion_point(destructor:subspace.GetChannelInfoRequest) - SharedDtor(*this); -} -inline void GetChannelInfoRequest::SharedDtor(MessageLite& self) { - GetChannelInfoRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetChannelInfoRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetChannelInfoRequest(arena); -} -constexpr auto GetChannelInfoRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetChannelInfoRequest), - alignof(GetChannelInfoRequest)); -} -constexpr auto GetChannelInfoRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetChannelInfoRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelInfoRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelInfoRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelInfoRequest::ByteSizeLong, - &GetChannelInfoRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_._cached_size_), - false, - }, - &GetChannelInfoRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetChannelInfoRequest_class_data_ = - GetChannelInfoRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetChannelInfoRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelInfoRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetChannelInfoRequest_class_data_.tc_table); - return GetChannelInfoRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> -GetChannelInfoRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - GetChannelInfoRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetChannelInfoRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelInfoRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\36\14\0\0\0\0\0\0" - "subspace.GetChannelInfoRequest" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void GetChannelInfoRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetChannelInfoRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetChannelInfoRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetChannelInfoRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetChannelInfoRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetChannelInfoRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelInfoRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelInfoRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelInfoRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetChannelInfoRequest::ByteSizeLong(const MessageLite& base) { - const GetChannelInfoRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetChannelInfoRequest::ByteSizeLong() const { - const GetChannelInfoRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelInfoRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string channel_name = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetChannelInfoRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelInfoRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetChannelInfoRequest::CopyFrom(const GetChannelInfoRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelInfoRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetChannelInfoRequest::InternalSwap(GetChannelInfoRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); -} - -::google::protobuf::Metadata GetChannelInfoRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetChannelInfoResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_._has_bits_); -}; - -GetChannelInfoResponse::GetChannelInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelInfoResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetChannelInfoResponse) -} -PROTOBUF_NDEBUG_INLINE GetChannelInfoResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetChannelInfoResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channels_{visibility, arena, from.channels_}, - error_(arena, from.error_) {} - -GetChannelInfoResponse::GetChannelInfoResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetChannelInfoResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelInfoResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetChannelInfoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.GetChannelInfoResponse) -} -PROTOBUF_NDEBUG_INLINE GetChannelInfoResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channels_{visibility, arena}, - error_(arena) {} - -inline void GetChannelInfoResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetChannelInfoResponse::~GetChannelInfoResponse() { - // @@protoc_insertion_point(destructor:subspace.GetChannelInfoResponse) - SharedDtor(*this); -} -inline void GetChannelInfoResponse::SharedDtor(MessageLite& self) { - GetChannelInfoResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetChannelInfoResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetChannelInfoResponse(arena); -} -constexpr auto GetChannelInfoResponse::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.channels_) + - decltype(GetChannelInfoResponse::_impl_.channels_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(GetChannelInfoResponse), alignof(GetChannelInfoResponse), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GetChannelInfoResponse::PlacementNew_, - sizeof(GetChannelInfoResponse), - alignof(GetChannelInfoResponse)); - } -} -constexpr auto GetChannelInfoResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetChannelInfoResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelInfoResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelInfoResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelInfoResponse::ByteSizeLong, - &GetChannelInfoResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_._cached_size_), - false, - }, - &GetChannelInfoResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetChannelInfoResponse_class_data_ = - GetChannelInfoResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetChannelInfoResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelInfoResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetChannelInfoResponse_class_data_.tc_table); - return GetChannelInfoResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 45, 2> -GetChannelInfoResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GetChannelInfoResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetChannelInfoResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .subspace.ChannelInfoProto channels = 2; - {::_pbi::TcParser::FastMtR1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.channels_)}}, - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 1, 0, - PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.error_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.error_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .subspace.ChannelInfoProto channels = 2; - {PROTOBUF_FIELD_OFFSET(GetChannelInfoResponse, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelInfoProto>()}, - }}, - {{ - "\37\5\0\0\0\0\0\0" - "subspace.GetChannelInfoResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void GetChannelInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetChannelInfoResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.channels_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetChannelInfoResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetChannelInfoResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetChannelInfoResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetChannelInfoResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelInfoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelInfoResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // repeated .subspace.ChannelInfoProto channels = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelInfoResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetChannelInfoResponse::ByteSizeLong(const MessageLite& base) { - const GetChannelInfoResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetChannelInfoResponse::ByteSizeLong() const { - const GetChannelInfoResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelInfoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // repeated .subspace.ChannelInfoProto channels = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetChannelInfoResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelInfoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_channels()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_channels()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetChannelInfoResponse::CopyFrom(const GetChannelInfoResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelInfoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetChannelInfoResponse::InternalSwap(GetChannelInfoResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.channels_.InternalSwap(&other->_impl_.channels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); -} - -::google::protobuf::Metadata GetChannelInfoResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetChannelStatsRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_._has_bits_); -}; - -GetChannelStatsRequest::GetChannelStatsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelStatsRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetChannelStatsRequest) -} -PROTOBUF_NDEBUG_INLINE GetChannelStatsRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetChannelStatsRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -GetChannelStatsRequest::GetChannelStatsRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetChannelStatsRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelStatsRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetChannelStatsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.GetChannelStatsRequest) -} -PROTOBUF_NDEBUG_INLINE GetChannelStatsRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void GetChannelStatsRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetChannelStatsRequest::~GetChannelStatsRequest() { - // @@protoc_insertion_point(destructor:subspace.GetChannelStatsRequest) - SharedDtor(*this); -} -inline void GetChannelStatsRequest::SharedDtor(MessageLite& self) { - GetChannelStatsRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetChannelStatsRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetChannelStatsRequest(arena); -} -constexpr auto GetChannelStatsRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetChannelStatsRequest), - alignof(GetChannelStatsRequest)); -} -constexpr auto GetChannelStatsRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetChannelStatsRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelStatsRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelStatsRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelStatsRequest::ByteSizeLong, - &GetChannelStatsRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_._cached_size_), - false, - }, - &GetChannelStatsRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetChannelStatsRequest_class_data_ = - GetChannelStatsRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetChannelStatsRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelStatsRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetChannelStatsRequest_class_data_.tc_table); - return GetChannelStatsRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 52, 2> -GetChannelStatsRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - GetChannelStatsRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetChannelStatsRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelStatsRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\37\14\0\0\0\0\0\0" - "subspace.GetChannelStatsRequest" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void GetChannelStatsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetChannelStatsRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetChannelStatsRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetChannelStatsRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetChannelStatsRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetChannelStatsRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelStatsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelStatsRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelStatsRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetChannelStatsRequest::ByteSizeLong(const MessageLite& base) { - const GetChannelStatsRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetChannelStatsRequest::ByteSizeLong() const { - const GetChannelStatsRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelStatsRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string channel_name = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetChannelStatsRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelStatsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetChannelStatsRequest::CopyFrom(const GetChannelStatsRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelStatsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetChannelStatsRequest::InternalSwap(GetChannelStatsRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); -} - -::google::protobuf::Metadata GetChannelStatsRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetChannelStatsResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_._has_bits_); -}; - -GetChannelStatsResponse::GetChannelStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelStatsResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetChannelStatsResponse) -} -PROTOBUF_NDEBUG_INLINE GetChannelStatsResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetChannelStatsResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channels_{visibility, arena, from.channels_}, - error_(arena, from.error_) {} - -GetChannelStatsResponse::GetChannelStatsResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetChannelStatsResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetChannelStatsResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetChannelStatsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.GetChannelStatsResponse) -} -PROTOBUF_NDEBUG_INLINE GetChannelStatsResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channels_{visibility, arena}, - error_(arena) {} - -inline void GetChannelStatsResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetChannelStatsResponse::~GetChannelStatsResponse() { - // @@protoc_insertion_point(destructor:subspace.GetChannelStatsResponse) - SharedDtor(*this); -} -inline void GetChannelStatsResponse::SharedDtor(MessageLite& self) { - GetChannelStatsResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetChannelStatsResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetChannelStatsResponse(arena); -} -constexpr auto GetChannelStatsResponse::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.channels_) + - decltype(GetChannelStatsResponse::_impl_.channels_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(GetChannelStatsResponse), alignof(GetChannelStatsResponse), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GetChannelStatsResponse::PlacementNew_, - sizeof(GetChannelStatsResponse), - alignof(GetChannelStatsResponse)); - } -} -constexpr auto GetChannelStatsResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetChannelStatsResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetChannelStatsResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetChannelStatsResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetChannelStatsResponse::ByteSizeLong, - &GetChannelStatsResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_._cached_size_), - false, - }, - &GetChannelStatsResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetChannelStatsResponse_class_data_ = - GetChannelStatsResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetChannelStatsResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetChannelStatsResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetChannelStatsResponse_class_data_.tc_table); - return GetChannelStatsResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 46, 2> -GetChannelStatsResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GetChannelStatsResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetChannelStatsResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .subspace.ChannelStatsProto channels = 2; - {::_pbi::TcParser::FastMtR1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.channels_)}}, - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 1, 0, - PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.error_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.error_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .subspace.ChannelStatsProto channels = 2; - {PROTOBUF_FIELD_OFFSET(GetChannelStatsResponse, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelStatsProto>()}, - }}, - {{ - "\40\5\0\0\0\0\0\0" - "subspace.GetChannelStatsResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void GetChannelStatsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetChannelStatsResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.channels_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetChannelStatsResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetChannelStatsResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetChannelStatsResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetChannelStatsResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetChannelStatsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetChannelStatsResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // repeated .subspace.ChannelStatsProto channels = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetChannelStatsResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetChannelStatsResponse::ByteSizeLong(const MessageLite& base) { - const GetChannelStatsResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetChannelStatsResponse::ByteSizeLong() const { - const GetChannelStatsResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetChannelStatsResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // repeated .subspace.ChannelStatsProto channels = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetChannelStatsResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetChannelStatsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_channels()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_channels()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetChannelStatsResponse::CopyFrom(const GetChannelStatsResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetChannelStatsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetChannelStatsResponse::InternalSwap(GetChannelStatsResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.channels_.InternalSwap(&other->_impl_.channels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); -} - -::google::protobuf::Metadata GetChannelStatsResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ClientBufferHandleMetadataProto::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_._has_bits_); -}; - -void ClientBufferHandleMetadataProto::clear_allocator_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.allocator_metadata_ != nullptr) _impl_.allocator_metadata_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ClientBufferHandleMetadataProto_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ClientBufferHandleMetadataProto) -} -PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ClientBufferHandleMetadataProto& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_), - shadow_file_(arena, from.shadow_file_), - object_name_(arena, from.object_name_), - allocator_(arena, from.allocator_), - pool_id_(arena, from.pool_id_) {} - -ClientBufferHandleMetadataProto::ClientBufferHandleMetadataProto( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ClientBufferHandleMetadataProto& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ClientBufferHandleMetadataProto_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ClientBufferHandleMetadataProto* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.allocator_metadata_ = (CheckHasBit(cached_has_bits, 0x00000020U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.allocator_metadata_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, session_id_), - offsetof(Impl_, alignment_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::alignment_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ClientBufferHandleMetadataProto) -} -PROTOBUF_NDEBUG_INLINE ClientBufferHandleMetadataProto::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena), - shadow_file_(arena), - object_name_(arena), - allocator_(arena), - pool_id_(arena) {} - -inline void ClientBufferHandleMetadataProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, allocator_metadata_), - 0, - offsetof(Impl_, alignment_) - - offsetof(Impl_, allocator_metadata_) + - sizeof(Impl_::alignment_)); -} -ClientBufferHandleMetadataProto::~ClientBufferHandleMetadataProto() { - // @@protoc_insertion_point(destructor:subspace.ClientBufferHandleMetadataProto) - SharedDtor(*this); -} -inline void ClientBufferHandleMetadataProto::SharedDtor(MessageLite& self) { - ClientBufferHandleMetadataProto& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.shadow_file_.Destroy(); - this_._impl_.object_name_.Destroy(); - this_._impl_.allocator_.Destroy(); - this_._impl_.pool_id_.Destroy(); - delete this_._impl_.allocator_metadata_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ClientBufferHandleMetadataProto(arena); -} -constexpr auto ClientBufferHandleMetadataProto::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ClientBufferHandleMetadataProto), - alignof(ClientBufferHandleMetadataProto)); -} -constexpr auto ClientBufferHandleMetadataProto::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ClientBufferHandleMetadataProto_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ClientBufferHandleMetadataProto::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ClientBufferHandleMetadataProto::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ClientBufferHandleMetadataProto::ByteSizeLong, - &ClientBufferHandleMetadataProto::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_._cached_size_), - false, - }, - &ClientBufferHandleMetadataProto::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ClientBufferHandleMetadataProto_class_data_ = - ClientBufferHandleMetadataProto::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ClientBufferHandleMetadataProto::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ClientBufferHandleMetadataProto_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ClientBufferHandleMetadataProto_class_data_.tc_table); - return ClientBufferHandleMetadataProto_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 15, 1, 107, 2> -ClientBufferHandleMetadataProto::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_._has_bits_), - 0, // no _extensions_ - 15, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294934528, // skipmap - offsetof(decltype(_table_), field_entries), - 15, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - ClientBufferHandleMetadataProto_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.channel_name_)}}, - // uint64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.session_id_), 6>(), - {16, 6, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.session_id_)}}, - // uint32 buffer_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.buffer_index_), 7>(), - {24, 7, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.buffer_index_)}}, - // uint32 slot_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.slot_id_), 8>(), - {32, 8, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.slot_id_)}}, - // bool is_prefix = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 12, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.is_prefix_)}}, - // uint64 full_size = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.full_size_), 9>(), - {48, 9, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.full_size_)}}, - // uint64 allocation_size = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.allocation_size_), 10>(), - {56, 10, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocation_size_)}}, - // uint64 handle = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ClientBufferHandleMetadataProto, _impl_.handle_), 11>(), - {64, 11, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.handle_)}}, - // string shadow_file = 9; - {::_pbi::TcParser::FastUS1, - {74, 1, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.shadow_file_)}}, - // string object_name = 10; - {::_pbi::TcParser::FastUS1, - {82, 2, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.object_name_)}}, - // string allocator = 11; - {::_pbi::TcParser::FastUS1, - {90, 3, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_)}}, - // string pool_id = 12; - {::_pbi::TcParser::FastUS1, - {98, 4, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.pool_id_)}}, - // bool cache_enabled = 13; - {::_pbi::TcParser::SingularVarintNoZag1(), - {104, 13, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.cache_enabled_)}}, - // uint32 alignment = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ClientBufferHandleMetadataProto, _impl_.alignment_), 14>(), - {112, 14, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.alignment_)}}, - // .google.protobuf.Any allocator_metadata = 15; - {::_pbi::TcParser::FastMtS1, - {122, 5, 0, - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_metadata_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.session_id_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint32 buffer_index = 3; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.buffer_index_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // uint32 slot_id = 4; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.slot_id_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // bool is_prefix = 5; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.is_prefix_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // uint64 full_size = 6; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.full_size_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 allocation_size = 7; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocation_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 handle = 8; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.handle_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // string shadow_file = 9; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.shadow_file_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string object_name = 10; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.object_name_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string allocator = 11; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pool_id = 12; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.pool_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool cache_enabled = 13; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.cache_enabled_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // uint32 alignment = 14; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.alignment_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // .google.protobuf.Any allocator_metadata = 15; - {PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_metadata_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, - {{ - "\50\14\0\0\0\0\0\0\0\13\13\11\7\0\0\0" - "subspace.ClientBufferHandleMetadataProto" - "channel_name" - "shadow_file" - "object_name" - "allocator" - "pool_id" - }}, -}; -PROTOBUF_NOINLINE void ClientBufferHandleMetadataProto::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ClientBufferHandleMetadataProto) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.shadow_file_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.object_name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.allocator_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _impl_.pool_id_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - ABSL_DCHECK(_impl_.allocator_metadata_ != nullptr); - _impl_.allocator_metadata_->Clear(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000c0U)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.buffer_index_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { - ::memset(&_impl_.slot_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.alignment_) - - reinterpret_cast(&_impl_.slot_id_)) + sizeof(_impl_.alignment_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ClientBufferHandleMetadataProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ClientBufferHandleMetadataProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ClientBufferHandleMetadataProto) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_session_id(), target); - } - } - - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_buffer_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_buffer_index(), target); - } - } - - // uint32 slot_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_slot_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this_._internal_slot_id(), target); - } - } - - // bool is_prefix = 5; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_is_prefix() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_is_prefix(), target); - } - } - - // uint64 full_size = 6; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_full_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this_._internal_full_size(), target); - } - } - - // uint64 allocation_size = 7; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_allocation_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this_._internal_allocation_size(), target); - } - } - - // uint64 handle = 8; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_handle() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this_._internal_handle(), target); - } - } - - // string shadow_file = 9; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_shadow_file().empty()) { - const ::std::string& _s = this_._internal_shadow_file(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.shadow_file"); - target = stream->WriteStringMaybeAliased(9, _s, target); - } - } - - // string object_name = 10; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_object_name().empty()) { - const ::std::string& _s = this_._internal_object_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.object_name"); - target = stream->WriteStringMaybeAliased(10, _s, target); - } - } - - // string allocator = 11; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_allocator().empty()) { - const ::std::string& _s = this_._internal_allocator(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.allocator"); - target = stream->WriteStringMaybeAliased(11, _s, target); - } - } - - // string pool_id = 12; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (!this_._internal_pool_id().empty()) { - const ::std::string& _s = this_._internal_pool_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ClientBufferHandleMetadataProto.pool_id"); - target = stream->WriteStringMaybeAliased(12, _s, target); - } - } - - // bool cache_enabled = 13; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_cache_enabled() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 13, this_._internal_cache_enabled(), target); - } - } - - // uint32 alignment = 14; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_alignment() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 14, this_._internal_alignment(), target); - } - } - - // .google.protobuf.Any allocator_metadata = 15; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 15, *this_._impl_.allocator_metadata_, this_._impl_.allocator_metadata_->GetCachedSize(), target, - stream); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ClientBufferHandleMetadataProto) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ClientBufferHandleMetadataProto::ByteSizeLong(const MessageLite& base) { - const ClientBufferHandleMetadataProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ClientBufferHandleMetadataProto::ByteSizeLong() const { - const ClientBufferHandleMetadataProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ClientBufferHandleMetadataProto) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // string shadow_file = 9; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_shadow_file().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_shadow_file()); - } - } - // string object_name = 10; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_object_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_object_name()); - } - } - // string allocator = 11; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_allocator().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_allocator()); - } - } - // string pool_id = 12; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (!this_._internal_pool_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_pool_id()); - } - } - // .google.protobuf.Any allocator_metadata = 15; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.allocator_metadata_); - } - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - } - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_buffer_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_buffer_index()); - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { - // uint32 slot_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_slot_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_slot_id()); - } - } - // uint64 full_size = 6; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_full_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_full_size()); - } - } - // uint64 allocation_size = 7; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_allocation_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_allocation_size()); - } - } - // uint64 handle = 8; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_handle() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_handle()); - } - } - // bool is_prefix = 5; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_is_prefix() != 0) { - total_size += 2; - } - } - // bool cache_enabled = 13; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_cache_enabled() != 0) { - total_size += 2; - } - } - // uint32 alignment = 14; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_alignment() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_alignment()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ClientBufferHandleMetadataProto::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ClientBufferHandleMetadataProto) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_shadow_file().empty()) { - _this->_internal_set_shadow_file(from._internal_shadow_file()); - } else { - if (_this->_impl_.shadow_file_.IsDefault()) { - _this->_internal_set_shadow_file(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_object_name().empty()) { - _this->_internal_set_object_name(from._internal_object_name()); - } else { - if (_this->_impl_.object_name_.IsDefault()) { - _this->_internal_set_object_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!from._internal_allocator().empty()) { - _this->_internal_set_allocator(from._internal_allocator()); - } else { - if (_this->_impl_.allocator_.IsDefault()) { - _this->_internal_set_allocator(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (!from._internal_pool_id().empty()) { - _this->_internal_set_pool_id(from._internal_pool_id()); - } else { - if (_this->_impl_.pool_id_.IsDefault()) { - _this->_internal_set_pool_id(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - ABSL_DCHECK(from._impl_.allocator_metadata_ != nullptr); - if (_this->_impl_.allocator_metadata_ == nullptr) { - _this->_impl_.allocator_metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.allocator_metadata_); - } else { - _this->_impl_.allocator_metadata_->MergeFrom(*from._impl_.allocator_metadata_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_buffer_index() != 0) { - _this->_impl_.buffer_index_ = from._impl_.buffer_index_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_slot_id() != 0) { - _this->_impl_.slot_id_ = from._impl_.slot_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_full_size() != 0) { - _this->_impl_.full_size_ = from._impl_.full_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (from._internal_allocation_size() != 0) { - _this->_impl_.allocation_size_ = from._impl_.allocation_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (from._internal_handle() != 0) { - _this->_impl_.handle_ = from._impl_.handle_; - } - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (from._internal_is_prefix() != 0) { - _this->_impl_.is_prefix_ = from._impl_.is_prefix_; - } - } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (from._internal_cache_enabled() != 0) { - _this->_impl_.cache_enabled_ = from._impl_.cache_enabled_; - } - } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (from._internal_alignment() != 0) { - _this->_impl_.alignment_ = from._impl_.alignment_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ClientBufferHandleMetadataProto::CopyFrom(const ClientBufferHandleMetadataProto& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ClientBufferHandleMetadataProto) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ClientBufferHandleMetadataProto::InternalSwap(ClientBufferHandleMetadataProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.shadow_file_, &other->_impl_.shadow_file_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.object_name_, &other->_impl_.object_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.allocator_, &other->_impl_.allocator_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pool_id_, &other->_impl_.pool_id_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.alignment_) - + sizeof(ClientBufferHandleMetadataProto::_impl_.alignment_) - - PROTOBUF_FIELD_OFFSET(ClientBufferHandleMetadataProto, _impl_.allocator_metadata_)>( - reinterpret_cast(&_impl_.allocator_metadata_), - reinterpret_cast(&other->_impl_.allocator_metadata_)); -} - -::google::protobuf::Metadata ClientBufferHandleMetadataProto::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RegisterClientBufferRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_._has_bits_); -}; - -RegisterClientBufferRequest::RegisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RegisterClientBufferRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RegisterClientBufferRequest) -} -PROTOBUF_NDEBUG_INLINE RegisterClientBufferRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RegisterClientBufferRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RegisterClientBufferRequest::RegisterClientBufferRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RegisterClientBufferRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RegisterClientBufferRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RegisterClientBufferRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (CheckHasBit(cached_has_bits, 0x00000001U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, has_fd_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, has_fd_), - offsetof(Impl_, fd_index_) - - offsetof(Impl_, has_fd_) + - sizeof(Impl_::fd_index_)); - - // @@protoc_insertion_point(copy_constructor:subspace.RegisterClientBufferRequest) -} -PROTOBUF_NDEBUG_INLINE RegisterClientBufferRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void RegisterClientBufferRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, metadata_), - 0, - offsetof(Impl_, fd_index_) - - offsetof(Impl_, metadata_) + - sizeof(Impl_::fd_index_)); -} -RegisterClientBufferRequest::~RegisterClientBufferRequest() { - // @@protoc_insertion_point(destructor:subspace.RegisterClientBufferRequest) - SharedDtor(*this); -} -inline void RegisterClientBufferRequest::SharedDtor(MessageLite& self) { - RegisterClientBufferRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.metadata_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RegisterClientBufferRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RegisterClientBufferRequest(arena); -} -constexpr auto RegisterClientBufferRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RegisterClientBufferRequest), - alignof(RegisterClientBufferRequest)); -} -constexpr auto RegisterClientBufferRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RegisterClientBufferRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RegisterClientBufferRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RegisterClientBufferRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RegisterClientBufferRequest::ByteSizeLong, - &RegisterClientBufferRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_._cached_size_), - false, - }, - &RegisterClientBufferRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RegisterClientBufferRequest_class_data_ = - RegisterClientBufferRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RegisterClientBufferRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RegisterClientBufferRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RegisterClientBufferRequest_class_data_.tc_table); - return RegisterClientBufferRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> -RegisterClientBufferRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - RegisterClientBufferRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_)}}, - // bool has_fd = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.has_fd_)}}, - // int32 fd_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RegisterClientBufferRequest, _impl_.fd_index_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.fd_index_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - {PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool has_fd = 2; - {PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.has_fd_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 fd_index = 3; - {PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.fd_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void RegisterClientBufferRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RegisterClientBufferRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.has_fd_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.fd_index_) - - reinterpret_cast(&_impl_.has_fd_)) + sizeof(_impl_.fd_index_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RegisterClientBufferRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RegisterClientBufferRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RegisterClientBufferRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RegisterClientBufferRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RegisterClientBufferRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, - stream); - } - - // bool has_fd = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_has_fd() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this_._internal_has_fd(), target); - } - } - - // int32 fd_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_fd_index(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RegisterClientBufferRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RegisterClientBufferRequest::ByteSizeLong(const MessageLite& base) { - const RegisterClientBufferRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RegisterClientBufferRequest::ByteSizeLong() const { - const RegisterClientBufferRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RegisterClientBufferRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); - } - // bool has_fd = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_has_fd() != 0) { - total_size += 2; - } - } - // int32 fd_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_fd_index()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RegisterClientBufferRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RegisterClientBufferRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(from._impl_.metadata_ != nullptr); - if (_this->_impl_.metadata_ == nullptr) { - _this->_impl_.metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_); - } else { - _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_has_fd() != 0) { - _this->_impl_.has_fd_ = from._impl_.has_fd_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_fd_index() != 0) { - _this->_impl_.fd_index_ = from._impl_.fd_index_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RegisterClientBufferRequest::CopyFrom(const RegisterClientBufferRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RegisterClientBufferRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RegisterClientBufferRequest::InternalSwap(RegisterClientBufferRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.fd_index_) - + sizeof(RegisterClientBufferRequest::_impl_.fd_index_) - - PROTOBUF_FIELD_OFFSET(RegisterClientBufferRequest, _impl_.metadata_)>( - reinterpret_cast(&_impl_.metadata_), - reinterpret_cast(&other->_impl_.metadata_)); -} - -::google::protobuf::Metadata RegisterClientBufferRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RegisterClientBufferResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_._has_bits_); -}; - -RegisterClientBufferResponse::RegisterClientBufferResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RegisterClientBufferResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RegisterClientBufferResponse) -} -PROTOBUF_NDEBUG_INLINE RegisterClientBufferResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RegisterClientBufferResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - error_(arena, from.error_) {} - -RegisterClientBufferResponse::RegisterClientBufferResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RegisterClientBufferResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RegisterClientBufferResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RegisterClientBufferResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.RegisterClientBufferResponse) -} -PROTOBUF_NDEBUG_INLINE RegisterClientBufferResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - error_(arena) {} - -inline void RegisterClientBufferResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -RegisterClientBufferResponse::~RegisterClientBufferResponse() { - // @@protoc_insertion_point(destructor:subspace.RegisterClientBufferResponse) - SharedDtor(*this); -} -inline void RegisterClientBufferResponse::SharedDtor(MessageLite& self) { - RegisterClientBufferResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RegisterClientBufferResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RegisterClientBufferResponse(arena); -} -constexpr auto RegisterClientBufferResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RegisterClientBufferResponse), - alignof(RegisterClientBufferResponse)); -} -constexpr auto RegisterClientBufferResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RegisterClientBufferResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RegisterClientBufferResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RegisterClientBufferResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RegisterClientBufferResponse::ByteSizeLong, - &RegisterClientBufferResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_._cached_size_), - false, - }, - &RegisterClientBufferResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RegisterClientBufferResponse_class_data_ = - RegisterClientBufferResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RegisterClientBufferResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RegisterClientBufferResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RegisterClientBufferResponse_class_data_.tc_table); - return RegisterClientBufferResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 51, 2> -RegisterClientBufferResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RegisterClientBufferResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_.error_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(RegisterClientBufferResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\45\5\0\0\0\0\0\0" - "subspace.RegisterClientBufferResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void RegisterClientBufferResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RegisterClientBufferResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RegisterClientBufferResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RegisterClientBufferResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RegisterClientBufferResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RegisterClientBufferResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RegisterClientBufferResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RegisterClientBufferResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RegisterClientBufferResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RegisterClientBufferResponse::ByteSizeLong(const MessageLite& base) { - const RegisterClientBufferResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RegisterClientBufferResponse::ByteSizeLong() const { - const RegisterClientBufferResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RegisterClientBufferResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string error = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RegisterClientBufferResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RegisterClientBufferResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RegisterClientBufferResponse::CopyFrom(const RegisterClientBufferResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RegisterClientBufferResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RegisterClientBufferResponse::InternalSwap(RegisterClientBufferResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); -} - -::google::protobuf::Metadata RegisterClientBufferResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class UnregisterClientBufferRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_._has_bits_); -}; - -UnregisterClientBufferRequest::UnregisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, UnregisterClientBufferRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.UnregisterClientBufferRequest) -} -PROTOBUF_NDEBUG_INLINE UnregisterClientBufferRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::UnregisterClientBufferRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -UnregisterClientBufferRequest::UnregisterClientBufferRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const UnregisterClientBufferRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, UnregisterClientBufferRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - UnregisterClientBufferRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, session_id_), - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); - - // @@protoc_insertion_point(copy_constructor:subspace.UnregisterClientBufferRequest) -} -PROTOBUF_NDEBUG_INLINE UnregisterClientBufferRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void UnregisterClientBufferRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - 0, - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); -} -UnregisterClientBufferRequest::~UnregisterClientBufferRequest() { - // @@protoc_insertion_point(destructor:subspace.UnregisterClientBufferRequest) - SharedDtor(*this); -} -inline void UnregisterClientBufferRequest::SharedDtor(MessageLite& self) { - UnregisterClientBufferRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL UnregisterClientBufferRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) UnregisterClientBufferRequest(arena); -} -constexpr auto UnregisterClientBufferRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(UnregisterClientBufferRequest), - alignof(UnregisterClientBufferRequest)); -} -constexpr auto UnregisterClientBufferRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_UnregisterClientBufferRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &UnregisterClientBufferRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &UnregisterClientBufferRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &UnregisterClientBufferRequest::ByteSizeLong, - &UnregisterClientBufferRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_._cached_size_), - false, - }, - &UnregisterClientBufferRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull UnregisterClientBufferRequest_class_data_ = - UnregisterClientBufferRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -UnregisterClientBufferRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&UnregisterClientBufferRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(UnregisterClientBufferRequest_class_data_.tc_table); - return UnregisterClientBufferRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 59, 2> -UnregisterClientBufferRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - UnregisterClientBufferRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::UnregisterClientBufferRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.channel_name_)}}, - // uint64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnregisterClientBufferRequest, _impl_.session_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_)}}, - // uint32 buffer_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(UnregisterClientBufferRequest, _impl_.buffer_index_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint32 buffer_index = 3; - {PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - "\46\14\0\0\0\0\0\0" - "subspace.UnregisterClientBufferRequest" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void UnregisterClientBufferRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.UnregisterClientBufferRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.buffer_index_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL UnregisterClientBufferRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const UnregisterClientBufferRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL UnregisterClientBufferRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const UnregisterClientBufferRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.UnregisterClientBufferRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.UnregisterClientBufferRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_session_id(), target); - } - } - - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_buffer_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_buffer_index(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.UnregisterClientBufferRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t UnregisterClientBufferRequest::ByteSizeLong(const MessageLite& base) { - const UnregisterClientBufferRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t UnregisterClientBufferRequest::ByteSizeLong() const { - const UnregisterClientBufferRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.UnregisterClientBufferRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - } - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_buffer_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_buffer_index()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void UnregisterClientBufferRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.UnregisterClientBufferRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_buffer_index() != 0) { - _this->_impl_.buffer_index_ = from._impl_.buffer_index_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void UnregisterClientBufferRequest::CopyFrom(const UnregisterClientBufferRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.UnregisterClientBufferRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void UnregisterClientBufferRequest::InternalSwap(UnregisterClientBufferRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.buffer_index_) - + sizeof(UnregisterClientBufferRequest::_impl_.buffer_index_) - - PROTOBUF_FIELD_OFFSET(UnregisterClientBufferRequest, _impl_.session_id_)>( - reinterpret_cast(&_impl_.session_id_), - reinterpret_cast(&other->_impl_.session_id_)); -} - -::google::protobuf::Metadata UnregisterClientBufferRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetClientBuffersRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_._has_bits_); -}; - -GetClientBuffersRequest::GetClientBuffersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetClientBuffersRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetClientBuffersRequest) -} -PROTOBUF_NDEBUG_INLINE GetClientBuffersRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetClientBuffersRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -GetClientBuffersRequest::GetClientBuffersRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetClientBuffersRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetClientBuffersRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetClientBuffersRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, session_id_), - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); - - // @@protoc_insertion_point(copy_constructor:subspace.GetClientBuffersRequest) -} -PROTOBUF_NDEBUG_INLINE GetClientBuffersRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void GetClientBuffersRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - 0, - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); -} -GetClientBuffersRequest::~GetClientBuffersRequest() { - // @@protoc_insertion_point(destructor:subspace.GetClientBuffersRequest) - SharedDtor(*this); -} -inline void GetClientBuffersRequest::SharedDtor(MessageLite& self) { - GetClientBuffersRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetClientBuffersRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetClientBuffersRequest(arena); -} -constexpr auto GetClientBuffersRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GetClientBuffersRequest), - alignof(GetClientBuffersRequest)); -} -constexpr auto GetClientBuffersRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetClientBuffersRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetClientBuffersRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetClientBuffersRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetClientBuffersRequest::ByteSizeLong, - &GetClientBuffersRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_._cached_size_), - false, - }, - &GetClientBuffersRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetClientBuffersRequest_class_data_ = - GetClientBuffersRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetClientBuffersRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetClientBuffersRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetClientBuffersRequest_class_data_.tc_table); - return GetClientBuffersRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 53, 2> -GetClientBuffersRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - GetClientBuffersRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetClientBuffersRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.channel_name_)}}, - // uint64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetClientBuffersRequest, _impl_.session_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.session_id_)}}, - // uint32 buffer_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GetClientBuffersRequest, _impl_.buffer_index_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.buffer_index_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint32 buffer_index = 3; - {PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.buffer_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - "\40\14\0\0\0\0\0\0" - "subspace.GetClientBuffersRequest" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void GetClientBuffersRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetClientBuffersRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.buffer_index_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetClientBuffersRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetClientBuffersRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetClientBuffersRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetClientBuffersRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetClientBuffersRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetClientBuffersRequest.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_session_id(), target); - } - } - - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_buffer_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_buffer_index(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetClientBuffersRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetClientBuffersRequest::ByteSizeLong(const MessageLite& base) { - const GetClientBuffersRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetClientBuffersRequest::ByteSizeLong() const { - const GetClientBuffersRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetClientBuffersRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - } - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_buffer_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_buffer_index()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetClientBuffersRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetClientBuffersRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_buffer_index() != 0) { - _this->_impl_.buffer_index_ = from._impl_.buffer_index_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetClientBuffersRequest::CopyFrom(const GetClientBuffersRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetClientBuffersRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetClientBuffersRequest::InternalSwap(GetClientBuffersRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.buffer_index_) - + sizeof(GetClientBuffersRequest::_impl_.buffer_index_) - - PROTOBUF_FIELD_OFFSET(GetClientBuffersRequest, _impl_.session_id_)>( - reinterpret_cast(&_impl_.session_id_), - reinterpret_cast(&other->_impl_.session_id_)); -} - -::google::protobuf::Metadata GetClientBuffersRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class GetClientBuffersResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_._has_bits_); -}; - -GetClientBuffersResponse::GetClientBuffersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetClientBuffersResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.GetClientBuffersResponse) -} -PROTOBUF_NDEBUG_INLINE GetClientBuffersResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::GetClientBuffersResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - metadata_{visibility, arena, from.metadata_}, - fd_indexes_{visibility, arena, from.fd_indexes_}, - _fd_indexes_cached_byte_size_{0}, - error_(arena, from.error_) {} - -GetClientBuffersResponse::GetClientBuffersResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GetClientBuffersResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GetClientBuffersResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GetClientBuffersResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.GetClientBuffersResponse) -} -PROTOBUF_NDEBUG_INLINE GetClientBuffersResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - metadata_{visibility, arena}, - fd_indexes_{visibility, arena}, - _fd_indexes_cached_byte_size_{0}, - error_(arena) {} - -inline void GetClientBuffersResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetClientBuffersResponse::~GetClientBuffersResponse() { - // @@protoc_insertion_point(destructor:subspace.GetClientBuffersResponse) - SharedDtor(*this); -} -inline void GetClientBuffersResponse::SharedDtor(MessageLite& self) { - GetClientBuffersResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GetClientBuffersResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GetClientBuffersResponse(arena); -} -constexpr auto GetClientBuffersResponse::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.metadata_) + - decltype(GetClientBuffersResponse::_impl_.metadata_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.fd_indexes_) + - decltype(GetClientBuffersResponse::_impl_.fd_indexes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(GetClientBuffersResponse), alignof(GetClientBuffersResponse), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GetClientBuffersResponse::PlacementNew_, - sizeof(GetClientBuffersResponse), - alignof(GetClientBuffersResponse)); - } -} -constexpr auto GetClientBuffersResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GetClientBuffersResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GetClientBuffersResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GetClientBuffersResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GetClientBuffersResponse::ByteSizeLong, - &GetClientBuffersResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_._cached_size_), - false, - }, - &GetClientBuffersResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GetClientBuffersResponse_class_data_ = - GetClientBuffersResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GetClientBuffersResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GetClientBuffersResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GetClientBuffersResponse_class_data_.tc_table); - return GetClientBuffersResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 47, 2> -GetClientBuffersResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GetClientBuffersResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::GetClientBuffersResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 2, 0, - PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.error_)}}, - // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; - {::_pbi::TcParser::FastMtR1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.metadata_)}}, - // repeated int32 fd_indexes = 3; - {::_pbi::TcParser::FastV32P1, - {26, 1, 0, - PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.fd_indexes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.error_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; - {PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated int32 fd_indexes = 3; - {PROTOBUF_FIELD_OFFSET(GetClientBuffersResponse, _impl_.fd_indexes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, - }}, - {{ - "\41\5\0\0\0\0\0\0" - "subspace.GetClientBuffersResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void GetClientBuffersResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.GetClientBuffersResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.metadata_.Clear(); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _impl_.fd_indexes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GetClientBuffersResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GetClientBuffersResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GetClientBuffersResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GetClientBuffersResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.GetClientBuffersResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.GetClientBuffersResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (unsigned i = 0, n = static_cast( - this_._internal_metadata_size()); - i < n; i++) { - const auto& repfield = this_._internal_metadata().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - } - - // repeated int32 fd_indexes = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - { - int byte_size = this_._impl_._fd_indexes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 3, this_._internal_fd_indexes(), byte_size, target); - } - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.GetClientBuffersResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GetClientBuffersResponse::ByteSizeLong(const MessageLite& base) { - const GetClientBuffersResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GetClientBuffersResponse::ByteSizeLong() const { - const GetClientBuffersResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.GetClientBuffersResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += 1UL * this_._internal_metadata_size(); - for (const auto& msg : this_._internal_metadata()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - // repeated int32 fd_indexes = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - total_size += - ::_pbi::WireFormatLite::Int32SizeWithPackedTagSize( - this_._internal_fd_indexes(), 1, - this_._impl_._fd_indexes_cached_byte_size_); - } - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void GetClientBuffersResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.GetClientBuffersResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_metadata()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_metadata()); - } - if (CheckHasBitForRepeated(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_fd_indexes()->MergeFrom(from._internal_fd_indexes()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GetClientBuffersResponse::CopyFrom(const GetClientBuffersResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.GetClientBuffersResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GetClientBuffersResponse::InternalSwap(GetClientBuffersResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.metadata_.InternalSwap(&other->_impl_.metadata_); - _impl_.fd_indexes_.InternalSwap(&other->_impl_.fd_indexes_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); -} - -::google::protobuf::Metadata GetClientBuffersResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Request::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::subspace::Request, _impl_._oneof_case_); -}; - -void Request::set_allocated_init(::subspace::InitRequest* PROTOBUF_NULLABLE init) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (init) { - ::google::protobuf::Arena* submessage_arena = init->GetArena(); - if (message_arena != submessage_arena) { - init = ::google::protobuf::internal::GetOwnedMessage(message_arena, init, submessage_arena); - } - set_has_init(); - _impl_.request_.init_ = init; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.init) -} -void Request::set_allocated_create_publisher(::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE create_publisher) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (create_publisher) { - ::google::protobuf::Arena* submessage_arena = create_publisher->GetArena(); - if (message_arena != submessage_arena) { - create_publisher = ::google::protobuf::internal::GetOwnedMessage(message_arena, create_publisher, submessage_arena); - } - set_has_create_publisher(); - _impl_.request_.create_publisher_ = create_publisher; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.create_publisher) -} -void Request::set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE create_subscriber) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (create_subscriber) { - ::google::protobuf::Arena* submessage_arena = create_subscriber->GetArena(); - if (message_arena != submessage_arena) { - create_subscriber = ::google::protobuf::internal::GetOwnedMessage(message_arena, create_subscriber, submessage_arena); - } - set_has_create_subscriber(); - _impl_.request_.create_subscriber_ = create_subscriber; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.create_subscriber) -} -void Request::set_allocated_get_triggers(::subspace::GetTriggersRequest* PROTOBUF_NULLABLE get_triggers) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (get_triggers) { - ::google::protobuf::Arena* submessage_arena = get_triggers->GetArena(); - if (message_arena != submessage_arena) { - get_triggers = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_triggers, submessage_arena); - } - set_has_get_triggers(); - _impl_.request_.get_triggers_ = get_triggers; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_triggers) -} -void Request::set_allocated_remove_publisher(::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE remove_publisher) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (remove_publisher) { - ::google::protobuf::Arena* submessage_arena = remove_publisher->GetArena(); - if (message_arena != submessage_arena) { - remove_publisher = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove_publisher, submessage_arena); - } - set_has_remove_publisher(); - _impl_.request_.remove_publisher_ = remove_publisher; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.remove_publisher) -} -void Request::set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE remove_subscriber) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (remove_subscriber) { - ::google::protobuf::Arena* submessage_arena = remove_subscriber->GetArena(); - if (message_arena != submessage_arena) { - remove_subscriber = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove_subscriber, submessage_arena); - } - set_has_remove_subscriber(); - _impl_.request_.remove_subscriber_ = remove_subscriber; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.remove_subscriber) -} -void Request::set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE get_channel_info) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (get_channel_info) { - ::google::protobuf::Arena* submessage_arena = get_channel_info->GetArena(); - if (message_arena != submessage_arena) { - get_channel_info = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_channel_info, submessage_arena); - } - set_has_get_channel_info(); - _impl_.request_.get_channel_info_ = get_channel_info; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_channel_info) -} -void Request::set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE get_channel_stats) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (get_channel_stats) { - ::google::protobuf::Arena* submessage_arena = get_channel_stats->GetArena(); - if (message_arena != submessage_arena) { - get_channel_stats = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_channel_stats, submessage_arena); - } - set_has_get_channel_stats(); - _impl_.request_.get_channel_stats_ = get_channel_stats; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_channel_stats) -} -void Request::set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE register_client_buffer) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (register_client_buffer) { - ::google::protobuf::Arena* submessage_arena = register_client_buffer->GetArena(); - if (message_arena != submessage_arena) { - register_client_buffer = ::google::protobuf::internal::GetOwnedMessage(message_arena, register_client_buffer, submessage_arena); - } - set_has_register_client_buffer(); - _impl_.request_.register_client_buffer_ = register_client_buffer; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.register_client_buffer) -} -void Request::set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE unregister_client_buffer) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (unregister_client_buffer) { - ::google::protobuf::Arena* submessage_arena = unregister_client_buffer->GetArena(); - if (message_arena != submessage_arena) { - unregister_client_buffer = ::google::protobuf::internal::GetOwnedMessage(message_arena, unregister_client_buffer, submessage_arena); - } - set_has_unregister_client_buffer(); - _impl_.request_.unregister_client_buffer_ = unregister_client_buffer; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.unregister_client_buffer) -} -void Request::set_allocated_get_client_buffers(::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE get_client_buffers) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (get_client_buffers) { - ::google::protobuf::Arena* submessage_arena = get_client_buffers->GetArena(); - if (message_arena != submessage_arena) { - get_client_buffers = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_client_buffers, submessage_arena); - } - set_has_get_client_buffers(); - _impl_.request_.get_client_buffers_ = get_client_buffers; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Request.get_client_buffers) -} -Request::Request(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Request_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Request) -} -PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Request& from_msg) - : request_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Request::Request( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Request& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Request_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Request* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - switch (request_case()) { - case REQUEST_NOT_SET: - break; - case kInit: - _impl_.request_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.init_); - break; - case kCreatePublisher: - _impl_.request_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_publisher_); - break; - case kCreateSubscriber: - _impl_.request_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_subscriber_); - break; - case kGetTriggers: - _impl_.request_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_triggers_); - break; - case kRemovePublisher: - _impl_.request_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_publisher_); - break; - case kRemoveSubscriber: - _impl_.request_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_subscriber_); - break; - case kGetChannelInfo: - _impl_.request_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_info_); - break; - case kGetChannelStats: - _impl_.request_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_stats_); - break; - case kRegisterClientBuffer: - _impl_.request_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.register_client_buffer_); - break; - case kUnregisterClientBuffer: - _impl_.request_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.unregister_client_buffer_); - break; - case kGetClientBuffers: - _impl_.request_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_client_buffers_); - break; - } - - // @@protoc_insertion_point(copy_constructor:subspace.Request) -} -PROTOBUF_NDEBUG_INLINE Request::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : request_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void Request::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Request::~Request() { - // @@protoc_insertion_point(destructor:subspace.Request) - SharedDtor(*this); -} -inline void Request::SharedDtor(MessageLite& self) { - Request& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - if (this_.has_request()) { - this_.clear_request(); - } - this_._impl_.~Impl_(); -} - -void Request::clear_request() { -// @@protoc_insertion_point(one_of_clear_start:subspace.Request) - ::google::protobuf::internal::TSanWrite(&_impl_); - switch (request_case()) { - case kInit: { - if (GetArena() == nullptr) { - delete _impl_.request_.init_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.init_); - } - break; - } - case kCreatePublisher: { - if (GetArena() == nullptr) { - delete _impl_.request_.create_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.create_publisher_); - } - break; - } - case kCreateSubscriber: { - if (GetArena() == nullptr) { - delete _impl_.request_.create_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.create_subscriber_); - } - break; - } - case kGetTriggers: { - if (GetArena() == nullptr) { - delete _impl_.request_.get_triggers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_triggers_); - } - break; - } - case kRemovePublisher: { - if (GetArena() == nullptr) { - delete _impl_.request_.remove_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.remove_publisher_); - } - break; - } - case kRemoveSubscriber: { - if (GetArena() == nullptr) { - delete _impl_.request_.remove_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.remove_subscriber_); - } - break; - } - case kGetChannelInfo: { - if (GetArena() == nullptr) { - delete _impl_.request_.get_channel_info_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_channel_info_); - } - break; - } - case kGetChannelStats: { - if (GetArena() == nullptr) { - delete _impl_.request_.get_channel_stats_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_channel_stats_); - } - break; - } - case kRegisterClientBuffer: { - if (GetArena() == nullptr) { - delete _impl_.request_.register_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.register_client_buffer_); - } - break; - } - case kUnregisterClientBuffer: { - if (GetArena() == nullptr) { - delete _impl_.request_.unregister_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.unregister_client_buffer_); - } - break; - } - case kGetClientBuffers: { - if (GetArena() == nullptr) { - delete _impl_.request_.get_client_buffers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_client_buffers_); - } - break; - } - case REQUEST_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = REQUEST_NOT_SET; -} - - -inline void* PROTOBUF_NONNULL Request::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Request(arena); -} -constexpr auto Request::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Request), - alignof(Request)); -} -constexpr auto Request::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Request_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Request::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Request::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Request::ByteSizeLong, - &Request::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Request, _impl_._cached_size_), - false, - }, - &Request::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Request_class_data_ = - Request::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Request::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Request_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Request_class_data_.tc_table); - return Request_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 11, 11, 0, 2> -Request::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 13, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294959296, // skipmap - offsetof(decltype(_table_), field_entries), - 11, // num_field_entries - 11, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Request_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Request>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .subspace.InitRequest init = 1; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.init_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.CreatePublisherRequest create_publisher = 2; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.create_publisher_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.CreateSubscriberRequest create_subscriber = 3; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.create_subscriber_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetTriggersRequest get_triggers = 4; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_triggers_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RemovePublisherRequest remove_publisher = 5; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RemoveSubscriberRequest remove_subscriber = 6; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetChannelInfoRequest get_channel_info = 9; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_channel_info_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetChannelStatsRequest get_channel_stats = 10; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_channel_stats_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RegisterClientBufferRequest register_client_buffer = 11; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.unregister_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetClientBuffersRequest get_client_buffers = 13; - {PROTOBUF_FIELD_OFFSET(Request, _impl_.request_.get_client_buffers_), _Internal::kOneofCaseOffset + 0, 10, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::InitRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::CreatePublisherRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::CreateSubscriberRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::GetTriggersRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RemovePublisherRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelInfoRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelStatsRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::UnregisterClientBufferRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::GetClientBuffersRequest>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Request::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Request) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_request(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Request::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Request& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Request::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Request& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Request) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (this_.request_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.request_.init_, this_._impl_.request_.init_->GetCachedSize(), target, - stream); - break; - } - case kCreatePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.request_.create_publisher_, this_._impl_.request_.create_publisher_->GetCachedSize(), target, - stream); - break; - } - case kCreateSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.request_.create_subscriber_, this_._impl_.request_.create_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetTriggers: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.request_.get_triggers_, this_._impl_.request_.get_triggers_->GetCachedSize(), target, - stream); - break; - } - case kRemovePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.request_.remove_publisher_, this_._impl_.request_.remove_publisher_->GetCachedSize(), target, - stream); - break; - } - case kRemoveSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.request_.remove_subscriber_, this_._impl_.request_.remove_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelInfo: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *this_._impl_.request_.get_channel_info_, this_._impl_.request_.get_channel_info_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelStats: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, *this_._impl_.request_.get_channel_stats_, this_._impl_.request_.get_channel_stats_->GetCachedSize(), target, - stream); - break; - } - case kRegisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, *this_._impl_.request_.register_client_buffer_, this_._impl_.request_.register_client_buffer_->GetCachedSize(), target, - stream); - break; - } - case kUnregisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *this_._impl_.request_.unregister_client_buffer_, this_._impl_.request_.unregister_client_buffer_->GetCachedSize(), target, - stream); - break; - } - case kGetClientBuffers: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 13, *this_._impl_.request_.get_client_buffers_, this_._impl_.request_.get_client_buffers_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Request) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Request::ByteSizeLong(const MessageLite& base) { - const Request& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Request::ByteSizeLong() const { - const Request& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Request) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - switch (this_.request_case()) { - // .subspace.InitRequest init = 1; - case kInit: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.init_); - break; - } - // .subspace.CreatePublisherRequest create_publisher = 2; - case kCreatePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.create_publisher_); - break; - } - // .subspace.CreateSubscriberRequest create_subscriber = 3; - case kCreateSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.create_subscriber_); - break; - } - // .subspace.GetTriggersRequest get_triggers = 4; - case kGetTriggers: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_triggers_); - break; - } - // .subspace.RemovePublisherRequest remove_publisher = 5; - case kRemovePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.remove_publisher_); - break; - } - // .subspace.RemoveSubscriberRequest remove_subscriber = 6; - case kRemoveSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.remove_subscriber_); - break; - } - // .subspace.GetChannelInfoRequest get_channel_info = 9; - case kGetChannelInfo: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_channel_info_); - break; - } - // .subspace.GetChannelStatsRequest get_channel_stats = 10; - case kGetChannelStats: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_channel_stats_); - break; - } - // .subspace.RegisterClientBufferRequest register_client_buffer = 11; - case kRegisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.register_client_buffer_); - break; - } - // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; - case kUnregisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.unregister_client_buffer_); - break; - } - // .subspace.GetClientBuffersRequest get_client_buffers = 13; - case kGetClientBuffers: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.get_client_buffers_); - break; - } - case REQUEST_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Request::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Request) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - if (const uint32_t oneof_from_case = - from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_request(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kInit: { - if (oneof_needs_init) { - _this->_impl_.request_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.init_); - } else { - _this->_impl_.request_.init_->MergeFrom(*from._impl_.request_.init_); - } - break; - } - case kCreatePublisher: { - if (oneof_needs_init) { - _this->_impl_.request_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_publisher_); - } else { - _this->_impl_.request_.create_publisher_->MergeFrom(*from._impl_.request_.create_publisher_); - } - break; - } - case kCreateSubscriber: { - if (oneof_needs_init) { - _this->_impl_.request_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.create_subscriber_); - } else { - _this->_impl_.request_.create_subscriber_->MergeFrom(*from._impl_.request_.create_subscriber_); - } - break; - } - case kGetTriggers: { - if (oneof_needs_init) { - _this->_impl_.request_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_triggers_); - } else { - _this->_impl_.request_.get_triggers_->MergeFrom(*from._impl_.request_.get_triggers_); - } - break; - } - case kRemovePublisher: { - if (oneof_needs_init) { - _this->_impl_.request_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_publisher_); - } else { - _this->_impl_.request_.remove_publisher_->MergeFrom(*from._impl_.request_.remove_publisher_); - } - break; - } - case kRemoveSubscriber: { - if (oneof_needs_init) { - _this->_impl_.request_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.remove_subscriber_); - } else { - _this->_impl_.request_.remove_subscriber_->MergeFrom(*from._impl_.request_.remove_subscriber_); - } - break; - } - case kGetChannelInfo: { - if (oneof_needs_init) { - _this->_impl_.request_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_info_); - } else { - _this->_impl_.request_.get_channel_info_->MergeFrom(*from._impl_.request_.get_channel_info_); - } - break; - } - case kGetChannelStats: { - if (oneof_needs_init) { - _this->_impl_.request_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_channel_stats_); - } else { - _this->_impl_.request_.get_channel_stats_->MergeFrom(*from._impl_.request_.get_channel_stats_); - } - break; - } - case kRegisterClientBuffer: { - if (oneof_needs_init) { - _this->_impl_.request_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.register_client_buffer_); - } else { - _this->_impl_.request_.register_client_buffer_->MergeFrom(*from._impl_.request_.register_client_buffer_); - } - break; - } - case kUnregisterClientBuffer: { - if (oneof_needs_init) { - _this->_impl_.request_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.unregister_client_buffer_); - } else { - _this->_impl_.request_.unregister_client_buffer_->MergeFrom(*from._impl_.request_.unregister_client_buffer_); - } - break; - } - case kGetClientBuffers: { - if (oneof_needs_init) { - _this->_impl_.request_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.get_client_buffers_); - } else { - _this->_impl_.request_.get_client_buffers_->MergeFrom(*from._impl_.request_.get_client_buffers_); - } - break; - } - case REQUEST_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Request::CopyFrom(const Request& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Request) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Request::InternalSwap(Request* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.request_, other->_impl_.request_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata Request::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Response::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::subspace::Response, _impl_._oneof_case_); -}; - -void Response::set_allocated_init(::subspace::InitResponse* PROTOBUF_NULLABLE init) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (init) { - ::google::protobuf::Arena* submessage_arena = init->GetArena(); - if (message_arena != submessage_arena) { - init = ::google::protobuf::internal::GetOwnedMessage(message_arena, init, submessage_arena); - } - set_has_init(); - _impl_.response_.init_ = init; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.init) -} -void Response::set_allocated_create_publisher(::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE create_publisher) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (create_publisher) { - ::google::protobuf::Arena* submessage_arena = create_publisher->GetArena(); - if (message_arena != submessage_arena) { - create_publisher = ::google::protobuf::internal::GetOwnedMessage(message_arena, create_publisher, submessage_arena); - } - set_has_create_publisher(); - _impl_.response_.create_publisher_ = create_publisher; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.create_publisher) -} -void Response::set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE create_subscriber) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (create_subscriber) { - ::google::protobuf::Arena* submessage_arena = create_subscriber->GetArena(); - if (message_arena != submessage_arena) { - create_subscriber = ::google::protobuf::internal::GetOwnedMessage(message_arena, create_subscriber, submessage_arena); - } - set_has_create_subscriber(); - _impl_.response_.create_subscriber_ = create_subscriber; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.create_subscriber) -} -void Response::set_allocated_get_triggers(::subspace::GetTriggersResponse* PROTOBUF_NULLABLE get_triggers) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (get_triggers) { - ::google::protobuf::Arena* submessage_arena = get_triggers->GetArena(); - if (message_arena != submessage_arena) { - get_triggers = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_triggers, submessage_arena); - } - set_has_get_triggers(); - _impl_.response_.get_triggers_ = get_triggers; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_triggers) -} -void Response::set_allocated_remove_publisher(::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE remove_publisher) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (remove_publisher) { - ::google::protobuf::Arena* submessage_arena = remove_publisher->GetArena(); - if (message_arena != submessage_arena) { - remove_publisher = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove_publisher, submessage_arena); - } - set_has_remove_publisher(); - _impl_.response_.remove_publisher_ = remove_publisher; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.remove_publisher) -} -void Response::set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE remove_subscriber) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (remove_subscriber) { - ::google::protobuf::Arena* submessage_arena = remove_subscriber->GetArena(); - if (message_arena != submessage_arena) { - remove_subscriber = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove_subscriber, submessage_arena); - } - set_has_remove_subscriber(); - _impl_.response_.remove_subscriber_ = remove_subscriber; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.remove_subscriber) -} -void Response::set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE get_channel_info) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (get_channel_info) { - ::google::protobuf::Arena* submessage_arena = get_channel_info->GetArena(); - if (message_arena != submessage_arena) { - get_channel_info = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_channel_info, submessage_arena); - } - set_has_get_channel_info(); - _impl_.response_.get_channel_info_ = get_channel_info; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_channel_info) -} -void Response::set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE get_channel_stats) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (get_channel_stats) { - ::google::protobuf::Arena* submessage_arena = get_channel_stats->GetArena(); - if (message_arena != submessage_arena) { - get_channel_stats = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_channel_stats, submessage_arena); - } - set_has_get_channel_stats(); - _impl_.response_.get_channel_stats_ = get_channel_stats; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_channel_stats) -} -void Response::set_allocated_get_client_buffers(::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE get_client_buffers) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (get_client_buffers) { - ::google::protobuf::Arena* submessage_arena = get_client_buffers->GetArena(); - if (message_arena != submessage_arena) { - get_client_buffers = ::google::protobuf::internal::GetOwnedMessage(message_arena, get_client_buffers, submessage_arena); - } - set_has_get_client_buffers(); - _impl_.response_.get_client_buffers_ = get_client_buffers; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.get_client_buffers) -} -void Response::set_allocated_register_client_buffer(::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE register_client_buffer) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (register_client_buffer) { - ::google::protobuf::Arena* submessage_arena = register_client_buffer->GetArena(); - if (message_arena != submessage_arena) { - register_client_buffer = ::google::protobuf::internal::GetOwnedMessage(message_arena, register_client_buffer, submessage_arena); - } - set_has_register_client_buffer(); - _impl_.response_.register_client_buffer_ = register_client_buffer; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Response.register_client_buffer) -} -Response::Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Response_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Response) -} -PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Response& from_msg) - : response_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -Response::Response( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Response& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Response_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Response* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - switch (response_case()) { - case RESPONSE_NOT_SET: - break; - case kInit: - _impl_.response_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.init_); - break; - case kCreatePublisher: - _impl_.response_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_publisher_); - break; - case kCreateSubscriber: - _impl_.response_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_subscriber_); - break; - case kGetTriggers: - _impl_.response_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_triggers_); - break; - case kRemovePublisher: - _impl_.response_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_publisher_); - break; - case kRemoveSubscriber: - _impl_.response_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_subscriber_); - break; - case kGetChannelInfo: - _impl_.response_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_info_); - break; - case kGetChannelStats: - _impl_.response_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_stats_); - break; - case kGetClientBuffers: - _impl_.response_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_client_buffers_); - break; - case kRegisterClientBuffer: - _impl_.response_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.register_client_buffer_); - break; - } - - // @@protoc_insertion_point(copy_constructor:subspace.Response) -} -PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : response_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void Response::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Response::~Response() { - // @@protoc_insertion_point(destructor:subspace.Response) - SharedDtor(*this); -} -inline void Response::SharedDtor(MessageLite& self) { - Response& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - if (this_.has_response()) { - this_.clear_response(); - } - this_._impl_.~Impl_(); -} - -void Response::clear_response() { -// @@protoc_insertion_point(one_of_clear_start:subspace.Response) - ::google::protobuf::internal::TSanWrite(&_impl_); - switch (response_case()) { - case kInit: { - if (GetArena() == nullptr) { - delete _impl_.response_.init_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.init_); - } - break; - } - case kCreatePublisher: { - if (GetArena() == nullptr) { - delete _impl_.response_.create_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.create_publisher_); - } - break; - } - case kCreateSubscriber: { - if (GetArena() == nullptr) { - delete _impl_.response_.create_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.create_subscriber_); - } - break; - } - case kGetTriggers: { - if (GetArena() == nullptr) { - delete _impl_.response_.get_triggers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_triggers_); - } - break; - } - case kRemovePublisher: { - if (GetArena() == nullptr) { - delete _impl_.response_.remove_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.remove_publisher_); - } - break; - } - case kRemoveSubscriber: { - if (GetArena() == nullptr) { - delete _impl_.response_.remove_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.remove_subscriber_); - } - break; - } - case kGetChannelInfo: { - if (GetArena() == nullptr) { - delete _impl_.response_.get_channel_info_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_channel_info_); - } - break; - } - case kGetChannelStats: { - if (GetArena() == nullptr) { - delete _impl_.response_.get_channel_stats_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_channel_stats_); - } - break; - } - case kGetClientBuffers: { - if (GetArena() == nullptr) { - delete _impl_.response_.get_client_buffers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_client_buffers_); - } - break; - } - case kRegisterClientBuffer: { - if (GetArena() == nullptr) { - delete _impl_.response_.register_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.register_client_buffer_); - } - break; - } - case RESPONSE_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = RESPONSE_NOT_SET; -} - - -inline void* PROTOBUF_NONNULL Response::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response(arena); -} -constexpr auto Response::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Response), - alignof(Response)); -} -constexpr auto Response::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Response_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Response::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Response::ByteSizeLong, - &Response::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), - false, - }, - &Response::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Response_class_data_ = - Response::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Response::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Response_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Response_class_data_.tc_table); - return Response_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 10, 10, 0, 2> -Response::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963392, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 10, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Response_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Response>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .subspace.InitResponse init = 1; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.init_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.CreatePublisherResponse create_publisher = 2; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.create_publisher_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.CreateSubscriberResponse create_subscriber = 3; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.create_subscriber_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetTriggersResponse get_triggers = 4; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_triggers_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RemovePublisherResponse remove_publisher = 5; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RemoveSubscriberResponse remove_subscriber = 6; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetChannelInfoResponse get_channel_info = 9; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_channel_info_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetChannelStatsResponse get_channel_stats = 10; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_channel_stats_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.GetClientBuffersResponse get_client_buffers = 11; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.get_client_buffers_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RegisterClientBufferResponse register_client_buffer = 12; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.response_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::InitResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::CreatePublisherResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::CreateSubscriberResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::GetTriggersResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::RemovePublisherResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::RemoveSubscriberResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelInfoResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::GetChannelStatsResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::GetClientBuffersResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::RegisterClientBufferResponse>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Response::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Response) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_response(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Response& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Response& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Response) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (this_.response_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.response_.init_, this_._impl_.response_.init_->GetCachedSize(), target, - stream); - break; - } - case kCreatePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.response_.create_publisher_, this_._impl_.response_.create_publisher_->GetCachedSize(), target, - stream); - break; - } - case kCreateSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.response_.create_subscriber_, this_._impl_.response_.create_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetTriggers: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.response_.get_triggers_, this_._impl_.response_.get_triggers_->GetCachedSize(), target, - stream); - break; - } - case kRemovePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.response_.remove_publisher_, this_._impl_.response_.remove_publisher_->GetCachedSize(), target, - stream); - break; - } - case kRemoveSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.response_.remove_subscriber_, this_._impl_.response_.remove_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelInfo: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *this_._impl_.response_.get_channel_info_, this_._impl_.response_.get_channel_info_->GetCachedSize(), target, - stream); - break; - } - case kGetChannelStats: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, *this_._impl_.response_.get_channel_stats_, this_._impl_.response_.get_channel_stats_->GetCachedSize(), target, - stream); - break; - } - case kGetClientBuffers: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, *this_._impl_.response_.get_client_buffers_, this_._impl_.response_.get_client_buffers_->GetCachedSize(), target, - stream); - break; - } - case kRegisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *this_._impl_.response_.register_client_buffer_, this_._impl_.response_.register_client_buffer_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Response) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Response::ByteSizeLong(const MessageLite& base) { - const Response& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Response::ByteSizeLong() const { - const Response& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Response) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - switch (this_.response_case()) { - // .subspace.InitResponse init = 1; - case kInit: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.init_); - break; - } - // .subspace.CreatePublisherResponse create_publisher = 2; - case kCreatePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.create_publisher_); - break; - } - // .subspace.CreateSubscriberResponse create_subscriber = 3; - case kCreateSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.create_subscriber_); - break; - } - // .subspace.GetTriggersResponse get_triggers = 4; - case kGetTriggers: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_triggers_); - break; - } - // .subspace.RemovePublisherResponse remove_publisher = 5; - case kRemovePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.remove_publisher_); - break; - } - // .subspace.RemoveSubscriberResponse remove_subscriber = 6; - case kRemoveSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.remove_subscriber_); - break; - } - // .subspace.GetChannelInfoResponse get_channel_info = 9; - case kGetChannelInfo: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_channel_info_); - break; - } - // .subspace.GetChannelStatsResponse get_channel_stats = 10; - case kGetChannelStats: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_channel_stats_); - break; - } - // .subspace.GetClientBuffersResponse get_client_buffers = 11; - case kGetClientBuffers: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.get_client_buffers_); - break; - } - // .subspace.RegisterClientBufferResponse register_client_buffer = 12; - case kRegisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.register_client_buffer_); - break; - } - case RESPONSE_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Response) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - if (const uint32_t oneof_from_case = - from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_response(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kInit: { - if (oneof_needs_init) { - _this->_impl_.response_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.init_); - } else { - _this->_impl_.response_.init_->MergeFrom(*from._impl_.response_.init_); - } - break; - } - case kCreatePublisher: { - if (oneof_needs_init) { - _this->_impl_.response_.create_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_publisher_); - } else { - _this->_impl_.response_.create_publisher_->MergeFrom(*from._impl_.response_.create_publisher_); - } - break; - } - case kCreateSubscriber: { - if (oneof_needs_init) { - _this->_impl_.response_.create_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.create_subscriber_); - } else { - _this->_impl_.response_.create_subscriber_->MergeFrom(*from._impl_.response_.create_subscriber_); - } - break; - } - case kGetTriggers: { - if (oneof_needs_init) { - _this->_impl_.response_.get_triggers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_triggers_); - } else { - _this->_impl_.response_.get_triggers_->MergeFrom(*from._impl_.response_.get_triggers_); - } - break; - } - case kRemovePublisher: { - if (oneof_needs_init) { - _this->_impl_.response_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_publisher_); - } else { - _this->_impl_.response_.remove_publisher_->MergeFrom(*from._impl_.response_.remove_publisher_); - } - break; - } - case kRemoveSubscriber: { - if (oneof_needs_init) { - _this->_impl_.response_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.remove_subscriber_); - } else { - _this->_impl_.response_.remove_subscriber_->MergeFrom(*from._impl_.response_.remove_subscriber_); - } - break; - } - case kGetChannelInfo: { - if (oneof_needs_init) { - _this->_impl_.response_.get_channel_info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_info_); - } else { - _this->_impl_.response_.get_channel_info_->MergeFrom(*from._impl_.response_.get_channel_info_); - } - break; - } - case kGetChannelStats: { - if (oneof_needs_init) { - _this->_impl_.response_.get_channel_stats_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_channel_stats_); - } else { - _this->_impl_.response_.get_channel_stats_->MergeFrom(*from._impl_.response_.get_channel_stats_); - } - break; - } - case kGetClientBuffers: { - if (oneof_needs_init) { - _this->_impl_.response_.get_client_buffers_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.get_client_buffers_); - } else { - _this->_impl_.response_.get_client_buffers_->MergeFrom(*from._impl_.response_.get_client_buffers_); - } - break; - } - case kRegisterClientBuffer: { - if (oneof_needs_init) { - _this->_impl_.response_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.register_client_buffer_); - } else { - _this->_impl_.response_.register_client_buffer_->MergeFrom(*from._impl_.response_.register_client_buffer_); - } - break; - } - case RESPONSE_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Response::CopyFrom(const Response& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Response) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Response::InternalSwap(Response* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.response_, other->_impl_.response_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata Response::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ChannelInfoProto::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_._has_bits_); -}; - -ChannelInfoProto::ChannelInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelInfoProto_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ChannelInfoProto) -} -PROTOBUF_NDEBUG_INLINE ChannelInfoProto::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ChannelInfoProto& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - type_(arena, from.type_), - mux_(arena, from.mux_) {} - -ChannelInfoProto::ChannelInfoProto( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ChannelInfoProto& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelInfoProto_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ChannelInfoProto* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, slot_size_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, slot_size_), - offsetof(Impl_, num_tunnel_subs_) - - offsetof(Impl_, slot_size_) + - sizeof(Impl_::num_tunnel_subs_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ChannelInfoProto) -} -PROTOBUF_NDEBUG_INLINE ChannelInfoProto::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - name_(arena), - type_(arena), - mux_(arena) {} - -inline void ChannelInfoProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, slot_size_), - 0, - offsetof(Impl_, num_tunnel_subs_) - - offsetof(Impl_, slot_size_) + - sizeof(Impl_::num_tunnel_subs_)); -} -ChannelInfoProto::~ChannelInfoProto() { - // @@protoc_insertion_point(destructor:subspace.ChannelInfoProto) - SharedDtor(*this); -} -inline void ChannelInfoProto::SharedDtor(MessageLite& self) { - ChannelInfoProto& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.name_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.mux_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ChannelInfoProto::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ChannelInfoProto(arena); -} -constexpr auto ChannelInfoProto::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ChannelInfoProto), - alignof(ChannelInfoProto)); -} -constexpr auto ChannelInfoProto::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ChannelInfoProto_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelInfoProto::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelInfoProto::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelInfoProto::ByteSizeLong, - &ChannelInfoProto::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_._cached_size_), - false, - }, - &ChannelInfoProto::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ChannelInfoProto_class_data_ = - ChannelInfoProto::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ChannelInfoProto::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ChannelInfoProto_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ChannelInfoProto_class_data_.tc_table); - return ChannelInfoProto_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 14, 0, 49, 2> -ChannelInfoProto::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_._has_bits_), - 0, // no _extensions_ - 14, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294950912, // skipmap - offsetof(decltype(_table_), field_entries), - 14, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ChannelInfoProto_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ChannelInfoProto>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.name_)}}, - // int32 slot_size = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.slot_size_), 3>(), - {16, 3, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.slot_size_)}}, - // int32 num_slots = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_slots_), 4>(), - {24, 4, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_slots_)}}, - // bytes type = 4; - {::_pbi::TcParser::FastBS1, - {34, 1, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.type_)}}, - // int32 num_pubs = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_pubs_), 5>(), - {40, 5, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_pubs_)}}, - // int32 num_subs = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_subs_), 6>(), - {48, 6, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_subs_)}}, - // int32 num_bridge_pubs = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_bridge_pubs_), 7>(), - {56, 7, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_pubs_)}}, - // int32 num_bridge_subs = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_bridge_subs_), 8>(), - {64, 8, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_subs_)}}, - // bool is_reliable = 9; - {::_pbi::TcParser::SingularVarintNoZag1(), - {72, 9, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_reliable_)}}, - // bool is_virtual = 10; - {::_pbi::TcParser::SingularVarintNoZag1(), - {80, 10, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_virtual_)}}, - // int32 vchan_id = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.vchan_id_), 11>(), - {88, 11, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.vchan_id_)}}, - // string mux = 12; - {::_pbi::TcParser::FastUS1, - {98, 2, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.mux_)}}, - // int32 num_tunnel_pubs = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_tunnel_pubs_), 12>(), - {104, 12, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_pubs_)}}, - // int32 num_tunnel_subs = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelInfoProto, _impl_.num_tunnel_subs_), 13>(), - {112, 13, 0, - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_subs_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 slot_size = 2; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.slot_size_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_slots = 3; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_slots_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bytes type = 4; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // int32 num_pubs = 5; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_pubs_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_subs = 6; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_subs_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_bridge_pubs = 7; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_pubs_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_bridge_subs = 8; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_bridge_subs_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool is_reliable = 9; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_reliable_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_virtual = 10; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.is_virtual_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 vchan_id = 11; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.vchan_id_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // string mux = 12; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 num_tunnel_pubs = 13; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_pubs_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_tunnel_subs = 14; - {PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_subs_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\31\4\0\0\0\0\0\0\0\0\0\0\3\0\0\0" - "subspace.ChannelInfoProto" - "name" - "mux" - }}, -}; -PROTOBUF_NOINLINE void ChannelInfoProto::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ChannelInfoProto) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.mux_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { - ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_bridge_pubs_) - - reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.num_bridge_pubs_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { - ::memset(&_impl_.num_bridge_subs_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_tunnel_subs_) - - reinterpret_cast(&_impl_.num_bridge_subs_)) + sizeof(_impl_.num_tunnel_subs_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ChannelInfoProto::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ChannelInfoProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ChannelInfoProto::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ChannelInfoProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelInfoProto) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - const ::std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelInfoProto.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 slot_size = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_slot_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_slot_size(), target); - } - } - - // int32 num_slots = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_num_slots() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_num_slots(), target); - } - } - - // bytes type = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - } - - // int32 num_pubs = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_num_pubs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( - stream, this_._internal_num_pubs(), target); - } - } - - // int32 num_subs = 6; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_num_subs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( - stream, this_._internal_num_subs(), target); - } - } - - // int32 num_bridge_pubs = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_num_bridge_pubs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( - stream, this_._internal_num_bridge_pubs(), target); - } - } - - // int32 num_bridge_subs = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_num_bridge_subs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( - stream, this_._internal_num_bridge_subs(), target); - } - } - - // bool is_reliable = 9; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 9, this_._internal_is_reliable(), target); - } - } - - // bool is_virtual = 10; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_is_virtual() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 10, this_._internal_is_virtual(), target); - } - } - - // int32 vchan_id = 11; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_vchan_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( - stream, this_._internal_vchan_id(), target); - } - } - - // string mux = 12; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - const ::std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelInfoProto.mux"); - target = stream->WriteStringMaybeAliased(12, _s, target); - } - } - - // int32 num_tunnel_pubs = 13; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_num_tunnel_pubs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<13>( - stream, this_._internal_num_tunnel_pubs(), target); - } - } - - // int32 num_tunnel_subs = 14; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_num_tunnel_subs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<14>( - stream, this_._internal_num_tunnel_subs(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelInfoProto) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ChannelInfoProto::ByteSizeLong(const MessageLite& base) { - const ChannelInfoProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ChannelInfoProto::ByteSizeLong() const { - const ChannelInfoProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelInfoProto) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - } - // bytes type = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - } - // string mux = 12; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - } - // int32 slot_size = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - } - // int32 num_slots = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - // int32 num_pubs = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_num_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_pubs()); - } - } - // int32 num_subs = 6; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_num_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_subs()); - } - } - // int32 num_bridge_pubs = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_num_bridge_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_pubs()); - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { - // int32 num_bridge_subs = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_num_bridge_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_subs()); - } - } - // bool is_reliable = 9; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - } - // bool is_virtual = 10; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_is_virtual() != 0) { - total_size += 2; - } - } - // int32 vchan_id = 11; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - } - // int32 num_tunnel_pubs = 13; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_num_tunnel_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_tunnel_pubs()); - } - } - // int32 num_tunnel_subs = 14; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_num_tunnel_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_tunnel_subs()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ChannelInfoProto::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelInfoProto) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } else { - if (_this->_impl_.name_.IsDefault()) { - _this->_internal_set_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); - } else { - if (_this->_impl_.mux_.IsDefault()) { - _this->_internal_set_mux(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_num_pubs() != 0) { - _this->_impl_.num_pubs_ = from._impl_.num_pubs_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_num_subs() != 0) { - _this->_impl_.num_subs_ = from._impl_.num_subs_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_num_bridge_pubs() != 0) { - _this->_impl_.num_bridge_pubs_ = from._impl_.num_bridge_pubs_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00003f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_num_bridge_subs() != 0) { - _this->_impl_.num_bridge_subs_ = from._impl_.num_bridge_subs_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (from._internal_is_virtual() != 0) { - _this->_impl_.is_virtual_ = from._impl_.is_virtual_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (from._internal_num_tunnel_pubs() != 0) { - _this->_impl_.num_tunnel_pubs_ = from._impl_.num_tunnel_pubs_; - } - } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (from._internal_num_tunnel_subs() != 0) { - _this->_impl_.num_tunnel_subs_ = from._impl_.num_tunnel_subs_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ChannelInfoProto::CopyFrom(const ChannelInfoProto& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelInfoProto) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ChannelInfoProto::InternalSwap(ChannelInfoProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.num_tunnel_subs_) - + sizeof(ChannelInfoProto::_impl_.num_tunnel_subs_) - - PROTOBUF_FIELD_OFFSET(ChannelInfoProto, _impl_.slot_size_)>( - reinterpret_cast(&_impl_.slot_size_), - reinterpret_cast(&other->_impl_.slot_size_)); -} - -::google::protobuf::Metadata ChannelInfoProto::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ChannelDirectory::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_._has_bits_); -}; - -ChannelDirectory::ChannelDirectory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelDirectory_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ChannelDirectory) -} -PROTOBUF_NDEBUG_INLINE ChannelDirectory::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ChannelDirectory& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channels_{visibility, arena, from.channels_}, - server_id_(arena, from.server_id_) {} - -ChannelDirectory::ChannelDirectory( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ChannelDirectory& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelDirectory_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ChannelDirectory* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.ChannelDirectory) -} -PROTOBUF_NDEBUG_INLINE ChannelDirectory::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channels_{visibility, arena}, - server_id_(arena) {} - -inline void ChannelDirectory::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ChannelDirectory::~ChannelDirectory() { - // @@protoc_insertion_point(destructor:subspace.ChannelDirectory) - SharedDtor(*this); -} -inline void ChannelDirectory::SharedDtor(MessageLite& self) { - ChannelDirectory& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.server_id_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ChannelDirectory::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ChannelDirectory(arena); -} -constexpr auto ChannelDirectory::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.channels_) + - decltype(ChannelDirectory::_impl_.channels_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(ChannelDirectory), alignof(ChannelDirectory), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&ChannelDirectory::PlacementNew_, - sizeof(ChannelDirectory), - alignof(ChannelDirectory)); - } -} -constexpr auto ChannelDirectory::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ChannelDirectory_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelDirectory::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelDirectory::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelDirectory::ByteSizeLong, - &ChannelDirectory::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_._cached_size_), - false, - }, - &ChannelDirectory::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ChannelDirectory_class_data_ = - ChannelDirectory::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ChannelDirectory::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ChannelDirectory_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ChannelDirectory_class_data_.tc_table); - return ChannelDirectory_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 43, 2> -ChannelDirectory::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - ChannelDirectory_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ChannelDirectory>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .subspace.ChannelInfoProto channels = 2; - {::_pbi::TcParser::FastMtR1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.channels_)}}, - // string server_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 1, 0, - PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.server_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string server_id = 1; - {PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.server_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .subspace.ChannelInfoProto channels = 2; - {PROTOBUF_FIELD_OFFSET(ChannelDirectory, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelInfoProto>()}, - }}, - {{ - "\31\11\0\0\0\0\0\0" - "subspace.ChannelDirectory" - "server_id" - }}, -}; -PROTOBUF_NOINLINE void ChannelDirectory::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ChannelDirectory) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.channels_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.server_id_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ChannelDirectory::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ChannelDirectory& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ChannelDirectory::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ChannelDirectory& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelDirectory) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string server_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_server_id().empty()) { - const ::std::string& _s = this_._internal_server_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelDirectory.server_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // repeated .subspace.ChannelInfoProto channels = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelDirectory) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ChannelDirectory::ByteSizeLong(const MessageLite& base) { - const ChannelDirectory& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ChannelDirectory::ByteSizeLong() const { - const ChannelDirectory& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelDirectory) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // repeated .subspace.ChannelInfoProto channels = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - // string server_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_server_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_server_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ChannelDirectory::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelDirectory) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_channels()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_channels()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_server_id().empty()) { - _this->_internal_set_server_id(from._internal_server_id()); - } else { - if (_this->_impl_.server_id_.IsDefault()) { - _this->_internal_set_server_id(""); - } - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ChannelDirectory::CopyFrom(const ChannelDirectory& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelDirectory) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ChannelDirectory::InternalSwap(ChannelDirectory* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.channels_.InternalSwap(&other->_impl_.channels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_id_, &other->_impl_.server_id_, arena); -} - -::google::protobuf::Metadata ChannelDirectory::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ChannelStatsProto::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_._has_bits_); -}; - -ChannelStatsProto::ChannelStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelStatsProto_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ChannelStatsProto) -} -PROTOBUF_NDEBUG_INLINE ChannelStatsProto::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ChannelStatsProto& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ChannelStatsProto::ChannelStatsProto( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ChannelStatsProto& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelStatsProto_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ChannelStatsProto* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, total_bytes_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, total_bytes_), - offsetof(Impl_, num_bridge_subs_) - - offsetof(Impl_, total_bytes_) + - sizeof(Impl_::num_bridge_subs_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ChannelStatsProto) -} -PROTOBUF_NDEBUG_INLINE ChannelStatsProto::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ChannelStatsProto::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, total_bytes_), - 0, - offsetof(Impl_, num_bridge_subs_) - - offsetof(Impl_, total_bytes_) + - sizeof(Impl_::num_bridge_subs_)); -} -ChannelStatsProto::~ChannelStatsProto() { - // @@protoc_insertion_point(destructor:subspace.ChannelStatsProto) - SharedDtor(*this); -} -inline void ChannelStatsProto::SharedDtor(MessageLite& self) { - ChannelStatsProto& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ChannelStatsProto::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ChannelStatsProto(arena); -} -constexpr auto ChannelStatsProto::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ChannelStatsProto), - alignof(ChannelStatsProto)); -} -constexpr auto ChannelStatsProto::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ChannelStatsProto_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelStatsProto::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelStatsProto::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelStatsProto::ByteSizeLong, - &ChannelStatsProto::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_._cached_size_), - false, - }, - &ChannelStatsProto::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ChannelStatsProto_class_data_ = - ChannelStatsProto::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ChannelStatsProto::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ChannelStatsProto_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ChannelStatsProto_class_data_.tc_table); - return ChannelStatsProto_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 0, 55, 2> -ChannelStatsProto::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_._has_bits_), - 0, // no _extensions_ - 11, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294965248, // skipmap - offsetof(decltype(_table_), field_entries), - 11, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ChannelStatsProto_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ChannelStatsProto>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.channel_name_)}}, - // int64 total_bytes = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ChannelStatsProto, _impl_.total_bytes_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_bytes_)}}, - // int64 total_messages = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ChannelStatsProto, _impl_.total_messages_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_messages_)}}, - // int32 slot_size = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.slot_size_), 3>(), - {32, 3, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.slot_size_)}}, - // int32 num_slots = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_slots_), 4>(), - {40, 4, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_slots_)}}, - // int32 num_pubs = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_pubs_), 5>(), - {48, 5, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_pubs_)}}, - // int32 num_subs = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_subs_), 6>(), - {56, 6, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_subs_)}}, - // uint32 max_message_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.max_message_size_), 7>(), - {64, 7, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.max_message_size_)}}, - // uint32 total_drops = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.total_drops_), 8>(), - {72, 8, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_drops_)}}, - // int32 num_bridge_pubs = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_bridge_pubs_), 9>(), - {80, 9, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_pubs_)}}, - // int32 num_bridge_subs = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelStatsProto, _impl_.num_bridge_subs_), 10>(), - {88, 10, 0, - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 total_bytes = 2; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_bytes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 total_messages = 3; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_messages_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int32 slot_size = 4; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.slot_size_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_slots = 5; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_slots_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_pubs = 6; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_pubs_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_subs = 7; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_subs_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // uint32 max_message_size = 8; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.max_message_size_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // uint32 total_drops = 9; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_drops_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - // int32 num_bridge_pubs = 10; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_pubs_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_bridge_subs = 11; - {PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\32\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "subspace.ChannelStatsProto" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ChannelStatsProto::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ChannelStatsProto) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { - ::memset(&_impl_.total_bytes_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_message_size_) - - reinterpret_cast(&_impl_.total_bytes_)) + sizeof(_impl_.max_message_size_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { - ::memset(&_impl_.total_drops_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_bridge_subs_) - - reinterpret_cast(&_impl_.total_drops_)) + sizeof(_impl_.num_bridge_subs_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ChannelStatsProto::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ChannelStatsProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ChannelStatsProto::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ChannelStatsProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelStatsProto) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ChannelStatsProto.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int64 total_bytes = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_total_bytes() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( - stream, this_._internal_total_bytes(), target); - } - } - - // int64 total_messages = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_total_messages() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<3>( - stream, this_._internal_total_messages(), target); - } - } - - // int32 slot_size = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_slot_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( - stream, this_._internal_slot_size(), target); - } - } - - // int32 num_slots = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_num_slots() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( - stream, this_._internal_num_slots(), target); - } - } - - // int32 num_pubs = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_num_pubs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<6>( - stream, this_._internal_num_pubs(), target); - } - } - - // int32 num_subs = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_num_subs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( - stream, this_._internal_num_subs(), target); - } - } - - // uint32 max_message_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_max_message_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 8, this_._internal_max_message_size(), target); - } - } - - // uint32 total_drops = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_total_drops() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this_._internal_total_drops(), target); - } - } - - // int32 num_bridge_pubs = 10; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_num_bridge_pubs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( - stream, this_._internal_num_bridge_pubs(), target); - } - } - - // int32 num_bridge_subs = 11; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_num_bridge_subs() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<11>( - stream, this_._internal_num_bridge_subs(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelStatsProto) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ChannelStatsProto::ByteSizeLong(const MessageLite& base) { - const ChannelStatsProto& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ChannelStatsProto::ByteSizeLong() const { - const ChannelStatsProto& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelStatsProto) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int64 total_bytes = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_total_bytes() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_total_bytes()); - } - } - // int64 total_messages = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_total_messages() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_total_messages()); - } - } - // int32 slot_size = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - } - // int32 num_slots = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - // int32 num_pubs = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_num_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_pubs()); - } - } - // int32 num_subs = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_num_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_subs()); - } - } - // uint32 max_message_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_max_message_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_max_message_size()); - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { - // uint32 total_drops = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_total_drops() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_total_drops()); - } - } - // int32 num_bridge_pubs = 10; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_num_bridge_pubs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_pubs()); - } - } - // int32 num_bridge_subs = 11; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_num_bridge_subs() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_bridge_subs()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ChannelStatsProto::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelStatsProto) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_total_bytes() != 0) { - _this->_impl_.total_bytes_ = from._impl_.total_bytes_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_total_messages() != 0) { - _this->_impl_.total_messages_ = from._impl_.total_messages_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_num_pubs() != 0) { - _this->_impl_.num_pubs_ = from._impl_.num_pubs_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_num_subs() != 0) { - _this->_impl_.num_subs_ = from._impl_.num_subs_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_max_message_size() != 0) { - _this->_impl_.max_message_size_ = from._impl_.max_message_size_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000700U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_total_drops() != 0) { - _this->_impl_.total_drops_ = from._impl_.total_drops_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_num_bridge_pubs() != 0) { - _this->_impl_.num_bridge_pubs_ = from._impl_.num_bridge_pubs_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (from._internal_num_bridge_subs() != 0) { - _this->_impl_.num_bridge_subs_ = from._impl_.num_bridge_subs_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ChannelStatsProto::CopyFrom(const ChannelStatsProto& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelStatsProto) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ChannelStatsProto::InternalSwap(ChannelStatsProto* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.num_bridge_subs_) - + sizeof(ChannelStatsProto::_impl_.num_bridge_subs_) - - PROTOBUF_FIELD_OFFSET(ChannelStatsProto, _impl_.total_bytes_)>( - reinterpret_cast(&_impl_.total_bytes_), - reinterpret_cast(&other->_impl_.total_bytes_)); -} - -::google::protobuf::Metadata ChannelStatsProto::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Statistics::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Statistics, _impl_._has_bits_); -}; - -Statistics::Statistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Statistics_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Statistics) -} -PROTOBUF_NDEBUG_INLINE Statistics::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Statistics& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channels_{visibility, arena, from.channels_}, - server_id_(arena, from.server_id_) {} - -Statistics::Statistics( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Statistics& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Statistics_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Statistics* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.timestamp_ = from._impl_.timestamp_; - - // @@protoc_insertion_point(copy_constructor:subspace.Statistics) -} -PROTOBUF_NDEBUG_INLINE Statistics::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channels_{visibility, arena}, - server_id_(arena) {} - -inline void Statistics::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.timestamp_ = {}; -} -Statistics::~Statistics() { - // @@protoc_insertion_point(destructor:subspace.Statistics) - SharedDtor(*this); -} -inline void Statistics::SharedDtor(MessageLite& self) { - Statistics& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.server_id_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Statistics::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Statistics(arena); -} -constexpr auto Statistics::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Statistics, _impl_.channels_) + - decltype(Statistics::_impl_.channels_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(Statistics), alignof(Statistics), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Statistics::PlacementNew_, - sizeof(Statistics), - alignof(Statistics)); - } -} -constexpr auto Statistics::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Statistics_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Statistics::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Statistics::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Statistics::ByteSizeLong, - &Statistics::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Statistics, _impl_._cached_size_), - false, - }, - &Statistics::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Statistics_class_data_ = - Statistics::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Statistics::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Statistics_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Statistics_class_data_.tc_table); - return Statistics_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 37, 2> -Statistics::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Statistics, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Statistics_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Statistics>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string server_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 1, 0, - PROTOBUF_FIELD_OFFSET(Statistics, _impl_.server_id_)}}, - // int64 timestamp = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Statistics, _impl_.timestamp_), 2>(), - {16, 2, 0, - PROTOBUF_FIELD_OFFSET(Statistics, _impl_.timestamp_)}}, - // repeated .subspace.ChannelStatsProto channels = 3; - {::_pbi::TcParser::FastMtR1, - {26, 0, 0, - PROTOBUF_FIELD_OFFSET(Statistics, _impl_.channels_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string server_id = 1; - {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.server_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 timestamp = 2; - {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.timestamp_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // repeated .subspace.ChannelStatsProto channels = 3; - {PROTOBUF_FIELD_OFFSET(Statistics, _impl_.channels_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelStatsProto>()}, - }}, - {{ - "\23\11\0\0\0\0\0\0" - "subspace.Statistics" - "server_id" - }}, -}; -PROTOBUF_NOINLINE void Statistics::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Statistics) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.channels_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.server_id_.ClearNonDefaultToEmpty(); - } - } - _impl_.timestamp_ = ::int64_t{0}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Statistics::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Statistics& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Statistics::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Statistics& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Statistics) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string server_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_server_id().empty()) { - const ::std::string& _s = this_._internal_server_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Statistics.server_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int64 timestamp = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_timestamp() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( - stream, this_._internal_timestamp(), target); - } - } - - // repeated .subspace.ChannelStatsProto channels = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (unsigned i = 0, n = static_cast( - this_._internal_channels_size()); - i < n; i++) { - const auto& repfield = this_._internal_channels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Statistics) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Statistics::ByteSizeLong(const MessageLite& base) { - const Statistics& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Statistics::ByteSizeLong() const { - const Statistics& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Statistics) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // repeated .subspace.ChannelStatsProto channels = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += 1UL * this_._internal_channels_size(); - for (const auto& msg : this_._internal_channels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - // string server_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_server_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_server_id()); - } - } - // int64 timestamp = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_timestamp() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_timestamp()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Statistics::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Statistics) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_channels()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_channels()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_server_id().empty()) { - _this->_internal_set_server_id(from._internal_server_id()); - } else { - if (_this->_impl_.server_id_.IsDefault()) { - _this->_internal_set_server_id(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_timestamp() != 0) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Statistics::CopyFrom(const Statistics& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Statistics) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Statistics::InternalSwap(Statistics* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.channels_.InternalSwap(&other->_impl_.channels_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_id_, &other->_impl_.server_id_, arena); - swap(_impl_.timestamp_, other->_impl_.timestamp_); -} - -::google::protobuf::Metadata Statistics::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ChannelAddress::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_._has_bits_); -}; - -ChannelAddress::ChannelAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelAddress_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ChannelAddress) -} -PROTOBUF_NDEBUG_INLINE ChannelAddress::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ChannelAddress& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - address_(arena, from.address_) {} - -ChannelAddress::ChannelAddress( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ChannelAddress& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ChannelAddress_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ChannelAddress* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.port_ = from._impl_.port_; - - // @@protoc_insertion_point(copy_constructor:subspace.ChannelAddress) -} -PROTOBUF_NDEBUG_INLINE ChannelAddress::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - address_(arena) {} - -inline void ChannelAddress::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.port_ = {}; -} -ChannelAddress::~ChannelAddress() { - // @@protoc_insertion_point(destructor:subspace.ChannelAddress) - SharedDtor(*this); -} -inline void ChannelAddress::SharedDtor(MessageLite& self) { - ChannelAddress& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.address_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ChannelAddress::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ChannelAddress(arena); -} -constexpr auto ChannelAddress::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ChannelAddress), - alignof(ChannelAddress)); -} -constexpr auto ChannelAddress::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ChannelAddress_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ChannelAddress::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ChannelAddress::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ChannelAddress::ByteSizeLong, - &ChannelAddress::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_._cached_size_), - false, - }, - &ChannelAddress::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ChannelAddress_class_data_ = - ChannelAddress::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ChannelAddress::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ChannelAddress_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ChannelAddress_class_data_.tc_table); - return ChannelAddress_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -ChannelAddress::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ChannelAddress_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ChannelAddress>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 port = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ChannelAddress, _impl_.port_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.port_)}}, - // bytes address = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.address_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes address = 1; - {PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.address_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // int32 port = 2; - {PROTOBUF_FIELD_OFFSET(ChannelAddress, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void ChannelAddress::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ChannelAddress) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.address_.ClearNonDefaultToEmpty(); - } - _impl_.port_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ChannelAddress::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ChannelAddress& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ChannelAddress::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ChannelAddress& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ChannelAddress) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // bytes address = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_address().empty()) { - const ::std::string& _s = this_._internal_address(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - } - - // int32 port = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_port() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_port(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ChannelAddress) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ChannelAddress::ByteSizeLong(const MessageLite& base) { - const ChannelAddress& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ChannelAddress::ByteSizeLong() const { - const ChannelAddress& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ChannelAddress) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // bytes address = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_address()); - } - } - // int32 port = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_port() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_port()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ChannelAddress::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ChannelAddress) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_address().empty()) { - _this->_internal_set_address(from._internal_address()); - } else { - if (_this->_impl_.address_.IsDefault()) { - _this->_internal_set_address(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_port() != 0) { - _this->_impl_.port_ = from._impl_.port_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ChannelAddress::CopyFrom(const ChannelAddress& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ChannelAddress) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ChannelAddress::InternalSwap(ChannelAddress* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); - swap(_impl_.port_, other->_impl_.port_); -} - -::google::protobuf::Metadata ChannelAddress::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Subscribed::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Subscribed, _impl_._has_bits_); -}; - -Subscribed::Subscribed(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Subscribed_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Subscribed) -} -PROTOBUF_NDEBUG_INLINE Subscribed::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Subscribed& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -Subscribed::Subscribed( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Subscribed& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Subscribed_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Subscribed* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.retirement_socket_ = (CheckHasBit(cached_has_bits, 0x00000002U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.retirement_socket_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, slot_size_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, slot_size_), - offsetof(Impl_, metadata_size_) - - offsetof(Impl_, slot_size_) + - sizeof(Impl_::metadata_size_)); - - // @@protoc_insertion_point(copy_constructor:subspace.Subscribed) -} -PROTOBUF_NDEBUG_INLINE Subscribed::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void Subscribed::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, retirement_socket_), - 0, - offsetof(Impl_, metadata_size_) - - offsetof(Impl_, retirement_socket_) + - sizeof(Impl_::metadata_size_)); -} -Subscribed::~Subscribed() { - // @@protoc_insertion_point(destructor:subspace.Subscribed) - SharedDtor(*this); -} -inline void Subscribed::SharedDtor(MessageLite& self) { - Subscribed& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - delete this_._impl_.retirement_socket_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Subscribed::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Subscribed(arena); -} -constexpr auto Subscribed::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Subscribed), - alignof(Subscribed)); -} -constexpr auto Subscribed::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Subscribed_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Subscribed::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Subscribed::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Subscribed::ByteSizeLong, - &Subscribed::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_._cached_size_), - false, - }, - &Subscribed::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Subscribed_class_data_ = - Subscribed::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Subscribed::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Subscribed_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Subscribed_class_data_.tc_table); - return Subscribed_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 10, 1, 48, 2> -Subscribed::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_._has_bits_), - 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966272, // skipmap - offsetof(decltype(_table_), field_entries), - 10, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Subscribed_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Subscribed>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.channel_name_)}}, - // int32 slot_size = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.slot_size_), 2>(), - {16, 2, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.slot_size_)}}, - // int32 num_slots = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.num_slots_), 3>(), - {24, 3, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.num_slots_)}}, - // bool reliable = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 5, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.reliable_)}}, - // bool notify_retirement = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 6, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.notify_retirement_)}}, - // .subspace.ChannelAddress retirement_socket = 6; - {::_pbi::TcParser::FastMtS1, - {50, 1, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.retirement_socket_)}}, - // int32 checksum_size = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.checksum_size_), 4>(), - {56, 4, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.checksum_size_)}}, - // int32 metadata_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Subscribed, _impl_.metadata_size_), 9>(), - {64, 9, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.metadata_size_)}}, - // bool split_buffers = 9; - {::_pbi::TcParser::SingularVarintNoZag1(), - {72, 7, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_)}}, - // bool split_buffers_over_bridge = 10; - {::_pbi::TcParser::SingularVarintNoZag1(), - {80, 8, 0, - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_over_bridge_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 slot_size = 2; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.slot_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_slots = 3; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.num_slots_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool reliable = 4; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.reliable_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool notify_retirement = 5; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // .subspace.ChannelAddress retirement_socket = 6; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.retirement_socket_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // int32 checksum_size = 7; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.checksum_size_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 metadata_size = 8; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.metadata_size_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool split_buffers = 9; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool split_buffers_over_bridge = 10; - {PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelAddress>()}, - }}, - {{ - "\23\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "subspace.Subscribed" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void Subscribed::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Subscribed) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(_impl_.retirement_socket_ != nullptr); - _impl_.retirement_socket_->Clear(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { - ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.split_buffers_) - - reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.split_buffers_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { - ::memset(&_impl_.split_buffers_over_bridge_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.metadata_size_) - - reinterpret_cast(&_impl_.split_buffers_over_bridge_)) + sizeof(_impl_.metadata_size_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Subscribed::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Subscribed& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Subscribed::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Subscribed& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Subscribed) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Subscribed.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 slot_size = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_slot_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_slot_size(), target); - } - } - - // int32 num_slots = 3; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_num_slots() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_num_slots(), target); - } - } - - // bool reliable = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_reliable(), target); - } - } - - // bool notify_retirement = 5; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_notify_retirement(), target); - } - } - - // .subspace.ChannelAddress retirement_socket = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.retirement_socket_, this_._impl_.retirement_socket_->GetCachedSize(), target, - stream); - } - - // int32 checksum_size = 7; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_checksum_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>( - stream, this_._internal_checksum_size(), target); - } - } - - // int32 metadata_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_metadata_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<8>( - stream, this_._internal_metadata_size(), target); - } - } - - // bool split_buffers = 9; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 9, this_._internal_split_buffers(), target); - } - } - - // bool split_buffers_over_bridge = 10; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 10, this_._internal_split_buffers_over_bridge(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Subscribed) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Subscribed::ByteSizeLong(const MessageLite& base) { - const Subscribed& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Subscribed::ByteSizeLong() const { - const Subscribed& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Subscribed) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // .subspace.ChannelAddress retirement_socket = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.retirement_socket_); - } - // int32 slot_size = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - } - // int32 num_slots = 3; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - // int32 checksum_size = 7; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - } - // bool reliable = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_reliable() != 0) { - total_size += 2; - } - } - // bool notify_retirement = 5; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - } - // bool split_buffers = 9; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_split_buffers() != 0) { - total_size += 2; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { - // bool split_buffers_over_bridge = 10; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 2; - } - } - // int32 metadata_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_metadata_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_metadata_size()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Subscribed::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Subscribed) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(from._impl_.retirement_socket_ != nullptr); - if (_this->_impl_.retirement_socket_ == nullptr) { - _this->_impl_.retirement_socket_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.retirement_socket_); - } else { - _this->_impl_.retirement_socket_->MergeFrom(*from._impl_.retirement_socket_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_reliable() != 0) { - _this->_impl_.reliable_ = from._impl_.reliable_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_split_buffers() != 0) { - _this->_impl_.split_buffers_ = from._impl_.split_buffers_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000300U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Subscribed::CopyFrom(const Subscribed& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Subscribed) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Subscribed::InternalSwap(Subscribed* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.metadata_size_) - + sizeof(Subscribed::_impl_.metadata_size_) - - PROTOBUF_FIELD_OFFSET(Subscribed, _impl_.retirement_socket_)>( - reinterpret_cast(&_impl_.retirement_socket_), - reinterpret_cast(&other->_impl_.retirement_socket_)); -} - -::google::protobuf::Metadata Subscribed::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RetirementNotification::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_._has_bits_); -}; - -RetirementNotification::RetirementNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RetirementNotification_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RetirementNotification) -} -RetirementNotification::RetirementNotification( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RetirementNotification& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RetirementNotification_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE RetirementNotification::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void RetirementNotification::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.slot_id_ = {}; -} -RetirementNotification::~RetirementNotification() { - // @@protoc_insertion_point(destructor:subspace.RetirementNotification) - SharedDtor(*this); -} -inline void RetirementNotification::SharedDtor(MessageLite& self) { - RetirementNotification& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RetirementNotification::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RetirementNotification(arena); -} -constexpr auto RetirementNotification::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RetirementNotification), - alignof(RetirementNotification)); -} -constexpr auto RetirementNotification::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RetirementNotification_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RetirementNotification::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RetirementNotification::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RetirementNotification::ByteSizeLong, - &RetirementNotification::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_._cached_size_), - false, - }, - &RetirementNotification::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RetirementNotification_class_data_ = - RetirementNotification::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RetirementNotification::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RetirementNotification_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RetirementNotification_class_data_.tc_table); - return RetirementNotification_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -RetirementNotification::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RetirementNotification_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RetirementNotification>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 slot_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RetirementNotification, _impl_.slot_id_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_.slot_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 slot_id = 1; - {PROTOBUF_FIELD_OFFSET(RetirementNotification, _impl_.slot_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void RetirementNotification::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RetirementNotification) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.slot_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RetirementNotification::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RetirementNotification& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RetirementNotification::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RetirementNotification& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RetirementNotification) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // int32 slot_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_slot_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_slot_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RetirementNotification) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RetirementNotification::ByteSizeLong(const MessageLite& base) { - const RetirementNotification& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RetirementNotification::ByteSizeLong() const { - const RetirementNotification& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RetirementNotification) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // int32 slot_id = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_slot_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RetirementNotification::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RetirementNotification) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (from._internal_slot_id() != 0) { - _this->_impl_.slot_id_ = from._impl_.slot_id_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RetirementNotification::CopyFrom(const RetirementNotification& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RetirementNotification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RetirementNotification::InternalSwap(RetirementNotification* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.slot_id_, other->_impl_.slot_id_); -} - -::google::protobuf::Metadata RetirementNotification::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Discovery_Query::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_._has_bits_); -}; - -Discovery_Query::Discovery_Query(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_Query_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Discovery.Query) -} -PROTOBUF_NDEBUG_INLINE Discovery_Query::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Discovery_Query& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -Discovery_Query::Discovery_Query( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Discovery_Query& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_Query_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Discovery_Query* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.Discovery.Query) -} -PROTOBUF_NDEBUG_INLINE Discovery_Query::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void Discovery_Query::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Discovery_Query::~Discovery_Query() { - // @@protoc_insertion_point(destructor:subspace.Discovery.Query) - SharedDtor(*this); -} -inline void Discovery_Query::SharedDtor(MessageLite& self) { - Discovery_Query& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Discovery_Query::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Discovery_Query(arena); -} -constexpr auto Discovery_Query::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery_Query), - alignof(Discovery_Query)); -} -constexpr auto Discovery_Query::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Discovery_Query_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery_Query::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery_Query::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery_Query::ByteSizeLong, - &Discovery_Query::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_._cached_size_), - false, - }, - &Discovery_Query::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Discovery_Query_class_data_ = - Discovery_Query::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Discovery_Query::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_Query_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Discovery_Query_class_data_.tc_table); - return Discovery_Query_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 45, 2> -Discovery_Query::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - Discovery_Query_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Discovery_Query>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Discovery_Query, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\30\14\0\0\0\0\0\0" - "subspace.Discovery.Query" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void Discovery_Query::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Discovery.Query) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Discovery_Query::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Discovery_Query& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Discovery_Query::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Discovery_Query& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Query) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Query.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Query) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Discovery_Query::ByteSizeLong(const MessageLite& base) { - const Discovery_Query& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Discovery_Query::ByteSizeLong() const { - const Discovery_Query& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Query) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // string channel_name = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Discovery_Query::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery.Query) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Discovery_Query::CopyFrom(const Discovery_Query& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Query) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Discovery_Query::InternalSwap(Discovery_Query* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); -} - -::google::protobuf::Metadata Discovery_Query::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Discovery_Advertise::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_._has_bits_); -}; - -Discovery_Advertise::Discovery_Advertise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_Advertise_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Discovery.Advertise) -} -PROTOBUF_NDEBUG_INLINE Discovery_Advertise::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Discovery_Advertise& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -Discovery_Advertise::Discovery_Advertise( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Discovery_Advertise& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_Advertise_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Discovery_Advertise* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, reliable_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, reliable_), - offsetof(Impl_, split_buffers_) - - offsetof(Impl_, reliable_) + - sizeof(Impl_::split_buffers_)); - - // @@protoc_insertion_point(copy_constructor:subspace.Discovery.Advertise) -} -PROTOBUF_NDEBUG_INLINE Discovery_Advertise::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void Discovery_Advertise::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, reliable_), - 0, - offsetof(Impl_, split_buffers_) - - offsetof(Impl_, reliable_) + - sizeof(Impl_::split_buffers_)); -} -Discovery_Advertise::~Discovery_Advertise() { - // @@protoc_insertion_point(destructor:subspace.Discovery.Advertise) - SharedDtor(*this); -} -inline void Discovery_Advertise::SharedDtor(MessageLite& self) { - Discovery_Advertise& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Discovery_Advertise::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Discovery_Advertise(arena); -} -constexpr auto Discovery_Advertise::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery_Advertise), - alignof(Discovery_Advertise)); -} -constexpr auto Discovery_Advertise::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Discovery_Advertise_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery_Advertise::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery_Advertise::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery_Advertise::ByteSizeLong, - &Discovery_Advertise::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_._cached_size_), - false, - }, - &Discovery_Advertise::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Discovery_Advertise_class_data_ = - Discovery_Advertise::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Discovery_Advertise::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_Advertise_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Discovery_Advertise_class_data_.tc_table); - return Discovery_Advertise_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 49, 2> -Discovery_Advertise::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - Discovery_Advertise_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Discovery_Advertise>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bool split_buffers = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 3, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_)}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.channel_name_)}}, - // bool reliable = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.reliable_)}}, - // bool notify_retirement = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.notify_retirement_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool reliable = 2; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.reliable_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool notify_retirement = 3; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool split_buffers = 4; - {PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\34\14\0\0\0\0\0\0" - "subspace.Discovery.Advertise" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void Discovery_Advertise::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Discovery.Advertise) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - ::memset(&_impl_.reliable_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.split_buffers_) - - reinterpret_cast(&_impl_.reliable_)) + sizeof(_impl_.split_buffers_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Discovery_Advertise::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Discovery_Advertise& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Discovery_Advertise::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Discovery_Advertise& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Advertise) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Advertise.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // bool reliable = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this_._internal_reliable(), target); - } - } - - // bool notify_retirement = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_notify_retirement(), target); - } - } - - // bool split_buffers = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_split_buffers(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Advertise) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Discovery_Advertise::ByteSizeLong(const MessageLite& base) { - const Discovery_Advertise& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Discovery_Advertise::ByteSizeLong() const { - const Discovery_Advertise& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Advertise) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // bool reliable = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_reliable() != 0) { - total_size += 2; - } - } - // bool notify_retirement = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - } - // bool split_buffers = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_split_buffers() != 0) { - total_size += 2; - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Discovery_Advertise::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery.Advertise) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_reliable() != 0) { - _this->_impl_.reliable_ = from._impl_.reliable_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_split_buffers() != 0) { - _this->_impl_.split_buffers_ = from._impl_.split_buffers_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Discovery_Advertise::CopyFrom(const Discovery_Advertise& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Advertise) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Discovery_Advertise::InternalSwap(Discovery_Advertise* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.split_buffers_) - + sizeof(Discovery_Advertise::_impl_.split_buffers_) - - PROTOBUF_FIELD_OFFSET(Discovery_Advertise, _impl_.reliable_)>( - reinterpret_cast(&_impl_.reliable_), - reinterpret_cast(&other->_impl_.reliable_)); -} - -::google::protobuf::Metadata Discovery_Advertise::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Discovery_Subscribe::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_._has_bits_); -}; - -Discovery_Subscribe::Discovery_Subscribe(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_Subscribe_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Discovery.Subscribe) -} -PROTOBUF_NDEBUG_INLINE Discovery_Subscribe::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Discovery_Subscribe& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -Discovery_Subscribe::Discovery_Subscribe( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Discovery_Subscribe& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_Subscribe_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Discovery_Subscribe* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.receiver_ = (CheckHasBit(cached_has_bits, 0x00000002U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.receiver_) - : nullptr; - _impl_.reliable_ = from._impl_.reliable_; - - // @@protoc_insertion_point(copy_constructor:subspace.Discovery.Subscribe) -} -PROTOBUF_NDEBUG_INLINE Discovery_Subscribe::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void Discovery_Subscribe::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, receiver_), - 0, - offsetof(Impl_, reliable_) - - offsetof(Impl_, receiver_) + - sizeof(Impl_::reliable_)); -} -Discovery_Subscribe::~Discovery_Subscribe() { - // @@protoc_insertion_point(destructor:subspace.Discovery.Subscribe) - SharedDtor(*this); -} -inline void Discovery_Subscribe::SharedDtor(MessageLite& self) { - Discovery_Subscribe& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - delete this_._impl_.receiver_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Discovery_Subscribe::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Discovery_Subscribe(arena); -} -constexpr auto Discovery_Subscribe::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery_Subscribe), - alignof(Discovery_Subscribe)); -} -constexpr auto Discovery_Subscribe::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Discovery_Subscribe_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery_Subscribe::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery_Subscribe::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery_Subscribe::ByteSizeLong, - &Discovery_Subscribe::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_._cached_size_), - false, - }, - &Discovery_Subscribe::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Discovery_Subscribe_class_data_ = - Discovery_Subscribe::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Discovery_Subscribe::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_Subscribe_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Discovery_Subscribe_class_data_.tc_table); - return Discovery_Subscribe_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 49, 2> -Discovery_Subscribe::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Discovery_Subscribe_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Discovery_Subscribe>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.channel_name_)}}, - // .subspace.ChannelAddress receiver = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.receiver_)}}, - // bool reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.reliable_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .subspace.ChannelAddress receiver = 2; - {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.receiver_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool reliable = 3; - {PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.reliable_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ChannelAddress>()}, - }}, - {{ - "\34\14\0\0\0\0\0\0" - "subspace.Discovery.Subscribe" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void Discovery_Subscribe::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Discovery.Subscribe) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(_impl_.receiver_ != nullptr); - _impl_.receiver_->Clear(); - } - } - _impl_.reliable_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Discovery_Subscribe::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Discovery_Subscribe& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Discovery_Subscribe::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Discovery_Subscribe& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery.Subscribe) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.Subscribe.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // .subspace.ChannelAddress receiver = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.receiver_, this_._impl_.receiver_->GetCachedSize(), target, - stream); - } - - // bool reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_reliable(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery.Subscribe) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Discovery_Subscribe::ByteSizeLong(const MessageLite& base) { - const Discovery_Subscribe& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Discovery_Subscribe::ByteSizeLong() const { - const Discovery_Subscribe& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery.Subscribe) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // .subspace.ChannelAddress receiver = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.receiver_); - } - // bool reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_reliable() != 0) { - total_size += 2; - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Discovery_Subscribe::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery.Subscribe) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(from._impl_.receiver_ != nullptr); - if (_this->_impl_.receiver_ == nullptr) { - _this->_impl_.receiver_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.receiver_); - } else { - _this->_impl_.receiver_->MergeFrom(*from._impl_.receiver_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_reliable() != 0) { - _this->_impl_.reliable_ = from._impl_.reliable_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Discovery_Subscribe::CopyFrom(const Discovery_Subscribe& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery.Subscribe) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Discovery_Subscribe::InternalSwap(Discovery_Subscribe* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.reliable_) - + sizeof(Discovery_Subscribe::_impl_.reliable_) - - PROTOBUF_FIELD_OFFSET(Discovery_Subscribe, _impl_.receiver_)>( - reinterpret_cast(&_impl_.receiver_), - reinterpret_cast(&other->_impl_.receiver_)); -} - -::google::protobuf::Metadata Discovery_Subscribe::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class Discovery::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Discovery, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::subspace::Discovery, _impl_._oneof_case_); -}; - -void Discovery::set_allocated_query(::subspace::Discovery_Query* PROTOBUF_NULLABLE query) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_data(); - if (query) { - ::google::protobuf::Arena* submessage_arena = query->GetArena(); - if (message_arena != submessage_arena) { - query = ::google::protobuf::internal::GetOwnedMessage(message_arena, query, submessage_arena); - } - set_has_query(); - _impl_.data_.query_ = query; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.query) -} -void Discovery::set_allocated_advertise(::subspace::Discovery_Advertise* PROTOBUF_NULLABLE advertise) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_data(); - if (advertise) { - ::google::protobuf::Arena* submessage_arena = advertise->GetArena(); - if (message_arena != submessage_arena) { - advertise = ::google::protobuf::internal::GetOwnedMessage(message_arena, advertise, submessage_arena); - } - set_has_advertise(); - _impl_.data_.advertise_ = advertise; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.advertise) -} -void Discovery::set_allocated_subscribe(::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE subscribe) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_data(); - if (subscribe) { - ::google::protobuf::Arena* submessage_arena = subscribe->GetArena(); - if (message_arena != submessage_arena) { - subscribe = ::google::protobuf::internal::GetOwnedMessage(message_arena, subscribe, submessage_arena); - } - set_has_subscribe(); - _impl_.data_.subscribe_ = subscribe; - } - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.subscribe) -} -Discovery::Discovery(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.Discovery) -} -PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::Discovery& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - server_id_(arena, from.server_id_), - data_{}, - _oneof_case_{from._oneof_case_[0]} {} - -Discovery::Discovery( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Discovery& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Discovery_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Discovery* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.port_ = from._impl_.port_; - switch (data_case()) { - case DATA_NOT_SET: - break; - case kQuery: - _impl_.data_.query_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.query_); - break; - case kAdvertise: - _impl_.data_.advertise_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.advertise_); - break; - case kSubscribe: - _impl_.data_.subscribe_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.subscribe_); - break; - } - - // @@protoc_insertion_point(copy_constructor:subspace.Discovery) -} -PROTOBUF_NDEBUG_INLINE Discovery::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - server_id_(arena), - data_{}, - _oneof_case_{} {} - -inline void Discovery::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.port_ = {}; -} -Discovery::~Discovery() { - // @@protoc_insertion_point(destructor:subspace.Discovery) - SharedDtor(*this); -} -inline void Discovery::SharedDtor(MessageLite& self) { - Discovery& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.server_id_.Destroy(); - if (this_.has_data()) { - this_.clear_data(); - } - this_._impl_.~Impl_(); -} - -void Discovery::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:subspace.Discovery) - ::google::protobuf::internal::TSanWrite(&_impl_); - switch (data_case()) { - case kQuery: { - if (GetArena() == nullptr) { - delete _impl_.data_.query_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.data_.query_); - } - break; - } - case kAdvertise: { - if (GetArena() == nullptr) { - delete _impl_.data_.advertise_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.data_.advertise_); - } - break; - } - case kSubscribe: { - if (GetArena() == nullptr) { - delete _impl_.data_.subscribe_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.data_.subscribe_); - } - break; - } - case DATA_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = DATA_NOT_SET; -} - - -inline void* PROTOBUF_NONNULL Discovery::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Discovery(arena); -} -constexpr auto Discovery::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Discovery), - alignof(Discovery)); -} -constexpr auto Discovery::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Discovery_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Discovery::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Discovery::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Discovery::ByteSizeLong, - &Discovery::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Discovery, _impl_._cached_size_), - false, - }, - &Discovery::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull Discovery_class_data_ = - Discovery::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Discovery::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Discovery_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Discovery_class_data_.tc_table); - return Discovery_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 5, 3, 36, 2> -Discovery::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Discovery, _impl_._has_bits_), - 0, // no _extensions_ - 5, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Discovery_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::Discovery>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 port = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Discovery, _impl_.port_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(Discovery, _impl_.port_)}}, - // string server_id = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Discovery, _impl_.server_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string server_id = 1; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.server_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 port = 2; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // .subspace.Discovery.Query query = 3; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.query_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.Discovery.Advertise advertise = 4; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.advertise_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.Discovery.Subscribe subscribe = 5; - {PROTOBUF_FIELD_OFFSET(Discovery, _impl_.data_.subscribe_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::Discovery_Query>()}, - {::_pbi::TcParser::GetTable<::subspace::Discovery_Advertise>()}, - {::_pbi::TcParser::GetTable<::subspace::Discovery_Subscribe>()}, - }}, - {{ - "\22\11\0\0\0\0\0\0" - "subspace.Discovery" - "server_id" - }}, -}; -PROTOBUF_NOINLINE void Discovery::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.Discovery) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.server_id_.ClearNonDefaultToEmpty(); - } - _impl_.port_ = 0; - clear_data(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Discovery::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Discovery& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Discovery::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Discovery& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.Discovery) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string server_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_server_id().empty()) { - const ::std::string& _s = this_._internal_server_id(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.Discovery.server_id"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 port = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_port() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_port(), target); - } - } - - switch (this_.data_case()) { - case kQuery: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.data_.query_, this_._impl_.data_.query_->GetCachedSize(), target, - stream); - break; - } - case kAdvertise: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.data_.advertise_, this_._impl_.data_.advertise_->GetCachedSize(), target, - stream); - break; - } - case kSubscribe: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.data_.subscribe_, this_._impl_.data_.subscribe_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.Discovery) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Discovery::ByteSizeLong(const MessageLite& base) { - const Discovery& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Discovery::ByteSizeLong() const { - const Discovery& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.Discovery) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string server_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_server_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_server_id()); - } - } - // int32 port = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_port() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_port()); - } - } - } - switch (this_.data_case()) { - // .subspace.Discovery.Query query = 3; - case kQuery: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.query_); - break; - } - // .subspace.Discovery.Advertise advertise = 4; - case kAdvertise: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.advertise_); - break; - } - // .subspace.Discovery.Subscribe subscribe = 5; - case kSubscribe: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.data_.subscribe_); - break; - } - case DATA_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void Discovery::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.Discovery) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_server_id().empty()) { - _this->_internal_set_server_id(from._internal_server_id()); - } else { - if (_this->_impl_.server_id_.IsDefault()) { - _this->_internal_set_server_id(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_port() != 0) { - _this->_impl_.port_ = from._impl_.port_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - if (const uint32_t oneof_from_case = - from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_data(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kQuery: { - if (oneof_needs_init) { - _this->_impl_.data_.query_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.query_); - } else { - _this->_impl_.data_.query_->MergeFrom(*from._impl_.data_.query_); - } - break; - } - case kAdvertise: { - if (oneof_needs_init) { - _this->_impl_.data_.advertise_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.advertise_); - } else { - _this->_impl_.data_.advertise_->MergeFrom(*from._impl_.data_.advertise_); - } - break; - } - case kSubscribe: { - if (oneof_needs_init) { - _this->_impl_.data_.subscribe_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.data_.subscribe_); - } else { - _this->_impl_.data_.subscribe_->MergeFrom(*from._impl_.data_.subscribe_); - } - break; - } - case DATA_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void Discovery::CopyFrom(const Discovery& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.Discovery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Discovery::InternalSwap(Discovery* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.server_id_, &other->_impl_.server_id_, arena); - swap(_impl_.port_, other->_impl_.port_); - swap(_impl_.data_, other->_impl_.data_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata Discovery::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcOpenRequest::_Internal { - public: -}; - -RpcOpenRequest::RpcOpenRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcOpenRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenRequest) -} -RpcOpenRequest::RpcOpenRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcOpenRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcOpenRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcOpenRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenRequest) -} - -inline void* PROTOBUF_NONNULL RpcOpenRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcOpenRequest(arena); -} -constexpr auto RpcOpenRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcOpenRequest), - alignof(RpcOpenRequest)); -} -constexpr auto RpcOpenRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcOpenRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenRequest::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenRequest::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &RpcOpenRequest::ByteSizeLong, - &RpcOpenRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenRequest, _impl_._cached_size_), - false, - }, - &RpcOpenRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcOpenRequest_class_data_ = - RpcOpenRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcOpenRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenRequest_class_data_.tc_table); - return RpcOpenRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> -RpcOpenRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RpcOpenRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcOpenRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, // no field_entries, or aux_entries - {{ - }}, -}; - - - - - - - -::google::protobuf::Metadata RpcOpenRequest::GetMetadata() const { - return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcOpenResponse_RequestChannel::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_._has_bits_); -}; - -RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_RequestChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse.RequestChannel) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse_RequestChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcOpenResponse_RequestChannel& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - type_(arena, from.type_) {} - -RpcOpenResponse_RequestChannel::RpcOpenResponse_RequestChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcOpenResponse_RequestChannel& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_RequestChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcOpenResponse_RequestChannel* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, slot_size_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, slot_size_), - offsetof(Impl_, num_slots_) - - offsetof(Impl_, slot_size_) + - sizeof(Impl_::num_slots_)); - - // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse.RequestChannel) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse_RequestChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - name_(arena), - type_(arena) {} - -inline void RpcOpenResponse_RequestChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, slot_size_), - 0, - offsetof(Impl_, num_slots_) - - offsetof(Impl_, slot_size_) + - sizeof(Impl_::num_slots_)); -} -RpcOpenResponse_RequestChannel::~RpcOpenResponse_RequestChannel() { - // @@protoc_insertion_point(destructor:subspace.RpcOpenResponse.RequestChannel) - SharedDtor(*this); -} -inline void RpcOpenResponse_RequestChannel::SharedDtor(MessageLite& self) { - RpcOpenResponse_RequestChannel& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.name_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcOpenResponse_RequestChannel(arena); -} -constexpr auto RpcOpenResponse_RequestChannel::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcOpenResponse_RequestChannel), - alignof(RpcOpenResponse_RequestChannel)); -} -constexpr auto RpcOpenResponse_RequestChannel::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_RequestChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse_RequestChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse_RequestChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_RequestChannel::ByteSizeLong, - &RpcOpenResponse_RequestChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_._cached_size_), - false, - }, - &RpcOpenResponse_RequestChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcOpenResponse_RequestChannel_class_data_ = - RpcOpenResponse_RequestChannel::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcOpenResponse_RequestChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_RequestChannel_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_RequestChannel_class_data_.tc_table); - return RpcOpenResponse_RequestChannel_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 56, 2> -RpcOpenResponse_RequestChannel::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RpcOpenResponse_RequestChannel_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_RequestChannel>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string type = 4; - {::_pbi::TcParser::FastUS1, - {34, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.type_)}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.name_)}}, - // int32 slot_size = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_RequestChannel, _impl_.slot_size_), 2>(), - {16, 2, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.slot_size_)}}, - // int32 num_slots = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_RequestChannel, _impl_.num_slots_), 3>(), - {24, 3, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.num_slots_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 slot_size = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.slot_size_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_slots = 3; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.num_slots_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // string type = 4; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\47\4\0\0\4\0\0\0" - "subspace.RpcOpenResponse.RequestChannel" - "name" - "type" - }}, -}; -PROTOBUF_NOINLINE void RpcOpenResponse_RequestChannel::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse.RequestChannel) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) { - ::memset(&_impl_.slot_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_slots_) - - reinterpret_cast(&_impl_.slot_size_)) + sizeof(_impl_.num_slots_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcOpenResponse_RequestChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcOpenResponse_RequestChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.RequestChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - const ::std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.RequestChannel.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 slot_size = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_slot_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_slot_size(), target); - } - } - - // int32 num_slots = 3; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_num_slots() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_num_slots(), target); - } - } - - // string type = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.RequestChannel.type"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.RequestChannel) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcOpenResponse_RequestChannel::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse_RequestChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcOpenResponse_RequestChannel::ByteSizeLong() const { - const RpcOpenResponse_RequestChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.RequestChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - } - // string type = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_type()); - } - } - // int32 slot_size = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - } - // int32 num_slots = 3; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcOpenResponse_RequestChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse.RequestChannel) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } else { - if (_this->_impl_.name_.IsDefault()) { - _this->_internal_set_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcOpenResponse_RequestChannel::CopyFrom(const RpcOpenResponse_RequestChannel& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.RequestChannel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcOpenResponse_RequestChannel::InternalSwap(RpcOpenResponse_RequestChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.num_slots_) - + sizeof(RpcOpenResponse_RequestChannel::_impl_.num_slots_) - - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_RequestChannel, _impl_.slot_size_)>( - reinterpret_cast(&_impl_.slot_size_), - reinterpret_cast(&other->_impl_.slot_size_)); -} - -::google::protobuf::Metadata RpcOpenResponse_RequestChannel::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcOpenResponse_ResponseChannel::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_._has_bits_); -}; - -RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_ResponseChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse.ResponseChannel) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse_ResponseChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcOpenResponse_ResponseChannel& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - type_(arena, from.type_) {} - -RpcOpenResponse_ResponseChannel::RpcOpenResponse_ResponseChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcOpenResponse_ResponseChannel& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_ResponseChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcOpenResponse_ResponseChannel* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse.ResponseChannel) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse_ResponseChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - name_(arena), - type_(arena) {} - -inline void RpcOpenResponse_ResponseChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -RpcOpenResponse_ResponseChannel::~RpcOpenResponse_ResponseChannel() { - // @@protoc_insertion_point(destructor:subspace.RpcOpenResponse.ResponseChannel) - SharedDtor(*this); -} -inline void RpcOpenResponse_ResponseChannel::SharedDtor(MessageLite& self) { - RpcOpenResponse_ResponseChannel& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.name_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcOpenResponse_ResponseChannel(arena); -} -constexpr auto RpcOpenResponse_ResponseChannel::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcOpenResponse_ResponseChannel), - alignof(RpcOpenResponse_ResponseChannel)); -} -constexpr auto RpcOpenResponse_ResponseChannel::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_ResponseChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse_ResponseChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse_ResponseChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_ResponseChannel::ByteSizeLong, - &RpcOpenResponse_ResponseChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_._cached_size_), - false, - }, - &RpcOpenResponse_ResponseChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcOpenResponse_ResponseChannel_class_data_ = - RpcOpenResponse_ResponseChannel::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcOpenResponse_ResponseChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_ResponseChannel_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_ResponseChannel_class_data_.tc_table); - return RpcOpenResponse_ResponseChannel_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 57, 2> -RpcOpenResponse_ResponseChannel::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RpcOpenResponse_ResponseChannel_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_ResponseChannel>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string type = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.type_)}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_ResponseChannel, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\4\4\0\0\0\0\0" - "subspace.RpcOpenResponse.ResponseChannel" - "name" - "type" - }}, -}; -PROTOBUF_NOINLINE void RpcOpenResponse_ResponseChannel::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse.ResponseChannel) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcOpenResponse_ResponseChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcOpenResponse_ResponseChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.ResponseChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - const ::std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.ResponseChannel.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // string type = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.ResponseChannel.type"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.ResponseChannel) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcOpenResponse_ResponseChannel::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse_ResponseChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcOpenResponse_ResponseChannel::ByteSizeLong() const { - const RpcOpenResponse_ResponseChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.ResponseChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - } - // string type = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_type()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcOpenResponse_ResponseChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse.ResponseChannel) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } else { - if (_this->_impl_.name_.IsDefault()) { - _this->_internal_set_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcOpenResponse_ResponseChannel::CopyFrom(const RpcOpenResponse_ResponseChannel& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.ResponseChannel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcOpenResponse_ResponseChannel::InternalSwap(RpcOpenResponse_ResponseChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); -} - -::google::protobuf::Metadata RpcOpenResponse_ResponseChannel::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcOpenResponse_Method::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_._has_bits_); -}; - -RpcOpenResponse_Method::RpcOpenResponse_Method(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_Method_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse.Method) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse_Method::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcOpenResponse_Method& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - cancel_channel_(arena, from.cancel_channel_) {} - -RpcOpenResponse_Method::RpcOpenResponse_Method( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcOpenResponse_Method& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_Method_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcOpenResponse_Method* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.request_channel_ = (CheckHasBit(cached_has_bits, 0x00000004U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_channel_) - : nullptr; - _impl_.response_channel_ = (CheckHasBit(cached_has_bits, 0x00000008U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_channel_) - : nullptr; - _impl_.id_ = from._impl_.id_; - - // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse.Method) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse_Method::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - name_(arena), - cancel_channel_(arena) {} - -inline void RpcOpenResponse_Method::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, request_channel_), - 0, - offsetof(Impl_, id_) - - offsetof(Impl_, request_channel_) + - sizeof(Impl_::id_)); -} -RpcOpenResponse_Method::~RpcOpenResponse_Method() { - // @@protoc_insertion_point(destructor:subspace.RpcOpenResponse.Method) - SharedDtor(*this); -} -inline void RpcOpenResponse_Method::SharedDtor(MessageLite& self) { - RpcOpenResponse_Method& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.name_.Destroy(); - this_._impl_.cancel_channel_.Destroy(); - delete this_._impl_.request_channel_; - delete this_._impl_.response_channel_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcOpenResponse_Method::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcOpenResponse_Method(arena); -} -constexpr auto RpcOpenResponse_Method::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcOpenResponse_Method), - alignof(RpcOpenResponse_Method)); -} -constexpr auto RpcOpenResponse_Method::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_Method_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse_Method::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse_Method::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse_Method::ByteSizeLong, - &RpcOpenResponse_Method::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_._cached_size_), - false, - }, - &RpcOpenResponse_Method::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcOpenResponse_Method_class_data_ = - RpcOpenResponse_Method::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcOpenResponse_Method::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_Method_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_Method_class_data_.tc_table); - return RpcOpenResponse_Method_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 58, 2> -RpcOpenResponse_Method::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - RpcOpenResponse_Method_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_Method>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.name_)}}, - // int32 id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse_Method, _impl_.id_), 4>(), - {16, 4, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.id_)}}, - // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - {::_pbi::TcParser::FastMtS1, - {26, 2, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.request_channel_)}}, - // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - {::_pbi::TcParser::FastMtS1, - {34, 3, 1, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.response_channel_)}}, - // string cancel_channel = 5; - {::_pbi::TcParser::FastUS1, - {42, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.cancel_channel_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 id = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.request_channel_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.response_channel_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string cancel_channel = 5; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.cancel_channel_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_RequestChannel>()}, - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_ResponseChannel>()}, - }}, - {{ - "\37\4\0\0\0\16\0\0" - "subspace.RpcOpenResponse.Method" - "name" - "cancel_channel" - }}, -}; -PROTOBUF_NOINLINE void RpcOpenResponse_Method::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse.Method) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.cancel_channel_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - ABSL_DCHECK(_impl_.request_channel_ != nullptr); - _impl_.request_channel_->Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - ABSL_DCHECK(_impl_.response_channel_ != nullptr); - _impl_.response_channel_->Clear(); - } - } - _impl_.id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_Method::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcOpenResponse_Method& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse_Method::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcOpenResponse_Method& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse.Method) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - const ::std::string& _s = this_._internal_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.Method.name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 id = 2; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_id(), target); - } - } - - // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.request_channel_, this_._impl_.request_channel_->GetCachedSize(), target, - stream); - } - - // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.response_channel_, this_._impl_.response_channel_->GetCachedSize(), target, - stream); - } - - // string cancel_channel = 5; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_cancel_channel().empty()) { - const ::std::string& _s = this_._internal_cancel_channel(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcOpenResponse.Method.cancel_channel"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse.Method) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcOpenResponse_Method::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse_Method& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcOpenResponse_Method::ByteSizeLong() const { - const RpcOpenResponse_Method& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse.Method) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - } - // string cancel_channel = 5; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_cancel_channel().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_cancel_channel()); - } - } - // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_channel_); - } - // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_channel_); - } - // int32 id = 2; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcOpenResponse_Method::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse.Method) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } else { - if (_this->_impl_.name_.IsDefault()) { - _this->_internal_set_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_cancel_channel().empty()) { - _this->_internal_set_cancel_channel(from._internal_cancel_channel()); - } else { - if (_this->_impl_.cancel_channel_.IsDefault()) { - _this->_internal_set_cancel_channel(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - ABSL_DCHECK(from._impl_.request_channel_ != nullptr); - if (_this->_impl_.request_channel_ == nullptr) { - _this->_impl_.request_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_channel_); - } else { - _this->_impl_.request_channel_->MergeFrom(*from._impl_.request_channel_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - ABSL_DCHECK(from._impl_.response_channel_ != nullptr); - if (_this->_impl_.response_channel_ == nullptr) { - _this->_impl_.response_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_channel_); - } else { - _this->_impl_.response_channel_->MergeFrom(*from._impl_.response_channel_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_id() != 0) { - _this->_impl_.id_ = from._impl_.id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcOpenResponse_Method::CopyFrom(const RpcOpenResponse_Method& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse.Method) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcOpenResponse_Method::InternalSwap(RpcOpenResponse_Method* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.cancel_channel_, &other->_impl_.cancel_channel_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.id_) - + sizeof(RpcOpenResponse_Method::_impl_.id_) - - PROTOBUF_FIELD_OFFSET(RpcOpenResponse_Method, _impl_.request_channel_)>( - reinterpret_cast(&_impl_.request_channel_), - reinterpret_cast(&other->_impl_.request_channel_)); -} - -::google::protobuf::Metadata RpcOpenResponse_Method::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcOpenResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_._has_bits_); -}; - -RpcOpenResponse::RpcOpenResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcOpenResponse) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcOpenResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - methods_{visibility, arena, from.methods_} {} - -RpcOpenResponse::RpcOpenResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcOpenResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcOpenResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcOpenResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, client_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, client_id_), - offsetof(Impl_, session_id_) - - offsetof(Impl_, client_id_) + - sizeof(Impl_::session_id_)); - - // @@protoc_insertion_point(copy_constructor:subspace.RpcOpenResponse) -} -PROTOBUF_NDEBUG_INLINE RpcOpenResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - methods_{visibility, arena} {} - -inline void RpcOpenResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, client_id_), - 0, - offsetof(Impl_, session_id_) - - offsetof(Impl_, client_id_) + - sizeof(Impl_::session_id_)); -} -RpcOpenResponse::~RpcOpenResponse() { - // @@protoc_insertion_point(destructor:subspace.RpcOpenResponse) - SharedDtor(*this); -} -inline void RpcOpenResponse::SharedDtor(MessageLite& self) { - RpcOpenResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcOpenResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcOpenResponse(arena); -} -constexpr auto RpcOpenResponse::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.methods_) + - decltype(RpcOpenResponse::_impl_.methods_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::ZeroInit( - sizeof(RpcOpenResponse), alignof(RpcOpenResponse), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&RpcOpenResponse::PlacementNew_, - sizeof(RpcOpenResponse), - alignof(RpcOpenResponse)); - } -} -constexpr auto RpcOpenResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcOpenResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcOpenResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcOpenResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcOpenResponse::ByteSizeLong, - &RpcOpenResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_._cached_size_), - false, - }, - &RpcOpenResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcOpenResponse_class_data_ = - RpcOpenResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcOpenResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcOpenResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcOpenResponse_class_data_.tc_table); - return RpcOpenResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> -RpcOpenResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - RpcOpenResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcOpenResponse, _impl_.session_id_), 2>(), - {8, 2, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_)}}, - // repeated .subspace.RpcOpenResponse.Method methods = 2; - {::_pbi::TcParser::FastMtR1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.methods_)}}, - // uint64 client_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcOpenResponse, _impl_.client_id_), 1>(), - {24, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.client_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 session_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // repeated .subspace.RpcOpenResponse.Method methods = 2; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.methods_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 client_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.client_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse_Method>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void RpcOpenResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcOpenResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.methods_.Clear(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.session_id_) - - reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.session_id_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcOpenResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcOpenResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcOpenResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcOpenResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // int32 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_session_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_session_id(), target); - } - } - - // repeated .subspace.RpcOpenResponse.Method methods = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (unsigned i = 0, n = static_cast( - this_._internal_methods_size()); - i < n; i++) { - const auto& repfield = this_._internal_methods().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - } - - // uint64 client_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this_._internal_client_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcOpenResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcOpenResponse::ByteSizeLong(const MessageLite& base) { - const RpcOpenResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcOpenResponse::ByteSizeLong() const { - const RpcOpenResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcOpenResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // repeated .subspace.RpcOpenResponse.Method methods = 2; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += 1UL * this_._internal_methods_size(); - for (const auto& msg : this_._internal_methods()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - // uint64 client_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - } - // int32 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcOpenResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcOpenResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_methods()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_methods()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcOpenResponse::CopyFrom(const RpcOpenResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcOpenResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcOpenResponse::InternalSwap(RpcOpenResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.methods_.InternalSwap(&other->_impl_.methods_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.session_id_) - + sizeof(RpcOpenResponse::_impl_.session_id_) - - PROTOBUF_FIELD_OFFSET(RpcOpenResponse, _impl_.client_id_)>( - reinterpret_cast(&_impl_.client_id_), - reinterpret_cast(&other->_impl_.client_id_)); -} - -::google::protobuf::Metadata RpcOpenResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcCloseRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_._has_bits_); -}; - -RpcCloseRequest::RpcCloseRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcCloseRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcCloseRequest) -} -RpcCloseRequest::RpcCloseRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCloseRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcCloseRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE RpcCloseRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void RpcCloseRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.session_id_ = {}; -} -RpcCloseRequest::~RpcCloseRequest() { - // @@protoc_insertion_point(destructor:subspace.RpcCloseRequest) - SharedDtor(*this); -} -inline void RpcCloseRequest::SharedDtor(MessageLite& self) { - RpcCloseRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcCloseRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcCloseRequest(arena); -} -constexpr auto RpcCloseRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcCloseRequest), - alignof(RpcCloseRequest)); -} -constexpr auto RpcCloseRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcCloseRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcCloseRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcCloseRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcCloseRequest::ByteSizeLong, - &RpcCloseRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_._cached_size_), - false, - }, - &RpcCloseRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcCloseRequest_class_data_ = - RpcCloseRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcCloseRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcCloseRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcCloseRequest_class_data_.tc_table); - return RpcCloseRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -RpcCloseRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RpcCloseRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcCloseRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCloseRequest, _impl_.session_id_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_.session_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 session_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcCloseRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void RpcCloseRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcCloseRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.session_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcCloseRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcCloseRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcCloseRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcCloseRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcCloseRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // int32 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_session_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcCloseRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcCloseRequest::ByteSizeLong(const MessageLite& base) { - const RpcCloseRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcCloseRequest::ByteSizeLong() const { - const RpcCloseRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcCloseRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // int32 session_id = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcCloseRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcCloseRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcCloseRequest::CopyFrom(const RpcCloseRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcCloseRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcCloseRequest::InternalSwap(RpcCloseRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.session_id_, other->_impl_.session_id_); -} - -::google::protobuf::Metadata RpcCloseRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcCloseResponse::_Internal { - public: -}; - -RpcCloseResponse::RpcCloseResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcCloseResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(arena_constructor:subspace.RpcCloseResponse) -} -RpcCloseResponse::RpcCloseResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcCloseResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, RpcCloseResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcCloseResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:subspace.RpcCloseResponse) -} - -inline void* PROTOBUF_NONNULL RpcCloseResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcCloseResponse(arena); -} -constexpr auto RpcCloseResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcCloseResponse), - alignof(RpcCloseResponse)); -} -constexpr auto RpcCloseResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcCloseResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcCloseResponse::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcCloseResponse::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &RpcCloseResponse::ByteSizeLong, - &RpcCloseResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcCloseResponse, _impl_._cached_size_), - false, - }, - &RpcCloseResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcCloseResponse_class_data_ = - RpcCloseResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcCloseResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcCloseResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcCloseResponse_class_data_.tc_table); - return RpcCloseResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> -RpcCloseResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RpcCloseResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcCloseResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, // no field_entries, or aux_entries - {{ - }}, -}; - - - - - - - -::google::protobuf::Metadata RpcCloseResponse::GetMetadata() const { - return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcServerRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerRequest, _impl_._oneof_case_); -}; - -void RpcServerRequest::set_allocated_open(::subspace::RpcOpenRequest* PROTOBUF_NULLABLE open) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (open) { - ::google::protobuf::Arena* submessage_arena = open->GetArena(); - if (message_arena != submessage_arena) { - open = ::google::protobuf::internal::GetOwnedMessage(message_arena, open, submessage_arena); - } - set_has_open(); - _impl_.request_.open_ = open; - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerRequest.open) -} -void RpcServerRequest::set_allocated_close(::subspace::RpcCloseRequest* PROTOBUF_NULLABLE close) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_request(); - if (close) { - ::google::protobuf::Arena* submessage_arena = close->GetArena(); - if (message_arena != submessage_arena) { - close = ::google::protobuf::internal::GetOwnedMessage(message_arena, close, submessage_arena); - } - set_has_close(); - _impl_.request_.close_ = close; - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerRequest.close) -} -RpcServerRequest::RpcServerRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcServerRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcServerRequest) -} -PROTOBUF_NDEBUG_INLINE RpcServerRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcServerRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - request_{}, - _oneof_case_{from._oneof_case_[0]} {} - -RpcServerRequest::RpcServerRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcServerRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcServerRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcServerRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, client_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, client_id_), - offsetof(Impl_, request_id_) - - offsetof(Impl_, client_id_) + - sizeof(Impl_::request_id_)); - switch (request_case()) { - case REQUEST_NOT_SET: - break; - case kOpen: - _impl_.request_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.open_); - break; - case kClose: - _impl_.request_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.close_); - break; - } - - // @@protoc_insertion_point(copy_constructor:subspace.RpcServerRequest) -} -PROTOBUF_NDEBUG_INLINE RpcServerRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - request_{}, - _oneof_case_{} {} - -inline void RpcServerRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, client_id_), - 0, - offsetof(Impl_, request_id_) - - offsetof(Impl_, client_id_) + - sizeof(Impl_::request_id_)); -} -RpcServerRequest::~RpcServerRequest() { - // @@protoc_insertion_point(destructor:subspace.RpcServerRequest) - SharedDtor(*this); -} -inline void RpcServerRequest::SharedDtor(MessageLite& self) { - RpcServerRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - if (this_.has_request()) { - this_.clear_request(); - } - this_._impl_.~Impl_(); -} - -void RpcServerRequest::clear_request() { -// @@protoc_insertion_point(one_of_clear_start:subspace.RpcServerRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - switch (request_case()) { - case kOpen: { - if (GetArena() == nullptr) { - delete _impl_.request_.open_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.open_); - } - break; - } - case kClose: { - if (GetArena() == nullptr) { - delete _impl_.request_.close_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.close_); - } - break; - } - case REQUEST_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = REQUEST_NOT_SET; -} - - -inline void* PROTOBUF_NONNULL RpcServerRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcServerRequest(arena); -} -constexpr auto RpcServerRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcServerRequest), - alignof(RpcServerRequest)); -} -constexpr auto RpcServerRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcServerRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcServerRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcServerRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcServerRequest::ByteSizeLong, - &RpcServerRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_._cached_size_), - false, - }, - &RpcServerRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcServerRequest_class_data_ = - RpcServerRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcServerRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcServerRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcServerRequest_class_data_.tc_table); - return RpcServerRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 4, 2, 0, 2> -RpcServerRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_._has_bits_), - 0, // no _extensions_ - 4, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - RpcServerRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcServerRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 request_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcServerRequest, _impl_.request_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_)}}, - // uint64 client_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcServerRequest, _impl_.client_id_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.client_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 client_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.client_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // int32 request_id = 2; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // .subspace.RpcOpenRequest open = 3; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_.open_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RpcCloseRequest close = 4; - {PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_.close_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenRequest>()}, - {::_pbi::TcParser::GetTable<::subspace::RpcCloseRequest>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void RpcServerRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcServerRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.request_id_) - - reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.request_id_)); - } - clear_request(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcServerRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcServerRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcServerRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcServerRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcServerRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // uint64 client_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_client_id(), target); - } - } - - // int32 request_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_request_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_request_id(), target); - } - } - - switch (this_.request_case()) { - case kOpen: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.request_.open_, this_._impl_.request_.open_->GetCachedSize(), target, - stream); - break; - } - case kClose: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.request_.close_, this_._impl_.request_.close_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcServerRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcServerRequest::ByteSizeLong(const MessageLite& base) { - const RpcServerRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcServerRequest::ByteSizeLong() const { - const RpcServerRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcServerRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // uint64 client_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - } - // int32 request_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - } - switch (this_.request_case()) { - // .subspace.RpcOpenRequest open = 3; - case kOpen: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.open_); - break; - } - // .subspace.RpcCloseRequest close = 4; - case kClose: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.request_.close_); - break; - } - case REQUEST_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcServerRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcServerRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - if (const uint32_t oneof_from_case = - from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_request(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kOpen: { - if (oneof_needs_init) { - _this->_impl_.request_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.open_); - } else { - _this->_impl_.request_.open_->MergeFrom(*from._impl_.request_.open_); - } - break; - } - case kClose: { - if (oneof_needs_init) { - _this->_impl_.request_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.request_.close_); - } else { - _this->_impl_.request_.close_->MergeFrom(*from._impl_.request_.close_); - } - break; - } - case REQUEST_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcServerRequest::CopyFrom(const RpcServerRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcServerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcServerRequest::InternalSwap(RpcServerRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.request_id_) - + sizeof(RpcServerRequest::_impl_.request_id_) - - PROTOBUF_FIELD_OFFSET(RpcServerRequest, _impl_.client_id_)>( - reinterpret_cast(&_impl_.client_id_), - reinterpret_cast(&other->_impl_.client_id_)); - swap(_impl_.request_, other->_impl_.request_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata RpcServerRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcServerResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::subspace::RpcServerResponse, _impl_._oneof_case_); -}; - -void RpcServerResponse::set_allocated_open(::subspace::RpcOpenResponse* PROTOBUF_NULLABLE open) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (open) { - ::google::protobuf::Arena* submessage_arena = open->GetArena(); - if (message_arena != submessage_arena) { - open = ::google::protobuf::internal::GetOwnedMessage(message_arena, open, submessage_arena); - } - set_has_open(); - _impl_.response_.open_ = open; - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerResponse.open) -} -void RpcServerResponse::set_allocated_close(::subspace::RpcCloseResponse* PROTOBUF_NULLABLE close) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_response(); - if (close) { - ::google::protobuf::Arena* submessage_arena = close->GetArena(); - if (message_arena != submessage_arena) { - close = ::google::protobuf::internal::GetOwnedMessage(message_arena, close, submessage_arena); - } - set_has_close(); - _impl_.response_.close_ = close; - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerResponse.close) -} -RpcServerResponse::RpcServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcServerResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcServerResponse) -} -PROTOBUF_NDEBUG_INLINE RpcServerResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcServerResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - error_(arena, from.error_), - response_{}, - _oneof_case_{from._oneof_case_[0]} {} - -RpcServerResponse::RpcServerResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcServerResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcServerResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcServerResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, client_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, client_id_), - offsetof(Impl_, request_id_) - - offsetof(Impl_, client_id_) + - sizeof(Impl_::request_id_)); - switch (response_case()) { - case RESPONSE_NOT_SET: - break; - case kOpen: - _impl_.response_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.open_); - break; - case kClose: - _impl_.response_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.close_); - break; - } - - // @@protoc_insertion_point(copy_constructor:subspace.RpcServerResponse) -} -PROTOBUF_NDEBUG_INLINE RpcServerResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - error_(arena), - response_{}, - _oneof_case_{} {} - -inline void RpcServerResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, client_id_), - 0, - offsetof(Impl_, request_id_) - - offsetof(Impl_, client_id_) + - sizeof(Impl_::request_id_)); -} -RpcServerResponse::~RpcServerResponse() { - // @@protoc_insertion_point(destructor:subspace.RpcServerResponse) - SharedDtor(*this); -} -inline void RpcServerResponse::SharedDtor(MessageLite& self) { - RpcServerResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - if (this_.has_response()) { - this_.clear_response(); - } - this_._impl_.~Impl_(); -} - -void RpcServerResponse::clear_response() { -// @@protoc_insertion_point(one_of_clear_start:subspace.RpcServerResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - switch (response_case()) { - case kOpen: { - if (GetArena() == nullptr) { - delete _impl_.response_.open_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.open_); - } - break; - } - case kClose: { - if (GetArena() == nullptr) { - delete _impl_.response_.close_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.close_); - } - break; - } - case RESPONSE_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = RESPONSE_NOT_SET; -} - - -inline void* PROTOBUF_NONNULL RpcServerResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcServerResponse(arena); -} -constexpr auto RpcServerResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcServerResponse), - alignof(RpcServerResponse)); -} -constexpr auto RpcServerResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcServerResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcServerResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcServerResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcServerResponse::ByteSizeLong, - &RpcServerResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_._cached_size_), - false, - }, - &RpcServerResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcServerResponse_class_data_ = - RpcServerResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcServerResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcServerResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcServerResponse_class_data_.tc_table); - return RpcServerResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 2, 40, 2> -RpcServerResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - RpcServerResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcServerResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 client_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcServerResponse, _impl_.client_id_), 1>(), - {8, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.client_id_)}}, - // int32 request_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcServerResponse, _impl_.request_id_), 2>(), - {16, 2, 0, - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // string error = 5; - {::_pbi::TcParser::FastUS1, - {42, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.error_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 client_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.client_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // int32 request_id = 2; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // .subspace.RpcOpenResponse open = 3; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.response_.open_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.RpcCloseResponse close = 4; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.response_.close_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // string error = 5; - {PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::RpcOpenResponse>()}, - {::_pbi::TcParser::GetTable<::subspace::RpcCloseResponse>()}, - }}, - {{ - "\32\0\0\0\0\5\0\0" - "subspace.RpcServerResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void RpcServerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcServerResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.client_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.request_id_) - - reinterpret_cast(&_impl_.client_id_)) + sizeof(_impl_.request_id_)); - } - clear_response(); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcServerResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcServerResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcServerResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcServerResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcServerResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // uint64 client_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_client_id(), target); - } - } - - // int32 request_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_request_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_request_id(), target); - } - } - - switch (this_.response_case()) { - case kOpen: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.response_.open_, this_._impl_.response_.open_->GetCachedSize(), target, - stream); - break; - } - case kClose: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.response_.close_, this_._impl_.response_.close_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - // string error = 5; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcServerResponse.error"); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcServerResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcServerResponse::ByteSizeLong(const MessageLite& base) { - const RpcServerResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcServerResponse::ByteSizeLong() const { - const RpcServerResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcServerResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // string error = 5; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - // uint64 client_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - } - // int32 request_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - } - switch (this_.response_case()) { - // .subspace.RpcOpenResponse open = 3; - case kOpen: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.open_); - break; - } - // .subspace.RpcCloseResponse close = 4; - case kClose: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.response_.close_); - break; - } - case RESPONSE_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcServerResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcServerResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - if (const uint32_t oneof_from_case = - from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_response(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kOpen: { - if (oneof_needs_init) { - _this->_impl_.response_.open_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.open_); - } else { - _this->_impl_.response_.open_->MergeFrom(*from._impl_.response_.open_); - } - break; - } - case kClose: { - if (oneof_needs_init) { - _this->_impl_.response_.close_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.response_.close_); - } else { - _this->_impl_.response_.close_->MergeFrom(*from._impl_.response_.close_); - } - break; - } - case RESPONSE_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcServerResponse::CopyFrom(const RpcServerResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcServerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcServerResponse::InternalSwap(RpcServerResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.request_id_) - + sizeof(RpcServerResponse::_impl_.request_id_) - - PROTOBUF_FIELD_OFFSET(RpcServerResponse, _impl_.client_id_)>( - reinterpret_cast(&_impl_.client_id_), - reinterpret_cast(&other->_impl_.client_id_)); - swap(_impl_.response_, other->_impl_.response_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata RpcServerResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_._has_bits_); -}; - -void RpcRequest::clear_argument() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.argument_ != nullptr) _impl_.argument_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -RpcRequest::RpcRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcRequest) -} -PROTOBUF_NDEBUG_INLINE RpcRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcRequest& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -RpcRequest::RpcRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.argument_ = (CheckHasBit(cached_has_bits, 0x00000001U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.argument_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, method_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, method_), - offsetof(Impl_, request_id_) - - offsetof(Impl_, method_) + - sizeof(Impl_::request_id_)); - - // @@protoc_insertion_point(copy_constructor:subspace.RpcRequest) -} -PROTOBUF_NDEBUG_INLINE RpcRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void RpcRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, argument_), - 0, - offsetof(Impl_, request_id_) - - offsetof(Impl_, argument_) + - sizeof(Impl_::request_id_)); -} -RpcRequest::~RpcRequest() { - // @@protoc_insertion_point(destructor:subspace.RpcRequest) - SharedDtor(*this); -} -inline void RpcRequest::SharedDtor(MessageLite& self) { - RpcRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.argument_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcRequest(arena); -} -constexpr auto RpcRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcRequest), - alignof(RpcRequest)); -} -constexpr auto RpcRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcRequest::ByteSizeLong, - &RpcRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_._cached_size_), - false, - }, - &RpcRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcRequest_class_data_ = - RpcRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcRequest_class_data_.tc_table); - return RpcRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 0, 2> -RpcRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967264, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - RpcRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 method = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.method_), 1>(), - {8, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.method_)}}, - // .google.protobuf.Any argument = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.argument_)}}, - // int32 session_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.session_id_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.session_id_)}}, - // int32 request_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcRequest, _impl_.request_id_), 4>(), - {32, 4, 0, - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.request_id_)}}, - // uint64 client_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcRequest, _impl_.client_id_), 3>(), - {40, 3, 0, - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.client_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 method = 1; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.method_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // .google.protobuf.Any argument = 2; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.argument_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // int32 session_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 request_id = 4; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.request_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // uint64 client_id = 5; - {PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.client_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void RpcRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(_impl_.argument_ != nullptr); - _impl_.argument_->Clear(); - } - if (BatchCheckHasBit(cached_has_bits, 0x0000001eU)) { - ::memset(&_impl_.method_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.request_id_) - - reinterpret_cast(&_impl_.method_)) + sizeof(_impl_.request_id_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // int32 method = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_method() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_method(), target); - } - } - - // .google.protobuf.Any argument = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.argument_, this_._impl_.argument_->GetCachedSize(), target, - stream); - } - - // int32 session_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_session_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_session_id(), target); - } - } - - // int32 request_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_request_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( - stream, this_._internal_request_id(), target); - } - } - - // uint64 client_id = 5; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this_._internal_client_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcRequest::ByteSizeLong(const MessageLite& base) { - const RpcRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcRequest::ByteSizeLong() const { - const RpcRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - // .google.protobuf.Any argument = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.argument_); - } - // int32 method = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_method() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_method()); - } - } - // int32 session_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - } - // uint64 client_id = 5; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - } - // int32 request_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(from._impl_.argument_ != nullptr); - if (_this->_impl_.argument_ == nullptr) { - _this->_impl_.argument_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.argument_); - } else { - _this->_impl_.argument_->MergeFrom(*from._impl_.argument_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_method() != 0) { - _this->_impl_.method_ = from._impl_.method_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcRequest::CopyFrom(const RpcRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcRequest::InternalSwap(RpcRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.request_id_) - + sizeof(RpcRequest::_impl_.request_id_) - - PROTOBUF_FIELD_OFFSET(RpcRequest, _impl_.argument_)>( - reinterpret_cast(&_impl_.argument_), - reinterpret_cast(&other->_impl_.argument_)); -} - -::google::protobuf::Metadata RpcRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcResponse::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_._has_bits_); -}; - -void RpcResponse::clear_result() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.result_ != nullptr) _impl_.result_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -RpcResponse::RpcResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcResponse) -} -PROTOBUF_NDEBUG_INLINE RpcResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RpcResponse& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - error_(arena, from.error_) {} - -RpcResponse::RpcResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RpcResponse& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcResponse_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RpcResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.result_ = (CheckHasBit(cached_has_bits, 0x00000002U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.result_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, session_id_), - offsetof(Impl_, is_cancelled_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::is_cancelled_)); - - // @@protoc_insertion_point(copy_constructor:subspace.RpcResponse) -} -PROTOBUF_NDEBUG_INLINE RpcResponse::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - error_(arena) {} - -inline void RpcResponse::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, result_), - 0, - offsetof(Impl_, is_cancelled_) - - offsetof(Impl_, result_) + - sizeof(Impl_::is_cancelled_)); -} -RpcResponse::~RpcResponse() { - // @@protoc_insertion_point(destructor:subspace.RpcResponse) - SharedDtor(*this); -} -inline void RpcResponse::SharedDtor(MessageLite& self) { - RpcResponse& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_.Destroy(); - delete this_._impl_.result_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcResponse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcResponse(arena); -} -constexpr auto RpcResponse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RpcResponse), - alignof(RpcResponse)); -} -constexpr auto RpcResponse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcResponse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcResponse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcResponse::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcResponse::ByteSizeLong, - &RpcResponse::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_._cached_size_), - false, - }, - &RpcResponse::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcResponse_class_data_ = - RpcResponse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcResponse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcResponse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcResponse_class_data_.tc_table); - return RpcResponse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 34, 2> -RpcResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - RpcResponse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string error = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.error_)}}, - // .google.protobuf.Any result = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.result_)}}, - // int32 session_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcResponse, _impl_.session_id_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.session_id_)}}, - // int32 request_id = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcResponse, _impl_.request_id_), 3>(), - {32, 3, 0, - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.request_id_)}}, - // uint64 client_id = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcResponse, _impl_.client_id_), 4>(), - {40, 4, 0, - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.client_id_)}}, - // bool is_last = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 5, 0, - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_last_)}}, - // bool is_cancelled = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 6, 0, - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_cancelled_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string error = 1; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Any result = 2; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.result_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // int32 session_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.session_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 request_id = 4; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.request_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // uint64 client_id = 5; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.client_id_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // bool is_last = 6; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_last_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_cancelled = 7; - {PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_cancelled_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, - }}, - {{ - "\24\5\0\0\0\0\0\0" - "subspace.RpcResponse" - "error" - }}, -}; -PROTOBUF_NOINLINE void RpcResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcResponse) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.error_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(_impl_.result_ != nullptr); - _impl_.result_->Clear(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000007cU)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_cancelled_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.is_cancelled_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcResponse::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcResponse::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - const ::std::string& _s = this_._internal_error(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.RpcResponse.error"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // .google.protobuf.Any result = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.result_, this_._impl_.result_->GetCachedSize(), target, - stream); - } - - // int32 session_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_session_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_session_id(), target); - } - } - - // int32 request_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_request_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( - stream, this_._internal_request_id(), target); - } - } - - // uint64 client_id = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this_._internal_client_id(), target); - } - } - - // bool is_last = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_last() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_last(), target); - } - } - - // bool is_cancelled = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_is_cancelled() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this_._internal_is_cancelled(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcResponse) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcResponse::ByteSizeLong(const MessageLite& base) { - const RpcResponse& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcResponse::ByteSizeLong() const { - const RpcResponse& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { - // string error = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_error().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error()); - } - } - // .google.protobuf.Any result = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.result_); - } - // int32 session_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - } - // int32 request_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - // uint64 client_id = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - } - // bool is_last = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_last() != 0) { - total_size += 2; - } - } - // bool is_cancelled = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_is_cancelled() != 0) { - total_size += 2; - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcResponse::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_error().empty()) { - _this->_internal_set_error(from._internal_error()); - } else { - if (_this->_impl_.error_.IsDefault()) { - _this->_internal_set_error(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(from._impl_.result_ != nullptr); - if (_this->_impl_.result_ == nullptr) { - _this->_impl_.result_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.result_); - } else { - _this->_impl_.result_->MergeFrom(*from._impl_.result_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_is_last() != 0) { - _this->_impl_.is_last_ = from._impl_.is_last_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_is_cancelled() != 0) { - _this->_impl_.is_cancelled_ = from._impl_.is_cancelled_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcResponse::CopyFrom(const RpcResponse& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcResponse::InternalSwap(RpcResponse* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_, &other->_impl_.error_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.is_cancelled_) - + sizeof(RpcResponse::_impl_.is_cancelled_) - - PROTOBUF_FIELD_OFFSET(RpcResponse, _impl_.result_)>( - reinterpret_cast(&_impl_.result_), - reinterpret_cast(&other->_impl_.result_)); -} - -::google::protobuf::Metadata RpcResponse::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RpcCancelRequest::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_._has_bits_); -}; - -RpcCancelRequest::RpcCancelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcCancelRequest_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RpcCancelRequest) -} -RpcCancelRequest::RpcCancelRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCancelRequest& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RpcCancelRequest_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE RpcCancelRequest::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void RpcCancelRequest::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - 0, - offsetof(Impl_, client_id_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::client_id_)); -} -RpcCancelRequest::~RpcCancelRequest() { - // @@protoc_insertion_point(destructor:subspace.RpcCancelRequest) - SharedDtor(*this); -} -inline void RpcCancelRequest::SharedDtor(MessageLite& self) { - RpcCancelRequest& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RpcCancelRequest::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RpcCancelRequest(arena); -} -constexpr auto RpcCancelRequest::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(RpcCancelRequest), - alignof(RpcCancelRequest)); -} -constexpr auto RpcCancelRequest::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RpcCancelRequest_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RpcCancelRequest::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RpcCancelRequest::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RpcCancelRequest::ByteSizeLong, - &RpcCancelRequest::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_._cached_size_), - false, - }, - &RpcCancelRequest::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RpcCancelRequest_class_data_ = - RpcCancelRequest::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RpcCancelRequest::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RpcCancelRequest_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RpcCancelRequest_class_data_.tc_table); - return RpcCancelRequest_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> -RpcCancelRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RpcCancelRequest_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RpcCancelRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // int32 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCancelRequest, _impl_.session_id_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.session_id_)}}, - // int32 request_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RpcCancelRequest, _impl_.request_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.request_id_)}}, - // uint64 client_id = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(RpcCancelRequest, _impl_.client_id_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int32 session_id = 1; - {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 request_id = 2; - {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.request_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // uint64 client_id = 3; - {PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void RpcCancelRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RpcCancelRequest) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.client_id_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.client_id_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RpcCancelRequest::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RpcCancelRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RpcCancelRequest::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RpcCancelRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RpcCancelRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // int32 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_session_id(), target); - } - } - - // int32 request_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_request_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_request_id(), target); - } - } - - // uint64 client_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_client_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this_._internal_client_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RpcCancelRequest) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RpcCancelRequest::ByteSizeLong(const MessageLite& base) { - const RpcCancelRequest& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RpcCancelRequest::ByteSizeLong() const { - const RpcCancelRequest& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RpcCancelRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // int32 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_session_id()); - } - } - // int32 request_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_request_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_request_id()); - } - } - // uint64 client_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_client_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_client_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RpcCancelRequest::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RpcCancelRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_request_id() != 0) { - _this->_impl_.request_id_ = from._impl_.request_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_client_id() != 0) { - _this->_impl_.client_id_ = from._impl_.client_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RpcCancelRequest::CopyFrom(const RpcCancelRequest& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RpcCancelRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RpcCancelRequest::InternalSwap(RpcCancelRequest* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.client_id_) - + sizeof(RpcCancelRequest::_impl_.client_id_) - - PROTOBUF_FIELD_OFFSET(RpcCancelRequest, _impl_.session_id_)>( - reinterpret_cast(&_impl_.session_id_), - reinterpret_cast(&other->_impl_.session_id_)); -} - -::google::protobuf::Metadata RpcCancelRequest::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class RawMessage::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(RawMessage, _impl_._has_bits_); -}; - -RawMessage::RawMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RawMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.RawMessage) -} -PROTOBUF_NDEBUG_INLINE RawMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::RawMessage& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - data_(arena, from.data_) {} - -RawMessage::RawMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const RawMessage& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, RawMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - RawMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:subspace.RawMessage) -} -PROTOBUF_NDEBUG_INLINE RawMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - data_(arena) {} - -inline void RawMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -RawMessage::~RawMessage() { - // @@protoc_insertion_point(destructor:subspace.RawMessage) - SharedDtor(*this); -} -inline void RawMessage::SharedDtor(MessageLite& self) { - RawMessage& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.data_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL RawMessage::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) RawMessage(arena); -} -constexpr auto RawMessage::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(RawMessage), - alignof(RawMessage)); -} -constexpr auto RawMessage::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_RawMessage_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &RawMessage::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &RawMessage::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &RawMessage::ByteSizeLong, - &RawMessage::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(RawMessage, _impl_._cached_size_), - false, - }, - &RawMessage::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull RawMessage_class_data_ = - RawMessage::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -RawMessage::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&RawMessage_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(RawMessage_class_data_.tc_table); - return RawMessage_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -RawMessage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(RawMessage, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - RawMessage_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::RawMessage>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes data = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(RawMessage, _impl_.data_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes data = 1; - {PROTOBUF_FIELD_OFFSET(RawMessage, _impl_.data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void RawMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.RawMessage) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.data_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL RawMessage::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const RawMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL RawMessage::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const RawMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.RawMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // bytes data = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_data().empty()) { - const ::std::string& _s = this_._internal_data(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.RawMessage) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t RawMessage::ByteSizeLong(const MessageLite& base) { - const RawMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t RawMessage::ByteSizeLong() const { - const RawMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.RawMessage) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // bytes data = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_data()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void RawMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.RawMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); - } else { - if (_this->_impl_.data_.IsDefault()) { - _this->_internal_set_data(""); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void RawMessage::CopyFrom(const RawMessage& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.RawMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void RawMessage::InternalSwap(RawMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.data_, &other->_impl_.data_, arena); -} - -::google::protobuf::Metadata RawMessage::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class VoidMessage::_Internal { - public: -}; - -VoidMessage::VoidMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, VoidMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(arena_constructor:subspace.VoidMessage) -} -VoidMessage::VoidMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const VoidMessage& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, VoidMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - VoidMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:subspace.VoidMessage) -} - -inline void* PROTOBUF_NONNULL VoidMessage::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) VoidMessage(arena); -} -constexpr auto VoidMessage::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(VoidMessage), - alignof(VoidMessage)); -} -constexpr auto VoidMessage::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_VoidMessage_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &VoidMessage::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &VoidMessage::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &VoidMessage::ByteSizeLong, - &VoidMessage::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(VoidMessage, _impl_._cached_size_), - false, - }, - &VoidMessage::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull VoidMessage_class_data_ = - VoidMessage::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -VoidMessage::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&VoidMessage_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(VoidMessage_class_data_.tc_table); - return VoidMessage_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> -VoidMessage::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - VoidMessage_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::VoidMessage>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, // no field_entries, or aux_entries - {{ - }}, -}; - - - - - - - -::google::protobuf::Metadata VoidMessage::GetMetadata() const { - return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowEvent::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::subspace::ShadowEvent, _impl_._oneof_case_); -}; - -void ShadowEvent::set_allocated_init(::subspace::ShadowInit* PROTOBUF_NULLABLE init) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (init) { - ::google::protobuf::Arena* submessage_arena = init->GetArena(); - if (message_arena != submessage_arena) { - init = ::google::protobuf::internal::GetOwnedMessage(message_arena, init, submessage_arena); - } - set_has_init(); - _impl_.event_.init_ = init; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.init) -} -void ShadowEvent::set_allocated_create_channel(::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE create_channel) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (create_channel) { - ::google::protobuf::Arena* submessage_arena = create_channel->GetArena(); - if (message_arena != submessage_arena) { - create_channel = ::google::protobuf::internal::GetOwnedMessage(message_arena, create_channel, submessage_arena); - } - set_has_create_channel(); - _impl_.event_.create_channel_ = create_channel; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.create_channel) -} -void ShadowEvent::set_allocated_remove_channel(::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE remove_channel) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (remove_channel) { - ::google::protobuf::Arena* submessage_arena = remove_channel->GetArena(); - if (message_arena != submessage_arena) { - remove_channel = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove_channel, submessage_arena); - } - set_has_remove_channel(); - _impl_.event_.remove_channel_ = remove_channel; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.remove_channel) -} -void ShadowEvent::set_allocated_add_publisher(::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE add_publisher) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (add_publisher) { - ::google::protobuf::Arena* submessage_arena = add_publisher->GetArena(); - if (message_arena != submessage_arena) { - add_publisher = ::google::protobuf::internal::GetOwnedMessage(message_arena, add_publisher, submessage_arena); - } - set_has_add_publisher(); - _impl_.event_.add_publisher_ = add_publisher; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.add_publisher) -} -void ShadowEvent::set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE remove_publisher) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (remove_publisher) { - ::google::protobuf::Arena* submessage_arena = remove_publisher->GetArena(); - if (message_arena != submessage_arena) { - remove_publisher = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove_publisher, submessage_arena); - } - set_has_remove_publisher(); - _impl_.event_.remove_publisher_ = remove_publisher; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.remove_publisher) -} -void ShadowEvent::set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE add_subscriber) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (add_subscriber) { - ::google::protobuf::Arena* submessage_arena = add_subscriber->GetArena(); - if (message_arena != submessage_arena) { - add_subscriber = ::google::protobuf::internal::GetOwnedMessage(message_arena, add_subscriber, submessage_arena); - } - set_has_add_subscriber(); - _impl_.event_.add_subscriber_ = add_subscriber; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.add_subscriber) -} -void ShadowEvent::set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE remove_subscriber) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (remove_subscriber) { - ::google::protobuf::Arena* submessage_arena = remove_subscriber->GetArena(); - if (message_arena != submessage_arena) { - remove_subscriber = ::google::protobuf::internal::GetOwnedMessage(message_arena, remove_subscriber, submessage_arena); - } - set_has_remove_subscriber(); - _impl_.event_.remove_subscriber_ = remove_subscriber; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.remove_subscriber) -} -void ShadowEvent::set_allocated_state_dump(::subspace::ShadowStateDump* PROTOBUF_NULLABLE state_dump) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (state_dump) { - ::google::protobuf::Arena* submessage_arena = state_dump->GetArena(); - if (message_arena != submessage_arena) { - state_dump = ::google::protobuf::internal::GetOwnedMessage(message_arena, state_dump, submessage_arena); - } - set_has_state_dump(); - _impl_.event_.state_dump_ = state_dump; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.state_dump) -} -void ShadowEvent::set_allocated_state_done(::subspace::ShadowStateDone* PROTOBUF_NULLABLE state_done) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (state_done) { - ::google::protobuf::Arena* submessage_arena = state_done->GetArena(); - if (message_arena != submessage_arena) { - state_done = ::google::protobuf::internal::GetOwnedMessage(message_arena, state_done, submessage_arena); - } - set_has_state_done(); - _impl_.event_.state_done_ = state_done; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.state_done) -} -void ShadowEvent::set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE register_client_buffer) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (register_client_buffer) { - ::google::protobuf::Arena* submessage_arena = register_client_buffer->GetArena(); - if (message_arena != submessage_arena) { - register_client_buffer = ::google::protobuf::internal::GetOwnedMessage(message_arena, register_client_buffer, submessage_arena); - } - set_has_register_client_buffer(); - _impl_.event_.register_client_buffer_ = register_client_buffer; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.register_client_buffer) -} -void ShadowEvent::set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE unregister_client_buffer) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (unregister_client_buffer) { - ::google::protobuf::Arena* submessage_arena = unregister_client_buffer->GetArena(); - if (message_arena != submessage_arena) { - unregister_client_buffer = ::google::protobuf::internal::GetOwnedMessage(message_arena, unregister_client_buffer, submessage_arena); - } - set_has_unregister_client_buffer(); - _impl_.event_.unregister_client_buffer_ = unregister_client_buffer; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.unregister_client_buffer) -} -void ShadowEvent::set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE update_channel_options) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_event(); - if (update_channel_options) { - ::google::protobuf::Arena* submessage_arena = update_channel_options->GetArena(); - if (message_arena != submessage_arena) { - update_channel_options = ::google::protobuf::internal::GetOwnedMessage(message_arena, update_channel_options, submessage_arena); - } - set_has_update_channel_options(); - _impl_.event_.update_channel_options_ = update_channel_options; - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowEvent.update_channel_options) -} -ShadowEvent::ShadowEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowEvent_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowEvent) -} -PROTOBUF_NDEBUG_INLINE ShadowEvent::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowEvent& from_msg) - : event_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -ShadowEvent::ShadowEvent( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowEvent& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowEvent_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowEvent* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - switch (event_case()) { - case EVENT_NOT_SET: - break; - case kInit: - _impl_.event_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.init_); - break; - case kCreateChannel: - _impl_.event_.create_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.create_channel_); - break; - case kRemoveChannel: - _impl_.event_.remove_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_channel_); - break; - case kAddPublisher: - _impl_.event_.add_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_publisher_); - break; - case kRemovePublisher: - _impl_.event_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_publisher_); - break; - case kAddSubscriber: - _impl_.event_.add_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_subscriber_); - break; - case kRemoveSubscriber: - _impl_.event_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_subscriber_); - break; - case kStateDump: - _impl_.event_.state_dump_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_dump_); - break; - case kStateDone: - _impl_.event_.state_done_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_done_); - break; - case kRegisterClientBuffer: - _impl_.event_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.register_client_buffer_); - break; - case kUnregisterClientBuffer: - _impl_.event_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.unregister_client_buffer_); - break; - case kUpdateChannelOptions: - _impl_.event_.update_channel_options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.update_channel_options_); - break; - } - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowEvent) -} -PROTOBUF_NDEBUG_INLINE ShadowEvent::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : event_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void ShadowEvent::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ShadowEvent::~ShadowEvent() { - // @@protoc_insertion_point(destructor:subspace.ShadowEvent) - SharedDtor(*this); -} -inline void ShadowEvent::SharedDtor(MessageLite& self) { - ShadowEvent& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - if (this_.has_event()) { - this_.clear_event(); - } - this_._impl_.~Impl_(); -} - -void ShadowEvent::clear_event() { -// @@protoc_insertion_point(one_of_clear_start:subspace.ShadowEvent) - ::google::protobuf::internal::TSanWrite(&_impl_); - switch (event_case()) { - case kInit: { - if (GetArena() == nullptr) { - delete _impl_.event_.init_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.init_); - } - break; - } - case kCreateChannel: { - if (GetArena() == nullptr) { - delete _impl_.event_.create_channel_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.create_channel_); - } - break; - } - case kRemoveChannel: { - if (GetArena() == nullptr) { - delete _impl_.event_.remove_channel_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.remove_channel_); - } - break; - } - case kAddPublisher: { - if (GetArena() == nullptr) { - delete _impl_.event_.add_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.add_publisher_); - } - break; - } - case kRemovePublisher: { - if (GetArena() == nullptr) { - delete _impl_.event_.remove_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.remove_publisher_); - } - break; - } - case kAddSubscriber: { - if (GetArena() == nullptr) { - delete _impl_.event_.add_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.add_subscriber_); - } - break; - } - case kRemoveSubscriber: { - if (GetArena() == nullptr) { - delete _impl_.event_.remove_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.remove_subscriber_); - } - break; - } - case kStateDump: { - if (GetArena() == nullptr) { - delete _impl_.event_.state_dump_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.state_dump_); - } - break; - } - case kStateDone: { - if (GetArena() == nullptr) { - delete _impl_.event_.state_done_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.state_done_); - } - break; - } - case kRegisterClientBuffer: { - if (GetArena() == nullptr) { - delete _impl_.event_.register_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.register_client_buffer_); - } - break; - } - case kUnregisterClientBuffer: { - if (GetArena() == nullptr) { - delete _impl_.event_.unregister_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.unregister_client_buffer_); - } - break; - } - case kUpdateChannelOptions: { - if (GetArena() == nullptr) { - delete _impl_.event_.update_channel_options_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.update_channel_options_); - } - break; - } - case EVENT_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = EVENT_NOT_SET; -} - - -inline void* PROTOBUF_NONNULL ShadowEvent::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowEvent(arena); -} -constexpr auto ShadowEvent::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowEvent), - alignof(ShadowEvent)); -} -constexpr auto ShadowEvent::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowEvent_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowEvent::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowEvent::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowEvent::ByteSizeLong, - &ShadowEvent::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_._cached_size_), - false, - }, - &ShadowEvent::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowEvent_class_data_ = - ShadowEvent::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowEvent::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowEvent_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowEvent_class_data_.tc_table); - return ShadowEvent_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 12, 12, 0, 2> -ShadowEvent::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963200, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 12, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - ShadowEvent_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowEvent>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .subspace.ShadowInit init = 1; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.init_), _Internal::kOneofCaseOffset + 0, 0, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowCreateChannel create_channel = 2; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.create_channel_), _Internal::kOneofCaseOffset + 0, 1, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRemoveChannel remove_channel = 3; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_channel_), _Internal::kOneofCaseOffset + 0, 2, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowAddPublisher add_publisher = 4; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.add_publisher_), _Internal::kOneofCaseOffset + 0, 3, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRemovePublisher remove_publisher = 5; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_publisher_), _Internal::kOneofCaseOffset + 0, 4, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowAddSubscriber add_subscriber = 6; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.add_subscriber_), _Internal::kOneofCaseOffset + 0, 5, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.remove_subscriber_), _Internal::kOneofCaseOffset + 0, 6, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowStateDump state_dump = 8; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.state_dump_), _Internal::kOneofCaseOffset + 0, 7, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowStateDone state_done = 9; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.state_done_), _Internal::kOneofCaseOffset + 0, 8, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.register_client_buffer_), _Internal::kOneofCaseOffset + 0, 9, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.unregister_client_buffer_), _Internal::kOneofCaseOffset + 0, 10, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; - {PROTOBUF_FIELD_OFFSET(ShadowEvent, _impl_.event_.update_channel_options_), _Internal::kOneofCaseOffset + 0, 11, (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ShadowInit>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowCreateChannel>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRemoveChannel>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowAddPublisher>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRemovePublisher>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowAddSubscriber>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRemoveSubscriber>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowStateDump>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowStateDone>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowRegisterClientBuffer>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowUnregisterClientBuffer>()}, - {::_pbi::TcParser::GetTable<::subspace::ShadowUpdateChannelOptions>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void ShadowEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowEvent) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_event(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowEvent::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowEvent& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowEvent::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowEvent& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowEvent) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (this_.event_case()) { - case kInit: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.event_.init_, this_._impl_.event_.init_->GetCachedSize(), target, - stream); - break; - } - case kCreateChannel: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.event_.create_channel_, this_._impl_.event_.create_channel_->GetCachedSize(), target, - stream); - break; - } - case kRemoveChannel: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.event_.remove_channel_, this_._impl_.event_.remove_channel_->GetCachedSize(), target, - stream); - break; - } - case kAddPublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.event_.add_publisher_, this_._impl_.event_.add_publisher_->GetCachedSize(), target, - stream); - break; - } - case kRemovePublisher: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *this_._impl_.event_.remove_publisher_, this_._impl_.event_.remove_publisher_->GetCachedSize(), target, - stream); - break; - } - case kAddSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *this_._impl_.event_.add_subscriber_, this_._impl_.event_.add_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kRemoveSubscriber: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *this_._impl_.event_.remove_subscriber_, this_._impl_.event_.remove_subscriber_->GetCachedSize(), target, - stream); - break; - } - case kStateDump: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 8, *this_._impl_.event_.state_dump_, this_._impl_.event_.state_dump_->GetCachedSize(), target, - stream); - break; - } - case kStateDone: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *this_._impl_.event_.state_done_, this_._impl_.event_.state_done_->GetCachedSize(), target, - stream); - break; - } - case kRegisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 10, *this_._impl_.event_.register_client_buffer_, this_._impl_.event_.register_client_buffer_->GetCachedSize(), target, - stream); - break; - } - case kUnregisterClientBuffer: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, *this_._impl_.event_.unregister_client_buffer_, this_._impl_.event_.unregister_client_buffer_->GetCachedSize(), target, - stream); - break; - } - case kUpdateChannelOptions: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *this_._impl_.event_.update_channel_options_, this_._impl_.event_.update_channel_options_->GetCachedSize(), target, - stream); - break; - } - default: - break; - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowEvent) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowEvent::ByteSizeLong(const MessageLite& base) { - const ShadowEvent& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowEvent::ByteSizeLong() const { - const ShadowEvent& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowEvent) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - switch (this_.event_case()) { - // .subspace.ShadowInit init = 1; - case kInit: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.init_); - break; - } - // .subspace.ShadowCreateChannel create_channel = 2; - case kCreateChannel: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.create_channel_); - break; - } - // .subspace.ShadowRemoveChannel remove_channel = 3; - case kRemoveChannel: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_channel_); - break; - } - // .subspace.ShadowAddPublisher add_publisher = 4; - case kAddPublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.add_publisher_); - break; - } - // .subspace.ShadowRemovePublisher remove_publisher = 5; - case kRemovePublisher: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_publisher_); - break; - } - // .subspace.ShadowAddSubscriber add_subscriber = 6; - case kAddSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.add_subscriber_); - break; - } - // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; - case kRemoveSubscriber: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.remove_subscriber_); - break; - } - // .subspace.ShadowStateDump state_dump = 8; - case kStateDump: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.state_dump_); - break; - } - // .subspace.ShadowStateDone state_done = 9; - case kStateDone: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.state_done_); - break; - } - // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; - case kRegisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.register_client_buffer_); - break; - } - // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; - case kUnregisterClientBuffer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.unregister_client_buffer_); - break; - } - // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; - case kUpdateChannelOptions: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.event_.update_channel_options_); - break; - } - case EVENT_NOT_SET: { - break; - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowEvent::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowEvent) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - if (const uint32_t oneof_from_case = - from._impl_._oneof_case_[0]) { - const uint32_t oneof_to_case = _this->_impl_._oneof_case_[0]; - const bool oneof_needs_init = oneof_to_case != oneof_from_case; - if (oneof_needs_init) { - if (oneof_to_case != 0) { - _this->clear_event(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kInit: { - if (oneof_needs_init) { - _this->_impl_.event_.init_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.init_); - } else { - _this->_impl_.event_.init_->MergeFrom(*from._impl_.event_.init_); - } - break; - } - case kCreateChannel: { - if (oneof_needs_init) { - _this->_impl_.event_.create_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.create_channel_); - } else { - _this->_impl_.event_.create_channel_->MergeFrom(*from._impl_.event_.create_channel_); - } - break; - } - case kRemoveChannel: { - if (oneof_needs_init) { - _this->_impl_.event_.remove_channel_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_channel_); - } else { - _this->_impl_.event_.remove_channel_->MergeFrom(*from._impl_.event_.remove_channel_); - } - break; - } - case kAddPublisher: { - if (oneof_needs_init) { - _this->_impl_.event_.add_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_publisher_); - } else { - _this->_impl_.event_.add_publisher_->MergeFrom(*from._impl_.event_.add_publisher_); - } - break; - } - case kRemovePublisher: { - if (oneof_needs_init) { - _this->_impl_.event_.remove_publisher_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_publisher_); - } else { - _this->_impl_.event_.remove_publisher_->MergeFrom(*from._impl_.event_.remove_publisher_); - } - break; - } - case kAddSubscriber: { - if (oneof_needs_init) { - _this->_impl_.event_.add_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.add_subscriber_); - } else { - _this->_impl_.event_.add_subscriber_->MergeFrom(*from._impl_.event_.add_subscriber_); - } - break; - } - case kRemoveSubscriber: { - if (oneof_needs_init) { - _this->_impl_.event_.remove_subscriber_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.remove_subscriber_); - } else { - _this->_impl_.event_.remove_subscriber_->MergeFrom(*from._impl_.event_.remove_subscriber_); - } - break; - } - case kStateDump: { - if (oneof_needs_init) { - _this->_impl_.event_.state_dump_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_dump_); - } else { - _this->_impl_.event_.state_dump_->MergeFrom(*from._impl_.event_.state_dump_); - } - break; - } - case kStateDone: { - if (oneof_needs_init) { - _this->_impl_.event_.state_done_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.state_done_); - } else { - _this->_impl_.event_.state_done_->MergeFrom(*from._impl_.event_.state_done_); - } - break; - } - case kRegisterClientBuffer: { - if (oneof_needs_init) { - _this->_impl_.event_.register_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.register_client_buffer_); - } else { - _this->_impl_.event_.register_client_buffer_->MergeFrom(*from._impl_.event_.register_client_buffer_); - } - break; - } - case kUnregisterClientBuffer: { - if (oneof_needs_init) { - _this->_impl_.event_.unregister_client_buffer_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.unregister_client_buffer_); - } else { - _this->_impl_.event_.unregister_client_buffer_->MergeFrom(*from._impl_.event_.unregister_client_buffer_); - } - break; - } - case kUpdateChannelOptions: { - if (oneof_needs_init) { - _this->_impl_.event_.update_channel_options_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.event_.update_channel_options_); - } else { - _this->_impl_.event_.update_channel_options_->MergeFrom(*from._impl_.event_.update_channel_options_); - } - break; - } - case EVENT_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowEvent::CopyFrom(const ShadowEvent& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowEvent::InternalSwap(ShadowEvent* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.event_, other->_impl_.event_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata ShadowEvent::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowInit::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_._has_bits_); -}; - -ShadowInit::ShadowInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowInit_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowInit) -} -ShadowInit::ShadowInit( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowInit& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowInit_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE ShadowInit::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void ShadowInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.session_id_ = {}; -} -ShadowInit::~ShadowInit() { - // @@protoc_insertion_point(destructor:subspace.ShadowInit) - SharedDtor(*this); -} -inline void ShadowInit::SharedDtor(MessageLite& self) { - ShadowInit& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowInit::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowInit(arena); -} -constexpr auto ShadowInit::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowInit), - alignof(ShadowInit)); -} -constexpr auto ShadowInit::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowInit_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowInit::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowInit::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowInit::ByteSizeLong, - &ShadowInit::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_._cached_size_), - false, - }, - &ShadowInit::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowInit_class_data_ = - ShadowInit::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowInit::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowInit_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowInit_class_data_.tc_table); - return ShadowInit_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -ShadowInit::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowInit_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowInit>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowInit, _impl_.session_id_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_.session_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 session_id = 1; - {PROTOBUF_FIELD_OFFSET(ShadowInit, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void ShadowInit::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowInit) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.session_id_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowInit::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowInit& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowInit::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowInit& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowInit) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // uint64 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_session_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowInit) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowInit::ByteSizeLong(const MessageLite& base) { - const ShadowInit& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowInit::ByteSizeLong() const { - const ShadowInit& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowInit) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // uint64 session_id = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowInit::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowInit) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowInit::CopyFrom(const ShadowInit& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowInit) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowInit::InternalSwap(ShadowInit* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.session_id_, other->_impl_.session_id_); -} - -::google::protobuf::Metadata ShadowInit::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowCreateChannel::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_._has_bits_); -}; - -ShadowCreateChannel::ShadowCreateChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowCreateChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowCreateChannel) -} -PROTOBUF_NDEBUG_INLINE ShadowCreateChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowCreateChannel& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_), - type_(arena, from.type_), - mux_(arena, from.mux_) {} - -ShadowCreateChannel::ShadowCreateChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowCreateChannel& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowCreateChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowCreateChannel* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, channel_id_), - offsetof(Impl_, max_publishers_) - - offsetof(Impl_, channel_id_) + - sizeof(Impl_::max_publishers_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowCreateChannel) -} -PROTOBUF_NDEBUG_INLINE ShadowCreateChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena), - type_(arena), - mux_(arena) {} - -inline void ShadowCreateChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, channel_id_), - 0, - offsetof(Impl_, max_publishers_) - - offsetof(Impl_, channel_id_) + - sizeof(Impl_::max_publishers_)); -} -ShadowCreateChannel::~ShadowCreateChannel() { - // @@protoc_insertion_point(destructor:subspace.ShadowCreateChannel) - SharedDtor(*this); -} -inline void ShadowCreateChannel::SharedDtor(MessageLite& self) { - ShadowCreateChannel& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.type_.Destroy(); - this_._impl_.mux_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowCreateChannel::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowCreateChannel(arena); -} -constexpr auto ShadowCreateChannel::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowCreateChannel), - alignof(ShadowCreateChannel)); -} -constexpr auto ShadowCreateChannel::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowCreateChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowCreateChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowCreateChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowCreateChannel::ByteSizeLong, - &ShadowCreateChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_._cached_size_), - false, - }, - &ShadowCreateChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowCreateChannel_class_data_ = - ShadowCreateChannel::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowCreateChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowCreateChannel_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowCreateChannel_class_data_.tc_table); - return ShadowCreateChannel_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 17, 0, 68, 2> -ShadowCreateChannel::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_._has_bits_), - 0, // no _extensions_ - 17, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294836224, // skipmap - offsetof(decltype(_table_), field_entries), - 17, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowCreateChannel_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowCreateChannel>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_name_)}}, - // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.channel_id_), 3>(), - {16, 3, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_id_)}}, - // int32 slot_size = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.slot_size_), 4>(), - {24, 4, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.slot_size_)}}, - // int32 num_slots = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.num_slots_), 5>(), - {32, 5, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.num_slots_)}}, - // bytes type = 5; - {::_pbi::TcParser::FastBS1, - {42, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.type_)}}, - // bool is_local = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 6, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_local_)}}, - // bool is_reliable = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 7, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_reliable_)}}, - // bool is_fixed_size = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 8, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_fixed_size_)}}, - // int32 checksum_size = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.checksum_size_), 10>(), - {72, 10, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.checksum_size_)}}, - // int32 metadata_size = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.metadata_size_), 11>(), - {80, 11, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.metadata_size_)}}, - // string mux = 11; - {::_pbi::TcParser::FastUS1, - {90, 2, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.mux_)}}, - // int32 vchan_id = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowCreateChannel, _impl_.vchan_id_), 12>(), - {96, 12, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.vchan_id_)}}, - // bool has_split_buffer_options = 13; - {::_pbi::TcParser::SingularVarintNoZag1(), - {104, 9, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_split_buffer_options_)}}, - // bool use_split_buffers = 14; - {::_pbi::TcParser::SingularVarintNoZag1(), - {112, 13, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.use_split_buffers_)}}, - // bool has_max_publishers = 15; - {::_pbi::TcParser::SingularVarintNoZag1(), - {120, 14, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_max_publishers_)}}, - // int32 max_publishers = 16; - {::_pbi::TcParser::FastV32S2, - {384, 16, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.max_publishers_)}}, - // bool split_buffers_over_bridge = 17; - {::_pbi::TcParser::FastV8S2, - {392, 15, 0, - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.split_buffers_over_bridge_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_id_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 slot_size = 3; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.slot_size_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 num_slots = 4; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.num_slots_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bytes type = 5; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool is_local = 6; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_local_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_reliable = 7; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_reliable_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_fixed_size = 8; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.is_fixed_size_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 checksum_size = 9; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.checksum_size_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 metadata_size = 10; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.metadata_size_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // string mux = 11; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.mux_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 vchan_id = 12; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.vchan_id_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool has_split_buffer_options = 13; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_split_buffer_options_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool use_split_buffers = 14; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool has_max_publishers = 15; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.has_max_publishers_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 max_publishers = 16; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.max_publishers_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool split_buffers_over_bridge = 17; - {PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\34\14\0\0\0\0\0\0\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0" - "subspace.ShadowCreateChannel" - "channel_name" - "mux" - }}, -}; -PROTOBUF_NOINLINE void ShadowCreateChannel::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowCreateChannel) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.type_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.mux_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000f8U)) { - ::memset(&_impl_.channel_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_reliable_) - - reinterpret_cast(&_impl_.channel_id_)) + sizeof(_impl_.is_reliable_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - ::memset(&_impl_.is_fixed_size_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.split_buffers_over_bridge_) - - reinterpret_cast(&_impl_.is_fixed_size_)) + sizeof(_impl_.split_buffers_over_bridge_)); - } - _impl_.max_publishers_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowCreateChannel::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowCreateChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowCreateChannel::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowCreateChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowCreateChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowCreateChannel.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_channel_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - } - - // int32 slot_size = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_slot_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_slot_size(), target); - } - } - - // int32 num_slots = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_num_slots() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( - stream, this_._internal_num_slots(), target); - } - } - - // bytes type = 5; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - const ::std::string& _s = this_._internal_type(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - } - - // bool is_local = 6; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_is_local() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_local(), target); - } - } - - // bool is_reliable = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this_._internal_is_reliable(), target); - } - } - - // bool is_fixed_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_is_fixed_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this_._internal_is_fixed_size(), target); - } - } - - // int32 checksum_size = 9; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_checksum_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<9>( - stream, this_._internal_checksum_size(), target); - } - } - - // int32 metadata_size = 10; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_metadata_size() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<10>( - stream, this_._internal_metadata_size(), target); - } - } - - // string mux = 11; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - const ::std::string& _s = this_._internal_mux(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowCreateChannel.mux"); - target = stream->WriteStringMaybeAliased(11, _s, target); - } - } - - // int32 vchan_id = 12; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_vchan_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<12>( - stream, this_._internal_vchan_id(), target); - } - } - - // bool has_split_buffer_options = 13; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_has_split_buffer_options() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 13, this_._internal_has_split_buffer_options(), target); - } - } - - // bool use_split_buffers = 14; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 14, this_._internal_use_split_buffers(), target); - } - } - - // bool has_max_publishers = 15; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_has_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 15, this_._internal_has_max_publishers(), target); - } - } - - // int32 max_publishers = 16; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (this_._internal_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 16, this_._internal_max_publishers(), target); - } - } - - // bool split_buffers_over_bridge = 17; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 17, this_._internal_split_buffers_over_bridge(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowCreateChannel) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowCreateChannel::ByteSizeLong(const MessageLite& base) { - const ShadowCreateChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowCreateChannel::ByteSizeLong() const { - const ShadowCreateChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowCreateChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // bytes type = 5; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!this_._internal_type().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_type()); - } - } - // string mux = 11; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_mux().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_mux()); - } - } - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - } - // int32 slot_size = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_slot_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_slot_size()); - } - } - // int32 num_slots = 4; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_num_slots() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_slots()); - } - } - // bool is_local = 6; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_is_local() != 0) { - total_size += 2; - } - } - // bool is_reliable = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - // bool is_fixed_size = 8; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (this_._internal_is_fixed_size() != 0) { - total_size += 2; - } - } - // bool has_split_buffer_options = 13; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (this_._internal_has_split_buffer_options() != 0) { - total_size += 2; - } - } - // int32 checksum_size = 9; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (this_._internal_checksum_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_checksum_size()); - } - } - // int32 metadata_size = 10; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (this_._internal_metadata_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_metadata_size()); - } - } - // int32 vchan_id = 12; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (this_._internal_vchan_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_vchan_id()); - } - } - // bool use_split_buffers = 14; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (this_._internal_use_split_buffers() != 0) { - total_size += 2; - } - } - // bool has_max_publishers = 15; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (this_._internal_has_max_publishers() != 0) { - total_size += 2; - } - } - // bool split_buffers_over_bridge = 17; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 3; - } - } - } - { - // int32 max_publishers = 16; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (this_._internal_max_publishers() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_max_publishers()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowCreateChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowCreateChannel) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (!from._internal_type().empty()) { - _this->_internal_set_type(from._internal_type()); - } else { - if (_this->_impl_.type_.IsDefault()) { - _this->_internal_set_type(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!from._internal_mux().empty()) { - _this->_internal_set_mux(from._internal_mux()); - } else { - if (_this->_impl_.mux_.IsDefault()) { - _this->_internal_set_mux(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_slot_size() != 0) { - _this->_impl_.slot_size_ = from._impl_.slot_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_num_slots() != 0) { - _this->_impl_.num_slots_ = from._impl_.num_slots_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_is_local() != 0) { - _this->_impl_.is_local_ = from._impl_.is_local_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; - } - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (from._internal_is_fixed_size() != 0) { - _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - if (from._internal_has_split_buffer_options() != 0) { - _this->_impl_.has_split_buffer_options_ = from._impl_.has_split_buffer_options_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (from._internal_checksum_size() != 0) { - _this->_impl_.checksum_size_ = from._impl_.checksum_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (from._internal_metadata_size() != 0) { - _this->_impl_.metadata_size_ = from._impl_.metadata_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - if (from._internal_vchan_id() != 0) { - _this->_impl_.vchan_id_ = from._impl_.vchan_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; - } - } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - if (from._internal_has_max_publishers() != 0) { - _this->_impl_.has_max_publishers_ = from._impl_.has_max_publishers_; - } - } - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; - } - } - } - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - if (from._internal_max_publishers() != 0) { - _this->_impl_.max_publishers_ = from._impl_.max_publishers_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowCreateChannel::CopyFrom(const ShadowCreateChannel& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowCreateChannel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowCreateChannel::InternalSwap(ShadowCreateChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_, &other->_impl_.type_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mux_, &other->_impl_.mux_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.max_publishers_) - + sizeof(ShadowCreateChannel::_impl_.max_publishers_) - - PROTOBUF_FIELD_OFFSET(ShadowCreateChannel, _impl_.channel_id_)>( - reinterpret_cast(&_impl_.channel_id_), - reinterpret_cast(&other->_impl_.channel_id_)); -} - -::google::protobuf::Metadata ShadowCreateChannel::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowRemoveChannel::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_._has_bits_); -}; - -ShadowRemoveChannel::ShadowRemoveChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRemoveChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowRemoveChannel) -} -PROTOBUF_NDEBUG_INLINE ShadowRemoveChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowRemoveChannel& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ShadowRemoveChannel::ShadowRemoveChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowRemoveChannel& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRemoveChannel_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowRemoveChannel* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.channel_id_ = from._impl_.channel_id_; - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowRemoveChannel) -} -PROTOBUF_NDEBUG_INLINE ShadowRemoveChannel::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ShadowRemoveChannel::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.channel_id_ = {}; -} -ShadowRemoveChannel::~ShadowRemoveChannel() { - // @@protoc_insertion_point(destructor:subspace.ShadowRemoveChannel) - SharedDtor(*this); -} -inline void ShadowRemoveChannel::SharedDtor(MessageLite& self) { - ShadowRemoveChannel& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowRemoveChannel::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowRemoveChannel(arena); -} -constexpr auto ShadowRemoveChannel::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowRemoveChannel), - alignof(ShadowRemoveChannel)); -} -constexpr auto ShadowRemoveChannel::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowRemoveChannel_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRemoveChannel::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRemoveChannel::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRemoveChannel::ByteSizeLong, - &ShadowRemoveChannel::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_._cached_size_), - false, - }, - &ShadowRemoveChannel::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowRemoveChannel_class_data_ = - ShadowRemoveChannel::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowRemoveChannel::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRemoveChannel_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowRemoveChannel_class_data_.tc_table); - return ShadowRemoveChannel_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 49, 2> -ShadowRemoveChannel::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowRemoveChannel_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowRemoveChannel>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 channel_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemoveChannel, _impl_.channel_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_id_)}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 channel_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveChannel, _impl_.channel_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\34\14\0\0\0\0\0\0" - "subspace.ShadowRemoveChannel" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ShadowRemoveChannel::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowRemoveChannel) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_.channel_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowRemoveChannel::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowRemoveChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowRemoveChannel::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowRemoveChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemoveChannel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemoveChannel.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_channel_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_channel_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemoveChannel) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowRemoveChannel::ByteSizeLong(const MessageLite& base) { - const ShadowRemoveChannel& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowRemoveChannel::ByteSizeLong() const { - const ShadowRemoveChannel& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemoveChannel) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int32 channel_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_channel_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_channel_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowRemoveChannel::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRemoveChannel) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_channel_id() != 0) { - _this->_impl_.channel_id_ = from._impl_.channel_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowRemoveChannel::CopyFrom(const ShadowRemoveChannel& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemoveChannel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowRemoveChannel::InternalSwap(ShadowRemoveChannel* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.channel_id_, other->_impl_.channel_id_); -} - -::google::protobuf::Metadata ShadowRemoveChannel::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowAddPublisher::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_._has_bits_); -}; - -ShadowAddPublisher::ShadowAddPublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowAddPublisher_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowAddPublisher) -} -PROTOBUF_NDEBUG_INLINE ShadowAddPublisher::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowAddPublisher& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ShadowAddPublisher::ShadowAddPublisher( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowAddPublisher& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowAddPublisher_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowAddPublisher* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, publisher_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, publisher_id_), - offsetof(Impl_, for_tunnel_) - - offsetof(Impl_, publisher_id_) + - sizeof(Impl_::for_tunnel_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowAddPublisher) -} -PROTOBUF_NDEBUG_INLINE ShadowAddPublisher::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ShadowAddPublisher::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, publisher_id_), - 0, - offsetof(Impl_, for_tunnel_) - - offsetof(Impl_, publisher_id_) + - sizeof(Impl_::for_tunnel_)); -} -ShadowAddPublisher::~ShadowAddPublisher() { - // @@protoc_insertion_point(destructor:subspace.ShadowAddPublisher) - SharedDtor(*this); -} -inline void ShadowAddPublisher::SharedDtor(MessageLite& self) { - ShadowAddPublisher& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowAddPublisher::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowAddPublisher(arena); -} -constexpr auto ShadowAddPublisher::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowAddPublisher), - alignof(ShadowAddPublisher)); -} -constexpr auto ShadowAddPublisher::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowAddPublisher_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowAddPublisher::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowAddPublisher::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowAddPublisher::ByteSizeLong, - &ShadowAddPublisher::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_._cached_size_), - false, - }, - &ShadowAddPublisher::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowAddPublisher_class_data_ = - ShadowAddPublisher::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowAddPublisher::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowAddPublisher_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowAddPublisher_class_data_.tc_table); - return ShadowAddPublisher_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 0, 56, 2> -ShadowAddPublisher::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967040, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowAddPublisher_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowAddPublisher>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bool for_tunnel = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 7, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_)}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.channel_name_)}}, - // int32 publisher_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddPublisher, _impl_.publisher_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.publisher_id_)}}, - // bool is_reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_reliable_)}}, - // bool is_local = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 3, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_local_)}}, - // bool is_bridge = 5; - {::_pbi::TcParser::SingularVarintNoZag1(), - {40, 4, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_bridge_)}}, - // bool is_fixed_size = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 5, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_fixed_size_)}}, - // bool notify_retirement = 7; - {::_pbi::TcParser::SingularVarintNoZag1(), - {56, 6, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.notify_retirement_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 publisher_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.publisher_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool is_reliable = 3; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_reliable_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_local = 4; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_local_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_bridge = 5; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_bridge_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_fixed_size = 6; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.is_fixed_size_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool notify_retirement = 7; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.notify_retirement_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool for_tunnel = 8; - {PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\33\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "subspace.ShadowAddPublisher" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ShadowAddPublisher::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowAddPublisher) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x000000feU)) { - ::memset(&_impl_.publisher_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.for_tunnel_) - - reinterpret_cast(&_impl_.publisher_id_)) + sizeof(_impl_.for_tunnel_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowAddPublisher::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowAddPublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowAddPublisher::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowAddPublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowAddPublisher) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowAddPublisher.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 publisher_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_publisher_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_publisher_id(), target); - } - } - - // bool is_reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_is_reliable(), target); - } - } - - // bool is_local = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_is_local() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_local(), target); - } - } - - // bool is_bridge = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 5, this_._internal_is_bridge(), target); - } - } - - // bool is_fixed_size = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_fixed_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_is_fixed_size(), target); - } - } - - // bool notify_retirement = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_notify_retirement() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 7, this_._internal_notify_retirement(), target); - } - } - - // bool for_tunnel = 8; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 8, this_._internal_for_tunnel(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowAddPublisher) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowAddPublisher::ByteSizeLong(const MessageLite& base) { - const ShadowAddPublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowAddPublisher::ByteSizeLong() const { - const ShadowAddPublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowAddPublisher) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int32 publisher_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - } - // bool is_reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - } - // bool is_local = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_is_local() != 0) { - total_size += 2; - } - } - // bool is_bridge = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - } - // bool is_fixed_size = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_is_fixed_size() != 0) { - total_size += 2; - } - } - // bool notify_retirement = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (this_._internal_notify_retirement() != 0) { - total_size += 2; - } - } - // bool for_tunnel = 8; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowAddPublisher::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowAddPublisher) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_is_local() != 0) { - _this->_impl_.is_local_ = from._impl_.is_local_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_is_fixed_size() != 0) { - _this->_impl_.is_fixed_size_ = from._impl_.is_fixed_size_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (from._internal_notify_retirement() != 0) { - _this->_impl_.notify_retirement_ = from._impl_.notify_retirement_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowAddPublisher::CopyFrom(const ShadowAddPublisher& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowAddPublisher) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowAddPublisher::InternalSwap(ShadowAddPublisher* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.for_tunnel_) - + sizeof(ShadowAddPublisher::_impl_.for_tunnel_) - - PROTOBUF_FIELD_OFFSET(ShadowAddPublisher, _impl_.publisher_id_)>( - reinterpret_cast(&_impl_.publisher_id_), - reinterpret_cast(&other->_impl_.publisher_id_)); -} - -::google::protobuf::Metadata ShadowAddPublisher::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowRemovePublisher::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_._has_bits_); -}; - -ShadowRemovePublisher::ShadowRemovePublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRemovePublisher_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowRemovePublisher) -} -PROTOBUF_NDEBUG_INLINE ShadowRemovePublisher::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowRemovePublisher& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ShadowRemovePublisher::ShadowRemovePublisher( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowRemovePublisher& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRemovePublisher_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowRemovePublisher* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.publisher_id_ = from._impl_.publisher_id_; - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowRemovePublisher) -} -PROTOBUF_NDEBUG_INLINE ShadowRemovePublisher::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ShadowRemovePublisher::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.publisher_id_ = {}; -} -ShadowRemovePublisher::~ShadowRemovePublisher() { - // @@protoc_insertion_point(destructor:subspace.ShadowRemovePublisher) - SharedDtor(*this); -} -inline void ShadowRemovePublisher::SharedDtor(MessageLite& self) { - ShadowRemovePublisher& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowRemovePublisher::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowRemovePublisher(arena); -} -constexpr auto ShadowRemovePublisher::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowRemovePublisher), - alignof(ShadowRemovePublisher)); -} -constexpr auto ShadowRemovePublisher::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowRemovePublisher_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRemovePublisher::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRemovePublisher::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRemovePublisher::ByteSizeLong, - &ShadowRemovePublisher::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_._cached_size_), - false, - }, - &ShadowRemovePublisher::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowRemovePublisher_class_data_ = - ShadowRemovePublisher::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowRemovePublisher::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRemovePublisher_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowRemovePublisher_class_data_.tc_table); - return ShadowRemovePublisher_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 51, 2> -ShadowRemovePublisher::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowRemovePublisher_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowRemovePublisher>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 publisher_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemovePublisher, _impl_.publisher_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.publisher_id_)}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 publisher_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowRemovePublisher, _impl_.publisher_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\36\14\0\0\0\0\0\0" - "subspace.ShadowRemovePublisher" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ShadowRemovePublisher::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowRemovePublisher) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_.publisher_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowRemovePublisher::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowRemovePublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowRemovePublisher::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowRemovePublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemovePublisher) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemovePublisher.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 publisher_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_publisher_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_publisher_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemovePublisher) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowRemovePublisher::ByteSizeLong(const MessageLite& base) { - const ShadowRemovePublisher& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowRemovePublisher::ByteSizeLong() const { - const ShadowRemovePublisher& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemovePublisher) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int32 publisher_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_publisher_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_publisher_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowRemovePublisher::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRemovePublisher) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_publisher_id() != 0) { - _this->_impl_.publisher_id_ = from._impl_.publisher_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowRemovePublisher::CopyFrom(const ShadowRemovePublisher& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemovePublisher) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowRemovePublisher::InternalSwap(ShadowRemovePublisher* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.publisher_id_, other->_impl_.publisher_id_); -} - -::google::protobuf::Metadata ShadowRemovePublisher::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowAddSubscriber::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_._has_bits_); -}; - -ShadowAddSubscriber::ShadowAddSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowAddSubscriber_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowAddSubscriber) -} -PROTOBUF_NDEBUG_INLINE ShadowAddSubscriber::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowAddSubscriber& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ShadowAddSubscriber::ShadowAddSubscriber( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowAddSubscriber& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowAddSubscriber_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowAddSubscriber* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, subscriber_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, subscriber_id_), - offsetof(Impl_, max_active_messages_) - - offsetof(Impl_, subscriber_id_) + - sizeof(Impl_::max_active_messages_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowAddSubscriber) -} -PROTOBUF_NDEBUG_INLINE ShadowAddSubscriber::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ShadowAddSubscriber::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, subscriber_id_), - 0, - offsetof(Impl_, max_active_messages_) - - offsetof(Impl_, subscriber_id_) + - sizeof(Impl_::max_active_messages_)); -} -ShadowAddSubscriber::~ShadowAddSubscriber() { - // @@protoc_insertion_point(destructor:subspace.ShadowAddSubscriber) - SharedDtor(*this); -} -inline void ShadowAddSubscriber::SharedDtor(MessageLite& self) { - ShadowAddSubscriber& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowAddSubscriber::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowAddSubscriber(arena); -} -constexpr auto ShadowAddSubscriber::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowAddSubscriber), - alignof(ShadowAddSubscriber)); -} -constexpr auto ShadowAddSubscriber::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowAddSubscriber_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowAddSubscriber::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowAddSubscriber::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowAddSubscriber::ByteSizeLong, - &ShadowAddSubscriber::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_._cached_size_), - false, - }, - &ShadowAddSubscriber::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowAddSubscriber_class_data_ = - ShadowAddSubscriber::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowAddSubscriber::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowAddSubscriber_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowAddSubscriber_class_data_.tc_table); - return ShadowAddSubscriber_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 49, 2> -ShadowAddSubscriber::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowAddSubscriber_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowAddSubscriber>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.channel_name_)}}, - // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddSubscriber, _impl_.subscriber_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.subscriber_id_)}}, - // bool is_reliable = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_reliable_)}}, - // bool is_bridge = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 3, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_bridge_)}}, - // int32 max_active_messages = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowAddSubscriber, _impl_.max_active_messages_), 5>(), - {40, 5, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_)}}, - // bool for_tunnel = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 4, 0, - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.for_tunnel_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool is_reliable = 3; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_reliable_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool is_bridge = 4; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.is_bridge_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 max_active_messages = 5; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool for_tunnel = 6; - {PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.for_tunnel_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\34\14\0\0\0\0\0\0" - "subspace.ShadowAddSubscriber" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ShadowAddSubscriber::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowAddSubscriber) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) { - ::memset(&_impl_.subscriber_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_active_messages_) - - reinterpret_cast(&_impl_.subscriber_id_)) + sizeof(_impl_.max_active_messages_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowAddSubscriber::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowAddSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowAddSubscriber::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowAddSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowAddSubscriber) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowAddSubscriber.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_subscriber_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - } - - // bool is_reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_is_reliable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_is_reliable(), target); - } - } - - // bool is_bridge = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_is_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_is_bridge(), target); - } - } - - // int32 max_active_messages = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_max_active_messages() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( - stream, this_._internal_max_active_messages(), target); - } - } - - // bool for_tunnel = 6; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_for_tunnel() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_for_tunnel(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowAddSubscriber) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowAddSubscriber::ByteSizeLong(const MessageLite& base) { - const ShadowAddSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowAddSubscriber::ByteSizeLong() const { - const ShadowAddSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowAddSubscriber) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - } - // bool is_reliable = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_is_reliable() != 0) { - total_size += 2; - } - } - // bool is_bridge = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_is_bridge() != 0) { - total_size += 2; - } - } - // bool for_tunnel = 6; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_for_tunnel() != 0) { - total_size += 2; - } - } - // int32 max_active_messages = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_max_active_messages() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_max_active_messages()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowAddSubscriber::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowAddSubscriber) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_is_reliable() != 0) { - _this->_impl_.is_reliable_ = from._impl_.is_reliable_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_is_bridge() != 0) { - _this->_impl_.is_bridge_ = from._impl_.is_bridge_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_for_tunnel() != 0) { - _this->_impl_.for_tunnel_ = from._impl_.for_tunnel_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_max_active_messages() != 0) { - _this->_impl_.max_active_messages_ = from._impl_.max_active_messages_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowAddSubscriber::CopyFrom(const ShadowAddSubscriber& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowAddSubscriber) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowAddSubscriber::InternalSwap(ShadowAddSubscriber* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.max_active_messages_) - + sizeof(ShadowAddSubscriber::_impl_.max_active_messages_) - - PROTOBUF_FIELD_OFFSET(ShadowAddSubscriber, _impl_.subscriber_id_)>( - reinterpret_cast(&_impl_.subscriber_id_), - reinterpret_cast(&other->_impl_.subscriber_id_)); -} - -::google::protobuf::Metadata ShadowAddSubscriber::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowRemoveSubscriber::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_._has_bits_); -}; - -ShadowRemoveSubscriber::ShadowRemoveSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRemoveSubscriber_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowRemoveSubscriber) -} -PROTOBUF_NDEBUG_INLINE ShadowRemoveSubscriber::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowRemoveSubscriber& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ShadowRemoveSubscriber::ShadowRemoveSubscriber( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowRemoveSubscriber& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRemoveSubscriber_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowRemoveSubscriber* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.subscriber_id_ = from._impl_.subscriber_id_; - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowRemoveSubscriber) -} -PROTOBUF_NDEBUG_INLINE ShadowRemoveSubscriber::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ShadowRemoveSubscriber::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.subscriber_id_ = {}; -} -ShadowRemoveSubscriber::~ShadowRemoveSubscriber() { - // @@protoc_insertion_point(destructor:subspace.ShadowRemoveSubscriber) - SharedDtor(*this); -} -inline void ShadowRemoveSubscriber::SharedDtor(MessageLite& self) { - ShadowRemoveSubscriber& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowRemoveSubscriber::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowRemoveSubscriber(arena); -} -constexpr auto ShadowRemoveSubscriber::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowRemoveSubscriber), - alignof(ShadowRemoveSubscriber)); -} -constexpr auto ShadowRemoveSubscriber::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowRemoveSubscriber_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRemoveSubscriber::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRemoveSubscriber::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRemoveSubscriber::ByteSizeLong, - &ShadowRemoveSubscriber::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_._cached_size_), - false, - }, - &ShadowRemoveSubscriber::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowRemoveSubscriber_class_data_ = - ShadowRemoveSubscriber::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowRemoveSubscriber::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRemoveSubscriber_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowRemoveSubscriber_class_data_.tc_table); - return ShadowRemoveSubscriber_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 52, 2> -ShadowRemoveSubscriber::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowRemoveSubscriber_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowRemoveSubscriber>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 subscriber_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRemoveSubscriber, _impl_.subscriber_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.subscriber_id_)}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.channel_name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 subscriber_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowRemoveSubscriber, _impl_.subscriber_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\37\14\0\0\0\0\0\0" - "subspace.ShadowRemoveSubscriber" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ShadowRemoveSubscriber::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowRemoveSubscriber) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - _impl_.subscriber_id_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowRemoveSubscriber::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowRemoveSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowRemoveSubscriber::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowRemoveSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRemoveSubscriber) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowRemoveSubscriber.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_subscriber_id() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_subscriber_id(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRemoveSubscriber) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowRemoveSubscriber::ByteSizeLong(const MessageLite& base) { - const ShadowRemoveSubscriber& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowRemoveSubscriber::ByteSizeLong() const { - const ShadowRemoveSubscriber& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRemoveSubscriber) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // int32 subscriber_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_subscriber_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_subscriber_id()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowRemoveSubscriber::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRemoveSubscriber) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_subscriber_id() != 0) { - _this->_impl_.subscriber_id_ = from._impl_.subscriber_id_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowRemoveSubscriber::CopyFrom(const ShadowRemoveSubscriber& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRemoveSubscriber) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowRemoveSubscriber::InternalSwap(ShadowRemoveSubscriber* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - swap(_impl_.subscriber_id_, other->_impl_.subscriber_id_); -} - -::google::protobuf::Metadata ShadowRemoveSubscriber::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowStateDump::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_._has_bits_); -}; - -ShadowStateDump::ShadowStateDump(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowStateDump_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowStateDump) -} -ShadowStateDump::ShadowStateDump( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowStateDump& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowStateDump_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE ShadowStateDump::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void ShadowStateDump::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - 0, - offsetof(Impl_, num_channels_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::num_channels_)); -} -ShadowStateDump::~ShadowStateDump() { - // @@protoc_insertion_point(destructor:subspace.ShadowStateDump) - SharedDtor(*this); -} -inline void ShadowStateDump::SharedDtor(MessageLite& self) { - ShadowStateDump& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowStateDump::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowStateDump(arena); -} -constexpr auto ShadowStateDump::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowStateDump), - alignof(ShadowStateDump)); -} -constexpr auto ShadowStateDump::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowStateDump_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowStateDump::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowStateDump::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowStateDump::ByteSizeLong, - &ShadowStateDump::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_._cached_size_), - false, - }, - &ShadowStateDump::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowStateDump_class_data_ = - ShadowStateDump::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowStateDump::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowStateDump_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowStateDump_class_data_.tc_table); - return ShadowStateDump_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -ShadowStateDump::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowStateDump_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowStateDump>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // int32 num_channels = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowStateDump, _impl_.num_channels_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_)}}, - // uint64 session_id = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowStateDump, _impl_.session_id_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.session_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 session_id = 1; - {PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.session_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // int32 num_channels = 2; - {PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void ShadowStateDump::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowStateDump) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_channels_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.num_channels_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowStateDump::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowStateDump& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowStateDump::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowStateDump& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowStateDump) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // uint64 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this_._internal_session_id(), target); - } - } - - // int32 num_channels = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_num_channels() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_num_channels(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowStateDump) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowStateDump::ByteSizeLong(const MessageLite& base) { - const ShadowStateDump& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowStateDump::ByteSizeLong() const { - const ShadowStateDump& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowStateDump) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // uint64 session_id = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - } - // int32 num_channels = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_num_channels() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_num_channels()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowStateDump::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowStateDump) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_num_channels() != 0) { - _this->_impl_.num_channels_ = from._impl_.num_channels_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowStateDump::CopyFrom(const ShadowStateDump& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowStateDump) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowStateDump::InternalSwap(ShadowStateDump* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.num_channels_) - + sizeof(ShadowStateDump::_impl_.num_channels_) - - PROTOBUF_FIELD_OFFSET(ShadowStateDump, _impl_.session_id_)>( - reinterpret_cast(&_impl_.session_id_), - reinterpret_cast(&other->_impl_.session_id_)); -} - -::google::protobuf::Metadata ShadowStateDump::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowStateDone::_Internal { - public: -}; - -ShadowStateDone::ShadowStateDone(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, ShadowStateDone_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(arena_constructor:subspace.ShadowStateDone) -} -ShadowStateDone::ShadowStateDone( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowStateDone& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, ShadowStateDone_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowStateDone* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowStateDone) -} - -inline void* PROTOBUF_NONNULL ShadowStateDone::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowStateDone(arena); -} -constexpr auto ShadowStateDone::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowStateDone), - alignof(ShadowStateDone)); -} -constexpr auto ShadowStateDone::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowStateDone_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowStateDone::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowStateDone::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &ShadowStateDone::ByteSizeLong, - &ShadowStateDone::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowStateDone, _impl_._cached_size_), - false, - }, - &ShadowStateDone::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowStateDone_class_data_ = - ShadowStateDone::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowStateDone::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowStateDone_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowStateDone_class_data_.tc_table); - return ShadowStateDone_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> -ShadowStateDone::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowStateDone_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowStateDone>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, // no field_entries, or aux_entries - {{ - }}, -}; - - - - - - - -::google::protobuf::Metadata ShadowStateDone::GetMetadata() const { - return ::google::protobuf::internal::ZeroFieldsBase::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowRegisterClientBuffer::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_._has_bits_); -}; - -ShadowRegisterClientBuffer::ShadowRegisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRegisterClientBuffer_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowRegisterClientBuffer) -} -PROTOBUF_NDEBUG_INLINE ShadowRegisterClientBuffer::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowRegisterClientBuffer& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ShadowRegisterClientBuffer::ShadowRegisterClientBuffer( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowRegisterClientBuffer& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowRegisterClientBuffer_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowRegisterClientBuffer* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (CheckHasBit(cached_has_bits, 0x00000001U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, has_fd_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, has_fd_), - offsetof(Impl_, fd_index_) - - offsetof(Impl_, has_fd_) + - sizeof(Impl_::fd_index_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowRegisterClientBuffer) -} -PROTOBUF_NDEBUG_INLINE ShadowRegisterClientBuffer::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void ShadowRegisterClientBuffer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, metadata_), - 0, - offsetof(Impl_, fd_index_) - - offsetof(Impl_, metadata_) + - sizeof(Impl_::fd_index_)); -} -ShadowRegisterClientBuffer::~ShadowRegisterClientBuffer() { - // @@protoc_insertion_point(destructor:subspace.ShadowRegisterClientBuffer) - SharedDtor(*this); -} -inline void ShadowRegisterClientBuffer::SharedDtor(MessageLite& self) { - ShadowRegisterClientBuffer& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.metadata_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowRegisterClientBuffer::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowRegisterClientBuffer(arena); -} -constexpr auto ShadowRegisterClientBuffer::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ShadowRegisterClientBuffer), - alignof(ShadowRegisterClientBuffer)); -} -constexpr auto ShadowRegisterClientBuffer::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowRegisterClientBuffer_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowRegisterClientBuffer::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowRegisterClientBuffer::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowRegisterClientBuffer::ByteSizeLong, - &ShadowRegisterClientBuffer::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_._cached_size_), - false, - }, - &ShadowRegisterClientBuffer::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowRegisterClientBuffer_class_data_ = - ShadowRegisterClientBuffer::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowRegisterClientBuffer::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowRegisterClientBuffer_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowRegisterClientBuffer_class_data_.tc_table); - return ShadowRegisterClientBuffer_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> -ShadowRegisterClientBuffer::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - ShadowRegisterClientBuffer_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowRegisterClientBuffer>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_)}}, - // bool has_fd = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.has_fd_)}}, - // int32 fd_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowRegisterClientBuffer, _impl_.fd_index_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.fd_index_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - {PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool has_fd = 2; - {PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.has_fd_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 fd_index = 3; - {PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.fd_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::subspace::ClientBufferHandleMetadataProto>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void ShadowRegisterClientBuffer::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowRegisterClientBuffer) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.has_fd_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.fd_index_) - - reinterpret_cast(&_impl_.has_fd_)) + sizeof(_impl_.fd_index_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowRegisterClientBuffer::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowRegisterClientBuffer& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowRegisterClientBuffer::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowRegisterClientBuffer& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowRegisterClientBuffer) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.metadata_, this_._impl_.metadata_->GetCachedSize(), target, - stream); - } - - // bool has_fd = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_has_fd() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this_._internal_has_fd(), target); - } - } - - // int32 fd_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_fd_index() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( - stream, this_._internal_fd_index(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowRegisterClientBuffer) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowRegisterClientBuffer::ByteSizeLong(const MessageLite& base) { - const ShadowRegisterClientBuffer& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowRegisterClientBuffer::ByteSizeLong() const { - const ShadowRegisterClientBuffer& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowRegisterClientBuffer) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.metadata_); - } - // bool has_fd = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_has_fd() != 0) { - total_size += 2; - } - } - // int32 fd_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_fd_index() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_fd_index()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowRegisterClientBuffer::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowRegisterClientBuffer) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(from._impl_.metadata_ != nullptr); - if (_this->_impl_.metadata_ == nullptr) { - _this->_impl_.metadata_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.metadata_); - } else { - _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_has_fd() != 0) { - _this->_impl_.has_fd_ = from._impl_.has_fd_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_fd_index() != 0) { - _this->_impl_.fd_index_ = from._impl_.fd_index_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowRegisterClientBuffer::CopyFrom(const ShadowRegisterClientBuffer& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowRegisterClientBuffer) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowRegisterClientBuffer::InternalSwap(ShadowRegisterClientBuffer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.fd_index_) - + sizeof(ShadowRegisterClientBuffer::_impl_.fd_index_) - - PROTOBUF_FIELD_OFFSET(ShadowRegisterClientBuffer, _impl_.metadata_)>( - reinterpret_cast(&_impl_.metadata_), - reinterpret_cast(&other->_impl_.metadata_)); -} - -::google::protobuf::Metadata ShadowRegisterClientBuffer::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowUnregisterClientBuffer::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_._has_bits_); -}; - -ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowUnregisterClientBuffer_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowUnregisterClientBuffer) -} -PROTOBUF_NDEBUG_INLINE ShadowUnregisterClientBuffer::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowUnregisterClientBuffer& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ShadowUnregisterClientBuffer::ShadowUnregisterClientBuffer( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowUnregisterClientBuffer& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowUnregisterClientBuffer_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowUnregisterClientBuffer* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, session_id_), - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowUnregisterClientBuffer) -} -PROTOBUF_NDEBUG_INLINE ShadowUnregisterClientBuffer::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ShadowUnregisterClientBuffer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, session_id_), - 0, - offsetof(Impl_, buffer_index_) - - offsetof(Impl_, session_id_) + - sizeof(Impl_::buffer_index_)); -} -ShadowUnregisterClientBuffer::~ShadowUnregisterClientBuffer() { - // @@protoc_insertion_point(destructor:subspace.ShadowUnregisterClientBuffer) - SharedDtor(*this); -} -inline void ShadowUnregisterClientBuffer::SharedDtor(MessageLite& self) { - ShadowUnregisterClientBuffer& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowUnregisterClientBuffer(arena); -} -constexpr auto ShadowUnregisterClientBuffer::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowUnregisterClientBuffer), - alignof(ShadowUnregisterClientBuffer)); -} -constexpr auto ShadowUnregisterClientBuffer::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowUnregisterClientBuffer_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowUnregisterClientBuffer::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowUnregisterClientBuffer::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowUnregisterClientBuffer::ByteSizeLong, - &ShadowUnregisterClientBuffer::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_._cached_size_), - false, - }, - &ShadowUnregisterClientBuffer::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowUnregisterClientBuffer_class_data_ = - ShadowUnregisterClientBuffer::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowUnregisterClientBuffer::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowUnregisterClientBuffer_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowUnregisterClientBuffer_class_data_.tc_table); - return ShadowUnregisterClientBuffer_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 58, 2> -ShadowUnregisterClientBuffer::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowUnregisterClientBuffer_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowUnregisterClientBuffer>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.channel_name_)}}, - // uint64 session_id = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ShadowUnregisterClientBuffer, _impl_.session_id_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.session_id_)}}, - // uint32 buffer_index = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowUnregisterClientBuffer, _impl_.buffer_index_), 2>(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 session_id = 2; - {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.session_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint32 buffer_index = 3; - {PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - "\45\14\0\0\0\0\0\0" - "subspace.ShadowUnregisterClientBuffer" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ShadowUnregisterClientBuffer::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowUnregisterClientBuffer) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.session_id_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.buffer_index_) - - reinterpret_cast(&_impl_.session_id_)) + sizeof(_impl_.buffer_index_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowUnregisterClientBuffer& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowUnregisterClientBuffer& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowUnregisterClientBuffer) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowUnregisterClientBuffer.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_session_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this_._internal_session_id(), target); - } - } - - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_buffer_index() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this_._internal_buffer_index(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowUnregisterClientBuffer) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowUnregisterClientBuffer::ByteSizeLong(const MessageLite& base) { - const ShadowUnregisterClientBuffer& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowUnregisterClientBuffer::ByteSizeLong() const { - const ShadowUnregisterClientBuffer& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowUnregisterClientBuffer) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // uint64 session_id = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_session_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this_._internal_session_id()); - } - } - // uint32 buffer_index = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_buffer_index() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_buffer_index()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowUnregisterClientBuffer::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowUnregisterClientBuffer) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_session_id() != 0) { - _this->_impl_.session_id_ = from._impl_.session_id_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_buffer_index() != 0) { - _this->_impl_.buffer_index_ = from._impl_.buffer_index_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowUnregisterClientBuffer::CopyFrom(const ShadowUnregisterClientBuffer& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowUnregisterClientBuffer) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowUnregisterClientBuffer::InternalSwap(ShadowUnregisterClientBuffer* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.buffer_index_) - + sizeof(ShadowUnregisterClientBuffer::_impl_.buffer_index_) - - PROTOBUF_FIELD_OFFSET(ShadowUnregisterClientBuffer, _impl_.session_id_)>( - reinterpret_cast(&_impl_.session_id_), - reinterpret_cast(&other->_impl_.session_id_)); -} - -::google::protobuf::Metadata ShadowUnregisterClientBuffer::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -class ShadowUpdateChannelOptions::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_._has_bits_); -}; - -ShadowUpdateChannelOptions::ShadowUpdateChannelOptions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowUpdateChannelOptions_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:subspace.ShadowUpdateChannelOptions) -} -PROTOBUF_NDEBUG_INLINE ShadowUpdateChannelOptions::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::subspace::ShadowUpdateChannelOptions& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - channel_name_(arena, from.channel_name_) {} - -ShadowUpdateChannelOptions::ShadowUpdateChannelOptions( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ShadowUpdateChannelOptions& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ShadowUpdateChannelOptions_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ShadowUpdateChannelOptions* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, has_split_buffer_options_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, has_split_buffer_options_), - offsetof(Impl_, max_publishers_) - - offsetof(Impl_, has_split_buffer_options_) + - sizeof(Impl_::max_publishers_)); - - // @@protoc_insertion_point(copy_constructor:subspace.ShadowUpdateChannelOptions) -} -PROTOBUF_NDEBUG_INLINE ShadowUpdateChannelOptions::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - channel_name_(arena) {} - -inline void ShadowUpdateChannelOptions::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, has_split_buffer_options_), - 0, - offsetof(Impl_, max_publishers_) - - offsetof(Impl_, has_split_buffer_options_) + - sizeof(Impl_::max_publishers_)); -} -ShadowUpdateChannelOptions::~ShadowUpdateChannelOptions() { - // @@protoc_insertion_point(destructor:subspace.ShadowUpdateChannelOptions) - SharedDtor(*this); -} -inline void ShadowUpdateChannelOptions::SharedDtor(MessageLite& self) { - ShadowUpdateChannelOptions& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.channel_name_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ShadowUpdateChannelOptions::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ShadowUpdateChannelOptions(arena); -} -constexpr auto ShadowUpdateChannelOptions::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ShadowUpdateChannelOptions), - alignof(ShadowUpdateChannelOptions)); -} -constexpr auto ShadowUpdateChannelOptions::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ShadowUpdateChannelOptions_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ShadowUpdateChannelOptions::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ShadowUpdateChannelOptions::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ShadowUpdateChannelOptions::ByteSizeLong, - &ShadowUpdateChannelOptions::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_._cached_size_), - false, - }, - &ShadowUpdateChannelOptions::kDescriptorMethods, - &descriptor_table_subspace_2eproto, - nullptr, // tracker - }; -} - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull ShadowUpdateChannelOptions_class_data_ = - ShadowUpdateChannelOptions::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ShadowUpdateChannelOptions::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ShadowUpdateChannelOptions_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(ShadowUpdateChannelOptions_class_data_.tc_table); - return ShadowUpdateChannelOptions_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 56, 2> -ShadowUpdateChannelOptions::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967232, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - ShadowUpdateChannelOptions_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::subspace::ShadowUpdateChannelOptions>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // string channel_name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.channel_name_)}}, - // bool has_split_buffer_options = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_)}}, - // bool use_split_buffers = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 2, 0, - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.use_split_buffers_)}}, - // bool has_max_publishers = 4; - {::_pbi::TcParser::SingularVarintNoZag1(), - {32, 3, 0, - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_max_publishers_)}}, - // int32 max_publishers = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ShadowUpdateChannelOptions, _impl_.max_publishers_), 5>(), - {40, 5, 0, - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_)}}, - // bool split_buffers_over_bridge = 6; - {::_pbi::TcParser::SingularVarintNoZag1(), - {48, 4, 0, - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string channel_name = 1; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.channel_name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool has_split_buffer_options = 2; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool use_split_buffers = 3; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.use_split_buffers_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // bool has_max_publishers = 4; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_max_publishers_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 max_publishers = 5; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // bool split_buffers_over_bridge = 6; - {PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.split_buffers_over_bridge_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - "\43\14\0\0\0\0\0\0" - "subspace.ShadowUpdateChannelOptions" - "channel_name" - }}, -}; -PROTOBUF_NOINLINE void ShadowUpdateChannelOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:subspace.ShadowUpdateChannelOptions) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.channel_name_.ClearNonDefaultToEmpty(); - } - if (BatchCheckHasBit(cached_has_bits, 0x0000003eU)) { - ::memset(&_impl_.has_split_buffer_options_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_publishers_) - - reinterpret_cast(&_impl_.has_split_buffer_options_)) + sizeof(_impl_.max_publishers_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ShadowUpdateChannelOptions::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ShadowUpdateChannelOptions& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ShadowUpdateChannelOptions::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ShadowUpdateChannelOptions& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:subspace.ShadowUpdateChannelOptions) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - const ::std::string& _s = this_._internal_channel_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "subspace.ShadowUpdateChannelOptions.channel_name"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - } - - // bool has_split_buffer_options = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_has_split_buffer_options() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this_._internal_has_split_buffer_options(), target); - } - } - - // bool use_split_buffers = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_use_split_buffers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this_._internal_use_split_buffers(), target); - } - } - - // bool has_max_publishers = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_has_max_publishers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 4, this_._internal_has_max_publishers(), target); - } - } - - // int32 max_publishers = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_max_publishers() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<5>( - stream, this_._internal_max_publishers(), target); - } - } - - // bool split_buffers_over_bridge = 6; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 6, this_._internal_split_buffers_over_bridge(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:subspace.ShadowUpdateChannelOptions) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ShadowUpdateChannelOptions::ByteSizeLong(const MessageLite& base) { - const ShadowUpdateChannelOptions& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ShadowUpdateChannelOptions::ByteSizeLong() const { - const ShadowUpdateChannelOptions& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:subspace.ShadowUpdateChannelOptions) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { - // string channel_name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_channel_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_channel_name()); - } - } - // bool has_split_buffer_options = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_has_split_buffer_options() != 0) { - total_size += 2; - } - } - // bool use_split_buffers = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_use_split_buffers() != 0) { - total_size += 2; - } - } - // bool has_max_publishers = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (this_._internal_has_max_publishers() != 0) { - total_size += 2; - } - } - // bool split_buffers_over_bridge = 6; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (this_._internal_split_buffers_over_bridge() != 0) { - total_size += 2; - } - } - // int32 max_publishers = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (this_._internal_max_publishers() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_max_publishers()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -void ShadowUpdateChannelOptions::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:subspace.ShadowUpdateChannelOptions) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_channel_name().empty()) { - _this->_internal_set_channel_name(from._internal_channel_name()); - } else { - if (_this->_impl_.channel_name_.IsDefault()) { - _this->_internal_set_channel_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_has_split_buffer_options() != 0) { - _this->_impl_.has_split_buffer_options_ = from._impl_.has_split_buffer_options_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_use_split_buffers() != 0) { - _this->_impl_.use_split_buffers_ = from._impl_.use_split_buffers_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (from._internal_has_max_publishers() != 0) { - _this->_impl_.has_max_publishers_ = from._impl_.has_max_publishers_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (from._internal_split_buffers_over_bridge() != 0) { - _this->_impl_.split_buffers_over_bridge_ = from._impl_.split_buffers_over_bridge_; - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (from._internal_max_publishers() != 0) { - _this->_impl_.max_publishers_ = from._impl_.max_publishers_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void ShadowUpdateChannelOptions::CopyFrom(const ShadowUpdateChannelOptions& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:subspace.ShadowUpdateChannelOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void ShadowUpdateChannelOptions::InternalSwap(ShadowUpdateChannelOptions* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.channel_name_, &other->_impl_.channel_name_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.max_publishers_) - + sizeof(ShadowUpdateChannelOptions::_impl_.max_publishers_) - - PROTOBUF_FIELD_OFFSET(ShadowUpdateChannelOptions, _impl_.has_split_buffer_options_)>( - reinterpret_cast(&_impl_.has_split_buffer_options_), - reinterpret_cast(&other->_impl_.has_split_buffer_options_)); -} - -::google::protobuf::Metadata ShadowUpdateChannelOptions::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace subspace -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type - _static_init2_ [[maybe_unused]] = - (::_pbi::AddDescriptors(&descriptor_table_subspace_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/proto/subspace.pb.h b/proto/subspace.pb.h deleted file mode 100644 index 0df2087..0000000 --- a/proto/subspace.pb.h +++ /dev/null @@ -1,28893 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: subspace.proto -// Protobuf C++ Version: 6.33.4 - -#ifndef subspace_2eproto_2epb_2eh -#define subspace_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033004 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_bases.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/generated_message_reflection.h" -#include "google/protobuf/message.h" -#include "google/protobuf/message_lite.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/any.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_subspace_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_subspace_2eproto { - static const ::uint32_t offsets[]; -}; -extern "C" { -extern const ::google::protobuf::internal::DescriptorTable descriptor_table_subspace_2eproto; -} // extern "C" -namespace subspace { -class ChannelAddress; -struct ChannelAddressDefaultTypeInternal; -extern ChannelAddressDefaultTypeInternal _ChannelAddress_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ChannelAddress_class_data_; -class ChannelDirectory; -struct ChannelDirectoryDefaultTypeInternal; -extern ChannelDirectoryDefaultTypeInternal _ChannelDirectory_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ChannelDirectory_class_data_; -class ChannelInfoProto; -struct ChannelInfoProtoDefaultTypeInternal; -extern ChannelInfoProtoDefaultTypeInternal _ChannelInfoProto_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ChannelInfoProto_class_data_; -class ChannelStatsProto; -struct ChannelStatsProtoDefaultTypeInternal; -extern ChannelStatsProtoDefaultTypeInternal _ChannelStatsProto_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ChannelStatsProto_class_data_; -class ClientBufferHandleMetadataProto; -struct ClientBufferHandleMetadataProtoDefaultTypeInternal; -extern ClientBufferHandleMetadataProtoDefaultTypeInternal _ClientBufferHandleMetadataProto_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ClientBufferHandleMetadataProto_class_data_; -class CreatePublisherRequest; -struct CreatePublisherRequestDefaultTypeInternal; -extern CreatePublisherRequestDefaultTypeInternal _CreatePublisherRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull CreatePublisherRequest_class_data_; -class CreatePublisherResponse; -struct CreatePublisherResponseDefaultTypeInternal; -extern CreatePublisherResponseDefaultTypeInternal _CreatePublisherResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull CreatePublisherResponse_class_data_; -class CreateSubscriberRequest; -struct CreateSubscriberRequestDefaultTypeInternal; -extern CreateSubscriberRequestDefaultTypeInternal _CreateSubscriberRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberRequest_class_data_; -class CreateSubscriberResponse; -struct CreateSubscriberResponseDefaultTypeInternal; -extern CreateSubscriberResponseDefaultTypeInternal _CreateSubscriberResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberResponse_class_data_; -class Discovery; -struct DiscoveryDefaultTypeInternal; -extern DiscoveryDefaultTypeInternal _Discovery_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Discovery_class_data_; -class Discovery_Advertise; -struct Discovery_AdvertiseDefaultTypeInternal; -extern Discovery_AdvertiseDefaultTypeInternal _Discovery_Advertise_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Discovery_Advertise_class_data_; -class Discovery_Query; -struct Discovery_QueryDefaultTypeInternal; -extern Discovery_QueryDefaultTypeInternal _Discovery_Query_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Discovery_Query_class_data_; -class Discovery_Subscribe; -struct Discovery_SubscribeDefaultTypeInternal; -extern Discovery_SubscribeDefaultTypeInternal _Discovery_Subscribe_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Discovery_Subscribe_class_data_; -class GetChannelInfoRequest; -struct GetChannelInfoRequestDefaultTypeInternal; -extern GetChannelInfoRequestDefaultTypeInternal _GetChannelInfoRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoRequest_class_data_; -class GetChannelInfoResponse; -struct GetChannelInfoResponseDefaultTypeInternal; -extern GetChannelInfoResponseDefaultTypeInternal _GetChannelInfoResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoResponse_class_data_; -class GetChannelStatsRequest; -struct GetChannelStatsRequestDefaultTypeInternal; -extern GetChannelStatsRequestDefaultTypeInternal _GetChannelStatsRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsRequest_class_data_; -class GetChannelStatsResponse; -struct GetChannelStatsResponseDefaultTypeInternal; -extern GetChannelStatsResponseDefaultTypeInternal _GetChannelStatsResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsResponse_class_data_; -class GetClientBuffersRequest; -struct GetClientBuffersRequestDefaultTypeInternal; -extern GetClientBuffersRequestDefaultTypeInternal _GetClientBuffersRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersRequest_class_data_; -class GetClientBuffersResponse; -struct GetClientBuffersResponseDefaultTypeInternal; -extern GetClientBuffersResponseDefaultTypeInternal _GetClientBuffersResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersResponse_class_data_; -class GetTriggersRequest; -struct GetTriggersRequestDefaultTypeInternal; -extern GetTriggersRequestDefaultTypeInternal _GetTriggersRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetTriggersRequest_class_data_; -class GetTriggersResponse; -struct GetTriggersResponseDefaultTypeInternal; -extern GetTriggersResponseDefaultTypeInternal _GetTriggersResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull GetTriggersResponse_class_data_; -class InitRequest; -struct InitRequestDefaultTypeInternal; -extern InitRequestDefaultTypeInternal _InitRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull InitRequest_class_data_; -class InitResponse; -struct InitResponseDefaultTypeInternal; -extern InitResponseDefaultTypeInternal _InitResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull InitResponse_class_data_; -class RawMessage; -struct RawMessageDefaultTypeInternal; -extern RawMessageDefaultTypeInternal _RawMessage_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RawMessage_class_data_; -class RegisterClientBufferRequest; -struct RegisterClientBufferRequestDefaultTypeInternal; -extern RegisterClientBufferRequestDefaultTypeInternal _RegisterClientBufferRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferRequest_class_data_; -class RegisterClientBufferResponse; -struct RegisterClientBufferResponseDefaultTypeInternal; -extern RegisterClientBufferResponseDefaultTypeInternal _RegisterClientBufferResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferResponse_class_data_; -class RemovePublisherRequest; -struct RemovePublisherRequestDefaultTypeInternal; -extern RemovePublisherRequestDefaultTypeInternal _RemovePublisherRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RemovePublisherRequest_class_data_; -class RemovePublisherResponse; -struct RemovePublisherResponseDefaultTypeInternal; -extern RemovePublisherResponseDefaultTypeInternal _RemovePublisherResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RemovePublisherResponse_class_data_; -class RemoveSubscriberRequest; -struct RemoveSubscriberRequestDefaultTypeInternal; -extern RemoveSubscriberRequestDefaultTypeInternal _RemoveSubscriberRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberRequest_class_data_; -class RemoveSubscriberResponse; -struct RemoveSubscriberResponseDefaultTypeInternal; -extern RemoveSubscriberResponseDefaultTypeInternal _RemoveSubscriberResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberResponse_class_data_; -class Request; -struct RequestDefaultTypeInternal; -extern RequestDefaultTypeInternal _Request_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Request_class_data_; -class Response; -struct ResponseDefaultTypeInternal; -extern ResponseDefaultTypeInternal _Response_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; -class RetirementNotification; -struct RetirementNotificationDefaultTypeInternal; -extern RetirementNotificationDefaultTypeInternal _RetirementNotification_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RetirementNotification_class_data_; -class RpcCancelRequest; -struct RpcCancelRequestDefaultTypeInternal; -extern RpcCancelRequestDefaultTypeInternal _RpcCancelRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcCancelRequest_class_data_; -class RpcCloseRequest; -struct RpcCloseRequestDefaultTypeInternal; -extern RpcCloseRequestDefaultTypeInternal _RpcCloseRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcCloseRequest_class_data_; -class RpcCloseResponse; -struct RpcCloseResponseDefaultTypeInternal; -extern RpcCloseResponseDefaultTypeInternal _RpcCloseResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcCloseResponse_class_data_; -class RpcOpenRequest; -struct RpcOpenRequestDefaultTypeInternal; -extern RpcOpenRequestDefaultTypeInternal _RpcOpenRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcOpenRequest_class_data_; -class RpcOpenResponse; -struct RpcOpenResponseDefaultTypeInternal; -extern RpcOpenResponseDefaultTypeInternal _RpcOpenResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_class_data_; -class RpcOpenResponse_Method; -struct RpcOpenResponse_MethodDefaultTypeInternal; -extern RpcOpenResponse_MethodDefaultTypeInternal _RpcOpenResponse_Method_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_Method_class_data_; -class RpcOpenResponse_RequestChannel; -struct RpcOpenResponse_RequestChannelDefaultTypeInternal; -extern RpcOpenResponse_RequestChannelDefaultTypeInternal _RpcOpenResponse_RequestChannel_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_RequestChannel_class_data_; -class RpcOpenResponse_ResponseChannel; -struct RpcOpenResponse_ResponseChannelDefaultTypeInternal; -extern RpcOpenResponse_ResponseChannelDefaultTypeInternal _RpcOpenResponse_ResponseChannel_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_ResponseChannel_class_data_; -class RpcRequest; -struct RpcRequestDefaultTypeInternal; -extern RpcRequestDefaultTypeInternal _RpcRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcRequest_class_data_; -class RpcResponse; -struct RpcResponseDefaultTypeInternal; -extern RpcResponseDefaultTypeInternal _RpcResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcResponse_class_data_; -class RpcServerRequest; -struct RpcServerRequestDefaultTypeInternal; -extern RpcServerRequestDefaultTypeInternal _RpcServerRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcServerRequest_class_data_; -class RpcServerResponse; -struct RpcServerResponseDefaultTypeInternal; -extern RpcServerResponseDefaultTypeInternal _RpcServerResponse_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull RpcServerResponse_class_data_; -class ShadowAddPublisher; -struct ShadowAddPublisherDefaultTypeInternal; -extern ShadowAddPublisherDefaultTypeInternal _ShadowAddPublisher_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowAddPublisher_class_data_; -class ShadowAddSubscriber; -struct ShadowAddSubscriberDefaultTypeInternal; -extern ShadowAddSubscriberDefaultTypeInternal _ShadowAddSubscriber_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowAddSubscriber_class_data_; -class ShadowCreateChannel; -struct ShadowCreateChannelDefaultTypeInternal; -extern ShadowCreateChannelDefaultTypeInternal _ShadowCreateChannel_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowCreateChannel_class_data_; -class ShadowEvent; -struct ShadowEventDefaultTypeInternal; -extern ShadowEventDefaultTypeInternal _ShadowEvent_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowEvent_class_data_; -class ShadowInit; -struct ShadowInitDefaultTypeInternal; -extern ShadowInitDefaultTypeInternal _ShadowInit_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowInit_class_data_; -class ShadowRegisterClientBuffer; -struct ShadowRegisterClientBufferDefaultTypeInternal; -extern ShadowRegisterClientBufferDefaultTypeInternal _ShadowRegisterClientBuffer_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowRegisterClientBuffer_class_data_; -class ShadowRemoveChannel; -struct ShadowRemoveChannelDefaultTypeInternal; -extern ShadowRemoveChannelDefaultTypeInternal _ShadowRemoveChannel_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveChannel_class_data_; -class ShadowRemovePublisher; -struct ShadowRemovePublisherDefaultTypeInternal; -extern ShadowRemovePublisherDefaultTypeInternal _ShadowRemovePublisher_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowRemovePublisher_class_data_; -class ShadowRemoveSubscriber; -struct ShadowRemoveSubscriberDefaultTypeInternal; -extern ShadowRemoveSubscriberDefaultTypeInternal _ShadowRemoveSubscriber_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveSubscriber_class_data_; -class ShadowStateDone; -struct ShadowStateDoneDefaultTypeInternal; -extern ShadowStateDoneDefaultTypeInternal _ShadowStateDone_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowStateDone_class_data_; -class ShadowStateDump; -struct ShadowStateDumpDefaultTypeInternal; -extern ShadowStateDumpDefaultTypeInternal _ShadowStateDump_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowStateDump_class_data_; -class ShadowUnregisterClientBuffer; -struct ShadowUnregisterClientBufferDefaultTypeInternal; -extern ShadowUnregisterClientBufferDefaultTypeInternal _ShadowUnregisterClientBuffer_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowUnregisterClientBuffer_class_data_; -class ShadowUpdateChannelOptions; -struct ShadowUpdateChannelOptionsDefaultTypeInternal; -extern ShadowUpdateChannelOptionsDefaultTypeInternal _ShadowUpdateChannelOptions_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull ShadowUpdateChannelOptions_class_data_; -class Statistics; -struct StatisticsDefaultTypeInternal; -extern StatisticsDefaultTypeInternal _Statistics_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Statistics_class_data_; -class Subscribed; -struct SubscribedDefaultTypeInternal; -extern SubscribedDefaultTypeInternal _Subscribed_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull Subscribed_class_data_; -class UnregisterClientBufferRequest; -struct UnregisterClientBufferRequestDefaultTypeInternal; -extern UnregisterClientBufferRequestDefaultTypeInternal _UnregisterClientBufferRequest_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull UnregisterClientBufferRequest_class_data_; -class VoidMessage; -struct VoidMessageDefaultTypeInternal; -extern VoidMessageDefaultTypeInternal _VoidMessage_default_instance_; -extern const ::google::protobuf::internal::ClassDataFull VoidMessage_class_data_; -} // namespace subspace -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace subspace { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class VoidMessage final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:subspace.VoidMessage) */ { - public: - inline VoidMessage() : VoidMessage(nullptr) {} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(VoidMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(VoidMessage)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR VoidMessage(::google::protobuf::internal::ConstantInitialized); - - inline VoidMessage(const VoidMessage& from) : VoidMessage(nullptr, from) {} - inline VoidMessage(VoidMessage&& from) noexcept - : VoidMessage(nullptr, ::std::move(from)) {} - inline VoidMessage& operator=(const VoidMessage& from) { - CopyFrom(from); - return *this; - } - inline VoidMessage& operator=(VoidMessage&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const VoidMessage& default_instance() { - return *reinterpret_cast( - &_VoidMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = 48; - friend void swap(VoidMessage& a, VoidMessage& b) { a.Swap(&b); } - inline void Swap(VoidMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(VoidMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - VoidMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const VoidMessage& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const VoidMessage& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - bool IsInitialized() const { - return true; - } - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.VoidMessage"; } - - explicit VoidMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - VoidMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const VoidMessage& from); - VoidMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, VoidMessage&& from) noexcept - : VoidMessage(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:subspace.VoidMessage) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 0, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull VoidMessage_class_data_; -// ------------------------------------------------------------------- - -class UnregisterClientBufferRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.UnregisterClientBufferRequest) */ { - public: - inline UnregisterClientBufferRequest() : UnregisterClientBufferRequest(nullptr) {} - ~UnregisterClientBufferRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(UnregisterClientBufferRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(UnregisterClientBufferRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR UnregisterClientBufferRequest(::google::protobuf::internal::ConstantInitialized); - - inline UnregisterClientBufferRequest(const UnregisterClientBufferRequest& from) : UnregisterClientBufferRequest(nullptr, from) {} - inline UnregisterClientBufferRequest(UnregisterClientBufferRequest&& from) noexcept - : UnregisterClientBufferRequest(nullptr, ::std::move(from)) {} - inline UnregisterClientBufferRequest& operator=(const UnregisterClientBufferRequest& from) { - CopyFrom(from); - return *this; - } - inline UnregisterClientBufferRequest& operator=(UnregisterClientBufferRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UnregisterClientBufferRequest& default_instance() { - return *reinterpret_cast( - &_UnregisterClientBufferRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 19; - friend void swap(UnregisterClientBufferRequest& a, UnregisterClientBufferRequest& b) { a.Swap(&b); } - inline void Swap(UnregisterClientBufferRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UnregisterClientBufferRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UnregisterClientBufferRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UnregisterClientBufferRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const UnregisterClientBufferRequest& from) { UnregisterClientBufferRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(UnregisterClientBufferRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.UnregisterClientBufferRequest"; } - - explicit UnregisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - UnregisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const UnregisterClientBufferRequest& from); - UnregisterClientBufferRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, UnregisterClientBufferRequest&& from) noexcept - : UnregisterClientBufferRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kSessionIdFieldNumber = 2, - kBufferIndexFieldNumber = 3, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // uint64 session_id = 2; - void clear_session_id() ; - ::uint64_t session_id() const; - void set_session_id(::uint64_t value); - - private: - ::uint64_t _internal_session_id() const; - void _internal_set_session_id(::uint64_t value); - - public: - // uint32 buffer_index = 3; - void clear_buffer_index() ; - ::uint32_t buffer_index() const; - void set_buffer_index(::uint32_t value); - - private: - ::uint32_t _internal_buffer_index() const; - void _internal_set_buffer_index(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.UnregisterClientBufferRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 0, 59, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const UnregisterClientBufferRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::uint64_t session_id_; - ::uint32_t buffer_index_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull UnregisterClientBufferRequest_class_data_; -// ------------------------------------------------------------------- - -class ShadowUpdateChannelOptions final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowUpdateChannelOptions) */ { - public: - inline ShadowUpdateChannelOptions() : ShadowUpdateChannelOptions(nullptr) {} - ~ShadowUpdateChannelOptions() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowUpdateChannelOptions* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowUpdateChannelOptions)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowUpdateChannelOptions(::google::protobuf::internal::ConstantInitialized); - - inline ShadowUpdateChannelOptions(const ShadowUpdateChannelOptions& from) : ShadowUpdateChannelOptions(nullptr, from) {} - inline ShadowUpdateChannelOptions(ShadowUpdateChannelOptions&& from) noexcept - : ShadowUpdateChannelOptions(nullptr, ::std::move(from)) {} - inline ShadowUpdateChannelOptions& operator=(const ShadowUpdateChannelOptions& from) { - CopyFrom(from); - return *this; - } - inline ShadowUpdateChannelOptions& operator=(ShadowUpdateChannelOptions&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowUpdateChannelOptions& default_instance() { - return *reinterpret_cast( - &_ShadowUpdateChannelOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = 61; - friend void swap(ShadowUpdateChannelOptions& a, ShadowUpdateChannelOptions& b) { a.Swap(&b); } - inline void Swap(ShadowUpdateChannelOptions* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowUpdateChannelOptions* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowUpdateChannelOptions* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowUpdateChannelOptions& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowUpdateChannelOptions& from) { ShadowUpdateChannelOptions::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowUpdateChannelOptions* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowUpdateChannelOptions"; } - - explicit ShadowUpdateChannelOptions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowUpdateChannelOptions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowUpdateChannelOptions& from); - ShadowUpdateChannelOptions( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowUpdateChannelOptions&& from) noexcept - : ShadowUpdateChannelOptions(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kHasSplitBufferOptionsFieldNumber = 2, - kUseSplitBuffersFieldNumber = 3, - kHasMaxPublishersFieldNumber = 4, - kSplitBuffersOverBridgeFieldNumber = 6, - kMaxPublishersFieldNumber = 5, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // bool has_split_buffer_options = 2; - void clear_has_split_buffer_options() ; - bool has_split_buffer_options() const; - void set_has_split_buffer_options(bool value); - - private: - bool _internal_has_split_buffer_options() const; - void _internal_set_has_split_buffer_options(bool value); - - public: - // bool use_split_buffers = 3; - void clear_use_split_buffers() ; - bool use_split_buffers() const; - void set_use_split_buffers(bool value); - - private: - bool _internal_use_split_buffers() const; - void _internal_set_use_split_buffers(bool value); - - public: - // bool has_max_publishers = 4; - void clear_has_max_publishers() ; - bool has_max_publishers() const; - void set_has_max_publishers(bool value); - - private: - bool _internal_has_max_publishers() const; - void _internal_set_has_max_publishers(bool value); - - public: - // bool split_buffers_over_bridge = 6; - void clear_split_buffers_over_bridge() ; - bool split_buffers_over_bridge() const; - void set_split_buffers_over_bridge(bool value); - - private: - bool _internal_split_buffers_over_bridge() const; - void _internal_set_split_buffers_over_bridge(bool value); - - public: - // int32 max_publishers = 5; - void clear_max_publishers() ; - ::int32_t max_publishers() const; - void set_max_publishers(::int32_t value); - - private: - ::int32_t _internal_max_publishers() const; - void _internal_set_max_publishers(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowUpdateChannelOptions) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 6, - 0, 56, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowUpdateChannelOptions& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - bool has_split_buffer_options_; - bool use_split_buffers_; - bool has_max_publishers_; - bool split_buffers_over_bridge_; - ::int32_t max_publishers_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowUpdateChannelOptions_class_data_; -// ------------------------------------------------------------------- - -class ShadowUnregisterClientBuffer final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowUnregisterClientBuffer) */ { - public: - inline ShadowUnregisterClientBuffer() : ShadowUnregisterClientBuffer(nullptr) {} - ~ShadowUnregisterClientBuffer() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowUnregisterClientBuffer)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowUnregisterClientBuffer(::google::protobuf::internal::ConstantInitialized); - - inline ShadowUnregisterClientBuffer(const ShadowUnregisterClientBuffer& from) : ShadowUnregisterClientBuffer(nullptr, from) {} - inline ShadowUnregisterClientBuffer(ShadowUnregisterClientBuffer&& from) noexcept - : ShadowUnregisterClientBuffer(nullptr, ::std::move(from)) {} - inline ShadowUnregisterClientBuffer& operator=(const ShadowUnregisterClientBuffer& from) { - CopyFrom(from); - return *this; - } - inline ShadowUnregisterClientBuffer& operator=(ShadowUnregisterClientBuffer&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowUnregisterClientBuffer& default_instance() { - return *reinterpret_cast( - &_ShadowUnregisterClientBuffer_default_instance_); - } - static constexpr int kIndexInFileMessages = 60; - friend void swap(ShadowUnregisterClientBuffer& a, ShadowUnregisterClientBuffer& b) { a.Swap(&b); } - inline void Swap(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowUnregisterClientBuffer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowUnregisterClientBuffer& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowUnregisterClientBuffer& from) { ShadowUnregisterClientBuffer::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowUnregisterClientBuffer* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowUnregisterClientBuffer"; } - - explicit ShadowUnregisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowUnregisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowUnregisterClientBuffer& from); - ShadowUnregisterClientBuffer( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowUnregisterClientBuffer&& from) noexcept - : ShadowUnregisterClientBuffer(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kSessionIdFieldNumber = 2, - kBufferIndexFieldNumber = 3, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // uint64 session_id = 2; - void clear_session_id() ; - ::uint64_t session_id() const; - void set_session_id(::uint64_t value); - - private: - ::uint64_t _internal_session_id() const; - void _internal_set_session_id(::uint64_t value); - - public: - // uint32 buffer_index = 3; - void clear_buffer_index() ; - ::uint32_t buffer_index() const; - void set_buffer_index(::uint32_t value); - - private: - ::uint32_t _internal_buffer_index() const; - void _internal_set_buffer_index(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowUnregisterClientBuffer) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 0, 58, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowUnregisterClientBuffer& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::uint64_t session_id_; - ::uint32_t buffer_index_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowUnregisterClientBuffer_class_data_; -// ------------------------------------------------------------------- - -class ShadowStateDump final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowStateDump) */ { - public: - inline ShadowStateDump() : ShadowStateDump(nullptr) {} - ~ShadowStateDump() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowStateDump* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowStateDump)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowStateDump(::google::protobuf::internal::ConstantInitialized); - - inline ShadowStateDump(const ShadowStateDump& from) : ShadowStateDump(nullptr, from) {} - inline ShadowStateDump(ShadowStateDump&& from) noexcept - : ShadowStateDump(nullptr, ::std::move(from)) {} - inline ShadowStateDump& operator=(const ShadowStateDump& from) { - CopyFrom(from); - return *this; - } - inline ShadowStateDump& operator=(ShadowStateDump&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowStateDump& default_instance() { - return *reinterpret_cast( - &_ShadowStateDump_default_instance_); - } - static constexpr int kIndexInFileMessages = 57; - friend void swap(ShadowStateDump& a, ShadowStateDump& b) { a.Swap(&b); } - inline void Swap(ShadowStateDump* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowStateDump* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowStateDump* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowStateDump& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowStateDump& from) { ShadowStateDump::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowStateDump* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowStateDump"; } - - explicit ShadowStateDump(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowStateDump(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowStateDump& from); - ShadowStateDump( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowStateDump&& from) noexcept - : ShadowStateDump(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSessionIdFieldNumber = 1, - kNumChannelsFieldNumber = 2, - }; - // uint64 session_id = 1; - void clear_session_id() ; - ::uint64_t session_id() const; - void set_session_id(::uint64_t value); - - private: - ::uint64_t _internal_session_id() const; - void _internal_set_session_id(::uint64_t value); - - public: - // int32 num_channels = 2; - void clear_num_channels() ; - ::int32_t num_channels() const; - void set_num_channels(::int32_t value); - - private: - ::int32_t _internal_num_channels() const; - void _internal_set_num_channels(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowStateDump) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowStateDump& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint64_t session_id_; - ::int32_t num_channels_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowStateDump_class_data_; -// ------------------------------------------------------------------- - -class ShadowStateDone final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:subspace.ShadowStateDone) */ { - public: - inline ShadowStateDone() : ShadowStateDone(nullptr) {} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowStateDone* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowStateDone)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowStateDone(::google::protobuf::internal::ConstantInitialized); - - inline ShadowStateDone(const ShadowStateDone& from) : ShadowStateDone(nullptr, from) {} - inline ShadowStateDone(ShadowStateDone&& from) noexcept - : ShadowStateDone(nullptr, ::std::move(from)) {} - inline ShadowStateDone& operator=(const ShadowStateDone& from) { - CopyFrom(from); - return *this; - } - inline ShadowStateDone& operator=(ShadowStateDone&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowStateDone& default_instance() { - return *reinterpret_cast( - &_ShadowStateDone_default_instance_); - } - static constexpr int kIndexInFileMessages = 58; - friend void swap(ShadowStateDone& a, ShadowStateDone& b) { a.Swap(&b); } - inline void Swap(ShadowStateDone* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowStateDone* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowStateDone* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ShadowStateDone& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ShadowStateDone& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - bool IsInitialized() const { - return true; - } - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowStateDone"; } - - explicit ShadowStateDone(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowStateDone(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowStateDone& from); - ShadowStateDone( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowStateDone&& from) noexcept - : ShadowStateDone(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:subspace.ShadowStateDone) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 0, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowStateDone_class_data_; -// ------------------------------------------------------------------- - -class ShadowRemoveSubscriber final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowRemoveSubscriber) */ { - public: - inline ShadowRemoveSubscriber() : ShadowRemoveSubscriber(nullptr) {} - ~ShadowRemoveSubscriber() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRemoveSubscriber* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRemoveSubscriber)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowRemoveSubscriber(::google::protobuf::internal::ConstantInitialized); - - inline ShadowRemoveSubscriber(const ShadowRemoveSubscriber& from) : ShadowRemoveSubscriber(nullptr, from) {} - inline ShadowRemoveSubscriber(ShadowRemoveSubscriber&& from) noexcept - : ShadowRemoveSubscriber(nullptr, ::std::move(from)) {} - inline ShadowRemoveSubscriber& operator=(const ShadowRemoveSubscriber& from) { - CopyFrom(from); - return *this; - } - inline ShadowRemoveSubscriber& operator=(ShadowRemoveSubscriber&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowRemoveSubscriber& default_instance() { - return *reinterpret_cast( - &_ShadowRemoveSubscriber_default_instance_); - } - static constexpr int kIndexInFileMessages = 56; - friend void swap(ShadowRemoveSubscriber& a, ShadowRemoveSubscriber& b) { a.Swap(&b); } - inline void Swap(ShadowRemoveSubscriber* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowRemoveSubscriber* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowRemoveSubscriber* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowRemoveSubscriber& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowRemoveSubscriber& from) { ShadowRemoveSubscriber::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRemoveSubscriber* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowRemoveSubscriber"; } - - explicit ShadowRemoveSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowRemoveSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemoveSubscriber& from); - ShadowRemoveSubscriber( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRemoveSubscriber&& from) noexcept - : ShadowRemoveSubscriber(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kSubscriberIdFieldNumber = 2, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int32 subscriber_id = 2; - void clear_subscriber_id() ; - ::int32_t subscriber_id() const; - void set_subscriber_id(::int32_t value); - - private: - ::int32_t _internal_subscriber_id() const; - void _internal_set_subscriber_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowRemoveSubscriber) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 52, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowRemoveSubscriber& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int32_t subscriber_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveSubscriber_class_data_; -// ------------------------------------------------------------------- - -class ShadowRemovePublisher final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowRemovePublisher) */ { - public: - inline ShadowRemovePublisher() : ShadowRemovePublisher(nullptr) {} - ~ShadowRemovePublisher() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRemovePublisher* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRemovePublisher)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowRemovePublisher(::google::protobuf::internal::ConstantInitialized); - - inline ShadowRemovePublisher(const ShadowRemovePublisher& from) : ShadowRemovePublisher(nullptr, from) {} - inline ShadowRemovePublisher(ShadowRemovePublisher&& from) noexcept - : ShadowRemovePublisher(nullptr, ::std::move(from)) {} - inline ShadowRemovePublisher& operator=(const ShadowRemovePublisher& from) { - CopyFrom(from); - return *this; - } - inline ShadowRemovePublisher& operator=(ShadowRemovePublisher&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowRemovePublisher& default_instance() { - return *reinterpret_cast( - &_ShadowRemovePublisher_default_instance_); - } - static constexpr int kIndexInFileMessages = 54; - friend void swap(ShadowRemovePublisher& a, ShadowRemovePublisher& b) { a.Swap(&b); } - inline void Swap(ShadowRemovePublisher* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowRemovePublisher* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowRemovePublisher* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowRemovePublisher& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowRemovePublisher& from) { ShadowRemovePublisher::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRemovePublisher* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowRemovePublisher"; } - - explicit ShadowRemovePublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowRemovePublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemovePublisher& from); - ShadowRemovePublisher( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRemovePublisher&& from) noexcept - : ShadowRemovePublisher(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kPublisherIdFieldNumber = 2, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int32 publisher_id = 2; - void clear_publisher_id() ; - ::int32_t publisher_id() const; - void set_publisher_id(::int32_t value); - - private: - ::int32_t _internal_publisher_id() const; - void _internal_set_publisher_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowRemovePublisher) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 51, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowRemovePublisher& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int32_t publisher_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowRemovePublisher_class_data_; -// ------------------------------------------------------------------- - -class ShadowRemoveChannel final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowRemoveChannel) */ { - public: - inline ShadowRemoveChannel() : ShadowRemoveChannel(nullptr) {} - ~ShadowRemoveChannel() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRemoveChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRemoveChannel)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowRemoveChannel(::google::protobuf::internal::ConstantInitialized); - - inline ShadowRemoveChannel(const ShadowRemoveChannel& from) : ShadowRemoveChannel(nullptr, from) {} - inline ShadowRemoveChannel(ShadowRemoveChannel&& from) noexcept - : ShadowRemoveChannel(nullptr, ::std::move(from)) {} - inline ShadowRemoveChannel& operator=(const ShadowRemoveChannel& from) { - CopyFrom(from); - return *this; - } - inline ShadowRemoveChannel& operator=(ShadowRemoveChannel&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowRemoveChannel& default_instance() { - return *reinterpret_cast( - &_ShadowRemoveChannel_default_instance_); - } - static constexpr int kIndexInFileMessages = 52; - friend void swap(ShadowRemoveChannel& a, ShadowRemoveChannel& b) { a.Swap(&b); } - inline void Swap(ShadowRemoveChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowRemoveChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowRemoveChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowRemoveChannel& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowRemoveChannel& from) { ShadowRemoveChannel::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRemoveChannel* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowRemoveChannel"; } - - explicit ShadowRemoveChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowRemoveChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRemoveChannel& from); - ShadowRemoveChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRemoveChannel&& from) noexcept - : ShadowRemoveChannel(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kChannelIdFieldNumber = 2, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int32 channel_id = 2; - void clear_channel_id() ; - ::int32_t channel_id() const; - void set_channel_id(::int32_t value); - - private: - ::int32_t _internal_channel_id() const; - void _internal_set_channel_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowRemoveChannel) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 49, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowRemoveChannel& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int32_t channel_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowRemoveChannel_class_data_; -// ------------------------------------------------------------------- - -class ShadowInit final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowInit) */ { - public: - inline ShadowInit() : ShadowInit(nullptr) {} - ~ShadowInit() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowInit)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowInit(::google::protobuf::internal::ConstantInitialized); - - inline ShadowInit(const ShadowInit& from) : ShadowInit(nullptr, from) {} - inline ShadowInit(ShadowInit&& from) noexcept - : ShadowInit(nullptr, ::std::move(from)) {} - inline ShadowInit& operator=(const ShadowInit& from) { - CopyFrom(from); - return *this; - } - inline ShadowInit& operator=(ShadowInit&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowInit& default_instance() { - return *reinterpret_cast( - &_ShadowInit_default_instance_); - } - static constexpr int kIndexInFileMessages = 50; - friend void swap(ShadowInit& a, ShadowInit& b) { a.Swap(&b); } - inline void Swap(ShadowInit* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowInit* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowInit& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowInit& from) { ShadowInit::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowInit* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowInit"; } - - explicit ShadowInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowInit& from); - ShadowInit( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowInit&& from) noexcept - : ShadowInit(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSessionIdFieldNumber = 1, - }; - // uint64 session_id = 1; - void clear_session_id() ; - ::uint64_t session_id() const; - void set_session_id(::uint64_t value); - - private: - ::uint64_t _internal_session_id() const; - void _internal_set_session_id(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowInit) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowInit& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint64_t session_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowInit_class_data_; -// ------------------------------------------------------------------- - -class ShadowCreateChannel final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowCreateChannel) */ { - public: - inline ShadowCreateChannel() : ShadowCreateChannel(nullptr) {} - ~ShadowCreateChannel() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowCreateChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowCreateChannel)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowCreateChannel(::google::protobuf::internal::ConstantInitialized); - - inline ShadowCreateChannel(const ShadowCreateChannel& from) : ShadowCreateChannel(nullptr, from) {} - inline ShadowCreateChannel(ShadowCreateChannel&& from) noexcept - : ShadowCreateChannel(nullptr, ::std::move(from)) {} - inline ShadowCreateChannel& operator=(const ShadowCreateChannel& from) { - CopyFrom(from); - return *this; - } - inline ShadowCreateChannel& operator=(ShadowCreateChannel&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowCreateChannel& default_instance() { - return *reinterpret_cast( - &_ShadowCreateChannel_default_instance_); - } - static constexpr int kIndexInFileMessages = 51; - friend void swap(ShadowCreateChannel& a, ShadowCreateChannel& b) { a.Swap(&b); } - inline void Swap(ShadowCreateChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowCreateChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowCreateChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowCreateChannel& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowCreateChannel& from) { ShadowCreateChannel::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowCreateChannel* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowCreateChannel"; } - - explicit ShadowCreateChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowCreateChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowCreateChannel& from); - ShadowCreateChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowCreateChannel&& from) noexcept - : ShadowCreateChannel(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kTypeFieldNumber = 5, - kMuxFieldNumber = 11, - kChannelIdFieldNumber = 2, - kSlotSizeFieldNumber = 3, - kNumSlotsFieldNumber = 4, - kIsLocalFieldNumber = 6, - kIsReliableFieldNumber = 7, - kIsFixedSizeFieldNumber = 8, - kHasSplitBufferOptionsFieldNumber = 13, - kChecksumSizeFieldNumber = 9, - kMetadataSizeFieldNumber = 10, - kVchanIdFieldNumber = 12, - kUseSplitBuffersFieldNumber = 14, - kHasMaxPublishersFieldNumber = 15, - kSplitBuffersOverBridgeFieldNumber = 17, - kMaxPublishersFieldNumber = 16, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // bytes type = 5; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // string mux = 11; - void clear_mux() ; - const ::std::string& mux() const; - template - void set_mux(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_mux(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); - void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_mux() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); - - public: - // int32 channel_id = 2; - void clear_channel_id() ; - ::int32_t channel_id() const; - void set_channel_id(::int32_t value); - - private: - ::int32_t _internal_channel_id() const; - void _internal_set_channel_id(::int32_t value); - - public: - // int32 slot_size = 3; - void clear_slot_size() ; - ::int32_t slot_size() const; - void set_slot_size(::int32_t value); - - private: - ::int32_t _internal_slot_size() const; - void _internal_set_slot_size(::int32_t value); - - public: - // int32 num_slots = 4; - void clear_num_slots() ; - ::int32_t num_slots() const; - void set_num_slots(::int32_t value); - - private: - ::int32_t _internal_num_slots() const; - void _internal_set_num_slots(::int32_t value); - - public: - // bool is_local = 6; - void clear_is_local() ; - bool is_local() const; - void set_is_local(bool value); - - private: - bool _internal_is_local() const; - void _internal_set_is_local(bool value); - - public: - // bool is_reliable = 7; - void clear_is_reliable() ; - bool is_reliable() const; - void set_is_reliable(bool value); - - private: - bool _internal_is_reliable() const; - void _internal_set_is_reliable(bool value); - - public: - // bool is_fixed_size = 8; - void clear_is_fixed_size() ; - bool is_fixed_size() const; - void set_is_fixed_size(bool value); - - private: - bool _internal_is_fixed_size() const; - void _internal_set_is_fixed_size(bool value); - - public: - // bool has_split_buffer_options = 13; - void clear_has_split_buffer_options() ; - bool has_split_buffer_options() const; - void set_has_split_buffer_options(bool value); - - private: - bool _internal_has_split_buffer_options() const; - void _internal_set_has_split_buffer_options(bool value); - - public: - // int32 checksum_size = 9; - void clear_checksum_size() ; - ::int32_t checksum_size() const; - void set_checksum_size(::int32_t value); - - private: - ::int32_t _internal_checksum_size() const; - void _internal_set_checksum_size(::int32_t value); - - public: - // int32 metadata_size = 10; - void clear_metadata_size() ; - ::int32_t metadata_size() const; - void set_metadata_size(::int32_t value); - - private: - ::int32_t _internal_metadata_size() const; - void _internal_set_metadata_size(::int32_t value); - - public: - // int32 vchan_id = 12; - void clear_vchan_id() ; - ::int32_t vchan_id() const; - void set_vchan_id(::int32_t value); - - private: - ::int32_t _internal_vchan_id() const; - void _internal_set_vchan_id(::int32_t value); - - public: - // bool use_split_buffers = 14; - void clear_use_split_buffers() ; - bool use_split_buffers() const; - void set_use_split_buffers(bool value); - - private: - bool _internal_use_split_buffers() const; - void _internal_set_use_split_buffers(bool value); - - public: - // bool has_max_publishers = 15; - void clear_has_max_publishers() ; - bool has_max_publishers() const; - void set_has_max_publishers(bool value); - - private: - bool _internal_has_max_publishers() const; - void _internal_set_has_max_publishers(bool value); - - public: - // bool split_buffers_over_bridge = 17; - void clear_split_buffers_over_bridge() ; - bool split_buffers_over_bridge() const; - void set_split_buffers_over_bridge(bool value); - - private: - bool _internal_split_buffers_over_bridge() const; - void _internal_set_split_buffers_over_bridge(bool value); - - public: - // int32 max_publishers = 16; - void clear_max_publishers() ; - ::int32_t max_publishers() const; - void set_max_publishers(::int32_t value); - - private: - ::int32_t _internal_max_publishers() const; - void _internal_set_max_publishers(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowCreateChannel) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<5, 17, - 0, 68, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowCreateChannel& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr mux_; - ::int32_t channel_id_; - ::int32_t slot_size_; - ::int32_t num_slots_; - bool is_local_; - bool is_reliable_; - bool is_fixed_size_; - bool has_split_buffer_options_; - ::int32_t checksum_size_; - ::int32_t metadata_size_; - ::int32_t vchan_id_; - bool use_split_buffers_; - bool has_max_publishers_; - bool split_buffers_over_bridge_; - ::int32_t max_publishers_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowCreateChannel_class_data_; -// ------------------------------------------------------------------- - -class ShadowAddSubscriber final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowAddSubscriber) */ { - public: - inline ShadowAddSubscriber() : ShadowAddSubscriber(nullptr) {} - ~ShadowAddSubscriber() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowAddSubscriber* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowAddSubscriber)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowAddSubscriber(::google::protobuf::internal::ConstantInitialized); - - inline ShadowAddSubscriber(const ShadowAddSubscriber& from) : ShadowAddSubscriber(nullptr, from) {} - inline ShadowAddSubscriber(ShadowAddSubscriber&& from) noexcept - : ShadowAddSubscriber(nullptr, ::std::move(from)) {} - inline ShadowAddSubscriber& operator=(const ShadowAddSubscriber& from) { - CopyFrom(from); - return *this; - } - inline ShadowAddSubscriber& operator=(ShadowAddSubscriber&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowAddSubscriber& default_instance() { - return *reinterpret_cast( - &_ShadowAddSubscriber_default_instance_); - } - static constexpr int kIndexInFileMessages = 55; - friend void swap(ShadowAddSubscriber& a, ShadowAddSubscriber& b) { a.Swap(&b); } - inline void Swap(ShadowAddSubscriber* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowAddSubscriber* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowAddSubscriber* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowAddSubscriber& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowAddSubscriber& from) { ShadowAddSubscriber::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowAddSubscriber* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowAddSubscriber"; } - - explicit ShadowAddSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowAddSubscriber(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowAddSubscriber& from); - ShadowAddSubscriber( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowAddSubscriber&& from) noexcept - : ShadowAddSubscriber(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kSubscriberIdFieldNumber = 2, - kIsReliableFieldNumber = 3, - kIsBridgeFieldNumber = 4, - kForTunnelFieldNumber = 6, - kMaxActiveMessagesFieldNumber = 5, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int32 subscriber_id = 2; - void clear_subscriber_id() ; - ::int32_t subscriber_id() const; - void set_subscriber_id(::int32_t value); - - private: - ::int32_t _internal_subscriber_id() const; - void _internal_set_subscriber_id(::int32_t value); - - public: - // bool is_reliable = 3; - void clear_is_reliable() ; - bool is_reliable() const; - void set_is_reliable(bool value); - - private: - bool _internal_is_reliable() const; - void _internal_set_is_reliable(bool value); - - public: - // bool is_bridge = 4; - void clear_is_bridge() ; - bool is_bridge() const; - void set_is_bridge(bool value); - - private: - bool _internal_is_bridge() const; - void _internal_set_is_bridge(bool value); - - public: - // bool for_tunnel = 6; - void clear_for_tunnel() ; - bool for_tunnel() const; - void set_for_tunnel(bool value); - - private: - bool _internal_for_tunnel() const; - void _internal_set_for_tunnel(bool value); - - public: - // int32 max_active_messages = 5; - void clear_max_active_messages() ; - ::int32_t max_active_messages() const; - void set_max_active_messages(::int32_t value); - - private: - ::int32_t _internal_max_active_messages() const; - void _internal_set_max_active_messages(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowAddSubscriber) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 6, - 0, 49, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowAddSubscriber& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int32_t subscriber_id_; - bool is_reliable_; - bool is_bridge_; - bool for_tunnel_; - ::int32_t max_active_messages_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowAddSubscriber_class_data_; -// ------------------------------------------------------------------- - -class ShadowAddPublisher final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowAddPublisher) */ { - public: - inline ShadowAddPublisher() : ShadowAddPublisher(nullptr) {} - ~ShadowAddPublisher() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowAddPublisher* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowAddPublisher)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowAddPublisher(::google::protobuf::internal::ConstantInitialized); - - inline ShadowAddPublisher(const ShadowAddPublisher& from) : ShadowAddPublisher(nullptr, from) {} - inline ShadowAddPublisher(ShadowAddPublisher&& from) noexcept - : ShadowAddPublisher(nullptr, ::std::move(from)) {} - inline ShadowAddPublisher& operator=(const ShadowAddPublisher& from) { - CopyFrom(from); - return *this; - } - inline ShadowAddPublisher& operator=(ShadowAddPublisher&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowAddPublisher& default_instance() { - return *reinterpret_cast( - &_ShadowAddPublisher_default_instance_); - } - static constexpr int kIndexInFileMessages = 53; - friend void swap(ShadowAddPublisher& a, ShadowAddPublisher& b) { a.Swap(&b); } - inline void Swap(ShadowAddPublisher* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowAddPublisher* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowAddPublisher* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowAddPublisher& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowAddPublisher& from) { ShadowAddPublisher::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowAddPublisher* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowAddPublisher"; } - - explicit ShadowAddPublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowAddPublisher(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowAddPublisher& from); - ShadowAddPublisher( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowAddPublisher&& from) noexcept - : ShadowAddPublisher(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kPublisherIdFieldNumber = 2, - kIsReliableFieldNumber = 3, - kIsLocalFieldNumber = 4, - kIsBridgeFieldNumber = 5, - kIsFixedSizeFieldNumber = 6, - kNotifyRetirementFieldNumber = 7, - kForTunnelFieldNumber = 8, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int32 publisher_id = 2; - void clear_publisher_id() ; - ::int32_t publisher_id() const; - void set_publisher_id(::int32_t value); - - private: - ::int32_t _internal_publisher_id() const; - void _internal_set_publisher_id(::int32_t value); - - public: - // bool is_reliable = 3; - void clear_is_reliable() ; - bool is_reliable() const; - void set_is_reliable(bool value); - - private: - bool _internal_is_reliable() const; - void _internal_set_is_reliable(bool value); - - public: - // bool is_local = 4; - void clear_is_local() ; - bool is_local() const; - void set_is_local(bool value); - - private: - bool _internal_is_local() const; - void _internal_set_is_local(bool value); - - public: - // bool is_bridge = 5; - void clear_is_bridge() ; - bool is_bridge() const; - void set_is_bridge(bool value); - - private: - bool _internal_is_bridge() const; - void _internal_set_is_bridge(bool value); - - public: - // bool is_fixed_size = 6; - void clear_is_fixed_size() ; - bool is_fixed_size() const; - void set_is_fixed_size(bool value); - - private: - bool _internal_is_fixed_size() const; - void _internal_set_is_fixed_size(bool value); - - public: - // bool notify_retirement = 7; - void clear_notify_retirement() ; - bool notify_retirement() const; - void set_notify_retirement(bool value); - - private: - bool _internal_notify_retirement() const; - void _internal_set_notify_retirement(bool value); - - public: - // bool for_tunnel = 8; - void clear_for_tunnel() ; - bool for_tunnel() const; - void set_for_tunnel(bool value); - - private: - bool _internal_for_tunnel() const; - void _internal_set_for_tunnel(bool value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowAddPublisher) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 8, - 0, 56, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowAddPublisher& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int32_t publisher_id_; - bool is_reliable_; - bool is_local_; - bool is_bridge_; - bool is_fixed_size_; - bool notify_retirement_; - bool for_tunnel_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowAddPublisher_class_data_; -// ------------------------------------------------------------------- - -class RpcOpenResponse_ResponseChannel final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcOpenResponse.ResponseChannel) */ { - public: - inline RpcOpenResponse_ResponseChannel() : RpcOpenResponse_ResponseChannel(nullptr) {} - ~RpcOpenResponse_ResponseChannel() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse_ResponseChannel)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse_ResponseChannel(::google::protobuf::internal::ConstantInitialized); - - inline RpcOpenResponse_ResponseChannel(const RpcOpenResponse_ResponseChannel& from) : RpcOpenResponse_ResponseChannel(nullptr, from) {} - inline RpcOpenResponse_ResponseChannel(RpcOpenResponse_ResponseChannel&& from) noexcept - : RpcOpenResponse_ResponseChannel(nullptr, ::std::move(from)) {} - inline RpcOpenResponse_ResponseChannel& operator=(const RpcOpenResponse_ResponseChannel& from) { - CopyFrom(from); - return *this; - } - inline RpcOpenResponse_ResponseChannel& operator=(RpcOpenResponse_ResponseChannel&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcOpenResponse_ResponseChannel& default_instance() { - return *reinterpret_cast( - &_RpcOpenResponse_ResponseChannel_default_instance_); - } - static constexpr int kIndexInFileMessages = 37; - friend void swap(RpcOpenResponse_ResponseChannel& a, RpcOpenResponse_ResponseChannel& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcOpenResponse_ResponseChannel& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcOpenResponse_ResponseChannel& from) { RpcOpenResponse_ResponseChannel::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse.ResponseChannel"; } - - explicit RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcOpenResponse_ResponseChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_ResponseChannel& from); - RpcOpenResponse_ResponseChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse_ResponseChannel&& from) noexcept - : RpcOpenResponse_ResponseChannel(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kTypeFieldNumber = 2, - }; - // string name = 1; - void clear_name() ; - const ::std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); - void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); - - public: - // string type = 2; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcOpenResponse.ResponseChannel) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 57, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcOpenResponse_ResponseChannel& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_ResponseChannel_class_data_; -// ------------------------------------------------------------------- - -class RpcOpenResponse_RequestChannel final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcOpenResponse.RequestChannel) */ { - public: - inline RpcOpenResponse_RequestChannel() : RpcOpenResponse_RequestChannel(nullptr) {} - ~RpcOpenResponse_RequestChannel() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse_RequestChannel)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse_RequestChannel(::google::protobuf::internal::ConstantInitialized); - - inline RpcOpenResponse_RequestChannel(const RpcOpenResponse_RequestChannel& from) : RpcOpenResponse_RequestChannel(nullptr, from) {} - inline RpcOpenResponse_RequestChannel(RpcOpenResponse_RequestChannel&& from) noexcept - : RpcOpenResponse_RequestChannel(nullptr, ::std::move(from)) {} - inline RpcOpenResponse_RequestChannel& operator=(const RpcOpenResponse_RequestChannel& from) { - CopyFrom(from); - return *this; - } - inline RpcOpenResponse_RequestChannel& operator=(RpcOpenResponse_RequestChannel&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcOpenResponse_RequestChannel& default_instance() { - return *reinterpret_cast( - &_RpcOpenResponse_RequestChannel_default_instance_); - } - static constexpr int kIndexInFileMessages = 36; - friend void swap(RpcOpenResponse_RequestChannel& a, RpcOpenResponse_RequestChannel& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcOpenResponse_RequestChannel& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcOpenResponse_RequestChannel& from) { RpcOpenResponse_RequestChannel::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse.RequestChannel"; } - - explicit RpcOpenResponse_RequestChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcOpenResponse_RequestChannel(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_RequestChannel& from); - RpcOpenResponse_RequestChannel( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse_RequestChannel&& from) noexcept - : RpcOpenResponse_RequestChannel(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kTypeFieldNumber = 4, - kSlotSizeFieldNumber = 2, - kNumSlotsFieldNumber = 3, - }; - // string name = 1; - void clear_name() ; - const ::std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); - void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); - - public: - // string type = 4; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // int32 slot_size = 2; - void clear_slot_size() ; - ::int32_t slot_size() const; - void set_slot_size(::int32_t value); - - private: - ::int32_t _internal_slot_size() const; - void _internal_set_slot_size(::int32_t value); - - public: - // int32 num_slots = 3; - void clear_num_slots() ; - ::int32_t num_slots() const; - void set_num_slots(::int32_t value); - - private: - ::int32_t _internal_num_slots() const; - void _internal_set_num_slots(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcOpenResponse.RequestChannel) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 0, 56, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcOpenResponse_RequestChannel& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::int32_t slot_size_; - ::int32_t num_slots_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_RequestChannel_class_data_; -// ------------------------------------------------------------------- - -class RpcOpenRequest final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:subspace.RpcOpenRequest) */ { - public: - inline RpcOpenRequest() : RpcOpenRequest(nullptr) {} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcOpenRequest(::google::protobuf::internal::ConstantInitialized); - - inline RpcOpenRequest(const RpcOpenRequest& from) : RpcOpenRequest(nullptr, from) {} - inline RpcOpenRequest(RpcOpenRequest&& from) noexcept - : RpcOpenRequest(nullptr, ::std::move(from)) {} - inline RpcOpenRequest& operator=(const RpcOpenRequest& from) { - CopyFrom(from); - return *this; - } - inline RpcOpenRequest& operator=(RpcOpenRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcOpenRequest& default_instance() { - return *reinterpret_cast( - &_RpcOpenRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 35; - friend void swap(RpcOpenRequest& a, RpcOpenRequest& b) { a.Swap(&b); } - inline void Swap(RpcOpenRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcOpenRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcOpenRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RpcOpenRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RpcOpenRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - bool IsInitialized() const { - return true; - } - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcOpenRequest"; } - - explicit RpcOpenRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcOpenRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenRequest& from); - RpcOpenRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenRequest&& from) noexcept - : RpcOpenRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:subspace.RpcOpenRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 0, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcOpenRequest_class_data_; -// ------------------------------------------------------------------- - -class RpcCloseResponse final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:subspace.RpcCloseResponse) */ { - public: - inline RpcCloseResponse() : RpcCloseResponse(nullptr) {} - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcCloseResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcCloseResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcCloseResponse(::google::protobuf::internal::ConstantInitialized); - - inline RpcCloseResponse(const RpcCloseResponse& from) : RpcCloseResponse(nullptr, from) {} - inline RpcCloseResponse(RpcCloseResponse&& from) noexcept - : RpcCloseResponse(nullptr, ::std::move(from)) {} - inline RpcCloseResponse& operator=(const RpcCloseResponse& from) { - CopyFrom(from); - return *this; - } - inline RpcCloseResponse& operator=(RpcCloseResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcCloseResponse& default_instance() { - return *reinterpret_cast( - &_RpcCloseResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 41; - friend void swap(RpcCloseResponse& a, RpcCloseResponse& b) { a.Swap(&b); } - inline void Swap(RpcCloseResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcCloseResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcCloseResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const RpcCloseResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const RpcCloseResponse& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - bool IsInitialized() const { - return true; - } - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcCloseResponse"; } - - explicit RpcCloseResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcCloseResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCloseResponse& from); - RpcCloseResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcCloseResponse&& from) noexcept - : RpcCloseResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:subspace.RpcCloseResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 0, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcCloseResponse_class_data_; -// ------------------------------------------------------------------- - -class RpcCloseRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcCloseRequest) */ { - public: - inline RpcCloseRequest() : RpcCloseRequest(nullptr) {} - ~RpcCloseRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcCloseRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcCloseRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcCloseRequest(::google::protobuf::internal::ConstantInitialized); - - inline RpcCloseRequest(const RpcCloseRequest& from) : RpcCloseRequest(nullptr, from) {} - inline RpcCloseRequest(RpcCloseRequest&& from) noexcept - : RpcCloseRequest(nullptr, ::std::move(from)) {} - inline RpcCloseRequest& operator=(const RpcCloseRequest& from) { - CopyFrom(from); - return *this; - } - inline RpcCloseRequest& operator=(RpcCloseRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcCloseRequest& default_instance() { - return *reinterpret_cast( - &_RpcCloseRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 40; - friend void swap(RpcCloseRequest& a, RpcCloseRequest& b) { a.Swap(&b); } - inline void Swap(RpcCloseRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcCloseRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcCloseRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcCloseRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcCloseRequest& from) { RpcCloseRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcCloseRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcCloseRequest"; } - - explicit RpcCloseRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcCloseRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCloseRequest& from); - RpcCloseRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcCloseRequest&& from) noexcept - : RpcCloseRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSessionIdFieldNumber = 1, - }; - // int32 session_id = 1; - void clear_session_id() ; - ::int32_t session_id() const; - void set_session_id(::int32_t value); - - private: - ::int32_t _internal_session_id() const; - void _internal_set_session_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcCloseRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcCloseRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::int32_t session_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcCloseRequest_class_data_; -// ------------------------------------------------------------------- - -class RpcCancelRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcCancelRequest) */ { - public: - inline RpcCancelRequest() : RpcCancelRequest(nullptr) {} - ~RpcCancelRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcCancelRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcCancelRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcCancelRequest(::google::protobuf::internal::ConstantInitialized); - - inline RpcCancelRequest(const RpcCancelRequest& from) : RpcCancelRequest(nullptr, from) {} - inline RpcCancelRequest(RpcCancelRequest&& from) noexcept - : RpcCancelRequest(nullptr, ::std::move(from)) {} - inline RpcCancelRequest& operator=(const RpcCancelRequest& from) { - CopyFrom(from); - return *this; - } - inline RpcCancelRequest& operator=(RpcCancelRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcCancelRequest& default_instance() { - return *reinterpret_cast( - &_RpcCancelRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 46; - friend void swap(RpcCancelRequest& a, RpcCancelRequest& b) { a.Swap(&b); } - inline void Swap(RpcCancelRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcCancelRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcCancelRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcCancelRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcCancelRequest& from) { RpcCancelRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcCancelRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcCancelRequest"; } - - explicit RpcCancelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcCancelRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcCancelRequest& from); - RpcCancelRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcCancelRequest&& from) noexcept - : RpcCancelRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSessionIdFieldNumber = 1, - kRequestIdFieldNumber = 2, - kClientIdFieldNumber = 3, - }; - // int32 session_id = 1; - void clear_session_id() ; - ::int32_t session_id() const; - void set_session_id(::int32_t value); - - private: - ::int32_t _internal_session_id() const; - void _internal_set_session_id(::int32_t value); - - public: - // int32 request_id = 2; - void clear_request_id() ; - ::int32_t request_id() const; - void set_request_id(::int32_t value); - - private: - ::int32_t _internal_request_id() const; - void _internal_set_request_id(::int32_t value); - - public: - // uint64 client_id = 3; - void clear_client_id() ; - ::uint64_t client_id() const; - void set_client_id(::uint64_t value); - - private: - ::uint64_t _internal_client_id() const; - void _internal_set_client_id(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcCancelRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcCancelRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::int32_t session_id_; - ::int32_t request_id_; - ::uint64_t client_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcCancelRequest_class_data_; -// ------------------------------------------------------------------- - -class RetirementNotification final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RetirementNotification) */ { - public: - inline RetirementNotification() : RetirementNotification(nullptr) {} - ~RetirementNotification() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RetirementNotification* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RetirementNotification)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RetirementNotification(::google::protobuf::internal::ConstantInitialized); - - inline RetirementNotification(const RetirementNotification& from) : RetirementNotification(nullptr, from) {} - inline RetirementNotification(RetirementNotification&& from) noexcept - : RetirementNotification(nullptr, ::std::move(from)) {} - inline RetirementNotification& operator=(const RetirementNotification& from) { - CopyFrom(from); - return *this; - } - inline RetirementNotification& operator=(RetirementNotification&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RetirementNotification& default_instance() { - return *reinterpret_cast( - &_RetirementNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = 30; - friend void swap(RetirementNotification& a, RetirementNotification& b) { a.Swap(&b); } - inline void Swap(RetirementNotification* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RetirementNotification* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RetirementNotification* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RetirementNotification& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RetirementNotification& from) { RetirementNotification::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RetirementNotification* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RetirementNotification"; } - - explicit RetirementNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RetirementNotification(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RetirementNotification& from); - RetirementNotification( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RetirementNotification&& from) noexcept - : RetirementNotification(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSlotIdFieldNumber = 1, - }; - // int32 slot_id = 1; - void clear_slot_id() ; - ::int32_t slot_id() const; - void set_slot_id(::int32_t value); - - private: - ::int32_t _internal_slot_id() const; - void _internal_set_slot_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RetirementNotification) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RetirementNotification& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::int32_t slot_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RetirementNotification_class_data_; -// ------------------------------------------------------------------- - -class RemoveSubscriberResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RemoveSubscriberResponse) */ { - public: - inline RemoveSubscriberResponse() : RemoveSubscriberResponse(nullptr) {} - ~RemoveSubscriberResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemoveSubscriberResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RemoveSubscriberResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RemoveSubscriberResponse(::google::protobuf::internal::ConstantInitialized); - - inline RemoveSubscriberResponse(const RemoveSubscriberResponse& from) : RemoveSubscriberResponse(nullptr, from) {} - inline RemoveSubscriberResponse(RemoveSubscriberResponse&& from) noexcept - : RemoveSubscriberResponse(nullptr, ::std::move(from)) {} - inline RemoveSubscriberResponse& operator=(const RemoveSubscriberResponse& from) { - CopyFrom(from); - return *this; - } - inline RemoveSubscriberResponse& operator=(RemoveSubscriberResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RemoveSubscriberResponse& default_instance() { - return *reinterpret_cast( - &_RemoveSubscriberResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 11; - friend void swap(RemoveSubscriberResponse& a, RemoveSubscriberResponse& b) { a.Swap(&b); } - inline void Swap(RemoveSubscriberResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RemoveSubscriberResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RemoveSubscriberResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoveSubscriberResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RemoveSubscriberResponse& from) { RemoveSubscriberResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RemoveSubscriberResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RemoveSubscriberResponse"; } - - explicit RemoveSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RemoveSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemoveSubscriberResponse& from); - RemoveSubscriberResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemoveSubscriberResponse&& from) noexcept - : RemoveSubscriberResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kErrorFieldNumber = 1, - }; - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:subspace.RemoveSubscriberResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 47, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RemoveSubscriberResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberResponse_class_data_; -// ------------------------------------------------------------------- - -class RemoveSubscriberRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RemoveSubscriberRequest) */ { - public: - inline RemoveSubscriberRequest() : RemoveSubscriberRequest(nullptr) {} - ~RemoveSubscriberRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemoveSubscriberRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RemoveSubscriberRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RemoveSubscriberRequest(::google::protobuf::internal::ConstantInitialized); - - inline RemoveSubscriberRequest(const RemoveSubscriberRequest& from) : RemoveSubscriberRequest(nullptr, from) {} - inline RemoveSubscriberRequest(RemoveSubscriberRequest&& from) noexcept - : RemoveSubscriberRequest(nullptr, ::std::move(from)) {} - inline RemoveSubscriberRequest& operator=(const RemoveSubscriberRequest& from) { - CopyFrom(from); - return *this; - } - inline RemoveSubscriberRequest& operator=(RemoveSubscriberRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RemoveSubscriberRequest& default_instance() { - return *reinterpret_cast( - &_RemoveSubscriberRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 10; - friend void swap(RemoveSubscriberRequest& a, RemoveSubscriberRequest& b) { a.Swap(&b); } - inline void Swap(RemoveSubscriberRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RemoveSubscriberRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RemoveSubscriberRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemoveSubscriberRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RemoveSubscriberRequest& from) { RemoveSubscriberRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RemoveSubscriberRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RemoveSubscriberRequest"; } - - explicit RemoveSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RemoveSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemoveSubscriberRequest& from); - RemoveSubscriberRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemoveSubscriberRequest&& from) noexcept - : RemoveSubscriberRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kSubscriberIdFieldNumber = 2, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int32 subscriber_id = 2; - void clear_subscriber_id() ; - ::int32_t subscriber_id() const; - void set_subscriber_id(::int32_t value); - - private: - ::int32_t _internal_subscriber_id() const; - void _internal_set_subscriber_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RemoveSubscriberRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 53, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RemoveSubscriberRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int32_t subscriber_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RemoveSubscriberRequest_class_data_; -// ------------------------------------------------------------------- - -class RemovePublisherResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RemovePublisherResponse) */ { - public: - inline RemovePublisherResponse() : RemovePublisherResponse(nullptr) {} - ~RemovePublisherResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemovePublisherResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RemovePublisherResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RemovePublisherResponse(::google::protobuf::internal::ConstantInitialized); - - inline RemovePublisherResponse(const RemovePublisherResponse& from) : RemovePublisherResponse(nullptr, from) {} - inline RemovePublisherResponse(RemovePublisherResponse&& from) noexcept - : RemovePublisherResponse(nullptr, ::std::move(from)) {} - inline RemovePublisherResponse& operator=(const RemovePublisherResponse& from) { - CopyFrom(from); - return *this; - } - inline RemovePublisherResponse& operator=(RemovePublisherResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RemovePublisherResponse& default_instance() { - return *reinterpret_cast( - &_RemovePublisherResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 9; - friend void swap(RemovePublisherResponse& a, RemovePublisherResponse& b) { a.Swap(&b); } - inline void Swap(RemovePublisherResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RemovePublisherResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RemovePublisherResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemovePublisherResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RemovePublisherResponse& from) { RemovePublisherResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RemovePublisherResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RemovePublisherResponse"; } - - explicit RemovePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RemovePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemovePublisherResponse& from); - RemovePublisherResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemovePublisherResponse&& from) noexcept - : RemovePublisherResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kErrorFieldNumber = 1, - }; - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:subspace.RemovePublisherResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 46, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RemovePublisherResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RemovePublisherResponse_class_data_; -// ------------------------------------------------------------------- - -class RemovePublisherRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RemovePublisherRequest) */ { - public: - inline RemovePublisherRequest() : RemovePublisherRequest(nullptr) {} - ~RemovePublisherRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RemovePublisherRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RemovePublisherRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RemovePublisherRequest(::google::protobuf::internal::ConstantInitialized); - - inline RemovePublisherRequest(const RemovePublisherRequest& from) : RemovePublisherRequest(nullptr, from) {} - inline RemovePublisherRequest(RemovePublisherRequest&& from) noexcept - : RemovePublisherRequest(nullptr, ::std::move(from)) {} - inline RemovePublisherRequest& operator=(const RemovePublisherRequest& from) { - CopyFrom(from); - return *this; - } - inline RemovePublisherRequest& operator=(RemovePublisherRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RemovePublisherRequest& default_instance() { - return *reinterpret_cast( - &_RemovePublisherRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 8; - friend void swap(RemovePublisherRequest& a, RemovePublisherRequest& b) { a.Swap(&b); } - inline void Swap(RemovePublisherRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RemovePublisherRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RemovePublisherRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RemovePublisherRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RemovePublisherRequest& from) { RemovePublisherRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RemovePublisherRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RemovePublisherRequest"; } - - explicit RemovePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RemovePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RemovePublisherRequest& from); - RemovePublisherRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RemovePublisherRequest&& from) noexcept - : RemovePublisherRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kPublisherIdFieldNumber = 2, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int32 publisher_id = 2; - void clear_publisher_id() ; - ::int32_t publisher_id() const; - void set_publisher_id(::int32_t value); - - private: - ::int32_t _internal_publisher_id() const; - void _internal_set_publisher_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RemovePublisherRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 52, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RemovePublisherRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int32_t publisher_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RemovePublisherRequest_class_data_; -// ------------------------------------------------------------------- - -class RegisterClientBufferResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RegisterClientBufferResponse) */ { - public: - inline RegisterClientBufferResponse() : RegisterClientBufferResponse(nullptr) {} - ~RegisterClientBufferResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RegisterClientBufferResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RegisterClientBufferResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RegisterClientBufferResponse(::google::protobuf::internal::ConstantInitialized); - - inline RegisterClientBufferResponse(const RegisterClientBufferResponse& from) : RegisterClientBufferResponse(nullptr, from) {} - inline RegisterClientBufferResponse(RegisterClientBufferResponse&& from) noexcept - : RegisterClientBufferResponse(nullptr, ::std::move(from)) {} - inline RegisterClientBufferResponse& operator=(const RegisterClientBufferResponse& from) { - CopyFrom(from); - return *this; - } - inline RegisterClientBufferResponse& operator=(RegisterClientBufferResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RegisterClientBufferResponse& default_instance() { - return *reinterpret_cast( - &_RegisterClientBufferResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 18; - friend void swap(RegisterClientBufferResponse& a, RegisterClientBufferResponse& b) { a.Swap(&b); } - inline void Swap(RegisterClientBufferResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RegisterClientBufferResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RegisterClientBufferResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RegisterClientBufferResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RegisterClientBufferResponse& from) { RegisterClientBufferResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RegisterClientBufferResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RegisterClientBufferResponse"; } - - explicit RegisterClientBufferResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RegisterClientBufferResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegisterClientBufferResponse& from); - RegisterClientBufferResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RegisterClientBufferResponse&& from) noexcept - : RegisterClientBufferResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kErrorFieldNumber = 1, - }; - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:subspace.RegisterClientBufferResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 51, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RegisterClientBufferResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferResponse_class_data_; -// ------------------------------------------------------------------- - -class RawMessage final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RawMessage) */ { - public: - inline RawMessage() : RawMessage(nullptr) {} - ~RawMessage() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RawMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RawMessage)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RawMessage(::google::protobuf::internal::ConstantInitialized); - - inline RawMessage(const RawMessage& from) : RawMessage(nullptr, from) {} - inline RawMessage(RawMessage&& from) noexcept - : RawMessage(nullptr, ::std::move(from)) {} - inline RawMessage& operator=(const RawMessage& from) { - CopyFrom(from); - return *this; - } - inline RawMessage& operator=(RawMessage&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RawMessage& default_instance() { - return *reinterpret_cast( - &_RawMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = 47; - friend void swap(RawMessage& a, RawMessage& b) { a.Swap(&b); } - inline void Swap(RawMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RawMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RawMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RawMessage& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RawMessage& from) { RawMessage::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RawMessage* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RawMessage"; } - - explicit RawMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RawMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RawMessage& from); - RawMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RawMessage&& from) noexcept - : RawMessage(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kDataFieldNumber = 1, - }; - // bytes data = 1; - void clear_data() ; - const ::std::string& data() const; - template - void set_data(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_data(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_data(); - void set_allocated_data(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_data() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_data(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_data(); - - public: - // @@protoc_insertion_point(class_scope:subspace.RawMessage) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RawMessage& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr data_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RawMessage_class_data_; -// ------------------------------------------------------------------- - -class InitResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.InitResponse) */ { - public: - inline InitResponse() : InitResponse(nullptr) {} - ~InitResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(InitResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(InitResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR InitResponse(::google::protobuf::internal::ConstantInitialized); - - inline InitResponse(const InitResponse& from) : InitResponse(nullptr, from) {} - inline InitResponse(InitResponse&& from) noexcept - : InitResponse(nullptr, ::std::move(from)) {} - inline InitResponse& operator=(const InitResponse& from) { - CopyFrom(from); - return *this; - } - inline InitResponse& operator=(InitResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const InitResponse& default_instance() { - return *reinterpret_cast( - &_InitResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(InitResponse& a, InitResponse& b) { a.Swap(&b); } - inline void Swap(InitResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InitResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InitResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InitResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const InitResponse& from) { InitResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(InitResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.InitResponse"; } - - explicit InitResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - InitResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitResponse& from); - InitResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, InitResponse&& from) noexcept - : InitResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSessionIdFieldNumber = 2, - kScbFdIndexFieldNumber = 1, - kUserIdFieldNumber = 3, - kGroupIdFieldNumber = 4, - }; - // int64 session_id = 2; - void clear_session_id() ; - ::int64_t session_id() const; - void set_session_id(::int64_t value); - - private: - ::int64_t _internal_session_id() const; - void _internal_set_session_id(::int64_t value); - - public: - // int32 scb_fd_index = 1; - void clear_scb_fd_index() ; - ::int32_t scb_fd_index() const; - void set_scb_fd_index(::int32_t value); - - private: - ::int32_t _internal_scb_fd_index() const; - void _internal_set_scb_fd_index(::int32_t value); - - public: - // int32 user_id = 3; - void clear_user_id() ; - ::int32_t user_id() const; - void set_user_id(::int32_t value); - - private: - ::int32_t _internal_user_id() const; - void _internal_set_user_id(::int32_t value); - - public: - // int32 group_id = 4; - void clear_group_id() ; - ::int32_t group_id() const; - void set_group_id(::int32_t value); - - private: - ::int32_t _internal_group_id() const; - void _internal_set_group_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.InitResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const InitResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::int64_t session_id_; - ::int32_t scb_fd_index_; - ::int32_t user_id_; - ::int32_t group_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull InitResponse_class_data_; -// ------------------------------------------------------------------- - -class InitRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.InitRequest) */ { - public: - inline InitRequest() : InitRequest(nullptr) {} - ~InitRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(InitRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(InitRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR InitRequest(::google::protobuf::internal::ConstantInitialized); - - inline InitRequest(const InitRequest& from) : InitRequest(nullptr, from) {} - inline InitRequest(InitRequest&& from) noexcept - : InitRequest(nullptr, ::std::move(from)) {} - inline InitRequest& operator=(const InitRequest& from) { - CopyFrom(from); - return *this; - } - inline InitRequest& operator=(InitRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const InitRequest& default_instance() { - return *reinterpret_cast( - &_InitRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(InitRequest& a, InitRequest& b) { a.Swap(&b); } - inline void Swap(InitRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InitRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InitRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const InitRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const InitRequest& from) { InitRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(InitRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.InitRequest"; } - - explicit InitRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - InitRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitRequest& from); - InitRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, InitRequest&& from) noexcept - : InitRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kClientNameFieldNumber = 1, - }; - // string client_name = 1; - void clear_client_name() ; - const ::std::string& client_name() const; - template - void set_client_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_client_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_client_name(); - void set_allocated_client_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_client_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_client_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_client_name(); - - public: - // @@protoc_insertion_point(class_scope:subspace.InitRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 40, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const InitRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr client_name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull InitRequest_class_data_; -// ------------------------------------------------------------------- - -class GetTriggersResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetTriggersResponse) */ { - public: - inline GetTriggersResponse() : GetTriggersResponse(nullptr) {} - ~GetTriggersResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetTriggersResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTriggersResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetTriggersResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetTriggersResponse(const GetTriggersResponse& from) : GetTriggersResponse(nullptr, from) {} - inline GetTriggersResponse(GetTriggersResponse&& from) noexcept - : GetTriggersResponse(nullptr, ::std::move(from)) {} - inline GetTriggersResponse& operator=(const GetTriggersResponse& from) { - CopyFrom(from); - return *this; - } - inline GetTriggersResponse& operator=(GetTriggersResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTriggersResponse& default_instance() { - return *reinterpret_cast( - &_GetTriggersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(GetTriggersResponse& a, GetTriggersResponse& b) { a.Swap(&b); } - inline void Swap(GetTriggersResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTriggersResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTriggersResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTriggersResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetTriggersResponse& from) { GetTriggersResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetTriggersResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetTriggersResponse"; } - - explicit GetTriggersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetTriggersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTriggersResponse& from); - GetTriggersResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTriggersResponse&& from) noexcept - : GetTriggersResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kReliablePubTriggerFdIndexesFieldNumber = 2, - kSubTriggerFdIndexesFieldNumber = 3, - kRetirementFdIndexesFieldNumber = 4, - kErrorFieldNumber = 1, - }; - // repeated int32 reliable_pub_trigger_fd_indexes = 2; - int reliable_pub_trigger_fd_indexes_size() const; - private: - int _internal_reliable_pub_trigger_fd_indexes_size() const; - - public: - void clear_reliable_pub_trigger_fd_indexes() ; - ::int32_t reliable_pub_trigger_fd_indexes(int index) const; - void set_reliable_pub_trigger_fd_indexes(int index, ::int32_t value); - void add_reliable_pub_trigger_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_reliable_pub_trigger_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_reliable_pub_trigger_fd_indexes(); - - public: - // repeated int32 sub_trigger_fd_indexes = 3; - int sub_trigger_fd_indexes_size() const; - private: - int _internal_sub_trigger_fd_indexes_size() const; - - public: - void clear_sub_trigger_fd_indexes() ; - ::int32_t sub_trigger_fd_indexes(int index) const; - void set_sub_trigger_fd_indexes(int index, ::int32_t value); - void add_sub_trigger_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_sub_trigger_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_sub_trigger_fd_indexes(); - - public: - // repeated int32 retirement_fd_indexes = 4; - int retirement_fd_indexes_size() const; - private: - int _internal_retirement_fd_indexes_size() const; - - public: - void clear_retirement_fd_indexes() ; - ::int32_t retirement_fd_indexes(int index) const; - void set_retirement_fd_indexes(int index, ::int32_t value); - void add_retirement_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_retirement_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_retirement_fd_indexes(); - - public: - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetTriggersResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 0, 42, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetTriggersResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField<::int32_t> reliable_pub_trigger_fd_indexes_; - ::google::protobuf::internal::CachedSize _reliable_pub_trigger_fd_indexes_cached_byte_size_; - ::google::protobuf::RepeatedField<::int32_t> sub_trigger_fd_indexes_; - ::google::protobuf::internal::CachedSize _sub_trigger_fd_indexes_cached_byte_size_; - ::google::protobuf::RepeatedField<::int32_t> retirement_fd_indexes_; - ::google::protobuf::internal::CachedSize _retirement_fd_indexes_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetTriggersResponse_class_data_; -// ------------------------------------------------------------------- - -class GetTriggersRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetTriggersRequest) */ { - public: - inline GetTriggersRequest() : GetTriggersRequest(nullptr) {} - ~GetTriggersRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetTriggersRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetTriggersRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetTriggersRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetTriggersRequest(const GetTriggersRequest& from) : GetTriggersRequest(nullptr, from) {} - inline GetTriggersRequest(GetTriggersRequest&& from) noexcept - : GetTriggersRequest(nullptr, ::std::move(from)) {} - inline GetTriggersRequest& operator=(const GetTriggersRequest& from) { - CopyFrom(from); - return *this; - } - inline GetTriggersRequest& operator=(GetTriggersRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTriggersRequest& default_instance() { - return *reinterpret_cast( - &_GetTriggersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(GetTriggersRequest& a, GetTriggersRequest& b) { a.Swap(&b); } - inline void Swap(GetTriggersRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTriggersRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTriggersRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTriggersRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetTriggersRequest& from) { GetTriggersRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetTriggersRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetTriggersRequest"; } - - explicit GetTriggersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetTriggersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetTriggersRequest& from); - GetTriggersRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetTriggersRequest&& from) noexcept - : GetTriggersRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetTriggersRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 48, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetTriggersRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetTriggersRequest_class_data_; -// ------------------------------------------------------------------- - -class GetClientBuffersRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetClientBuffersRequest) */ { - public: - inline GetClientBuffersRequest() : GetClientBuffersRequest(nullptr) {} - ~GetClientBuffersRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetClientBuffersRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetClientBuffersRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetClientBuffersRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetClientBuffersRequest(const GetClientBuffersRequest& from) : GetClientBuffersRequest(nullptr, from) {} - inline GetClientBuffersRequest(GetClientBuffersRequest&& from) noexcept - : GetClientBuffersRequest(nullptr, ::std::move(from)) {} - inline GetClientBuffersRequest& operator=(const GetClientBuffersRequest& from) { - CopyFrom(from); - return *this; - } - inline GetClientBuffersRequest& operator=(GetClientBuffersRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetClientBuffersRequest& default_instance() { - return *reinterpret_cast( - &_GetClientBuffersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 20; - friend void swap(GetClientBuffersRequest& a, GetClientBuffersRequest& b) { a.Swap(&b); } - inline void Swap(GetClientBuffersRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetClientBuffersRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetClientBuffersRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetClientBuffersRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetClientBuffersRequest& from) { GetClientBuffersRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetClientBuffersRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetClientBuffersRequest"; } - - explicit GetClientBuffersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetClientBuffersRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetClientBuffersRequest& from); - GetClientBuffersRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetClientBuffersRequest&& from) noexcept - : GetClientBuffersRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kSessionIdFieldNumber = 2, - kBufferIndexFieldNumber = 3, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // uint64 session_id = 2; - void clear_session_id() ; - ::uint64_t session_id() const; - void set_session_id(::uint64_t value); - - private: - ::uint64_t _internal_session_id() const; - void _internal_set_session_id(::uint64_t value); - - public: - // uint32 buffer_index = 3; - void clear_buffer_index() ; - ::uint32_t buffer_index() const; - void set_buffer_index(::uint32_t value); - - private: - ::uint32_t _internal_buffer_index() const; - void _internal_set_buffer_index(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetClientBuffersRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 0, 53, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetClientBuffersRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::uint64_t session_id_; - ::uint32_t buffer_index_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersRequest_class_data_; -// ------------------------------------------------------------------- - -class GetChannelStatsRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetChannelStatsRequest) */ { - public: - inline GetChannelStatsRequest() : GetChannelStatsRequest(nullptr) {} - ~GetChannelStatsRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelStatsRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelStatsRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetChannelStatsRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetChannelStatsRequest(const GetChannelStatsRequest& from) : GetChannelStatsRequest(nullptr, from) {} - inline GetChannelStatsRequest(GetChannelStatsRequest&& from) noexcept - : GetChannelStatsRequest(nullptr, ::std::move(from)) {} - inline GetChannelStatsRequest& operator=(const GetChannelStatsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetChannelStatsRequest& operator=(GetChannelStatsRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetChannelStatsRequest& default_instance() { - return *reinterpret_cast( - &_GetChannelStatsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 14; - friend void swap(GetChannelStatsRequest& a, GetChannelStatsRequest& b) { a.Swap(&b); } - inline void Swap(GetChannelStatsRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetChannelStatsRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetChannelStatsRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetChannelStatsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetChannelStatsRequest& from) { GetChannelStatsRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelStatsRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetChannelStatsRequest"; } - - explicit GetChannelStatsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetChannelStatsRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelStatsRequest& from); - GetChannelStatsRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelStatsRequest&& from) noexcept - : GetChannelStatsRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetChannelStatsRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 52, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetChannelStatsRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsRequest_class_data_; -// ------------------------------------------------------------------- - -class GetChannelInfoRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetChannelInfoRequest) */ { - public: - inline GetChannelInfoRequest() : GetChannelInfoRequest(nullptr) {} - ~GetChannelInfoRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelInfoRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelInfoRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetChannelInfoRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetChannelInfoRequest(const GetChannelInfoRequest& from) : GetChannelInfoRequest(nullptr, from) {} - inline GetChannelInfoRequest(GetChannelInfoRequest&& from) noexcept - : GetChannelInfoRequest(nullptr, ::std::move(from)) {} - inline GetChannelInfoRequest& operator=(const GetChannelInfoRequest& from) { - CopyFrom(from); - return *this; - } - inline GetChannelInfoRequest& operator=(GetChannelInfoRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetChannelInfoRequest& default_instance() { - return *reinterpret_cast( - &_GetChannelInfoRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 12; - friend void swap(GetChannelInfoRequest& a, GetChannelInfoRequest& b) { a.Swap(&b); } - inline void Swap(GetChannelInfoRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetChannelInfoRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetChannelInfoRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetChannelInfoRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetChannelInfoRequest& from) { GetChannelInfoRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelInfoRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetChannelInfoRequest"; } - - explicit GetChannelInfoRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetChannelInfoRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelInfoRequest& from); - GetChannelInfoRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelInfoRequest&& from) noexcept - : GetChannelInfoRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetChannelInfoRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 51, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetChannelInfoRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoRequest_class_data_; -// ------------------------------------------------------------------- - -class Discovery_Query final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Discovery.Query) */ { - public: - inline Discovery_Query() : Discovery_Query(nullptr) {} - ~Discovery_Query() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery_Query* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery_Query)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Discovery_Query(::google::protobuf::internal::ConstantInitialized); - - inline Discovery_Query(const Discovery_Query& from) : Discovery_Query(nullptr, from) {} - inline Discovery_Query(Discovery_Query&& from) noexcept - : Discovery_Query(nullptr, ::std::move(from)) {} - inline Discovery_Query& operator=(const Discovery_Query& from) { - CopyFrom(from); - return *this; - } - inline Discovery_Query& operator=(Discovery_Query&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Discovery_Query& default_instance() { - return *reinterpret_cast( - &_Discovery_Query_default_instance_); - } - static constexpr int kIndexInFileMessages = 31; - friend void swap(Discovery_Query& a, Discovery_Query& b) { a.Swap(&b); } - inline void Swap(Discovery_Query* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Discovery_Query* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Discovery_Query* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Discovery_Query& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Discovery_Query& from) { Discovery_Query::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery_Query* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Discovery.Query"; } - - explicit Discovery_Query(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Discovery_Query(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Query& from); - Discovery_Query( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery_Query&& from) noexcept - : Discovery_Query(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // @@protoc_insertion_point(class_scope:subspace.Discovery.Query) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 45, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Discovery_Query& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Discovery_Query_class_data_; -// ------------------------------------------------------------------- - -class Discovery_Advertise final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Discovery.Advertise) */ { - public: - inline Discovery_Advertise() : Discovery_Advertise(nullptr) {} - ~Discovery_Advertise() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery_Advertise* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery_Advertise)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Discovery_Advertise(::google::protobuf::internal::ConstantInitialized); - - inline Discovery_Advertise(const Discovery_Advertise& from) : Discovery_Advertise(nullptr, from) {} - inline Discovery_Advertise(Discovery_Advertise&& from) noexcept - : Discovery_Advertise(nullptr, ::std::move(from)) {} - inline Discovery_Advertise& operator=(const Discovery_Advertise& from) { - CopyFrom(from); - return *this; - } - inline Discovery_Advertise& operator=(Discovery_Advertise&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Discovery_Advertise& default_instance() { - return *reinterpret_cast( - &_Discovery_Advertise_default_instance_); - } - static constexpr int kIndexInFileMessages = 32; - friend void swap(Discovery_Advertise& a, Discovery_Advertise& b) { a.Swap(&b); } - inline void Swap(Discovery_Advertise* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Discovery_Advertise* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Discovery_Advertise* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Discovery_Advertise& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Discovery_Advertise& from) { Discovery_Advertise::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery_Advertise* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Discovery.Advertise"; } - - explicit Discovery_Advertise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Discovery_Advertise(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Advertise& from); - Discovery_Advertise( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery_Advertise&& from) noexcept - : Discovery_Advertise(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kReliableFieldNumber = 2, - kNotifyRetirementFieldNumber = 3, - kSplitBuffersFieldNumber = 4, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // bool reliable = 2; - void clear_reliable() ; - bool reliable() const; - void set_reliable(bool value); - - private: - bool _internal_reliable() const; - void _internal_set_reliable(bool value); - - public: - // bool notify_retirement = 3; - void clear_notify_retirement() ; - bool notify_retirement() const; - void set_notify_retirement(bool value); - - private: - bool _internal_notify_retirement() const; - void _internal_set_notify_retirement(bool value); - - public: - // bool split_buffers = 4; - void clear_split_buffers() ; - bool split_buffers() const; - void set_split_buffers(bool value); - - private: - bool _internal_split_buffers() const; - void _internal_set_split_buffers(bool value); - - public: - // @@protoc_insertion_point(class_scope:subspace.Discovery.Advertise) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 0, 49, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Discovery_Advertise& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - bool reliable_; - bool notify_retirement_; - bool split_buffers_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Discovery_Advertise_class_data_; -// ------------------------------------------------------------------- - -class CreateSubscriberResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.CreateSubscriberResponse) */ { - public: - inline CreateSubscriberResponse() : CreateSubscriberResponse(nullptr) {} - ~CreateSubscriberResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreateSubscriberResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(CreateSubscriberResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR CreateSubscriberResponse(::google::protobuf::internal::ConstantInitialized); - - inline CreateSubscriberResponse(const CreateSubscriberResponse& from) : CreateSubscriberResponse(nullptr, from) {} - inline CreateSubscriberResponse(CreateSubscriberResponse&& from) noexcept - : CreateSubscriberResponse(nullptr, ::std::move(from)) {} - inline CreateSubscriberResponse& operator=(const CreateSubscriberResponse& from) { - CopyFrom(from); - return *this; - } - inline CreateSubscriberResponse& operator=(CreateSubscriberResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateSubscriberResponse& default_instance() { - return *reinterpret_cast( - &_CreateSubscriberResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(CreateSubscriberResponse& a, CreateSubscriberResponse& b) { a.Swap(&b); } - inline void Swap(CreateSubscriberResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateSubscriberResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateSubscriberResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateSubscriberResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const CreateSubscriberResponse& from) { CreateSubscriberResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(CreateSubscriberResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.CreateSubscriberResponse"; } - - explicit CreateSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - CreateSubscriberResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreateSubscriberResponse& from); - CreateSubscriberResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreateSubscriberResponse&& from) noexcept - : CreateSubscriberResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kReliablePubTriggerFdIndexesFieldNumber = 10, - kRetirementFdIndexesFieldNumber = 14, - kErrorFieldNumber = 1, - kTypeFieldNumber = 12, - kChannelIdFieldNumber = 2, - kSubscriberIdFieldNumber = 3, - kCcbFdIndexFieldNumber = 4, - kBcbFdIndexFieldNumber = 5, - kTriggerFdIndexFieldNumber = 6, - kPollFdIndexFieldNumber = 7, - kSlotSizeFieldNumber = 8, - kNumSlotsFieldNumber = 9, - kNumPubUpdatesFieldNumber = 11, - kVchanIdFieldNumber = 13, - kChecksumSizeFieldNumber = 15, - kMetadataSizeFieldNumber = 16, - kUseSplitBuffersFieldNumber = 17, - }; - // repeated int32 reliable_pub_trigger_fd_indexes = 10; - int reliable_pub_trigger_fd_indexes_size() const; - private: - int _internal_reliable_pub_trigger_fd_indexes_size() const; - - public: - void clear_reliable_pub_trigger_fd_indexes() ; - ::int32_t reliable_pub_trigger_fd_indexes(int index) const; - void set_reliable_pub_trigger_fd_indexes(int index, ::int32_t value); - void add_reliable_pub_trigger_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_reliable_pub_trigger_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_reliable_pub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_reliable_pub_trigger_fd_indexes(); - - public: - // repeated int32 retirement_fd_indexes = 14; - int retirement_fd_indexes_size() const; - private: - int _internal_retirement_fd_indexes_size() const; - - public: - void clear_retirement_fd_indexes() ; - ::int32_t retirement_fd_indexes(int index) const; - void set_retirement_fd_indexes(int index, ::int32_t value); - void add_retirement_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_retirement_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_retirement_fd_indexes(); - - public: - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // bytes type = 12; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // int32 channel_id = 2; - void clear_channel_id() ; - ::int32_t channel_id() const; - void set_channel_id(::int32_t value); - - private: - ::int32_t _internal_channel_id() const; - void _internal_set_channel_id(::int32_t value); - - public: - // int32 subscriber_id = 3; - void clear_subscriber_id() ; - ::int32_t subscriber_id() const; - void set_subscriber_id(::int32_t value); - - private: - ::int32_t _internal_subscriber_id() const; - void _internal_set_subscriber_id(::int32_t value); - - public: - // int32 ccb_fd_index = 4; - void clear_ccb_fd_index() ; - ::int32_t ccb_fd_index() const; - void set_ccb_fd_index(::int32_t value); - - private: - ::int32_t _internal_ccb_fd_index() const; - void _internal_set_ccb_fd_index(::int32_t value); - - public: - // int32 bcb_fd_index = 5; - void clear_bcb_fd_index() ; - ::int32_t bcb_fd_index() const; - void set_bcb_fd_index(::int32_t value); - - private: - ::int32_t _internal_bcb_fd_index() const; - void _internal_set_bcb_fd_index(::int32_t value); - - public: - // int32 trigger_fd_index = 6; - void clear_trigger_fd_index() ; - ::int32_t trigger_fd_index() const; - void set_trigger_fd_index(::int32_t value); - - private: - ::int32_t _internal_trigger_fd_index() const; - void _internal_set_trigger_fd_index(::int32_t value); - - public: - // int32 poll_fd_index = 7; - void clear_poll_fd_index() ; - ::int32_t poll_fd_index() const; - void set_poll_fd_index(::int32_t value); - - private: - ::int32_t _internal_poll_fd_index() const; - void _internal_set_poll_fd_index(::int32_t value); - - public: - // int32 slot_size = 8; - void clear_slot_size() ; - ::int32_t slot_size() const; - void set_slot_size(::int32_t value); - - private: - ::int32_t _internal_slot_size() const; - void _internal_set_slot_size(::int32_t value); - - public: - // int32 num_slots = 9; - void clear_num_slots() ; - ::int32_t num_slots() const; - void set_num_slots(::int32_t value); - - private: - ::int32_t _internal_num_slots() const; - void _internal_set_num_slots(::int32_t value); - - public: - // int32 num_pub_updates = 11; - void clear_num_pub_updates() ; - ::int32_t num_pub_updates() const; - void set_num_pub_updates(::int32_t value); - - private: - ::int32_t _internal_num_pub_updates() const; - void _internal_set_num_pub_updates(::int32_t value); - - public: - // int32 vchan_id = 13; - void clear_vchan_id() ; - ::int32_t vchan_id() const; - void set_vchan_id(::int32_t value); - - private: - ::int32_t _internal_vchan_id() const; - void _internal_set_vchan_id(::int32_t value); - - public: - // int32 checksum_size = 15; - void clear_checksum_size() ; - ::int32_t checksum_size() const; - void set_checksum_size(::int32_t value); - - private: - ::int32_t _internal_checksum_size() const; - void _internal_set_checksum_size(::int32_t value); - - public: - // int32 metadata_size = 16; - void clear_metadata_size() ; - ::int32_t metadata_size() const; - void set_metadata_size(::int32_t value); - - private: - ::int32_t _internal_metadata_size() const; - void _internal_set_metadata_size(::int32_t value); - - public: - // bool use_split_buffers = 17; - void clear_use_split_buffers() ; - bool use_split_buffers() const; - void set_use_split_buffers(bool value); - - private: - bool _internal_use_split_buffers() const; - void _internal_set_use_split_buffers(bool value); - - public: - // @@protoc_insertion_point(class_scope:subspace.CreateSubscriberResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<5, 17, - 0, 63, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const CreateSubscriberResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField<::int32_t> reliable_pub_trigger_fd_indexes_; - ::google::protobuf::internal::CachedSize _reliable_pub_trigger_fd_indexes_cached_byte_size_; - ::google::protobuf::RepeatedField<::int32_t> retirement_fd_indexes_; - ::google::protobuf::internal::CachedSize _retirement_fd_indexes_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::int32_t channel_id_; - ::int32_t subscriber_id_; - ::int32_t ccb_fd_index_; - ::int32_t bcb_fd_index_; - ::int32_t trigger_fd_index_; - ::int32_t poll_fd_index_; - ::int32_t slot_size_; - ::int32_t num_slots_; - ::int32_t num_pub_updates_; - ::int32_t vchan_id_; - ::int32_t checksum_size_; - ::int32_t metadata_size_; - bool use_split_buffers_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberResponse_class_data_; -// ------------------------------------------------------------------- - -class CreateSubscriberRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.CreateSubscriberRequest) */ { - public: - inline CreateSubscriberRequest() : CreateSubscriberRequest(nullptr) {} - ~CreateSubscriberRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreateSubscriberRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(CreateSubscriberRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR CreateSubscriberRequest(::google::protobuf::internal::ConstantInitialized); - - inline CreateSubscriberRequest(const CreateSubscriberRequest& from) : CreateSubscriberRequest(nullptr, from) {} - inline CreateSubscriberRequest(CreateSubscriberRequest&& from) noexcept - : CreateSubscriberRequest(nullptr, ::std::move(from)) {} - inline CreateSubscriberRequest& operator=(const CreateSubscriberRequest& from) { - CopyFrom(from); - return *this; - } - inline CreateSubscriberRequest& operator=(CreateSubscriberRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreateSubscriberRequest& default_instance() { - return *reinterpret_cast( - &_CreateSubscriberRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(CreateSubscriberRequest& a, CreateSubscriberRequest& b) { a.Swap(&b); } - inline void Swap(CreateSubscriberRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreateSubscriberRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreateSubscriberRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreateSubscriberRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const CreateSubscriberRequest& from) { CreateSubscriberRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(CreateSubscriberRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.CreateSubscriberRequest"; } - - explicit CreateSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - CreateSubscriberRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreateSubscriberRequest& from); - CreateSubscriberRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreateSubscriberRequest&& from) noexcept - : CreateSubscriberRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kTypeFieldNumber = 5, - kMuxFieldNumber = 7, - kSubscriberIdFieldNumber = 2, - kIsReliableFieldNumber = 3, - kIsBridgeFieldNumber = 4, - kForTunnelFieldNumber = 9, - kMaxActiveMessagesFieldNumber = 6, - kVchanIdFieldNumber = 8, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // bytes type = 5; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // string mux = 7; - void clear_mux() ; - const ::std::string& mux() const; - template - void set_mux(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_mux(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); - void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_mux() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); - - public: - // int32 subscriber_id = 2; - void clear_subscriber_id() ; - ::int32_t subscriber_id() const; - void set_subscriber_id(::int32_t value); - - private: - ::int32_t _internal_subscriber_id() const; - void _internal_set_subscriber_id(::int32_t value); - - public: - // bool is_reliable = 3; - void clear_is_reliable() ; - bool is_reliable() const; - void set_is_reliable(bool value); - - private: - bool _internal_is_reliable() const; - void _internal_set_is_reliable(bool value); - - public: - // bool is_bridge = 4; - void clear_is_bridge() ; - bool is_bridge() const; - void set_is_bridge(bool value); - - private: - bool _internal_is_bridge() const; - void _internal_set_is_bridge(bool value); - - public: - // bool for_tunnel = 9; - void clear_for_tunnel() ; - bool for_tunnel() const; - void set_for_tunnel(bool value); - - private: - bool _internal_for_tunnel() const; - void _internal_set_for_tunnel(bool value); - - public: - // int32 max_active_messages = 6; - void clear_max_active_messages() ; - ::int32_t max_active_messages() const; - void set_max_active_messages(::int32_t value); - - private: - ::int32_t _internal_max_active_messages() const; - void _internal_set_max_active_messages(::int32_t value); - - public: - // int32 vchan_id = 8; - void clear_vchan_id() ; - ::int32_t vchan_id() const; - void set_vchan_id(::int32_t value); - - private: - ::int32_t _internal_vchan_id() const; - void _internal_set_vchan_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.CreateSubscriberRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 9, - 0, 64, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const CreateSubscriberRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr mux_; - ::int32_t subscriber_id_; - bool is_reliable_; - bool is_bridge_; - bool for_tunnel_; - ::int32_t max_active_messages_; - ::int32_t vchan_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull CreateSubscriberRequest_class_data_; -// ------------------------------------------------------------------- - -class CreatePublisherResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.CreatePublisherResponse) */ { - public: - inline CreatePublisherResponse() : CreatePublisherResponse(nullptr) {} - ~CreatePublisherResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreatePublisherResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(CreatePublisherResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR CreatePublisherResponse(::google::protobuf::internal::ConstantInitialized); - - inline CreatePublisherResponse(const CreatePublisherResponse& from) : CreatePublisherResponse(nullptr, from) {} - inline CreatePublisherResponse(CreatePublisherResponse&& from) noexcept - : CreatePublisherResponse(nullptr, ::std::move(from)) {} - inline CreatePublisherResponse& operator=(const CreatePublisherResponse& from) { - CopyFrom(from); - return *this; - } - inline CreatePublisherResponse& operator=(CreatePublisherResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreatePublisherResponse& default_instance() { - return *reinterpret_cast( - &_CreatePublisherResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(CreatePublisherResponse& a, CreatePublisherResponse& b) { a.Swap(&b); } - inline void Swap(CreatePublisherResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreatePublisherResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreatePublisherResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreatePublisherResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const CreatePublisherResponse& from) { CreatePublisherResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(CreatePublisherResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.CreatePublisherResponse"; } - - explicit CreatePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - CreatePublisherResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreatePublisherResponse& from); - CreatePublisherResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreatePublisherResponse&& from) noexcept - : CreatePublisherResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSubTriggerFdIndexesFieldNumber = 8, - kRetirementFdIndexesFieldNumber = 15, - kErrorFieldNumber = 1, - kTypeFieldNumber = 10, - kChannelIdFieldNumber = 2, - kPublisherIdFieldNumber = 3, - kCcbFdIndexFieldNumber = 4, - kBcbFdIndexFieldNumber = 5, - kPubPollFdIndexFieldNumber = 6, - kPubTriggerFdIndexFieldNumber = 7, - kNumSubUpdatesFieldNumber = 9, - kVchanIdFieldNumber = 11, - kRetirementFdIndexFieldNumber = 14, - }; - // repeated int32 sub_trigger_fd_indexes = 8; - int sub_trigger_fd_indexes_size() const; - private: - int _internal_sub_trigger_fd_indexes_size() const; - - public: - void clear_sub_trigger_fd_indexes() ; - ::int32_t sub_trigger_fd_indexes(int index) const; - void set_sub_trigger_fd_indexes(int index, ::int32_t value); - void add_sub_trigger_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_sub_trigger_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_sub_trigger_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_sub_trigger_fd_indexes(); - - public: - // repeated int32 retirement_fd_indexes = 15; - int retirement_fd_indexes_size() const; - private: - int _internal_retirement_fd_indexes_size() const; - - public: - void clear_retirement_fd_indexes() ; - ::int32_t retirement_fd_indexes(int index) const; - void set_retirement_fd_indexes(int index, ::int32_t value); - void add_retirement_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_retirement_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_retirement_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_retirement_fd_indexes(); - - public: - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // bytes type = 10; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // int32 channel_id = 2; - void clear_channel_id() ; - ::int32_t channel_id() const; - void set_channel_id(::int32_t value); - - private: - ::int32_t _internal_channel_id() const; - void _internal_set_channel_id(::int32_t value); - - public: - // int32 publisher_id = 3; - void clear_publisher_id() ; - ::int32_t publisher_id() const; - void set_publisher_id(::int32_t value); - - private: - ::int32_t _internal_publisher_id() const; - void _internal_set_publisher_id(::int32_t value); - - public: - // int32 ccb_fd_index = 4; - void clear_ccb_fd_index() ; - ::int32_t ccb_fd_index() const; - void set_ccb_fd_index(::int32_t value); - - private: - ::int32_t _internal_ccb_fd_index() const; - void _internal_set_ccb_fd_index(::int32_t value); - - public: - // int32 bcb_fd_index = 5; - void clear_bcb_fd_index() ; - ::int32_t bcb_fd_index() const; - void set_bcb_fd_index(::int32_t value); - - private: - ::int32_t _internal_bcb_fd_index() const; - void _internal_set_bcb_fd_index(::int32_t value); - - public: - // int32 pub_poll_fd_index = 6; - void clear_pub_poll_fd_index() ; - ::int32_t pub_poll_fd_index() const; - void set_pub_poll_fd_index(::int32_t value); - - private: - ::int32_t _internal_pub_poll_fd_index() const; - void _internal_set_pub_poll_fd_index(::int32_t value); - - public: - // int32 pub_trigger_fd_index = 7; - void clear_pub_trigger_fd_index() ; - ::int32_t pub_trigger_fd_index() const; - void set_pub_trigger_fd_index(::int32_t value); - - private: - ::int32_t _internal_pub_trigger_fd_index() const; - void _internal_set_pub_trigger_fd_index(::int32_t value); - - public: - // int32 num_sub_updates = 9; - void clear_num_sub_updates() ; - ::int32_t num_sub_updates() const; - void set_num_sub_updates(::int32_t value); - - private: - ::int32_t _internal_num_sub_updates() const; - void _internal_set_num_sub_updates(::int32_t value); - - public: - // int32 vchan_id = 11; - void clear_vchan_id() ; - ::int32_t vchan_id() const; - void set_vchan_id(::int32_t value); - - private: - ::int32_t _internal_vchan_id() const; - void _internal_set_vchan_id(::int32_t value); - - public: - // int32 retirement_fd_index = 14; - void clear_retirement_fd_index() ; - ::int32_t retirement_fd_index() const; - void set_retirement_fd_index(::int32_t value); - - private: - ::int32_t _internal_retirement_fd_index() const; - void _internal_set_retirement_fd_index(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.CreatePublisherResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 13, - 0, 54, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const CreatePublisherResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField<::int32_t> sub_trigger_fd_indexes_; - ::google::protobuf::internal::CachedSize _sub_trigger_fd_indexes_cached_byte_size_; - ::google::protobuf::RepeatedField<::int32_t> retirement_fd_indexes_; - ::google::protobuf::internal::CachedSize _retirement_fd_indexes_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::int32_t channel_id_; - ::int32_t publisher_id_; - ::int32_t ccb_fd_index_; - ::int32_t bcb_fd_index_; - ::int32_t pub_poll_fd_index_; - ::int32_t pub_trigger_fd_index_; - ::int32_t num_sub_updates_; - ::int32_t vchan_id_; - ::int32_t retirement_fd_index_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull CreatePublisherResponse_class_data_; -// ------------------------------------------------------------------- - -class CreatePublisherRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.CreatePublisherRequest) */ { - public: - inline CreatePublisherRequest() : CreatePublisherRequest(nullptr) {} - ~CreatePublisherRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CreatePublisherRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(CreatePublisherRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR CreatePublisherRequest(::google::protobuf::internal::ConstantInitialized); - - inline CreatePublisherRequest(const CreatePublisherRequest& from) : CreatePublisherRequest(nullptr, from) {} - inline CreatePublisherRequest(CreatePublisherRequest&& from) noexcept - : CreatePublisherRequest(nullptr, ::std::move(from)) {} - inline CreatePublisherRequest& operator=(const CreatePublisherRequest& from) { - CopyFrom(from); - return *this; - } - inline CreatePublisherRequest& operator=(CreatePublisherRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CreatePublisherRequest& default_instance() { - return *reinterpret_cast( - &_CreatePublisherRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(CreatePublisherRequest& a, CreatePublisherRequest& b) { a.Swap(&b); } - inline void Swap(CreatePublisherRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CreatePublisherRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CreatePublisherRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CreatePublisherRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const CreatePublisherRequest& from) { CreatePublisherRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(CreatePublisherRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.CreatePublisherRequest"; } - - explicit CreatePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - CreatePublisherRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CreatePublisherRequest& from); - CreatePublisherRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, CreatePublisherRequest&& from) noexcept - : CreatePublisherRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kTypeFieldNumber = 7, - kMuxFieldNumber = 9, - kNumSlotsFieldNumber = 2, - kSlotSizeFieldNumber = 3, - kIsLocalFieldNumber = 4, - kIsReliableFieldNumber = 5, - kIsBridgeFieldNumber = 6, - kIsFixedSizeFieldNumber = 8, - kVchanIdFieldNumber = 10, - kChecksumSizeFieldNumber = 12, - kMetadataSizeFieldNumber = 13, - kPublisherIdFieldNumber = 14, - kNotifyRetirementFieldNumber = 11, - kForTunnelFieldNumber = 15, - kUseSplitBuffersFieldNumber = 16, - kSplitBuffersOverBridgeFieldNumber = 18, - kMaxPublishersFieldNumber = 17, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // bytes type = 7; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // string mux = 9; - void clear_mux() ; - const ::std::string& mux() const; - template - void set_mux(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_mux(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); - void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_mux() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); - - public: - // int32 num_slots = 2; - void clear_num_slots() ; - ::int32_t num_slots() const; - void set_num_slots(::int32_t value); - - private: - ::int32_t _internal_num_slots() const; - void _internal_set_num_slots(::int32_t value); - - public: - // int32 slot_size = 3; - void clear_slot_size() ; - ::int32_t slot_size() const; - void set_slot_size(::int32_t value); - - private: - ::int32_t _internal_slot_size() const; - void _internal_set_slot_size(::int32_t value); - - public: - // bool is_local = 4; - void clear_is_local() ; - bool is_local() const; - void set_is_local(bool value); - - private: - bool _internal_is_local() const; - void _internal_set_is_local(bool value); - - public: - // bool is_reliable = 5; - void clear_is_reliable() ; - bool is_reliable() const; - void set_is_reliable(bool value); - - private: - bool _internal_is_reliable() const; - void _internal_set_is_reliable(bool value); - - public: - // bool is_bridge = 6; - void clear_is_bridge() ; - bool is_bridge() const; - void set_is_bridge(bool value); - - private: - bool _internal_is_bridge() const; - void _internal_set_is_bridge(bool value); - - public: - // bool is_fixed_size = 8; - void clear_is_fixed_size() ; - bool is_fixed_size() const; - void set_is_fixed_size(bool value); - - private: - bool _internal_is_fixed_size() const; - void _internal_set_is_fixed_size(bool value); - - public: - // int32 vchan_id = 10; - void clear_vchan_id() ; - ::int32_t vchan_id() const; - void set_vchan_id(::int32_t value); - - private: - ::int32_t _internal_vchan_id() const; - void _internal_set_vchan_id(::int32_t value); - - public: - // int32 checksum_size = 12; - void clear_checksum_size() ; - ::int32_t checksum_size() const; - void set_checksum_size(::int32_t value); - - private: - ::int32_t _internal_checksum_size() const; - void _internal_set_checksum_size(::int32_t value); - - public: - // int32 metadata_size = 13; - void clear_metadata_size() ; - ::int32_t metadata_size() const; - void set_metadata_size(::int32_t value); - - private: - ::int32_t _internal_metadata_size() const; - void _internal_set_metadata_size(::int32_t value); - - public: - // int32 publisher_id = 14; - void clear_publisher_id() ; - ::int32_t publisher_id() const; - void set_publisher_id(::int32_t value); - - private: - ::int32_t _internal_publisher_id() const; - void _internal_set_publisher_id(::int32_t value); - - public: - // bool notify_retirement = 11; - void clear_notify_retirement() ; - bool notify_retirement() const; - void set_notify_retirement(bool value); - - private: - bool _internal_notify_retirement() const; - void _internal_set_notify_retirement(bool value); - - public: - // bool for_tunnel = 15; - void clear_for_tunnel() ; - bool for_tunnel() const; - void set_for_tunnel(bool value); - - private: - bool _internal_for_tunnel() const; - void _internal_set_for_tunnel(bool value); - - public: - // bool use_split_buffers = 16; - void clear_use_split_buffers() ; - bool use_split_buffers() const; - void set_use_split_buffers(bool value); - - private: - bool _internal_use_split_buffers() const; - void _internal_set_use_split_buffers(bool value); - - public: - // bool split_buffers_over_bridge = 18; - void clear_split_buffers_over_bridge() ; - bool split_buffers_over_bridge() const; - void set_split_buffers_over_bridge(bool value); - - private: - bool _internal_split_buffers_over_bridge() const; - void _internal_set_split_buffers_over_bridge(bool value); - - public: - // int32 max_publishers = 17; - void clear_max_publishers() ; - ::int32_t max_publishers() const; - void set_max_publishers(::int32_t value); - - private: - ::int32_t _internal_max_publishers() const; - void _internal_set_max_publishers(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.CreatePublisherRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<5, 18, - 0, 71, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const CreatePublisherRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr mux_; - ::int32_t num_slots_; - ::int32_t slot_size_; - bool is_local_; - bool is_reliable_; - bool is_bridge_; - bool is_fixed_size_; - ::int32_t vchan_id_; - ::int32_t checksum_size_; - ::int32_t metadata_size_; - ::int32_t publisher_id_; - bool notify_retirement_; - bool for_tunnel_; - bool use_split_buffers_; - bool split_buffers_over_bridge_; - ::int32_t max_publishers_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull CreatePublisherRequest_class_data_; -// ------------------------------------------------------------------- - -class ChannelStatsProto final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ChannelStatsProto) */ { - public: - inline ChannelStatsProto() : ChannelStatsProto(nullptr) {} - ~ChannelStatsProto() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelStatsProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelStatsProto)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ChannelStatsProto(::google::protobuf::internal::ConstantInitialized); - - inline ChannelStatsProto(const ChannelStatsProto& from) : ChannelStatsProto(nullptr, from) {} - inline ChannelStatsProto(ChannelStatsProto&& from) noexcept - : ChannelStatsProto(nullptr, ::std::move(from)) {} - inline ChannelStatsProto& operator=(const ChannelStatsProto& from) { - CopyFrom(from); - return *this; - } - inline ChannelStatsProto& operator=(ChannelStatsProto&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ChannelStatsProto& default_instance() { - return *reinterpret_cast( - &_ChannelStatsProto_default_instance_); - } - static constexpr int kIndexInFileMessages = 26; - friend void swap(ChannelStatsProto& a, ChannelStatsProto& b) { a.Swap(&b); } - inline void Swap(ChannelStatsProto* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ChannelStatsProto* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChannelStatsProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ChannelStatsProto& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ChannelStatsProto& from) { ChannelStatsProto::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelStatsProto* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ChannelStatsProto"; } - - explicit ChannelStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ChannelStatsProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelStatsProto& from); - ChannelStatsProto( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelStatsProto&& from) noexcept - : ChannelStatsProto(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kTotalBytesFieldNumber = 2, - kTotalMessagesFieldNumber = 3, - kSlotSizeFieldNumber = 4, - kNumSlotsFieldNumber = 5, - kNumPubsFieldNumber = 6, - kNumSubsFieldNumber = 7, - kMaxMessageSizeFieldNumber = 8, - kTotalDropsFieldNumber = 9, - kNumBridgePubsFieldNumber = 10, - kNumBridgeSubsFieldNumber = 11, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // int64 total_bytes = 2; - void clear_total_bytes() ; - ::int64_t total_bytes() const; - void set_total_bytes(::int64_t value); - - private: - ::int64_t _internal_total_bytes() const; - void _internal_set_total_bytes(::int64_t value); - - public: - // int64 total_messages = 3; - void clear_total_messages() ; - ::int64_t total_messages() const; - void set_total_messages(::int64_t value); - - private: - ::int64_t _internal_total_messages() const; - void _internal_set_total_messages(::int64_t value); - - public: - // int32 slot_size = 4; - void clear_slot_size() ; - ::int32_t slot_size() const; - void set_slot_size(::int32_t value); - - private: - ::int32_t _internal_slot_size() const; - void _internal_set_slot_size(::int32_t value); - - public: - // int32 num_slots = 5; - void clear_num_slots() ; - ::int32_t num_slots() const; - void set_num_slots(::int32_t value); - - private: - ::int32_t _internal_num_slots() const; - void _internal_set_num_slots(::int32_t value); - - public: - // int32 num_pubs = 6; - void clear_num_pubs() ; - ::int32_t num_pubs() const; - void set_num_pubs(::int32_t value); - - private: - ::int32_t _internal_num_pubs() const; - void _internal_set_num_pubs(::int32_t value); - - public: - // int32 num_subs = 7; - void clear_num_subs() ; - ::int32_t num_subs() const; - void set_num_subs(::int32_t value); - - private: - ::int32_t _internal_num_subs() const; - void _internal_set_num_subs(::int32_t value); - - public: - // uint32 max_message_size = 8; - void clear_max_message_size() ; - ::uint32_t max_message_size() const; - void set_max_message_size(::uint32_t value); - - private: - ::uint32_t _internal_max_message_size() const; - void _internal_set_max_message_size(::uint32_t value); - - public: - // uint32 total_drops = 9; - void clear_total_drops() ; - ::uint32_t total_drops() const; - void set_total_drops(::uint32_t value); - - private: - ::uint32_t _internal_total_drops() const; - void _internal_set_total_drops(::uint32_t value); - - public: - // int32 num_bridge_pubs = 10; - void clear_num_bridge_pubs() ; - ::int32_t num_bridge_pubs() const; - void set_num_bridge_pubs(::int32_t value); - - private: - ::int32_t _internal_num_bridge_pubs() const; - void _internal_set_num_bridge_pubs(::int32_t value); - - public: - // int32 num_bridge_subs = 11; - void clear_num_bridge_subs() ; - ::int32_t num_bridge_subs() const; - void set_num_bridge_subs(::int32_t value); - - private: - ::int32_t _internal_num_bridge_subs() const; - void _internal_set_num_bridge_subs(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ChannelStatsProto) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 11, - 0, 55, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ChannelStatsProto& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::int64_t total_bytes_; - ::int64_t total_messages_; - ::int32_t slot_size_; - ::int32_t num_slots_; - ::int32_t num_pubs_; - ::int32_t num_subs_; - ::uint32_t max_message_size_; - ::uint32_t total_drops_; - ::int32_t num_bridge_pubs_; - ::int32_t num_bridge_subs_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ChannelStatsProto_class_data_; -// ------------------------------------------------------------------- - -class ChannelInfoProto final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ChannelInfoProto) */ { - public: - inline ChannelInfoProto() : ChannelInfoProto(nullptr) {} - ~ChannelInfoProto() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelInfoProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelInfoProto)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ChannelInfoProto(::google::protobuf::internal::ConstantInitialized); - - inline ChannelInfoProto(const ChannelInfoProto& from) : ChannelInfoProto(nullptr, from) {} - inline ChannelInfoProto(ChannelInfoProto&& from) noexcept - : ChannelInfoProto(nullptr, ::std::move(from)) {} - inline ChannelInfoProto& operator=(const ChannelInfoProto& from) { - CopyFrom(from); - return *this; - } - inline ChannelInfoProto& operator=(ChannelInfoProto&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ChannelInfoProto& default_instance() { - return *reinterpret_cast( - &_ChannelInfoProto_default_instance_); - } - static constexpr int kIndexInFileMessages = 24; - friend void swap(ChannelInfoProto& a, ChannelInfoProto& b) { a.Swap(&b); } - inline void Swap(ChannelInfoProto* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ChannelInfoProto* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChannelInfoProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ChannelInfoProto& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ChannelInfoProto& from) { ChannelInfoProto::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelInfoProto* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ChannelInfoProto"; } - - explicit ChannelInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ChannelInfoProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelInfoProto& from); - ChannelInfoProto( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelInfoProto&& from) noexcept - : ChannelInfoProto(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kTypeFieldNumber = 4, - kMuxFieldNumber = 12, - kSlotSizeFieldNumber = 2, - kNumSlotsFieldNumber = 3, - kNumPubsFieldNumber = 5, - kNumSubsFieldNumber = 6, - kNumBridgePubsFieldNumber = 7, - kNumBridgeSubsFieldNumber = 8, - kIsReliableFieldNumber = 9, - kIsVirtualFieldNumber = 10, - kVchanIdFieldNumber = 11, - kNumTunnelPubsFieldNumber = 13, - kNumTunnelSubsFieldNumber = 14, - }; - // string name = 1; - void clear_name() ; - const ::std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); - void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); - - public: - // bytes type = 4; - void clear_type() ; - const ::std::string& type() const; - template - void set_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type(); - void set_allocated_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_type(); - - public: - // string mux = 12; - void clear_mux() ; - const ::std::string& mux() const; - template - void set_mux(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_mux(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_mux(); - void set_allocated_mux(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_mux() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_mux(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_mux(); - - public: - // int32 slot_size = 2; - void clear_slot_size() ; - ::int32_t slot_size() const; - void set_slot_size(::int32_t value); - - private: - ::int32_t _internal_slot_size() const; - void _internal_set_slot_size(::int32_t value); - - public: - // int32 num_slots = 3; - void clear_num_slots() ; - ::int32_t num_slots() const; - void set_num_slots(::int32_t value); - - private: - ::int32_t _internal_num_slots() const; - void _internal_set_num_slots(::int32_t value); - - public: - // int32 num_pubs = 5; - void clear_num_pubs() ; - ::int32_t num_pubs() const; - void set_num_pubs(::int32_t value); - - private: - ::int32_t _internal_num_pubs() const; - void _internal_set_num_pubs(::int32_t value); - - public: - // int32 num_subs = 6; - void clear_num_subs() ; - ::int32_t num_subs() const; - void set_num_subs(::int32_t value); - - private: - ::int32_t _internal_num_subs() const; - void _internal_set_num_subs(::int32_t value); - - public: - // int32 num_bridge_pubs = 7; - void clear_num_bridge_pubs() ; - ::int32_t num_bridge_pubs() const; - void set_num_bridge_pubs(::int32_t value); - - private: - ::int32_t _internal_num_bridge_pubs() const; - void _internal_set_num_bridge_pubs(::int32_t value); - - public: - // int32 num_bridge_subs = 8; - void clear_num_bridge_subs() ; - ::int32_t num_bridge_subs() const; - void set_num_bridge_subs(::int32_t value); - - private: - ::int32_t _internal_num_bridge_subs() const; - void _internal_set_num_bridge_subs(::int32_t value); - - public: - // bool is_reliable = 9; - void clear_is_reliable() ; - bool is_reliable() const; - void set_is_reliable(bool value); - - private: - bool _internal_is_reliable() const; - void _internal_set_is_reliable(bool value); - - public: - // bool is_virtual = 10; - void clear_is_virtual() ; - bool is_virtual() const; - void set_is_virtual(bool value); - - private: - bool _internal_is_virtual() const; - void _internal_set_is_virtual(bool value); - - public: - // int32 vchan_id = 11; - void clear_vchan_id() ; - ::int32_t vchan_id() const; - void set_vchan_id(::int32_t value); - - private: - ::int32_t _internal_vchan_id() const; - void _internal_set_vchan_id(::int32_t value); - - public: - // int32 num_tunnel_pubs = 13; - void clear_num_tunnel_pubs() ; - ::int32_t num_tunnel_pubs() const; - void set_num_tunnel_pubs(::int32_t value); - - private: - ::int32_t _internal_num_tunnel_pubs() const; - void _internal_set_num_tunnel_pubs(::int32_t value); - - public: - // int32 num_tunnel_subs = 14; - void clear_num_tunnel_subs() ; - ::int32_t num_tunnel_subs() const; - void set_num_tunnel_subs(::int32_t value); - - private: - ::int32_t _internal_num_tunnel_subs() const; - void _internal_set_num_tunnel_subs(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ChannelInfoProto) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 14, - 0, 49, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ChannelInfoProto& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr mux_; - ::int32_t slot_size_; - ::int32_t num_slots_; - ::int32_t num_pubs_; - ::int32_t num_subs_; - ::int32_t num_bridge_pubs_; - ::int32_t num_bridge_subs_; - bool is_reliable_; - bool is_virtual_; - ::int32_t vchan_id_; - ::int32_t num_tunnel_pubs_; - ::int32_t num_tunnel_subs_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ChannelInfoProto_class_data_; -// ------------------------------------------------------------------- - -class ChannelAddress final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ChannelAddress) */ { - public: - inline ChannelAddress() : ChannelAddress(nullptr) {} - ~ChannelAddress() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelAddress* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelAddress)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ChannelAddress(::google::protobuf::internal::ConstantInitialized); - - inline ChannelAddress(const ChannelAddress& from) : ChannelAddress(nullptr, from) {} - inline ChannelAddress(ChannelAddress&& from) noexcept - : ChannelAddress(nullptr, ::std::move(from)) {} - inline ChannelAddress& operator=(const ChannelAddress& from) { - CopyFrom(from); - return *this; - } - inline ChannelAddress& operator=(ChannelAddress&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ChannelAddress& default_instance() { - return *reinterpret_cast( - &_ChannelAddress_default_instance_); - } - static constexpr int kIndexInFileMessages = 28; - friend void swap(ChannelAddress& a, ChannelAddress& b) { a.Swap(&b); } - inline void Swap(ChannelAddress* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ChannelAddress* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChannelAddress* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ChannelAddress& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ChannelAddress& from) { ChannelAddress::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelAddress* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ChannelAddress"; } - - explicit ChannelAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ChannelAddress(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelAddress& from); - ChannelAddress( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelAddress&& from) noexcept - : ChannelAddress(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAddressFieldNumber = 1, - kPortFieldNumber = 2, - }; - // bytes address = 1; - void clear_address() ; - const ::std::string& address() const; - template - void set_address(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_address(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_address(); - void set_allocated_address(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_address() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_address(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_address(); - - public: - // int32 port = 2; - void clear_port() ; - ::int32_t port() const; - void set_port(::int32_t value); - - private: - ::int32_t _internal_port() const; - void _internal_set_port(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ChannelAddress) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ChannelAddress& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr address_; - ::int32_t port_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ChannelAddress_class_data_; -// ------------------------------------------------------------------- - -class Subscribed final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Subscribed) */ { - public: - inline Subscribed() : Subscribed(nullptr) {} - ~Subscribed() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Subscribed* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Subscribed)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Subscribed(::google::protobuf::internal::ConstantInitialized); - - inline Subscribed(const Subscribed& from) : Subscribed(nullptr, from) {} - inline Subscribed(Subscribed&& from) noexcept - : Subscribed(nullptr, ::std::move(from)) {} - inline Subscribed& operator=(const Subscribed& from) { - CopyFrom(from); - return *this; - } - inline Subscribed& operator=(Subscribed&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Subscribed& default_instance() { - return *reinterpret_cast( - &_Subscribed_default_instance_); - } - static constexpr int kIndexInFileMessages = 29; - friend void swap(Subscribed& a, Subscribed& b) { a.Swap(&b); } - inline void Swap(Subscribed* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Subscribed* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Subscribed* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Subscribed& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Subscribed& from) { Subscribed::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Subscribed* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Subscribed"; } - - explicit Subscribed(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Subscribed(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Subscribed& from); - Subscribed( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Subscribed&& from) noexcept - : Subscribed(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kRetirementSocketFieldNumber = 6, - kSlotSizeFieldNumber = 2, - kNumSlotsFieldNumber = 3, - kChecksumSizeFieldNumber = 7, - kReliableFieldNumber = 4, - kNotifyRetirementFieldNumber = 5, - kSplitBuffersFieldNumber = 9, - kSplitBuffersOverBridgeFieldNumber = 10, - kMetadataSizeFieldNumber = 8, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // .subspace.ChannelAddress retirement_socket = 6; - bool has_retirement_socket() const; - void clear_retirement_socket() ; - const ::subspace::ChannelAddress& retirement_socket() const; - [[nodiscard]] ::subspace::ChannelAddress* PROTOBUF_NULLABLE release_retirement_socket(); - ::subspace::ChannelAddress* PROTOBUF_NONNULL mutable_retirement_socket(); - void set_allocated_retirement_socket(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_retirement_socket(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); - ::subspace::ChannelAddress* PROTOBUF_NULLABLE unsafe_arena_release_retirement_socket(); - - private: - const ::subspace::ChannelAddress& _internal_retirement_socket() const; - ::subspace::ChannelAddress* PROTOBUF_NONNULL _internal_mutable_retirement_socket(); - - public: - // int32 slot_size = 2; - void clear_slot_size() ; - ::int32_t slot_size() const; - void set_slot_size(::int32_t value); - - private: - ::int32_t _internal_slot_size() const; - void _internal_set_slot_size(::int32_t value); - - public: - // int32 num_slots = 3; - void clear_num_slots() ; - ::int32_t num_slots() const; - void set_num_slots(::int32_t value); - - private: - ::int32_t _internal_num_slots() const; - void _internal_set_num_slots(::int32_t value); - - public: - // int32 checksum_size = 7; - void clear_checksum_size() ; - ::int32_t checksum_size() const; - void set_checksum_size(::int32_t value); - - private: - ::int32_t _internal_checksum_size() const; - void _internal_set_checksum_size(::int32_t value); - - public: - // bool reliable = 4; - void clear_reliable() ; - bool reliable() const; - void set_reliable(bool value); - - private: - bool _internal_reliable() const; - void _internal_set_reliable(bool value); - - public: - // bool notify_retirement = 5; - void clear_notify_retirement() ; - bool notify_retirement() const; - void set_notify_retirement(bool value); - - private: - bool _internal_notify_retirement() const; - void _internal_set_notify_retirement(bool value); - - public: - // bool split_buffers = 9; - void clear_split_buffers() ; - bool split_buffers() const; - void set_split_buffers(bool value); - - private: - bool _internal_split_buffers() const; - void _internal_set_split_buffers(bool value); - - public: - // bool split_buffers_over_bridge = 10; - void clear_split_buffers_over_bridge() ; - bool split_buffers_over_bridge() const; - void set_split_buffers_over_bridge(bool value); - - private: - bool _internal_split_buffers_over_bridge() const; - void _internal_set_split_buffers_over_bridge(bool value); - - public: - // int32 metadata_size = 8; - void clear_metadata_size() ; - ::int32_t metadata_size() const; - void set_metadata_size(::int32_t value); - - private: - ::int32_t _internal_metadata_size() const; - void _internal_set_metadata_size(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.Subscribed) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 10, - 1, 48, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Subscribed& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::subspace::ChannelAddress* PROTOBUF_NULLABLE retirement_socket_; - ::int32_t slot_size_; - ::int32_t num_slots_; - ::int32_t checksum_size_; - bool reliable_; - bool notify_retirement_; - bool split_buffers_; - bool split_buffers_over_bridge_; - ::int32_t metadata_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Subscribed_class_data_; -// ------------------------------------------------------------------- - -class Statistics final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Statistics) */ { - public: - inline Statistics() : Statistics(nullptr) {} - ~Statistics() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Statistics* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Statistics)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Statistics(::google::protobuf::internal::ConstantInitialized); - - inline Statistics(const Statistics& from) : Statistics(nullptr, from) {} - inline Statistics(Statistics&& from) noexcept - : Statistics(nullptr, ::std::move(from)) {} - inline Statistics& operator=(const Statistics& from) { - CopyFrom(from); - return *this; - } - inline Statistics& operator=(Statistics&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Statistics& default_instance() { - return *reinterpret_cast( - &_Statistics_default_instance_); - } - static constexpr int kIndexInFileMessages = 27; - friend void swap(Statistics& a, Statistics& b) { a.Swap(&b); } - inline void Swap(Statistics* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Statistics* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Statistics* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Statistics& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Statistics& from) { Statistics::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Statistics* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Statistics"; } - - explicit Statistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Statistics(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Statistics& from); - Statistics( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Statistics&& from) noexcept - : Statistics(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelsFieldNumber = 3, - kServerIdFieldNumber = 1, - kTimestampFieldNumber = 2, - }; - // repeated .subspace.ChannelStatsProto channels = 3; - int channels_size() const; - private: - int _internal_channels_size() const; - - public: - void clear_channels() ; - ::subspace::ChannelStatsProto* PROTOBUF_NONNULL mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL mutable_channels(); - - private: - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL _internal_mutable_channels(); - public: - const ::subspace::ChannelStatsProto& channels(int index) const; - ::subspace::ChannelStatsProto* PROTOBUF_NONNULL add_channels(); - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& channels() const; - // string server_id = 1; - void clear_server_id() ; - const ::std::string& server_id() const; - template - void set_server_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_server_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_server_id(); - void set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_server_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_server_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_server_id(); - - public: - // int64 timestamp = 2; - void clear_timestamp() ; - ::int64_t timestamp() const; - void set_timestamp(::int64_t value); - - private: - ::int64_t _internal_timestamp() const; - void _internal_set_timestamp(::int64_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.Statistics) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 1, 37, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Statistics& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::subspace::ChannelStatsProto > channels_; - ::google::protobuf::internal::ArenaStringPtr server_id_; - ::int64_t timestamp_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Statistics_class_data_; -// ------------------------------------------------------------------- - -class RpcServerRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcServerRequest) */ { - public: - inline RpcServerRequest() : RpcServerRequest(nullptr) {} - ~RpcServerRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcServerRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcServerRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcServerRequest(::google::protobuf::internal::ConstantInitialized); - - inline RpcServerRequest(const RpcServerRequest& from) : RpcServerRequest(nullptr, from) {} - inline RpcServerRequest(RpcServerRequest&& from) noexcept - : RpcServerRequest(nullptr, ::std::move(from)) {} - inline RpcServerRequest& operator=(const RpcServerRequest& from) { - CopyFrom(from); - return *this; - } - inline RpcServerRequest& operator=(RpcServerRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcServerRequest& default_instance() { - return *reinterpret_cast( - &_RpcServerRequest_default_instance_); - } - enum RequestCase { - kOpen = 3, - kClose = 4, - REQUEST_NOT_SET = 0, - }; - static constexpr int kIndexInFileMessages = 42; - friend void swap(RpcServerRequest& a, RpcServerRequest& b) { a.Swap(&b); } - inline void Swap(RpcServerRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcServerRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcServerRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcServerRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcServerRequest& from) { RpcServerRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcServerRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcServerRequest"; } - - explicit RpcServerRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcServerRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcServerRequest& from); - RpcServerRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcServerRequest&& from) noexcept - : RpcServerRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kClientIdFieldNumber = 1, - kRequestIdFieldNumber = 2, - kOpenFieldNumber = 3, - kCloseFieldNumber = 4, - }; - // uint64 client_id = 1; - void clear_client_id() ; - ::uint64_t client_id() const; - void set_client_id(::uint64_t value); - - private: - ::uint64_t _internal_client_id() const; - void _internal_set_client_id(::uint64_t value); - - public: - // int32 request_id = 2; - void clear_request_id() ; - ::int32_t request_id() const; - void set_request_id(::int32_t value); - - private: - ::int32_t _internal_request_id() const; - void _internal_set_request_id(::int32_t value); - - public: - // .subspace.RpcOpenRequest open = 3; - bool has_open() const; - private: - bool _internal_has_open() const; - - public: - void clear_open() ; - const ::subspace::RpcOpenRequest& open() const; - [[nodiscard]] ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE release_open(); - ::subspace::RpcOpenRequest* PROTOBUF_NONNULL mutable_open(); - void set_allocated_open(::subspace::RpcOpenRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_open(::subspace::RpcOpenRequest* PROTOBUF_NULLABLE value); - ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE unsafe_arena_release_open(); - - private: - const ::subspace::RpcOpenRequest& _internal_open() const; - ::subspace::RpcOpenRequest* PROTOBUF_NONNULL _internal_mutable_open(); - - public: - // .subspace.RpcCloseRequest close = 4; - bool has_close() const; - private: - bool _internal_has_close() const; - - public: - void clear_close() ; - const ::subspace::RpcCloseRequest& close() const; - [[nodiscard]] ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE release_close(); - ::subspace::RpcCloseRequest* PROTOBUF_NONNULL mutable_close(); - void set_allocated_close(::subspace::RpcCloseRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_close(::subspace::RpcCloseRequest* PROTOBUF_NULLABLE value); - ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE unsafe_arena_release_close(); - - private: - const ::subspace::RpcCloseRequest& _internal_close() const; - ::subspace::RpcCloseRequest* PROTOBUF_NONNULL _internal_mutable_close(); - - public: - void clear_request(); - RequestCase request_case() const; - // @@protoc_insertion_point(class_scope:subspace.RpcServerRequest) - private: - class _Internal; - void set_has_open(); - void set_has_close(); - inline bool has_request() const; - inline void clear_has_request(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 4, - 2, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcServerRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint64_t client_id_; - ::int32_t request_id_; - union RequestUnion { - constexpr RequestUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE open_; - ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE close_; - } request_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcServerRequest_class_data_; -// ------------------------------------------------------------------- - -class RpcResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcResponse) */ { - public: - inline RpcResponse() : RpcResponse(nullptr) {} - ~RpcResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcResponse(::google::protobuf::internal::ConstantInitialized); - - inline RpcResponse(const RpcResponse& from) : RpcResponse(nullptr, from) {} - inline RpcResponse(RpcResponse&& from) noexcept - : RpcResponse(nullptr, ::std::move(from)) {} - inline RpcResponse& operator=(const RpcResponse& from) { - CopyFrom(from); - return *this; - } - inline RpcResponse& operator=(RpcResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcResponse& default_instance() { - return *reinterpret_cast( - &_RpcResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 45; - friend void swap(RpcResponse& a, RpcResponse& b) { a.Swap(&b); } - inline void Swap(RpcResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcResponse& from) { RpcResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcResponse"; } - - explicit RpcResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcResponse& from); - RpcResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcResponse&& from) noexcept - : RpcResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kErrorFieldNumber = 1, - kResultFieldNumber = 2, - kSessionIdFieldNumber = 3, - kRequestIdFieldNumber = 4, - kClientIdFieldNumber = 5, - kIsLastFieldNumber = 6, - kIsCancelledFieldNumber = 7, - }; - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // .google.protobuf.Any result = 2; - bool has_result() const; - void clear_result() ; - const ::google::protobuf::Any& result() const; - [[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_result(); - ::google::protobuf::Any* PROTOBUF_NONNULL mutable_result(); - void set_allocated_result(::google::protobuf::Any* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_result(::google::protobuf::Any* PROTOBUF_NULLABLE value); - ::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_result(); - - private: - const ::google::protobuf::Any& _internal_result() const; - ::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_result(); - - public: - // int32 session_id = 3; - void clear_session_id() ; - ::int32_t session_id() const; - void set_session_id(::int32_t value); - - private: - ::int32_t _internal_session_id() const; - void _internal_set_session_id(::int32_t value); - - public: - // int32 request_id = 4; - void clear_request_id() ; - ::int32_t request_id() const; - void set_request_id(::int32_t value); - - private: - ::int32_t _internal_request_id() const; - void _internal_set_request_id(::int32_t value); - - public: - // uint64 client_id = 5; - void clear_client_id() ; - ::uint64_t client_id() const; - void set_client_id(::uint64_t value); - - private: - ::uint64_t _internal_client_id() const; - void _internal_set_client_id(::uint64_t value); - - public: - // bool is_last = 6; - void clear_is_last() ; - bool is_last() const; - void set_is_last(bool value); - - private: - bool _internal_is_last() const; - void _internal_set_is_last(bool value); - - public: - // bool is_cancelled = 7; - void clear_is_cancelled() ; - bool is_cancelled() const; - void set_is_cancelled(bool value); - - private: - bool _internal_is_cancelled() const; - void _internal_set_is_cancelled(bool value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 7, - 1, 34, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - ::google::protobuf::Any* PROTOBUF_NULLABLE result_; - ::int32_t session_id_; - ::int32_t request_id_; - ::uint64_t client_id_; - bool is_last_; - bool is_cancelled_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcResponse_class_data_; -// ------------------------------------------------------------------- - -class RpcRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcRequest) */ { - public: - inline RpcRequest() : RpcRequest(nullptr) {} - ~RpcRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcRequest(::google::protobuf::internal::ConstantInitialized); - - inline RpcRequest(const RpcRequest& from) : RpcRequest(nullptr, from) {} - inline RpcRequest(RpcRequest&& from) noexcept - : RpcRequest(nullptr, ::std::move(from)) {} - inline RpcRequest& operator=(const RpcRequest& from) { - CopyFrom(from); - return *this; - } - inline RpcRequest& operator=(RpcRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcRequest& default_instance() { - return *reinterpret_cast( - &_RpcRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 44; - friend void swap(RpcRequest& a, RpcRequest& b) { a.Swap(&b); } - inline void Swap(RpcRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcRequest& from) { RpcRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcRequest"; } - - explicit RpcRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcRequest& from); - RpcRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcRequest&& from) noexcept - : RpcRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kArgumentFieldNumber = 2, - kMethodFieldNumber = 1, - kSessionIdFieldNumber = 3, - kClientIdFieldNumber = 5, - kRequestIdFieldNumber = 4, - }; - // .google.protobuf.Any argument = 2; - bool has_argument() const; - void clear_argument() ; - const ::google::protobuf::Any& argument() const; - [[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_argument(); - ::google::protobuf::Any* PROTOBUF_NONNULL mutable_argument(); - void set_allocated_argument(::google::protobuf::Any* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_argument(::google::protobuf::Any* PROTOBUF_NULLABLE value); - ::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_argument(); - - private: - const ::google::protobuf::Any& _internal_argument() const; - ::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_argument(); - - public: - // int32 method = 1; - void clear_method() ; - ::int32_t method() const; - void set_method(::int32_t value); - - private: - ::int32_t _internal_method() const; - void _internal_set_method(::int32_t value); - - public: - // int32 session_id = 3; - void clear_session_id() ; - ::int32_t session_id() const; - void set_session_id(::int32_t value); - - private: - ::int32_t _internal_session_id() const; - void _internal_set_session_id(::int32_t value); - - public: - // uint64 client_id = 5; - void clear_client_id() ; - ::uint64_t client_id() const; - void set_client_id(::uint64_t value); - - private: - ::uint64_t _internal_client_id() const; - void _internal_set_client_id(::uint64_t value); - - public: - // int32 request_id = 4; - void clear_request_id() ; - ::int32_t request_id() const; - void set_request_id(::int32_t value); - - private: - ::int32_t _internal_request_id() const; - void _internal_set_request_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 5, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::Any* PROTOBUF_NULLABLE argument_; - ::int32_t method_; - ::int32_t session_id_; - ::uint64_t client_id_; - ::int32_t request_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcRequest_class_data_; -// ------------------------------------------------------------------- - -class RpcOpenResponse_Method final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcOpenResponse.Method) */ { - public: - inline RpcOpenResponse_Method() : RpcOpenResponse_Method(nullptr) {} - ~RpcOpenResponse_Method() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse_Method* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse_Method)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse_Method(::google::protobuf::internal::ConstantInitialized); - - inline RpcOpenResponse_Method(const RpcOpenResponse_Method& from) : RpcOpenResponse_Method(nullptr, from) {} - inline RpcOpenResponse_Method(RpcOpenResponse_Method&& from) noexcept - : RpcOpenResponse_Method(nullptr, ::std::move(from)) {} - inline RpcOpenResponse_Method& operator=(const RpcOpenResponse_Method& from) { - CopyFrom(from); - return *this; - } - inline RpcOpenResponse_Method& operator=(RpcOpenResponse_Method&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcOpenResponse_Method& default_instance() { - return *reinterpret_cast( - &_RpcOpenResponse_Method_default_instance_); - } - static constexpr int kIndexInFileMessages = 38; - friend void swap(RpcOpenResponse_Method& a, RpcOpenResponse_Method& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse_Method* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcOpenResponse_Method* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcOpenResponse_Method* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcOpenResponse_Method& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcOpenResponse_Method& from) { RpcOpenResponse_Method::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse_Method* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse.Method"; } - - explicit RpcOpenResponse_Method(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcOpenResponse_Method(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse_Method& from); - RpcOpenResponse_Method( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse_Method&& from) noexcept - : RpcOpenResponse_Method(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 1, - kCancelChannelFieldNumber = 5, - kRequestChannelFieldNumber = 3, - kResponseChannelFieldNumber = 4, - kIdFieldNumber = 2, - }; - // string name = 1; - void clear_name() ; - const ::std::string& name() const; - template - void set_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name(); - void set_allocated_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_name(); - - public: - // string cancel_channel = 5; - void clear_cancel_channel() ; - const ::std::string& cancel_channel() const; - template - void set_cancel_channel(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_cancel_channel(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_cancel_channel(); - void set_allocated_cancel_channel(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_cancel_channel() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_cancel_channel(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_cancel_channel(); - - public: - // .subspace.RpcOpenResponse.RequestChannel request_channel = 3; - bool has_request_channel() const; - void clear_request_channel() ; - const ::subspace::RpcOpenResponse_RequestChannel& request_channel() const; - [[nodiscard]] ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE release_request_channel(); - ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL mutable_request_channel(); - void set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value); - ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE unsafe_arena_release_request_channel(); - - private: - const ::subspace::RpcOpenResponse_RequestChannel& _internal_request_channel() const; - ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL _internal_mutable_request_channel(); - - public: - // .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; - bool has_response_channel() const; - void clear_response_channel() ; - const ::subspace::RpcOpenResponse_ResponseChannel& response_channel() const; - [[nodiscard]] ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE release_response_channel(); - ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL mutable_response_channel(); - void set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value); - ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE unsafe_arena_release_response_channel(); - - private: - const ::subspace::RpcOpenResponse_ResponseChannel& _internal_response_channel() const; - ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL _internal_mutable_response_channel(); - - public: - // int32 id = 2; - void clear_id() ; - ::int32_t id() const; - void set_id(::int32_t value); - - private: - ::int32_t _internal_id() const; - void _internal_set_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcOpenResponse.Method) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 5, - 2, 58, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcOpenResponse_Method& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr cancel_channel_; - ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE request_channel_; - ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE response_channel_; - ::int32_t id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_Method_class_data_; -// ------------------------------------------------------------------- - -class GetChannelStatsResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetChannelStatsResponse) */ { - public: - inline GetChannelStatsResponse() : GetChannelStatsResponse(nullptr) {} - ~GetChannelStatsResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelStatsResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelStatsResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetChannelStatsResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetChannelStatsResponse(const GetChannelStatsResponse& from) : GetChannelStatsResponse(nullptr, from) {} - inline GetChannelStatsResponse(GetChannelStatsResponse&& from) noexcept - : GetChannelStatsResponse(nullptr, ::std::move(from)) {} - inline GetChannelStatsResponse& operator=(const GetChannelStatsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetChannelStatsResponse& operator=(GetChannelStatsResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetChannelStatsResponse& default_instance() { - return *reinterpret_cast( - &_GetChannelStatsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 15; - friend void swap(GetChannelStatsResponse& a, GetChannelStatsResponse& b) { a.Swap(&b); } - inline void Swap(GetChannelStatsResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetChannelStatsResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetChannelStatsResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetChannelStatsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetChannelStatsResponse& from) { GetChannelStatsResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelStatsResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetChannelStatsResponse"; } - - explicit GetChannelStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetChannelStatsResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelStatsResponse& from); - GetChannelStatsResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelStatsResponse&& from) noexcept - : GetChannelStatsResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelsFieldNumber = 2, - kErrorFieldNumber = 1, - }; - // repeated .subspace.ChannelStatsProto channels = 2; - int channels_size() const; - private: - int _internal_channels_size() const; - - public: - void clear_channels() ; - ::subspace::ChannelStatsProto* PROTOBUF_NONNULL mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL mutable_channels(); - - private: - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL _internal_mutable_channels(); - public: - const ::subspace::ChannelStatsProto& channels(int index) const; - ::subspace::ChannelStatsProto* PROTOBUF_NONNULL add_channels(); - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& channels() const; - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetChannelStatsResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 46, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetChannelStatsResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::subspace::ChannelStatsProto > channels_; - ::google::protobuf::internal::ArenaStringPtr error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetChannelStatsResponse_class_data_; -// ------------------------------------------------------------------- - -class GetChannelInfoResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetChannelInfoResponse) */ { - public: - inline GetChannelInfoResponse() : GetChannelInfoResponse(nullptr) {} - ~GetChannelInfoResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetChannelInfoResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetChannelInfoResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetChannelInfoResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetChannelInfoResponse(const GetChannelInfoResponse& from) : GetChannelInfoResponse(nullptr, from) {} - inline GetChannelInfoResponse(GetChannelInfoResponse&& from) noexcept - : GetChannelInfoResponse(nullptr, ::std::move(from)) {} - inline GetChannelInfoResponse& operator=(const GetChannelInfoResponse& from) { - CopyFrom(from); - return *this; - } - inline GetChannelInfoResponse& operator=(GetChannelInfoResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetChannelInfoResponse& default_instance() { - return *reinterpret_cast( - &_GetChannelInfoResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 13; - friend void swap(GetChannelInfoResponse& a, GetChannelInfoResponse& b) { a.Swap(&b); } - inline void Swap(GetChannelInfoResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetChannelInfoResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetChannelInfoResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetChannelInfoResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetChannelInfoResponse& from) { GetChannelInfoResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetChannelInfoResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetChannelInfoResponse"; } - - explicit GetChannelInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetChannelInfoResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetChannelInfoResponse& from); - GetChannelInfoResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetChannelInfoResponse&& from) noexcept - : GetChannelInfoResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelsFieldNumber = 2, - kErrorFieldNumber = 1, - }; - // repeated .subspace.ChannelInfoProto channels = 2; - int channels_size() const; - private: - int _internal_channels_size() const; - - public: - void clear_channels() ; - ::subspace::ChannelInfoProto* PROTOBUF_NONNULL mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL mutable_channels(); - - private: - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL _internal_mutable_channels(); - public: - const ::subspace::ChannelInfoProto& channels(int index) const; - ::subspace::ChannelInfoProto* PROTOBUF_NONNULL add_channels(); - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& channels() const; - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetChannelInfoResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 45, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetChannelInfoResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::subspace::ChannelInfoProto > channels_; - ::google::protobuf::internal::ArenaStringPtr error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetChannelInfoResponse_class_data_; -// ------------------------------------------------------------------- - -class Discovery_Subscribe final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Discovery.Subscribe) */ { - public: - inline Discovery_Subscribe() : Discovery_Subscribe(nullptr) {} - ~Discovery_Subscribe() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery_Subscribe* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery_Subscribe)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Discovery_Subscribe(::google::protobuf::internal::ConstantInitialized); - - inline Discovery_Subscribe(const Discovery_Subscribe& from) : Discovery_Subscribe(nullptr, from) {} - inline Discovery_Subscribe(Discovery_Subscribe&& from) noexcept - : Discovery_Subscribe(nullptr, ::std::move(from)) {} - inline Discovery_Subscribe& operator=(const Discovery_Subscribe& from) { - CopyFrom(from); - return *this; - } - inline Discovery_Subscribe& operator=(Discovery_Subscribe&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Discovery_Subscribe& default_instance() { - return *reinterpret_cast( - &_Discovery_Subscribe_default_instance_); - } - static constexpr int kIndexInFileMessages = 33; - friend void swap(Discovery_Subscribe& a, Discovery_Subscribe& b) { a.Swap(&b); } - inline void Swap(Discovery_Subscribe* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Discovery_Subscribe* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Discovery_Subscribe* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Discovery_Subscribe& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Discovery_Subscribe& from) { Discovery_Subscribe::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery_Subscribe* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Discovery.Subscribe"; } - - explicit Discovery_Subscribe(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Discovery_Subscribe(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery_Subscribe& from); - Discovery_Subscribe( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery_Subscribe&& from) noexcept - : Discovery_Subscribe(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kReceiverFieldNumber = 2, - kReliableFieldNumber = 3, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // .subspace.ChannelAddress receiver = 2; - bool has_receiver() const; - void clear_receiver() ; - const ::subspace::ChannelAddress& receiver() const; - [[nodiscard]] ::subspace::ChannelAddress* PROTOBUF_NULLABLE release_receiver(); - ::subspace::ChannelAddress* PROTOBUF_NONNULL mutable_receiver(); - void set_allocated_receiver(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_receiver(::subspace::ChannelAddress* PROTOBUF_NULLABLE value); - ::subspace::ChannelAddress* PROTOBUF_NULLABLE unsafe_arena_release_receiver(); - - private: - const ::subspace::ChannelAddress& _internal_receiver() const; - ::subspace::ChannelAddress* PROTOBUF_NONNULL _internal_mutable_receiver(); - - public: - // bool reliable = 3; - void clear_reliable() ; - bool reliable() const; - void set_reliable(bool value); - - private: - bool _internal_reliable() const; - void _internal_set_reliable(bool value); - - public: - // @@protoc_insertion_point(class_scope:subspace.Discovery.Subscribe) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 1, 49, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Discovery_Subscribe& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::subspace::ChannelAddress* PROTOBUF_NULLABLE receiver_; - bool reliable_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Discovery_Subscribe_class_data_; -// ------------------------------------------------------------------- - -class ClientBufferHandleMetadataProto final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ClientBufferHandleMetadataProto) */ { - public: - inline ClientBufferHandleMetadataProto() : ClientBufferHandleMetadataProto(nullptr) {} - ~ClientBufferHandleMetadataProto() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ClientBufferHandleMetadataProto)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ClientBufferHandleMetadataProto(::google::protobuf::internal::ConstantInitialized); - - inline ClientBufferHandleMetadataProto(const ClientBufferHandleMetadataProto& from) : ClientBufferHandleMetadataProto(nullptr, from) {} - inline ClientBufferHandleMetadataProto(ClientBufferHandleMetadataProto&& from) noexcept - : ClientBufferHandleMetadataProto(nullptr, ::std::move(from)) {} - inline ClientBufferHandleMetadataProto& operator=(const ClientBufferHandleMetadataProto& from) { - CopyFrom(from); - return *this; - } - inline ClientBufferHandleMetadataProto& operator=(ClientBufferHandleMetadataProto&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ClientBufferHandleMetadataProto& default_instance() { - return *reinterpret_cast( - &_ClientBufferHandleMetadataProto_default_instance_); - } - static constexpr int kIndexInFileMessages = 16; - friend void swap(ClientBufferHandleMetadataProto& a, ClientBufferHandleMetadataProto& b) { a.Swap(&b); } - inline void Swap(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ClientBufferHandleMetadataProto* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ClientBufferHandleMetadataProto& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ClientBufferHandleMetadataProto& from) { ClientBufferHandleMetadataProto::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ClientBufferHandleMetadataProto* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ClientBufferHandleMetadataProto"; } - - explicit ClientBufferHandleMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ClientBufferHandleMetadataProto(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ClientBufferHandleMetadataProto& from); - ClientBufferHandleMetadataProto( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ClientBufferHandleMetadataProto&& from) noexcept - : ClientBufferHandleMetadataProto(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelNameFieldNumber = 1, - kShadowFileFieldNumber = 9, - kObjectNameFieldNumber = 10, - kAllocatorFieldNumber = 11, - kPoolIdFieldNumber = 12, - kAllocatorMetadataFieldNumber = 15, - kSessionIdFieldNumber = 2, - kBufferIndexFieldNumber = 3, - kSlotIdFieldNumber = 4, - kFullSizeFieldNumber = 6, - kAllocationSizeFieldNumber = 7, - kHandleFieldNumber = 8, - kIsPrefixFieldNumber = 5, - kCacheEnabledFieldNumber = 13, - kAlignmentFieldNumber = 14, - }; - // string channel_name = 1; - void clear_channel_name() ; - const ::std::string& channel_name() const; - template - void set_channel_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_channel_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_channel_name(); - void set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_channel_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_channel_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_channel_name(); - - public: - // string shadow_file = 9; - void clear_shadow_file() ; - const ::std::string& shadow_file() const; - template - void set_shadow_file(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_shadow_file(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_shadow_file(); - void set_allocated_shadow_file(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_shadow_file() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_shadow_file(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_shadow_file(); - - public: - // string object_name = 10; - void clear_object_name() ; - const ::std::string& object_name() const; - template - void set_object_name(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_object_name(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_object_name(); - void set_allocated_object_name(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_object_name() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_object_name(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_object_name(); - - public: - // string allocator = 11; - void clear_allocator() ; - const ::std::string& allocator() const; - template - void set_allocator(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_allocator(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_allocator(); - void set_allocated_allocator(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_allocator() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_allocator(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_allocator(); - - public: - // string pool_id = 12; - void clear_pool_id() ; - const ::std::string& pool_id() const; - template - void set_pool_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_pool_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_pool_id(); - void set_allocated_pool_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_pool_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_pool_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_pool_id(); - - public: - // .google.protobuf.Any allocator_metadata = 15; - bool has_allocator_metadata() const; - void clear_allocator_metadata() ; - const ::google::protobuf::Any& allocator_metadata() const; - [[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_allocator_metadata(); - ::google::protobuf::Any* PROTOBUF_NONNULL mutable_allocator_metadata(); - void set_allocated_allocator_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_allocator_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value); - ::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_allocator_metadata(); - - private: - const ::google::protobuf::Any& _internal_allocator_metadata() const; - ::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_allocator_metadata(); - - public: - // uint64 session_id = 2; - void clear_session_id() ; - ::uint64_t session_id() const; - void set_session_id(::uint64_t value); - - private: - ::uint64_t _internal_session_id() const; - void _internal_set_session_id(::uint64_t value); - - public: - // uint32 buffer_index = 3; - void clear_buffer_index() ; - ::uint32_t buffer_index() const; - void set_buffer_index(::uint32_t value); - - private: - ::uint32_t _internal_buffer_index() const; - void _internal_set_buffer_index(::uint32_t value); - - public: - // uint32 slot_id = 4; - void clear_slot_id() ; - ::uint32_t slot_id() const; - void set_slot_id(::uint32_t value); - - private: - ::uint32_t _internal_slot_id() const; - void _internal_set_slot_id(::uint32_t value); - - public: - // uint64 full_size = 6; - void clear_full_size() ; - ::uint64_t full_size() const; - void set_full_size(::uint64_t value); - - private: - ::uint64_t _internal_full_size() const; - void _internal_set_full_size(::uint64_t value); - - public: - // uint64 allocation_size = 7; - void clear_allocation_size() ; - ::uint64_t allocation_size() const; - void set_allocation_size(::uint64_t value); - - private: - ::uint64_t _internal_allocation_size() const; - void _internal_set_allocation_size(::uint64_t value); - - public: - // uint64 handle = 8; - void clear_handle() ; - ::uint64_t handle() const; - void set_handle(::uint64_t value); - - private: - ::uint64_t _internal_handle() const; - void _internal_set_handle(::uint64_t value); - - public: - // bool is_prefix = 5; - void clear_is_prefix() ; - bool is_prefix() const; - void set_is_prefix(bool value); - - private: - bool _internal_is_prefix() const; - void _internal_set_is_prefix(bool value); - - public: - // bool cache_enabled = 13; - void clear_cache_enabled() ; - bool cache_enabled() const; - void set_cache_enabled(bool value); - - private: - bool _internal_cache_enabled() const; - void _internal_set_cache_enabled(bool value); - - public: - // uint32 alignment = 14; - void clear_alignment() ; - ::uint32_t alignment() const; - void set_alignment(::uint32_t value); - - private: - ::uint32_t _internal_alignment() const; - void _internal_set_alignment(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ClientBufferHandleMetadataProto) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 15, - 1, 107, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ClientBufferHandleMetadataProto& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::google::protobuf::internal::ArenaStringPtr shadow_file_; - ::google::protobuf::internal::ArenaStringPtr object_name_; - ::google::protobuf::internal::ArenaStringPtr allocator_; - ::google::protobuf::internal::ArenaStringPtr pool_id_; - ::google::protobuf::Any* PROTOBUF_NULLABLE allocator_metadata_; - ::uint64_t session_id_; - ::uint32_t buffer_index_; - ::uint32_t slot_id_; - ::uint64_t full_size_; - ::uint64_t allocation_size_; - ::uint64_t handle_; - bool is_prefix_; - bool cache_enabled_; - ::uint32_t alignment_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ClientBufferHandleMetadataProto_class_data_; -// ------------------------------------------------------------------- - -class ChannelDirectory final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ChannelDirectory) */ { - public: - inline ChannelDirectory() : ChannelDirectory(nullptr) {} - ~ChannelDirectory() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ChannelDirectory* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ChannelDirectory)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ChannelDirectory(::google::protobuf::internal::ConstantInitialized); - - inline ChannelDirectory(const ChannelDirectory& from) : ChannelDirectory(nullptr, from) {} - inline ChannelDirectory(ChannelDirectory&& from) noexcept - : ChannelDirectory(nullptr, ::std::move(from)) {} - inline ChannelDirectory& operator=(const ChannelDirectory& from) { - CopyFrom(from); - return *this; - } - inline ChannelDirectory& operator=(ChannelDirectory&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ChannelDirectory& default_instance() { - return *reinterpret_cast( - &_ChannelDirectory_default_instance_); - } - static constexpr int kIndexInFileMessages = 25; - friend void swap(ChannelDirectory& a, ChannelDirectory& b) { a.Swap(&b); } - inline void Swap(ChannelDirectory* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ChannelDirectory* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChannelDirectory* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ChannelDirectory& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ChannelDirectory& from) { ChannelDirectory::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ChannelDirectory* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ChannelDirectory"; } - - explicit ChannelDirectory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ChannelDirectory(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ChannelDirectory& from); - ChannelDirectory( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ChannelDirectory&& from) noexcept - : ChannelDirectory(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kChannelsFieldNumber = 2, - kServerIdFieldNumber = 1, - }; - // repeated .subspace.ChannelInfoProto channels = 2; - int channels_size() const; - private: - int _internal_channels_size() const; - - public: - void clear_channels() ; - ::subspace::ChannelInfoProto* PROTOBUF_NONNULL mutable_channels(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL mutable_channels(); - - private: - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& _internal_channels() const; - ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL _internal_mutable_channels(); - public: - const ::subspace::ChannelInfoProto& channels(int index) const; - ::subspace::ChannelInfoProto* PROTOBUF_NONNULL add_channels(); - const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& channels() const; - // string server_id = 1; - void clear_server_id() ; - const ::std::string& server_id() const; - template - void set_server_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_server_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_server_id(); - void set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_server_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_server_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_server_id(); - - public: - // @@protoc_insertion_point(class_scope:subspace.ChannelDirectory) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 43, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ChannelDirectory& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::subspace::ChannelInfoProto > channels_; - ::google::protobuf::internal::ArenaStringPtr server_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ChannelDirectory_class_data_; -// ------------------------------------------------------------------- - -class ShadowRegisterClientBuffer final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowRegisterClientBuffer) */ { - public: - inline ShadowRegisterClientBuffer() : ShadowRegisterClientBuffer(nullptr) {} - ~ShadowRegisterClientBuffer() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowRegisterClientBuffer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowRegisterClientBuffer)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowRegisterClientBuffer(::google::protobuf::internal::ConstantInitialized); - - inline ShadowRegisterClientBuffer(const ShadowRegisterClientBuffer& from) : ShadowRegisterClientBuffer(nullptr, from) {} - inline ShadowRegisterClientBuffer(ShadowRegisterClientBuffer&& from) noexcept - : ShadowRegisterClientBuffer(nullptr, ::std::move(from)) {} - inline ShadowRegisterClientBuffer& operator=(const ShadowRegisterClientBuffer& from) { - CopyFrom(from); - return *this; - } - inline ShadowRegisterClientBuffer& operator=(ShadowRegisterClientBuffer&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowRegisterClientBuffer& default_instance() { - return *reinterpret_cast( - &_ShadowRegisterClientBuffer_default_instance_); - } - static constexpr int kIndexInFileMessages = 59; - friend void swap(ShadowRegisterClientBuffer& a, ShadowRegisterClientBuffer& b) { a.Swap(&b); } - inline void Swap(ShadowRegisterClientBuffer* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowRegisterClientBuffer* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowRegisterClientBuffer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowRegisterClientBuffer& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowRegisterClientBuffer& from) { ShadowRegisterClientBuffer::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowRegisterClientBuffer* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowRegisterClientBuffer"; } - - explicit ShadowRegisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowRegisterClientBuffer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowRegisterClientBuffer& from); - ShadowRegisterClientBuffer( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowRegisterClientBuffer&& from) noexcept - : ShadowRegisterClientBuffer(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMetadataFieldNumber = 1, - kHasFdFieldNumber = 2, - kFdIndexFieldNumber = 3, - }; - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - bool has_metadata() const; - void clear_metadata() ; - const ::subspace::ClientBufferHandleMetadataProto& metadata() const; - [[nodiscard]] ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE release_metadata(); - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL mutable_metadata(); - void set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE unsafe_arena_release_metadata(); - - private: - const ::subspace::ClientBufferHandleMetadataProto& _internal_metadata() const; - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL _internal_mutable_metadata(); - - public: - // bool has_fd = 2; - void clear_has_fd() ; - bool has_fd() const; - void set_has_fd(bool value); - - private: - bool _internal_has_fd() const; - void _internal_set_has_fd(bool value); - - public: - // int32 fd_index = 3; - void clear_fd_index() ; - ::int32_t fd_index() const; - void set_fd_index(::int32_t value); - - private: - ::int32_t _internal_fd_index() const; - void _internal_set_fd_index(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.ShadowRegisterClientBuffer) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowRegisterClientBuffer& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE metadata_; - bool has_fd_; - ::int32_t fd_index_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowRegisterClientBuffer_class_data_; -// ------------------------------------------------------------------- - -class RpcOpenResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcOpenResponse) */ { - public: - inline RpcOpenResponse() : RpcOpenResponse(nullptr) {} - ~RpcOpenResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcOpenResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcOpenResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcOpenResponse(::google::protobuf::internal::ConstantInitialized); - - inline RpcOpenResponse(const RpcOpenResponse& from) : RpcOpenResponse(nullptr, from) {} - inline RpcOpenResponse(RpcOpenResponse&& from) noexcept - : RpcOpenResponse(nullptr, ::std::move(from)) {} - inline RpcOpenResponse& operator=(const RpcOpenResponse& from) { - CopyFrom(from); - return *this; - } - inline RpcOpenResponse& operator=(RpcOpenResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcOpenResponse& default_instance() { - return *reinterpret_cast( - &_RpcOpenResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 39; - friend void swap(RpcOpenResponse& a, RpcOpenResponse& b) { a.Swap(&b); } - inline void Swap(RpcOpenResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcOpenResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcOpenResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcOpenResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcOpenResponse& from) { RpcOpenResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcOpenResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcOpenResponse"; } - - explicit RpcOpenResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcOpenResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcOpenResponse& from); - RpcOpenResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcOpenResponse&& from) noexcept - : RpcOpenResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - using RequestChannel = RpcOpenResponse_RequestChannel; - using ResponseChannel = RpcOpenResponse_ResponseChannel; - using Method = RpcOpenResponse_Method; - - // accessors ------------------------------------------------------- - enum : int { - kMethodsFieldNumber = 2, - kClientIdFieldNumber = 3, - kSessionIdFieldNumber = 1, - }; - // repeated .subspace.RpcOpenResponse.Method methods = 2; - int methods_size() const; - private: - int _internal_methods_size() const; - - public: - void clear_methods() ; - ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL mutable_methods(int index); - ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL mutable_methods(); - - private: - const ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>& _internal_methods() const; - ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL _internal_mutable_methods(); - public: - const ::subspace::RpcOpenResponse_Method& methods(int index) const; - ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL add_methods(); - const ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>& methods() const; - // uint64 client_id = 3; - void clear_client_id() ; - ::uint64_t client_id() const; - void set_client_id(::uint64_t value); - - private: - ::uint64_t _internal_client_id() const; - void _internal_set_client_id(::uint64_t value); - - public: - // int32 session_id = 1; - void clear_session_id() ; - ::int32_t session_id() const; - void set_session_id(::int32_t value); - - private: - ::int32_t _internal_session_id() const; - void _internal_set_session_id(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RpcOpenResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcOpenResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::subspace::RpcOpenResponse_Method > methods_; - ::uint64_t client_id_; - ::int32_t session_id_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcOpenResponse_class_data_; -// ------------------------------------------------------------------- - -class RegisterClientBufferRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RegisterClientBufferRequest) */ { - public: - inline RegisterClientBufferRequest() : RegisterClientBufferRequest(nullptr) {} - ~RegisterClientBufferRequest() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RegisterClientBufferRequest* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RegisterClientBufferRequest)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RegisterClientBufferRequest(::google::protobuf::internal::ConstantInitialized); - - inline RegisterClientBufferRequest(const RegisterClientBufferRequest& from) : RegisterClientBufferRequest(nullptr, from) {} - inline RegisterClientBufferRequest(RegisterClientBufferRequest&& from) noexcept - : RegisterClientBufferRequest(nullptr, ::std::move(from)) {} - inline RegisterClientBufferRequest& operator=(const RegisterClientBufferRequest& from) { - CopyFrom(from); - return *this; - } - inline RegisterClientBufferRequest& operator=(RegisterClientBufferRequest&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RegisterClientBufferRequest& default_instance() { - return *reinterpret_cast( - &_RegisterClientBufferRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 17; - friend void swap(RegisterClientBufferRequest& a, RegisterClientBufferRequest& b) { a.Swap(&b); } - inline void Swap(RegisterClientBufferRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RegisterClientBufferRequest* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RegisterClientBufferRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RegisterClientBufferRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RegisterClientBufferRequest& from) { RegisterClientBufferRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RegisterClientBufferRequest* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RegisterClientBufferRequest"; } - - explicit RegisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RegisterClientBufferRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RegisterClientBufferRequest& from); - RegisterClientBufferRequest( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RegisterClientBufferRequest&& from) noexcept - : RegisterClientBufferRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMetadataFieldNumber = 1, - kHasFdFieldNumber = 2, - kFdIndexFieldNumber = 3, - }; - // .subspace.ClientBufferHandleMetadataProto metadata = 1; - bool has_metadata() const; - void clear_metadata() ; - const ::subspace::ClientBufferHandleMetadataProto& metadata() const; - [[nodiscard]] ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE release_metadata(); - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL mutable_metadata(); - void set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value); - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE unsafe_arena_release_metadata(); - - private: - const ::subspace::ClientBufferHandleMetadataProto& _internal_metadata() const; - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL _internal_mutable_metadata(); - - public: - // bool has_fd = 2; - void clear_has_fd() ; - bool has_fd() const; - void set_has_fd(bool value); - - private: - bool _internal_has_fd() const; - void _internal_set_has_fd(bool value); - - public: - // int32 fd_index = 3; - void clear_fd_index() ; - ::int32_t fd_index() const; - void set_fd_index(::int32_t value); - - private: - ::int32_t _internal_fd_index() const; - void _internal_set_fd_index(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:subspace.RegisterClientBufferRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RegisterClientBufferRequest& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE metadata_; - bool has_fd_; - ::int32_t fd_index_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RegisterClientBufferRequest_class_data_; -// ------------------------------------------------------------------- - -class GetClientBuffersResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.GetClientBuffersResponse) */ { - public: - inline GetClientBuffersResponse() : GetClientBuffersResponse(nullptr) {} - ~GetClientBuffersResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GetClientBuffersResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GetClientBuffersResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GetClientBuffersResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetClientBuffersResponse(const GetClientBuffersResponse& from) : GetClientBuffersResponse(nullptr, from) {} - inline GetClientBuffersResponse(GetClientBuffersResponse&& from) noexcept - : GetClientBuffersResponse(nullptr, ::std::move(from)) {} - inline GetClientBuffersResponse& operator=(const GetClientBuffersResponse& from) { - CopyFrom(from); - return *this; - } - inline GetClientBuffersResponse& operator=(GetClientBuffersResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetClientBuffersResponse& default_instance() { - return *reinterpret_cast( - &_GetClientBuffersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 21; - friend void swap(GetClientBuffersResponse& a, GetClientBuffersResponse& b) { a.Swap(&b); } - inline void Swap(GetClientBuffersResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetClientBuffersResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetClientBuffersResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetClientBuffersResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetClientBuffersResponse& from) { GetClientBuffersResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GetClientBuffersResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.GetClientBuffersResponse"; } - - explicit GetClientBuffersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GetClientBuffersResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GetClientBuffersResponse& from); - GetClientBuffersResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GetClientBuffersResponse&& from) noexcept - : GetClientBuffersResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMetadataFieldNumber = 2, - kFdIndexesFieldNumber = 3, - kErrorFieldNumber = 1, - }; - // repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; - int metadata_size() const; - private: - int _internal_metadata_size() const; - - public: - void clear_metadata() ; - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL mutable_metadata(int index); - ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL mutable_metadata(); - - private: - const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& _internal_metadata() const; - ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL _internal_mutable_metadata(); - public: - const ::subspace::ClientBufferHandleMetadataProto& metadata(int index) const; - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL add_metadata(); - const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& metadata() const; - // repeated int32 fd_indexes = 3; - int fd_indexes_size() const; - private: - int _internal_fd_indexes_size() const; - - public: - void clear_fd_indexes() ; - ::int32_t fd_indexes(int index) const; - void set_fd_indexes(int index, ::int32_t value); - void add_fd_indexes(::int32_t value); - const ::google::protobuf::RepeatedField<::int32_t>& fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL mutable_fd_indexes(); - - private: - const ::google::protobuf::RepeatedField<::int32_t>& _internal_fd_indexes() const; - ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL _internal_mutable_fd_indexes(); - - public: - // string error = 1; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // @@protoc_insertion_point(class_scope:subspace.GetClientBuffersResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 1, 47, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GetClientBuffersResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::subspace::ClientBufferHandleMetadataProto > metadata_; - ::google::protobuf::RepeatedField<::int32_t> fd_indexes_; - ::google::protobuf::internal::CachedSize _fd_indexes_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull GetClientBuffersResponse_class_data_; -// ------------------------------------------------------------------- - -class Discovery final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Discovery) */ { - public: - inline Discovery() : Discovery(nullptr) {} - ~Discovery() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Discovery* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Discovery)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Discovery(::google::protobuf::internal::ConstantInitialized); - - inline Discovery(const Discovery& from) : Discovery(nullptr, from) {} - inline Discovery(Discovery&& from) noexcept - : Discovery(nullptr, ::std::move(from)) {} - inline Discovery& operator=(const Discovery& from) { - CopyFrom(from); - return *this; - } - inline Discovery& operator=(Discovery&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Discovery& default_instance() { - return *reinterpret_cast( - &_Discovery_default_instance_); - } - enum DataCase { - kQuery = 3, - kAdvertise = 4, - kSubscribe = 5, - DATA_NOT_SET = 0, - }; - static constexpr int kIndexInFileMessages = 34; - friend void swap(Discovery& a, Discovery& b) { a.Swap(&b); } - inline void Swap(Discovery* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Discovery* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Discovery* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Discovery& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Discovery& from) { Discovery::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Discovery* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Discovery"; } - - explicit Discovery(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Discovery(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Discovery& from); - Discovery( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Discovery&& from) noexcept - : Discovery(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - using Query = Discovery_Query; - using Advertise = Discovery_Advertise; - using Subscribe = Discovery_Subscribe; - - // accessors ------------------------------------------------------- - enum : int { - kServerIdFieldNumber = 1, - kPortFieldNumber = 2, - kQueryFieldNumber = 3, - kAdvertiseFieldNumber = 4, - kSubscribeFieldNumber = 5, - }; - // string server_id = 1; - void clear_server_id() ; - const ::std::string& server_id() const; - template - void set_server_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_server_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_server_id(); - void set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_server_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_server_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_server_id(); - - public: - // int32 port = 2; - void clear_port() ; - ::int32_t port() const; - void set_port(::int32_t value); - - private: - ::int32_t _internal_port() const; - void _internal_set_port(::int32_t value); - - public: - // .subspace.Discovery.Query query = 3; - bool has_query() const; - private: - bool _internal_has_query() const; - - public: - void clear_query() ; - const ::subspace::Discovery_Query& query() const; - [[nodiscard]] ::subspace::Discovery_Query* PROTOBUF_NULLABLE release_query(); - ::subspace::Discovery_Query* PROTOBUF_NONNULL mutable_query(); - void set_allocated_query(::subspace::Discovery_Query* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_query(::subspace::Discovery_Query* PROTOBUF_NULLABLE value); - ::subspace::Discovery_Query* PROTOBUF_NULLABLE unsafe_arena_release_query(); - - private: - const ::subspace::Discovery_Query& _internal_query() const; - ::subspace::Discovery_Query* PROTOBUF_NONNULL _internal_mutable_query(); - - public: - // .subspace.Discovery.Advertise advertise = 4; - bool has_advertise() const; - private: - bool _internal_has_advertise() const; - - public: - void clear_advertise() ; - const ::subspace::Discovery_Advertise& advertise() const; - [[nodiscard]] ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE release_advertise(); - ::subspace::Discovery_Advertise* PROTOBUF_NONNULL mutable_advertise(); - void set_allocated_advertise(::subspace::Discovery_Advertise* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_advertise(::subspace::Discovery_Advertise* PROTOBUF_NULLABLE value); - ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE unsafe_arena_release_advertise(); - - private: - const ::subspace::Discovery_Advertise& _internal_advertise() const; - ::subspace::Discovery_Advertise* PROTOBUF_NONNULL _internal_mutable_advertise(); - - public: - // .subspace.Discovery.Subscribe subscribe = 5; - bool has_subscribe() const; - private: - bool _internal_has_subscribe() const; - - public: - void clear_subscribe() ; - const ::subspace::Discovery_Subscribe& subscribe() const; - [[nodiscard]] ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE release_subscribe(); - ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL mutable_subscribe(); - void set_allocated_subscribe(::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_subscribe(::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE value); - ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE unsafe_arena_release_subscribe(); - - private: - const ::subspace::Discovery_Subscribe& _internal_subscribe() const; - ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL _internal_mutable_subscribe(); - - public: - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:subspace.Discovery) - private: - class _Internal; - void set_has_query(); - void set_has_advertise(); - void set_has_subscribe(); - inline bool has_data() const; - inline void clear_has_data(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 5, - 3, 36, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Discovery& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr server_id_; - ::int32_t port_; - union DataUnion { - constexpr DataUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::Message* PROTOBUF_NULLABLE query_; - ::google::protobuf::Message* PROTOBUF_NULLABLE advertise_; - ::google::protobuf::Message* PROTOBUF_NULLABLE subscribe_; - } data_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Discovery_class_data_; -// ------------------------------------------------------------------- - -class ShadowEvent final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.ShadowEvent) */ { - public: - inline ShadowEvent() : ShadowEvent(nullptr) {} - ~ShadowEvent() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ShadowEvent* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ShadowEvent)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ShadowEvent(::google::protobuf::internal::ConstantInitialized); - - inline ShadowEvent(const ShadowEvent& from) : ShadowEvent(nullptr, from) {} - inline ShadowEvent(ShadowEvent&& from) noexcept - : ShadowEvent(nullptr, ::std::move(from)) {} - inline ShadowEvent& operator=(const ShadowEvent& from) { - CopyFrom(from); - return *this; - } - inline ShadowEvent& operator=(ShadowEvent&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ShadowEvent& default_instance() { - return *reinterpret_cast( - &_ShadowEvent_default_instance_); - } - enum EventCase { - kInit = 1, - kCreateChannel = 2, - kRemoveChannel = 3, - kAddPublisher = 4, - kRemovePublisher = 5, - kAddSubscriber = 6, - kRemoveSubscriber = 7, - kStateDump = 8, - kStateDone = 9, - kRegisterClientBuffer = 10, - kUnregisterClientBuffer = 11, - kUpdateChannelOptions = 12, - EVENT_NOT_SET = 0, - }; - static constexpr int kIndexInFileMessages = 49; - friend void swap(ShadowEvent& a, ShadowEvent& b) { a.Swap(&b); } - inline void Swap(ShadowEvent* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ShadowEvent* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ShadowEvent* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ShadowEvent& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ShadowEvent& from) { ShadowEvent::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ShadowEvent* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.ShadowEvent"; } - - explicit ShadowEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ShadowEvent(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ShadowEvent& from); - ShadowEvent( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ShadowEvent&& from) noexcept - : ShadowEvent(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kInitFieldNumber = 1, - kCreateChannelFieldNumber = 2, - kRemoveChannelFieldNumber = 3, - kAddPublisherFieldNumber = 4, - kRemovePublisherFieldNumber = 5, - kAddSubscriberFieldNumber = 6, - kRemoveSubscriberFieldNumber = 7, - kStateDumpFieldNumber = 8, - kStateDoneFieldNumber = 9, - kRegisterClientBufferFieldNumber = 10, - kUnregisterClientBufferFieldNumber = 11, - kUpdateChannelOptionsFieldNumber = 12, - }; - // .subspace.ShadowInit init = 1; - bool has_init() const; - private: - bool _internal_has_init() const; - - public: - void clear_init() ; - const ::subspace::ShadowInit& init() const; - [[nodiscard]] ::subspace::ShadowInit* PROTOBUF_NULLABLE release_init(); - ::subspace::ShadowInit* PROTOBUF_NONNULL mutable_init(); - void set_allocated_init(::subspace::ShadowInit* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_init(::subspace::ShadowInit* PROTOBUF_NULLABLE value); - ::subspace::ShadowInit* PROTOBUF_NULLABLE unsafe_arena_release_init(); - - private: - const ::subspace::ShadowInit& _internal_init() const; - ::subspace::ShadowInit* PROTOBUF_NONNULL _internal_mutable_init(); - - public: - // .subspace.ShadowCreateChannel create_channel = 2; - bool has_create_channel() const; - private: - bool _internal_has_create_channel() const; - - public: - void clear_create_channel() ; - const ::subspace::ShadowCreateChannel& create_channel() const; - [[nodiscard]] ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE release_create_channel(); - ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL mutable_create_channel(); - void set_allocated_create_channel(::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_create_channel(::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE value); - ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE unsafe_arena_release_create_channel(); - - private: - const ::subspace::ShadowCreateChannel& _internal_create_channel() const; - ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL _internal_mutable_create_channel(); - - public: - // .subspace.ShadowRemoveChannel remove_channel = 3; - bool has_remove_channel() const; - private: - bool _internal_has_remove_channel() const; - - public: - void clear_remove_channel() ; - const ::subspace::ShadowRemoveChannel& remove_channel() const; - [[nodiscard]] ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE release_remove_channel(); - ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL mutable_remove_channel(); - void set_allocated_remove_channel(::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_remove_channel(::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE value); - ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE unsafe_arena_release_remove_channel(); - - private: - const ::subspace::ShadowRemoveChannel& _internal_remove_channel() const; - ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL _internal_mutable_remove_channel(); - - public: - // .subspace.ShadowAddPublisher add_publisher = 4; - bool has_add_publisher() const; - private: - bool _internal_has_add_publisher() const; - - public: - void clear_add_publisher() ; - const ::subspace::ShadowAddPublisher& add_publisher() const; - [[nodiscard]] ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE release_add_publisher(); - ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL mutable_add_publisher(); - void set_allocated_add_publisher(::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_add_publisher(::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE value); - ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE unsafe_arena_release_add_publisher(); - - private: - const ::subspace::ShadowAddPublisher& _internal_add_publisher() const; - ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL _internal_mutable_add_publisher(); - - public: - // .subspace.ShadowRemovePublisher remove_publisher = 5; - bool has_remove_publisher() const; - private: - bool _internal_has_remove_publisher() const; - - public: - void clear_remove_publisher() ; - const ::subspace::ShadowRemovePublisher& remove_publisher() const; - [[nodiscard]] ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE release_remove_publisher(); - ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL mutable_remove_publisher(); - void set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_remove_publisher(::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE value); - ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE unsafe_arena_release_remove_publisher(); - - private: - const ::subspace::ShadowRemovePublisher& _internal_remove_publisher() const; - ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL _internal_mutable_remove_publisher(); - - public: - // .subspace.ShadowAddSubscriber add_subscriber = 6; - bool has_add_subscriber() const; - private: - bool _internal_has_add_subscriber() const; - - public: - void clear_add_subscriber() ; - const ::subspace::ShadowAddSubscriber& add_subscriber() const; - [[nodiscard]] ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE release_add_subscriber(); - ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL mutable_add_subscriber(); - void set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_add_subscriber(::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE value); - ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE unsafe_arena_release_add_subscriber(); - - private: - const ::subspace::ShadowAddSubscriber& _internal_add_subscriber() const; - ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL _internal_mutable_add_subscriber(); - - public: - // .subspace.ShadowRemoveSubscriber remove_subscriber = 7; - bool has_remove_subscriber() const; - private: - bool _internal_has_remove_subscriber() const; - - public: - void clear_remove_subscriber() ; - const ::subspace::ShadowRemoveSubscriber& remove_subscriber() const; - [[nodiscard]] ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE release_remove_subscriber(); - ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL mutable_remove_subscriber(); - void set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_remove_subscriber(::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE value); - ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE unsafe_arena_release_remove_subscriber(); - - private: - const ::subspace::ShadowRemoveSubscriber& _internal_remove_subscriber() const; - ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL _internal_mutable_remove_subscriber(); - - public: - // .subspace.ShadowStateDump state_dump = 8; - bool has_state_dump() const; - private: - bool _internal_has_state_dump() const; - - public: - void clear_state_dump() ; - const ::subspace::ShadowStateDump& state_dump() const; - [[nodiscard]] ::subspace::ShadowStateDump* PROTOBUF_NULLABLE release_state_dump(); - ::subspace::ShadowStateDump* PROTOBUF_NONNULL mutable_state_dump(); - void set_allocated_state_dump(::subspace::ShadowStateDump* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_state_dump(::subspace::ShadowStateDump* PROTOBUF_NULLABLE value); - ::subspace::ShadowStateDump* PROTOBUF_NULLABLE unsafe_arena_release_state_dump(); - - private: - const ::subspace::ShadowStateDump& _internal_state_dump() const; - ::subspace::ShadowStateDump* PROTOBUF_NONNULL _internal_mutable_state_dump(); - - public: - // .subspace.ShadowStateDone state_done = 9; - bool has_state_done() const; - private: - bool _internal_has_state_done() const; - - public: - void clear_state_done() ; - const ::subspace::ShadowStateDone& state_done() const; - [[nodiscard]] ::subspace::ShadowStateDone* PROTOBUF_NULLABLE release_state_done(); - ::subspace::ShadowStateDone* PROTOBUF_NONNULL mutable_state_done(); - void set_allocated_state_done(::subspace::ShadowStateDone* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_state_done(::subspace::ShadowStateDone* PROTOBUF_NULLABLE value); - ::subspace::ShadowStateDone* PROTOBUF_NULLABLE unsafe_arena_release_state_done(); - - private: - const ::subspace::ShadowStateDone& _internal_state_done() const; - ::subspace::ShadowStateDone* PROTOBUF_NONNULL _internal_mutable_state_done(); - - public: - // .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; - bool has_register_client_buffer() const; - private: - bool _internal_has_register_client_buffer() const; - - public: - void clear_register_client_buffer() ; - const ::subspace::ShadowRegisterClientBuffer& register_client_buffer() const; - [[nodiscard]] ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE release_register_client_buffer(); - ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL mutable_register_client_buffer(); - void set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_register_client_buffer(::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE value); - ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE unsafe_arena_release_register_client_buffer(); - - private: - const ::subspace::ShadowRegisterClientBuffer& _internal_register_client_buffer() const; - ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL _internal_mutable_register_client_buffer(); - - public: - // .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; - bool has_unregister_client_buffer() const; - private: - bool _internal_has_unregister_client_buffer() const; - - public: - void clear_unregister_client_buffer() ; - const ::subspace::ShadowUnregisterClientBuffer& unregister_client_buffer() const; - [[nodiscard]] ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE release_unregister_client_buffer(); - ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL mutable_unregister_client_buffer(); - void set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_unregister_client_buffer(::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE value); - ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE unsafe_arena_release_unregister_client_buffer(); - - private: - const ::subspace::ShadowUnregisterClientBuffer& _internal_unregister_client_buffer() const; - ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL _internal_mutable_unregister_client_buffer(); - - public: - // .subspace.ShadowUpdateChannelOptions update_channel_options = 12; - bool has_update_channel_options() const; - private: - bool _internal_has_update_channel_options() const; - - public: - void clear_update_channel_options() ; - const ::subspace::ShadowUpdateChannelOptions& update_channel_options() const; - [[nodiscard]] ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE release_update_channel_options(); - ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL mutable_update_channel_options(); - void set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_update_channel_options(::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE value); - ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE unsafe_arena_release_update_channel_options(); - - private: - const ::subspace::ShadowUpdateChannelOptions& _internal_update_channel_options() const; - ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL _internal_mutable_update_channel_options(); - - public: - void clear_event(); - EventCase event_case() const; - // @@protoc_insertion_point(class_scope:subspace.ShadowEvent) - private: - class _Internal; - void set_has_init(); - void set_has_create_channel(); - void set_has_remove_channel(); - void set_has_add_publisher(); - void set_has_remove_publisher(); - void set_has_add_subscriber(); - void set_has_remove_subscriber(); - void set_has_state_dump(); - void set_has_state_done(); - void set_has_register_client_buffer(); - void set_has_unregister_client_buffer(); - void set_has_update_channel_options(); - inline bool has_event() const; - inline void clear_has_event(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 12, - 12, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ShadowEvent& from_msg); - union EventUnion { - constexpr EventUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::Message* PROTOBUF_NULLABLE init_; - ::google::protobuf::Message* PROTOBUF_NULLABLE create_channel_; - ::google::protobuf::Message* PROTOBUF_NULLABLE remove_channel_; - ::google::protobuf::Message* PROTOBUF_NULLABLE add_publisher_; - ::google::protobuf::Message* PROTOBUF_NULLABLE remove_publisher_; - ::google::protobuf::Message* PROTOBUF_NULLABLE add_subscriber_; - ::google::protobuf::Message* PROTOBUF_NULLABLE remove_subscriber_; - ::google::protobuf::Message* PROTOBUF_NULLABLE state_dump_; - ::google::protobuf::Message* PROTOBUF_NULLABLE state_done_; - ::google::protobuf::Message* PROTOBUF_NULLABLE register_client_buffer_; - ::google::protobuf::Message* PROTOBUF_NULLABLE unregister_client_buffer_; - ::google::protobuf::Message* PROTOBUF_NULLABLE update_channel_options_; - } event_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull ShadowEvent_class_data_; -// ------------------------------------------------------------------- - -class RpcServerResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.RpcServerResponse) */ { - public: - inline RpcServerResponse() : RpcServerResponse(nullptr) {} - ~RpcServerResponse() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(RpcServerResponse* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(RpcServerResponse)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR RpcServerResponse(::google::protobuf::internal::ConstantInitialized); - - inline RpcServerResponse(const RpcServerResponse& from) : RpcServerResponse(nullptr, from) {} - inline RpcServerResponse(RpcServerResponse&& from) noexcept - : RpcServerResponse(nullptr, ::std::move(from)) {} - inline RpcServerResponse& operator=(const RpcServerResponse& from) { - CopyFrom(from); - return *this; - } - inline RpcServerResponse& operator=(RpcServerResponse&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RpcServerResponse& default_instance() { - return *reinterpret_cast( - &_RpcServerResponse_default_instance_); - } - enum ResponseCase { - kOpen = 3, - kClose = 4, - RESPONSE_NOT_SET = 0, - }; - static constexpr int kIndexInFileMessages = 43; - friend void swap(RpcServerResponse& a, RpcServerResponse& b) { a.Swap(&b); } - inline void Swap(RpcServerResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RpcServerResponse* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RpcServerResponse* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RpcServerResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RpcServerResponse& from) { RpcServerResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(RpcServerResponse* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.RpcServerResponse"; } - - explicit RpcServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - RpcServerResponse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const RpcServerResponse& from); - RpcServerResponse( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, RpcServerResponse&& from) noexcept - : RpcServerResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kErrorFieldNumber = 5, - kClientIdFieldNumber = 1, - kRequestIdFieldNumber = 2, - kOpenFieldNumber = 3, - kCloseFieldNumber = 4, - }; - // string error = 5; - void clear_error() ; - const ::std::string& error() const; - template - void set_error(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error(); - void set_allocated_error(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error(); - - public: - // uint64 client_id = 1; - void clear_client_id() ; - ::uint64_t client_id() const; - void set_client_id(::uint64_t value); - - private: - ::uint64_t _internal_client_id() const; - void _internal_set_client_id(::uint64_t value); - - public: - // int32 request_id = 2; - void clear_request_id() ; - ::int32_t request_id() const; - void set_request_id(::int32_t value); - - private: - ::int32_t _internal_request_id() const; - void _internal_set_request_id(::int32_t value); - - public: - // .subspace.RpcOpenResponse open = 3; - bool has_open() const; - private: - bool _internal_has_open() const; - - public: - void clear_open() ; - const ::subspace::RpcOpenResponse& open() const; - [[nodiscard]] ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE release_open(); - ::subspace::RpcOpenResponse* PROTOBUF_NONNULL mutable_open(); - void set_allocated_open(::subspace::RpcOpenResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_open(::subspace::RpcOpenResponse* PROTOBUF_NULLABLE value); - ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE unsafe_arena_release_open(); - - private: - const ::subspace::RpcOpenResponse& _internal_open() const; - ::subspace::RpcOpenResponse* PROTOBUF_NONNULL _internal_mutable_open(); - - public: - // .subspace.RpcCloseResponse close = 4; - bool has_close() const; - private: - bool _internal_has_close() const; - - public: - void clear_close() ; - const ::subspace::RpcCloseResponse& close() const; - [[nodiscard]] ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE release_close(); - ::subspace::RpcCloseResponse* PROTOBUF_NONNULL mutable_close(); - void set_allocated_close(::subspace::RpcCloseResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_close(::subspace::RpcCloseResponse* PROTOBUF_NULLABLE value); - ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE unsafe_arena_release_close(); - - private: - const ::subspace::RpcCloseResponse& _internal_close() const; - ::subspace::RpcCloseResponse* PROTOBUF_NONNULL _internal_mutable_close(); - - public: - void clear_response(); - ResponseCase response_case() const; - // @@protoc_insertion_point(class_scope:subspace.RpcServerResponse) - private: - class _Internal; - void set_has_open(); - void set_has_close(); - inline bool has_response() const; - inline void clear_has_response(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 5, - 2, 40, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const RpcServerResponse& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr error_; - ::uint64_t client_id_; - ::int32_t request_id_; - union ResponseUnion { - constexpr ResponseUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE open_; - ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE close_; - } response_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull RpcServerResponse_class_data_; -// ------------------------------------------------------------------- - -class Response final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Response) */ { - public: - inline Response() : Response(nullptr) {} - ~Response() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Response* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Response)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Response(::google::protobuf::internal::ConstantInitialized); - - inline Response(const Response& from) : Response(nullptr, from) {} - inline Response(Response&& from) noexcept - : Response(nullptr, ::std::move(from)) {} - inline Response& operator=(const Response& from) { - CopyFrom(from); - return *this; - } - inline Response& operator=(Response&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Response& default_instance() { - return *reinterpret_cast( - &_Response_default_instance_); - } - enum ResponseCase { - kInit = 1, - kCreatePublisher = 2, - kCreateSubscriber = 3, - kGetTriggers = 4, - kRemovePublisher = 5, - kRemoveSubscriber = 6, - kGetChannelInfo = 9, - kGetChannelStats = 10, - kGetClientBuffers = 11, - kRegisterClientBuffer = 12, - RESPONSE_NOT_SET = 0, - }; - static constexpr int kIndexInFileMessages = 23; - friend void swap(Response& a, Response& b) { a.Swap(&b); } - inline void Swap(Response* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Response* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Response* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Response& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Response& from) { Response::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Response* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Response"; } - - explicit Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Response& from); - Response( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Response&& from) noexcept - : Response(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kInitFieldNumber = 1, - kCreatePublisherFieldNumber = 2, - kCreateSubscriberFieldNumber = 3, - kGetTriggersFieldNumber = 4, - kRemovePublisherFieldNumber = 5, - kRemoveSubscriberFieldNumber = 6, - kGetChannelInfoFieldNumber = 9, - kGetChannelStatsFieldNumber = 10, - kGetClientBuffersFieldNumber = 11, - kRegisterClientBufferFieldNumber = 12, - }; - // .subspace.InitResponse init = 1; - bool has_init() const; - private: - bool _internal_has_init() const; - - public: - void clear_init() ; - const ::subspace::InitResponse& init() const; - [[nodiscard]] ::subspace::InitResponse* PROTOBUF_NULLABLE release_init(); - ::subspace::InitResponse* PROTOBUF_NONNULL mutable_init(); - void set_allocated_init(::subspace::InitResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_init(::subspace::InitResponse* PROTOBUF_NULLABLE value); - ::subspace::InitResponse* PROTOBUF_NULLABLE unsafe_arena_release_init(); - - private: - const ::subspace::InitResponse& _internal_init() const; - ::subspace::InitResponse* PROTOBUF_NONNULL _internal_mutable_init(); - - public: - // .subspace.CreatePublisherResponse create_publisher = 2; - bool has_create_publisher() const; - private: - bool _internal_has_create_publisher() const; - - public: - void clear_create_publisher() ; - const ::subspace::CreatePublisherResponse& create_publisher() const; - [[nodiscard]] ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE release_create_publisher(); - ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL mutable_create_publisher(); - void set_allocated_create_publisher(::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE value); - ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE unsafe_arena_release_create_publisher(); - - private: - const ::subspace::CreatePublisherResponse& _internal_create_publisher() const; - ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL _internal_mutable_create_publisher(); - - public: - // .subspace.CreateSubscriberResponse create_subscriber = 3; - bool has_create_subscriber() const; - private: - bool _internal_has_create_subscriber() const; - - public: - void clear_create_subscriber() ; - const ::subspace::CreateSubscriberResponse& create_subscriber() const; - [[nodiscard]] ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE release_create_subscriber(); - ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL mutable_create_subscriber(); - void set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE value); - ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE unsafe_arena_release_create_subscriber(); - - private: - const ::subspace::CreateSubscriberResponse& _internal_create_subscriber() const; - ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL _internal_mutable_create_subscriber(); - - public: - // .subspace.GetTriggersResponse get_triggers = 4; - bool has_get_triggers() const; - private: - bool _internal_has_get_triggers() const; - - public: - void clear_get_triggers() ; - const ::subspace::GetTriggersResponse& get_triggers() const; - [[nodiscard]] ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE release_get_triggers(); - ::subspace::GetTriggersResponse* PROTOBUF_NONNULL mutable_get_triggers(); - void set_allocated_get_triggers(::subspace::GetTriggersResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersResponse* PROTOBUF_NULLABLE value); - ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_triggers(); - - private: - const ::subspace::GetTriggersResponse& _internal_get_triggers() const; - ::subspace::GetTriggersResponse* PROTOBUF_NONNULL _internal_mutable_get_triggers(); - - public: - // .subspace.RemovePublisherResponse remove_publisher = 5; - bool has_remove_publisher() const; - private: - bool _internal_has_remove_publisher() const; - - public: - void clear_remove_publisher() ; - const ::subspace::RemovePublisherResponse& remove_publisher() const; - [[nodiscard]] ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE release_remove_publisher(); - ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL mutable_remove_publisher(); - void set_allocated_remove_publisher(::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE value); - ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE unsafe_arena_release_remove_publisher(); - - private: - const ::subspace::RemovePublisherResponse& _internal_remove_publisher() const; - ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL _internal_mutable_remove_publisher(); - - public: - // .subspace.RemoveSubscriberResponse remove_subscriber = 6; - bool has_remove_subscriber() const; - private: - bool _internal_has_remove_subscriber() const; - - public: - void clear_remove_subscriber() ; - const ::subspace::RemoveSubscriberResponse& remove_subscriber() const; - [[nodiscard]] ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE release_remove_subscriber(); - ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL mutable_remove_subscriber(); - void set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE value); - ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE unsafe_arena_release_remove_subscriber(); - - private: - const ::subspace::RemoveSubscriberResponse& _internal_remove_subscriber() const; - ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL _internal_mutable_remove_subscriber(); - - public: - // .subspace.GetChannelInfoResponse get_channel_info = 9; - bool has_get_channel_info() const; - private: - bool _internal_has_get_channel_info() const; - - public: - void clear_get_channel_info() ; - const ::subspace::GetChannelInfoResponse& get_channel_info() const; - [[nodiscard]] ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE release_get_channel_info(); - ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL mutable_get_channel_info(); - void set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE value); - ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_info(); - - private: - const ::subspace::GetChannelInfoResponse& _internal_get_channel_info() const; - ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL _internal_mutable_get_channel_info(); - - public: - // .subspace.GetChannelStatsResponse get_channel_stats = 10; - bool has_get_channel_stats() const; - private: - bool _internal_has_get_channel_stats() const; - - public: - void clear_get_channel_stats() ; - const ::subspace::GetChannelStatsResponse& get_channel_stats() const; - [[nodiscard]] ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE release_get_channel_stats(); - ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL mutable_get_channel_stats(); - void set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE value); - ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_stats(); - - private: - const ::subspace::GetChannelStatsResponse& _internal_get_channel_stats() const; - ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL _internal_mutable_get_channel_stats(); - - public: - // .subspace.GetClientBuffersResponse get_client_buffers = 11; - bool has_get_client_buffers() const; - private: - bool _internal_has_get_client_buffers() const; - - public: - void clear_get_client_buffers() ; - const ::subspace::GetClientBuffersResponse& get_client_buffers() const; - [[nodiscard]] ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE release_get_client_buffers(); - ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL mutable_get_client_buffers(); - void set_allocated_get_client_buffers(::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_client_buffers(::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE value); - ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE unsafe_arena_release_get_client_buffers(); - - private: - const ::subspace::GetClientBuffersResponse& _internal_get_client_buffers() const; - ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL _internal_mutable_get_client_buffers(); - - public: - // .subspace.RegisterClientBufferResponse register_client_buffer = 12; - bool has_register_client_buffer() const; - private: - bool _internal_has_register_client_buffer() const; - - public: - void clear_register_client_buffer() ; - const ::subspace::RegisterClientBufferResponse& register_client_buffer() const; - [[nodiscard]] ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE release_register_client_buffer(); - ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL mutable_register_client_buffer(); - void set_allocated_register_client_buffer(::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_register_client_buffer(::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE value); - ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE unsafe_arena_release_register_client_buffer(); - - private: - const ::subspace::RegisterClientBufferResponse& _internal_register_client_buffer() const; - ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL _internal_mutable_register_client_buffer(); - - public: - void clear_response(); - ResponseCase response_case() const; - // @@protoc_insertion_point(class_scope:subspace.Response) - private: - class _Internal; - void set_has_init(); - void set_has_create_publisher(); - void set_has_create_subscriber(); - void set_has_get_triggers(); - void set_has_remove_publisher(); - void set_has_remove_subscriber(); - void set_has_get_channel_info(); - void set_has_get_channel_stats(); - void set_has_get_client_buffers(); - void set_has_register_client_buffer(); - inline bool has_response() const; - inline void clear_has_response(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 10, - 10, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Response& from_msg); - union ResponseUnion { - constexpr ResponseUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::Message* PROTOBUF_NULLABLE init_; - ::google::protobuf::Message* PROTOBUF_NULLABLE create_publisher_; - ::google::protobuf::Message* PROTOBUF_NULLABLE create_subscriber_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_triggers_; - ::google::protobuf::Message* PROTOBUF_NULLABLE remove_publisher_; - ::google::protobuf::Message* PROTOBUF_NULLABLE remove_subscriber_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_info_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_stats_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_client_buffers_; - ::google::protobuf::Message* PROTOBUF_NULLABLE register_client_buffer_; - } response_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; -// ------------------------------------------------------------------- - -class Request final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:subspace.Request) */ { - public: - inline Request() : Request(nullptr) {} - ~Request() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Request* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Request)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Request(::google::protobuf::internal::ConstantInitialized); - - inline Request(const Request& from) : Request(nullptr, from) {} - inline Request(Request&& from) noexcept - : Request(nullptr, ::std::move(from)) {} - inline Request& operator=(const Request& from) { - CopyFrom(from); - return *this; - } - inline Request& operator=(Request&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Request& default_instance() { - return *reinterpret_cast( - &_Request_default_instance_); - } - enum RequestCase { - kInit = 1, - kCreatePublisher = 2, - kCreateSubscriber = 3, - kGetTriggers = 4, - kRemovePublisher = 5, - kRemoveSubscriber = 6, - kGetChannelInfo = 9, - kGetChannelStats = 10, - kRegisterClientBuffer = 11, - kUnregisterClientBuffer = 12, - kGetClientBuffers = 13, - REQUEST_NOT_SET = 0, - }; - static constexpr int kIndexInFileMessages = 22; - friend void swap(Request& a, Request& b) { a.Swap(&b); } - inline void Swap(Request* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Request* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Request* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Request& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Request& from) { Request::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Request* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "subspace.Request"; } - - explicit Request(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Request(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Request& from); - Request( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Request&& from) noexcept - : Request(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kInitFieldNumber = 1, - kCreatePublisherFieldNumber = 2, - kCreateSubscriberFieldNumber = 3, - kGetTriggersFieldNumber = 4, - kRemovePublisherFieldNumber = 5, - kRemoveSubscriberFieldNumber = 6, - kGetChannelInfoFieldNumber = 9, - kGetChannelStatsFieldNumber = 10, - kRegisterClientBufferFieldNumber = 11, - kUnregisterClientBufferFieldNumber = 12, - kGetClientBuffersFieldNumber = 13, - }; - // .subspace.InitRequest init = 1; - bool has_init() const; - private: - bool _internal_has_init() const; - - public: - void clear_init() ; - const ::subspace::InitRequest& init() const; - [[nodiscard]] ::subspace::InitRequest* PROTOBUF_NULLABLE release_init(); - ::subspace::InitRequest* PROTOBUF_NONNULL mutable_init(); - void set_allocated_init(::subspace::InitRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_init(::subspace::InitRequest* PROTOBUF_NULLABLE value); - ::subspace::InitRequest* PROTOBUF_NULLABLE unsafe_arena_release_init(); - - private: - const ::subspace::InitRequest& _internal_init() const; - ::subspace::InitRequest* PROTOBUF_NONNULL _internal_mutable_init(); - - public: - // .subspace.CreatePublisherRequest create_publisher = 2; - bool has_create_publisher() const; - private: - bool _internal_has_create_publisher() const; - - public: - void clear_create_publisher() ; - const ::subspace::CreatePublisherRequest& create_publisher() const; - [[nodiscard]] ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE release_create_publisher(); - ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL mutable_create_publisher(); - void set_allocated_create_publisher(::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_create_publisher(::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE value); - ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE unsafe_arena_release_create_publisher(); - - private: - const ::subspace::CreatePublisherRequest& _internal_create_publisher() const; - ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL _internal_mutable_create_publisher(); - - public: - // .subspace.CreateSubscriberRequest create_subscriber = 3; - bool has_create_subscriber() const; - private: - bool _internal_has_create_subscriber() const; - - public: - void clear_create_subscriber() ; - const ::subspace::CreateSubscriberRequest& create_subscriber() const; - [[nodiscard]] ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE release_create_subscriber(); - ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL mutable_create_subscriber(); - void set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_create_subscriber(::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE value); - ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE unsafe_arena_release_create_subscriber(); - - private: - const ::subspace::CreateSubscriberRequest& _internal_create_subscriber() const; - ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL _internal_mutable_create_subscriber(); - - public: - // .subspace.GetTriggersRequest get_triggers = 4; - bool has_get_triggers() const; - private: - bool _internal_has_get_triggers() const; - - public: - void clear_get_triggers() ; - const ::subspace::GetTriggersRequest& get_triggers() const; - [[nodiscard]] ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE release_get_triggers(); - ::subspace::GetTriggersRequest* PROTOBUF_NONNULL mutable_get_triggers(); - void set_allocated_get_triggers(::subspace::GetTriggersRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_triggers(::subspace::GetTriggersRequest* PROTOBUF_NULLABLE value); - ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_triggers(); - - private: - const ::subspace::GetTriggersRequest& _internal_get_triggers() const; - ::subspace::GetTriggersRequest* PROTOBUF_NONNULL _internal_mutable_get_triggers(); - - public: - // .subspace.RemovePublisherRequest remove_publisher = 5; - bool has_remove_publisher() const; - private: - bool _internal_has_remove_publisher() const; - - public: - void clear_remove_publisher() ; - const ::subspace::RemovePublisherRequest& remove_publisher() const; - [[nodiscard]] ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE release_remove_publisher(); - ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL mutable_remove_publisher(); - void set_allocated_remove_publisher(::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_remove_publisher(::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE value); - ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE unsafe_arena_release_remove_publisher(); - - private: - const ::subspace::RemovePublisherRequest& _internal_remove_publisher() const; - ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL _internal_mutable_remove_publisher(); - - public: - // .subspace.RemoveSubscriberRequest remove_subscriber = 6; - bool has_remove_subscriber() const; - private: - bool _internal_has_remove_subscriber() const; - - public: - void clear_remove_subscriber() ; - const ::subspace::RemoveSubscriberRequest& remove_subscriber() const; - [[nodiscard]] ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE release_remove_subscriber(); - ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL mutable_remove_subscriber(); - void set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_remove_subscriber(::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE value); - ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE unsafe_arena_release_remove_subscriber(); - - private: - const ::subspace::RemoveSubscriberRequest& _internal_remove_subscriber() const; - ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL _internal_mutable_remove_subscriber(); - - public: - // .subspace.GetChannelInfoRequest get_channel_info = 9; - bool has_get_channel_info() const; - private: - bool _internal_has_get_channel_info() const; - - public: - void clear_get_channel_info() ; - const ::subspace::GetChannelInfoRequest& get_channel_info() const; - [[nodiscard]] ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE release_get_channel_info(); - ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL mutable_get_channel_info(); - void set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_channel_info(::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE value); - ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_info(); - - private: - const ::subspace::GetChannelInfoRequest& _internal_get_channel_info() const; - ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL _internal_mutable_get_channel_info(); - - public: - // .subspace.GetChannelStatsRequest get_channel_stats = 10; - bool has_get_channel_stats() const; - private: - bool _internal_has_get_channel_stats() const; - - public: - void clear_get_channel_stats() ; - const ::subspace::GetChannelStatsRequest& get_channel_stats() const; - [[nodiscard]] ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE release_get_channel_stats(); - ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL mutable_get_channel_stats(); - void set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_channel_stats(::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE value); - ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_channel_stats(); - - private: - const ::subspace::GetChannelStatsRequest& _internal_get_channel_stats() const; - ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL _internal_mutable_get_channel_stats(); - - public: - // .subspace.RegisterClientBufferRequest register_client_buffer = 11; - bool has_register_client_buffer() const; - private: - bool _internal_has_register_client_buffer() const; - - public: - void clear_register_client_buffer() ; - const ::subspace::RegisterClientBufferRequest& register_client_buffer() const; - [[nodiscard]] ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE release_register_client_buffer(); - ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL mutable_register_client_buffer(); - void set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_register_client_buffer(::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE value); - ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE unsafe_arena_release_register_client_buffer(); - - private: - const ::subspace::RegisterClientBufferRequest& _internal_register_client_buffer() const; - ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL _internal_mutable_register_client_buffer(); - - public: - // .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; - bool has_unregister_client_buffer() const; - private: - bool _internal_has_unregister_client_buffer() const; - - public: - void clear_unregister_client_buffer() ; - const ::subspace::UnregisterClientBufferRequest& unregister_client_buffer() const; - [[nodiscard]] ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE release_unregister_client_buffer(); - ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL mutable_unregister_client_buffer(); - void set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_unregister_client_buffer(::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE value); - ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE unsafe_arena_release_unregister_client_buffer(); - - private: - const ::subspace::UnregisterClientBufferRequest& _internal_unregister_client_buffer() const; - ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL _internal_mutable_unregister_client_buffer(); - - public: - // .subspace.GetClientBuffersRequest get_client_buffers = 13; - bool has_get_client_buffers() const; - private: - bool _internal_has_get_client_buffers() const; - - public: - void clear_get_client_buffers() ; - const ::subspace::GetClientBuffersRequest& get_client_buffers() const; - [[nodiscard]] ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE release_get_client_buffers(); - ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL mutable_get_client_buffers(); - void set_allocated_get_client_buffers(::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_get_client_buffers(::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE value); - ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE unsafe_arena_release_get_client_buffers(); - - private: - const ::subspace::GetClientBuffersRequest& _internal_get_client_buffers() const; - ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL _internal_mutable_get_client_buffers(); - - public: - void clear_request(); - RequestCase request_case() const; - // @@protoc_insertion_point(class_scope:subspace.Request) - private: - class _Internal; - void set_has_init(); - void set_has_create_publisher(); - void set_has_create_subscriber(); - void set_has_get_triggers(); - void set_has_remove_publisher(); - void set_has_remove_subscriber(); - void set_has_get_channel_info(); - void set_has_get_channel_stats(); - void set_has_register_client_buffer(); - void set_has_unregister_client_buffer(); - void set_has_get_client_buffers(); - inline bool has_request() const; - inline void clear_has_request(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 11, - 11, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Request& from_msg); - union RequestUnion { - constexpr RequestUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::google::protobuf::Message* PROTOBUF_NULLABLE init_; - ::google::protobuf::Message* PROTOBUF_NULLABLE create_publisher_; - ::google::protobuf::Message* PROTOBUF_NULLABLE create_subscriber_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_triggers_; - ::google::protobuf::Message* PROTOBUF_NULLABLE remove_publisher_; - ::google::protobuf::Message* PROTOBUF_NULLABLE remove_subscriber_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_info_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_channel_stats_; - ::google::protobuf::Message* PROTOBUF_NULLABLE register_client_buffer_; - ::google::protobuf::Message* PROTOBUF_NULLABLE unregister_client_buffer_; - ::google::protobuf::Message* PROTOBUF_NULLABLE get_client_buffers_; - } request_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_subspace_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataFull Request_class_data_; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// InitRequest - -// string client_name = 1; -inline void InitRequest::clear_client_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& InitRequest::client_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.InitRequest.client_name) - return _internal_client_name(); -} -template -PROTOBUF_ALWAYS_INLINE void InitRequest::set_client_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.client_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.InitRequest.client_name) -} -inline ::std::string* PROTOBUF_NONNULL InitRequest::mutable_client_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_client_name(); - // @@protoc_insertion_point(field_mutable:subspace.InitRequest.client_name) - return _s; -} -inline const ::std::string& InitRequest::_internal_client_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_name_.Get(); -} -inline void InitRequest::_internal_set_client_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL InitRequest::_internal_mutable_client_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.client_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE InitRequest::release_client_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.InitRequest.client_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.client_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.client_name_.Set("", GetArena()); - } - return released; -} -inline void InitRequest::set_allocated_client_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.client_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.client_name_.IsDefault()) { - _impl_.client_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.InitRequest.client_name) -} - -// ------------------------------------------------------------------- - -// InitResponse - -// int32 scb_fd_index = 1; -inline void InitResponse::clear_scb_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.scb_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t InitResponse::scb_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.InitResponse.scb_fd_index) - return _internal_scb_fd_index(); -} -inline void InitResponse::set_scb_fd_index(::int32_t value) { - _internal_set_scb_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.InitResponse.scb_fd_index) -} -inline ::int32_t InitResponse::_internal_scb_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.scb_fd_index_; -} -inline void InitResponse::_internal_set_scb_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.scb_fd_index_ = value; -} - -// int64 session_id = 2; -inline void InitResponse::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::int64_t InitResponse::session_id() const { - // @@protoc_insertion_point(field_get:subspace.InitResponse.session_id) - return _internal_session_id(); -} -inline void InitResponse::set_session_id(::int64_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:subspace.InitResponse.session_id) -} -inline ::int64_t InitResponse::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void InitResponse::_internal_set_session_id(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// int32 user_id = 3; -inline void InitResponse::clear_user_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.user_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t InitResponse::user_id() const { - // @@protoc_insertion_point(field_get:subspace.InitResponse.user_id) - return _internal_user_id(); -} -inline void InitResponse::set_user_id(::int32_t value) { - _internal_set_user_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.InitResponse.user_id) -} -inline ::int32_t InitResponse::_internal_user_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.user_id_; -} -inline void InitResponse::_internal_set_user_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.user_id_ = value; -} - -// int32 group_id = 4; -inline void InitResponse::clear_group_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.group_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t InitResponse::group_id() const { - // @@protoc_insertion_point(field_get:subspace.InitResponse.group_id) - return _internal_group_id(); -} -inline void InitResponse::set_group_id(::int32_t value) { - _internal_set_group_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.InitResponse.group_id) -} -inline ::int32_t InitResponse::_internal_group_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.group_id_; -} -inline void InitResponse::_internal_set_group_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.group_id_ = value; -} - -// ------------------------------------------------------------------- - -// CreatePublisherRequest - -// string channel_name = 1; -inline void CreatePublisherRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& CreatePublisherRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherRequest.channel_name) - return _s; -} -inline const ::std::string& CreatePublisherRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void CreatePublisherRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreatePublisherRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreatePublisherRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void CreatePublisherRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreatePublisherRequest.channel_name) -} - -// int32 num_slots = 2; -inline void CreatePublisherRequest::clear_num_slots() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t CreatePublisherRequest::num_slots() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.num_slots) - return _internal_num_slots(); -} -inline void CreatePublisherRequest::set_num_slots(::int32_t value) { - _internal_set_num_slots(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.num_slots) -} -inline ::int32_t CreatePublisherRequest::_internal_num_slots() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_slots_; -} -inline void CreatePublisherRequest::_internal_set_num_slots(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = value; -} - -// int32 slot_size = 3; -inline void CreatePublisherRequest::clear_slot_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t CreatePublisherRequest::slot_size() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.slot_size) - return _internal_slot_size(); -} -inline void CreatePublisherRequest::set_slot_size(::int32_t value) { - _internal_set_slot_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.slot_size) -} -inline ::int32_t CreatePublisherRequest::_internal_slot_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_size_; -} -inline void CreatePublisherRequest::_internal_set_slot_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = value; -} - -// bool is_local = 4; -inline void CreatePublisherRequest::clear_is_local() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_local_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline bool CreatePublisherRequest::is_local() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_local) - return _internal_is_local(); -} -inline void CreatePublisherRequest::set_is_local(bool value) { - _internal_set_is_local(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_local) -} -inline bool CreatePublisherRequest::_internal_is_local() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_local_; -} -inline void CreatePublisherRequest::_internal_set_is_local(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_local_ = value; -} - -// bool is_reliable = 5; -inline void CreatePublisherRequest::clear_is_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline bool CreatePublisherRequest::is_reliable() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_reliable) - return _internal_is_reliable(); -} -inline void CreatePublisherRequest::set_is_reliable(bool value) { - _internal_set_is_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_reliable) -} -inline bool CreatePublisherRequest::_internal_is_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_reliable_; -} -inline void CreatePublisherRequest::_internal_set_is_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = value; -} - -// bool is_bridge = 6; -inline void CreatePublisherRequest::clear_is_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline bool CreatePublisherRequest::is_bridge() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_bridge) - return _internal_is_bridge(); -} -inline void CreatePublisherRequest::set_is_bridge(bool value) { - _internal_set_is_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_bridge) -} -inline bool CreatePublisherRequest::_internal_is_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_bridge_; -} -inline void CreatePublisherRequest::_internal_set_is_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = value; -} - -// bytes type = 7; -inline void CreatePublisherRequest::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& CreatePublisherRequest::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.type) -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherRequest.type) - return _s; -} -inline const ::std::string& CreatePublisherRequest::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void CreatePublisherRequest::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreatePublisherRequest::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreatePublisherRequest.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void CreatePublisherRequest::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreatePublisherRequest.type) -} - -// bool is_fixed_size = 8; -inline void CreatePublisherRequest::clear_is_fixed_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_fixed_size_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline bool CreatePublisherRequest::is_fixed_size() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.is_fixed_size) - return _internal_is_fixed_size(); -} -inline void CreatePublisherRequest::set_is_fixed_size(bool value) { - _internal_set_is_fixed_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.is_fixed_size) -} -inline bool CreatePublisherRequest::_internal_is_fixed_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_fixed_size_; -} -inline void CreatePublisherRequest::_internal_set_is_fixed_size(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_fixed_size_ = value; -} - -// bool for_tunnel = 15; -inline void CreatePublisherRequest::clear_for_tunnel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00004000U); -} -inline bool CreatePublisherRequest::for_tunnel() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.for_tunnel) - return _internal_for_tunnel(); -} -inline void CreatePublisherRequest::set_for_tunnel(bool value) { - _internal_set_for_tunnel(value); - SetHasBit(_impl_._has_bits_[0], 0x00004000U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.for_tunnel) -} -inline bool CreatePublisherRequest::_internal_for_tunnel() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.for_tunnel_; -} -inline void CreatePublisherRequest::_internal_set_for_tunnel(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = value; -} - -// string mux = 9; -inline void CreatePublisherRequest::clear_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& CreatePublisherRequest::mux() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.mux) - return _internal_mux(); -} -template -PROTOBUF_ALWAYS_INLINE void CreatePublisherRequest::set_mux(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.mux_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.mux) -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::mutable_mux() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_mux(); - // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherRequest.mux) - return _s; -} -inline const ::std::string& CreatePublisherRequest::_internal_mux() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.mux_.Get(); -} -inline void CreatePublisherRequest::_internal_set_mux(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherRequest::_internal_mutable_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.mux_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreatePublisherRequest::release_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreatePublisherRequest.mux) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.mux_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.mux_.Set("", GetArena()); - } - return released; -} -inline void CreatePublisherRequest::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.mux_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { - _impl_.mux_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreatePublisherRequest.mux) -} - -// int32 vchan_id = 10; -inline void CreatePublisherRequest::clear_vchan_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline ::int32_t CreatePublisherRequest::vchan_id() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.vchan_id) - return _internal_vchan_id(); -} -inline void CreatePublisherRequest::set_vchan_id(::int32_t value) { - _internal_set_vchan_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.vchan_id) -} -inline ::int32_t CreatePublisherRequest::_internal_vchan_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.vchan_id_; -} -inline void CreatePublisherRequest::_internal_set_vchan_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = value; -} - -// bool notify_retirement = 11; -inline void CreatePublisherRequest::clear_notify_retirement() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00002000U); -} -inline bool CreatePublisherRequest::notify_retirement() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.notify_retirement) - return _internal_notify_retirement(); -} -inline void CreatePublisherRequest::set_notify_retirement(bool value) { - _internal_set_notify_retirement(value); - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.notify_retirement) -} -inline bool CreatePublisherRequest::_internal_notify_retirement() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.notify_retirement_; -} -inline void CreatePublisherRequest::_internal_set_notify_retirement(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = value; -} - -// int32 checksum_size = 12; -inline void CreatePublisherRequest::clear_checksum_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline ::int32_t CreatePublisherRequest::checksum_size() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.checksum_size) - return _internal_checksum_size(); -} -inline void CreatePublisherRequest::set_checksum_size(::int32_t value) { - _internal_set_checksum_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.checksum_size) -} -inline ::int32_t CreatePublisherRequest::_internal_checksum_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.checksum_size_; -} -inline void CreatePublisherRequest::_internal_set_checksum_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = value; -} - -// int32 metadata_size = 13; -inline void CreatePublisherRequest::clear_metadata_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000800U); -} -inline ::int32_t CreatePublisherRequest::metadata_size() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.metadata_size) - return _internal_metadata_size(); -} -inline void CreatePublisherRequest::set_metadata_size(::int32_t value) { - _internal_set_metadata_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.metadata_size) -} -inline ::int32_t CreatePublisherRequest::_internal_metadata_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.metadata_size_; -} -inline void CreatePublisherRequest::_internal_set_metadata_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = value; -} - -// int32 publisher_id = 14; -inline void CreatePublisherRequest::clear_publisher_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00001000U); -} -inline ::int32_t CreatePublisherRequest::publisher_id() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.publisher_id) - return _internal_publisher_id(); -} -inline void CreatePublisherRequest::set_publisher_id(::int32_t value) { - _internal_set_publisher_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.publisher_id) -} -inline ::int32_t CreatePublisherRequest::_internal_publisher_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.publisher_id_; -} -inline void CreatePublisherRequest::_internal_set_publisher_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = value; -} - -// bool use_split_buffers = 16; -inline void CreatePublisherRequest::clear_use_split_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00008000U); -} -inline bool CreatePublisherRequest::use_split_buffers() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.use_split_buffers) - return _internal_use_split_buffers(); -} -inline void CreatePublisherRequest::set_use_split_buffers(bool value) { - _internal_set_use_split_buffers(value); - SetHasBit(_impl_._has_bits_[0], 0x00008000U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.use_split_buffers) -} -inline bool CreatePublisherRequest::_internal_use_split_buffers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.use_split_buffers_; -} -inline void CreatePublisherRequest::_internal_set_use_split_buffers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = value; -} - -// int32 max_publishers = 17; -inline void CreatePublisherRequest::clear_max_publishers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_publishers_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00020000U); -} -inline ::int32_t CreatePublisherRequest::max_publishers() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.max_publishers) - return _internal_max_publishers(); -} -inline void CreatePublisherRequest::set_max_publishers(::int32_t value) { - _internal_set_max_publishers(value); - SetHasBit(_impl_._has_bits_[0], 0x00020000U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.max_publishers) -} -inline ::int32_t CreatePublisherRequest::_internal_max_publishers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.max_publishers_; -} -inline void CreatePublisherRequest::_internal_set_max_publishers(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_publishers_ = value; -} - -// bool split_buffers_over_bridge = 18; -inline void CreatePublisherRequest::clear_split_buffers_over_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00010000U); -} -inline bool CreatePublisherRequest::split_buffers_over_bridge() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherRequest.split_buffers_over_bridge) - return _internal_split_buffers_over_bridge(); -} -inline void CreatePublisherRequest::set_split_buffers_over_bridge(bool value) { - _internal_set_split_buffers_over_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00010000U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherRequest.split_buffers_over_bridge) -} -inline bool CreatePublisherRequest::_internal_split_buffers_over_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.split_buffers_over_bridge_; -} -inline void CreatePublisherRequest::_internal_set_split_buffers_over_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = value; -} - -// ------------------------------------------------------------------- - -// CreatePublisherResponse - -// string error = 1; -inline void CreatePublisherResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& CreatePublisherResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void CreatePublisherResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherResponse.error) - return _s; -} -inline const ::std::string& CreatePublisherResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void CreatePublisherResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreatePublisherResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreatePublisherResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void CreatePublisherResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreatePublisherResponse.error) -} - -// int32 channel_id = 2; -inline void CreatePublisherResponse::clear_channel_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t CreatePublisherResponse::channel_id() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.channel_id) - return _internal_channel_id(); -} -inline void CreatePublisherResponse::set_channel_id(::int32_t value) { - _internal_set_channel_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.channel_id) -} -inline ::int32_t CreatePublisherResponse::_internal_channel_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_id_; -} -inline void CreatePublisherResponse::_internal_set_channel_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = value; -} - -// int32 publisher_id = 3; -inline void CreatePublisherResponse::clear_publisher_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::int32_t CreatePublisherResponse::publisher_id() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.publisher_id) - return _internal_publisher_id(); -} -inline void CreatePublisherResponse::set_publisher_id(::int32_t value) { - _internal_set_publisher_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.publisher_id) -} -inline ::int32_t CreatePublisherResponse::_internal_publisher_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.publisher_id_; -} -inline void CreatePublisherResponse::_internal_set_publisher_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = value; -} - -// int32 ccb_fd_index = 4; -inline void CreatePublisherResponse::clear_ccb_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.ccb_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline ::int32_t CreatePublisherResponse::ccb_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.ccb_fd_index) - return _internal_ccb_fd_index(); -} -inline void CreatePublisherResponse::set_ccb_fd_index(::int32_t value) { - _internal_set_ccb_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.ccb_fd_index) -} -inline ::int32_t CreatePublisherResponse::_internal_ccb_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.ccb_fd_index_; -} -inline void CreatePublisherResponse::_internal_set_ccb_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.ccb_fd_index_ = value; -} - -// int32 bcb_fd_index = 5; -inline void CreatePublisherResponse::clear_bcb_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bcb_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline ::int32_t CreatePublisherResponse::bcb_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.bcb_fd_index) - return _internal_bcb_fd_index(); -} -inline void CreatePublisherResponse::set_bcb_fd_index(::int32_t value) { - _internal_set_bcb_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.bcb_fd_index) -} -inline ::int32_t CreatePublisherResponse::_internal_bcb_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bcb_fd_index_; -} -inline void CreatePublisherResponse::_internal_set_bcb_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bcb_fd_index_ = value; -} - -// int32 pub_poll_fd_index = 6; -inline void CreatePublisherResponse::clear_pub_poll_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pub_poll_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline ::int32_t CreatePublisherResponse::pub_poll_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.pub_poll_fd_index) - return _internal_pub_poll_fd_index(); -} -inline void CreatePublisherResponse::set_pub_poll_fd_index(::int32_t value) { - _internal_set_pub_poll_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.pub_poll_fd_index) -} -inline ::int32_t CreatePublisherResponse::_internal_pub_poll_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.pub_poll_fd_index_; -} -inline void CreatePublisherResponse::_internal_set_pub_poll_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pub_poll_fd_index_ = value; -} - -// int32 pub_trigger_fd_index = 7; -inline void CreatePublisherResponse::clear_pub_trigger_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pub_trigger_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline ::int32_t CreatePublisherResponse::pub_trigger_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.pub_trigger_fd_index) - return _internal_pub_trigger_fd_index(); -} -inline void CreatePublisherResponse::set_pub_trigger_fd_index(::int32_t value) { - _internal_set_pub_trigger_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.pub_trigger_fd_index) -} -inline ::int32_t CreatePublisherResponse::_internal_pub_trigger_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.pub_trigger_fd_index_; -} -inline void CreatePublisherResponse::_internal_set_pub_trigger_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pub_trigger_fd_index_ = value; -} - -// repeated int32 sub_trigger_fd_indexes = 8; -inline int CreatePublisherResponse::_internal_sub_trigger_fd_indexes_size() const { - return _internal_sub_trigger_fd_indexes().size(); -} -inline int CreatePublisherResponse::sub_trigger_fd_indexes_size() const { - return _internal_sub_trigger_fd_indexes_size(); -} -inline void CreatePublisherResponse::clear_sub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sub_trigger_fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::int32_t CreatePublisherResponse::sub_trigger_fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) - return _internal_sub_trigger_fd_indexes().Get(index); -} -inline void CreatePublisherResponse::set_sub_trigger_fd_indexes(int index, ::int32_t value) { - _internal_mutable_sub_trigger_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) -} -inline void CreatePublisherResponse::add_sub_trigger_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_sub_trigger_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& CreatePublisherResponse::sub_trigger_fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) - return _internal_sub_trigger_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreatePublisherResponse::mutable_sub_trigger_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.CreatePublisherResponse.sub_trigger_fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_sub_trigger_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -CreatePublisherResponse::_internal_sub_trigger_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.sub_trigger_fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -CreatePublisherResponse::_internal_mutable_sub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.sub_trigger_fd_indexes_; -} - -// int32 num_sub_updates = 9; -inline void CreatePublisherResponse::clear_num_sub_updates() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_sub_updates_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline ::int32_t CreatePublisherResponse::num_sub_updates() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.num_sub_updates) - return _internal_num_sub_updates(); -} -inline void CreatePublisherResponse::set_num_sub_updates(::int32_t value) { - _internal_set_num_sub_updates(value); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.num_sub_updates) -} -inline ::int32_t CreatePublisherResponse::_internal_num_sub_updates() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_sub_updates_; -} -inline void CreatePublisherResponse::_internal_set_num_sub_updates(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_sub_updates_ = value; -} - -// bytes type = 10; -inline void CreatePublisherResponse::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::std::string& CreatePublisherResponse::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void CreatePublisherResponse::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.type) -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.CreatePublisherResponse.type) - return _s; -} -inline const ::std::string& CreatePublisherResponse::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void CreatePublisherResponse::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreatePublisherResponse::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreatePublisherResponse::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreatePublisherResponse.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void CreatePublisherResponse::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreatePublisherResponse.type) -} - -// int32 vchan_id = 11; -inline void CreatePublisherResponse::clear_vchan_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000800U); -} -inline ::int32_t CreatePublisherResponse::vchan_id() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.vchan_id) - return _internal_vchan_id(); -} -inline void CreatePublisherResponse::set_vchan_id(::int32_t value) { - _internal_set_vchan_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.vchan_id) -} -inline ::int32_t CreatePublisherResponse::_internal_vchan_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.vchan_id_; -} -inline void CreatePublisherResponse::_internal_set_vchan_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = value; -} - -// int32 retirement_fd_index = 14; -inline void CreatePublisherResponse::clear_retirement_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.retirement_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00001000U); -} -inline ::int32_t CreatePublisherResponse::retirement_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.retirement_fd_index) - return _internal_retirement_fd_index(); -} -inline void CreatePublisherResponse::set_retirement_fd_index(::int32_t value) { - _internal_set_retirement_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.retirement_fd_index) -} -inline ::int32_t CreatePublisherResponse::_internal_retirement_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.retirement_fd_index_; -} -inline void CreatePublisherResponse::_internal_set_retirement_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.retirement_fd_index_ = value; -} - -// repeated int32 retirement_fd_indexes = 15; -inline int CreatePublisherResponse::_internal_retirement_fd_indexes_size() const { - return _internal_retirement_fd_indexes().size(); -} -inline int CreatePublisherResponse::retirement_fd_indexes_size() const { - return _internal_retirement_fd_indexes_size(); -} -inline void CreatePublisherResponse::clear_retirement_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.retirement_fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t CreatePublisherResponse::retirement_fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.CreatePublisherResponse.retirement_fd_indexes) - return _internal_retirement_fd_indexes().Get(index); -} -inline void CreatePublisherResponse::set_retirement_fd_indexes(int index, ::int32_t value) { - _internal_mutable_retirement_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.CreatePublisherResponse.retirement_fd_indexes) -} -inline void CreatePublisherResponse::add_retirement_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_retirement_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_add:subspace.CreatePublisherResponse.retirement_fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& CreatePublisherResponse::retirement_fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.CreatePublisherResponse.retirement_fd_indexes) - return _internal_retirement_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreatePublisherResponse::mutable_retirement_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_mutable_list:subspace.CreatePublisherResponse.retirement_fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_retirement_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -CreatePublisherResponse::_internal_retirement_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.retirement_fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -CreatePublisherResponse::_internal_mutable_retirement_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.retirement_fd_indexes_; -} - -// ------------------------------------------------------------------- - -// CreateSubscriberRequest - -// string channel_name = 1; -inline void CreateSubscriberRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& CreateSubscriberRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberRequest.channel_name) - return _s; -} -inline const ::std::string& CreateSubscriberRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void CreateSubscriberRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreateSubscriberRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void CreateSubscriberRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreateSubscriberRequest.channel_name) -} - -// int32 subscriber_id = 2; -inline void CreateSubscriberRequest::clear_subscriber_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t CreateSubscriberRequest::subscriber_id() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.subscriber_id) - return _internal_subscriber_id(); -} -inline void CreateSubscriberRequest::set_subscriber_id(::int32_t value) { - _internal_set_subscriber_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.subscriber_id) -} -inline ::int32_t CreateSubscriberRequest::_internal_subscriber_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.subscriber_id_; -} -inline void CreateSubscriberRequest::_internal_set_subscriber_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = value; -} - -// bool is_reliable = 3; -inline void CreateSubscriberRequest::clear_is_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline bool CreateSubscriberRequest::is_reliable() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.is_reliable) - return _internal_is_reliable(); -} -inline void CreateSubscriberRequest::set_is_reliable(bool value) { - _internal_set_is_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.is_reliable) -} -inline bool CreateSubscriberRequest::_internal_is_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_reliable_; -} -inline void CreateSubscriberRequest::_internal_set_is_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = value; -} - -// bool is_bridge = 4; -inline void CreateSubscriberRequest::clear_is_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline bool CreateSubscriberRequest::is_bridge() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.is_bridge) - return _internal_is_bridge(); -} -inline void CreateSubscriberRequest::set_is_bridge(bool value) { - _internal_set_is_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.is_bridge) -} -inline bool CreateSubscriberRequest::_internal_is_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_bridge_; -} -inline void CreateSubscriberRequest::_internal_set_is_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = value; -} - -// bytes type = 5; -inline void CreateSubscriberRequest::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& CreateSubscriberRequest::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.type) -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberRequest.type) - return _s; -} -inline const ::std::string& CreateSubscriberRequest::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void CreateSubscriberRequest::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberRequest::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreateSubscriberRequest.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void CreateSubscriberRequest::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreateSubscriberRequest.type) -} - -// int32 max_active_messages = 6; -inline void CreateSubscriberRequest::clear_max_active_messages() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_active_messages_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline ::int32_t CreateSubscriberRequest::max_active_messages() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.max_active_messages) - return _internal_max_active_messages(); -} -inline void CreateSubscriberRequest::set_max_active_messages(::int32_t value) { - _internal_set_max_active_messages(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.max_active_messages) -} -inline ::int32_t CreateSubscriberRequest::_internal_max_active_messages() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.max_active_messages_; -} -inline void CreateSubscriberRequest::_internal_set_max_active_messages(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_active_messages_ = value; -} - -// bool for_tunnel = 9; -inline void CreateSubscriberRequest::clear_for_tunnel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline bool CreateSubscriberRequest::for_tunnel() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.for_tunnel) - return _internal_for_tunnel(); -} -inline void CreateSubscriberRequest::set_for_tunnel(bool value) { - _internal_set_for_tunnel(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.for_tunnel) -} -inline bool CreateSubscriberRequest::_internal_for_tunnel() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.for_tunnel_; -} -inline void CreateSubscriberRequest::_internal_set_for_tunnel(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = value; -} - -// string mux = 7; -inline void CreateSubscriberRequest::clear_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& CreateSubscriberRequest::mux() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.mux) - return _internal_mux(); -} -template -PROTOBUF_ALWAYS_INLINE void CreateSubscriberRequest::set_mux(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.mux_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.mux) -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::mutable_mux() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_mux(); - // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberRequest.mux) - return _s; -} -inline const ::std::string& CreateSubscriberRequest::_internal_mux() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.mux_.Get(); -} -inline void CreateSubscriberRequest::_internal_set_mux(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberRequest::_internal_mutable_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.mux_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberRequest::release_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreateSubscriberRequest.mux) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.mux_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.mux_.Set("", GetArena()); - } - return released; -} -inline void CreateSubscriberRequest::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.mux_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { - _impl_.mux_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreateSubscriberRequest.mux) -} - -// int32 vchan_id = 8; -inline void CreateSubscriberRequest::clear_vchan_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline ::int32_t CreateSubscriberRequest::vchan_id() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberRequest.vchan_id) - return _internal_vchan_id(); -} -inline void CreateSubscriberRequest::set_vchan_id(::int32_t value) { - _internal_set_vchan_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberRequest.vchan_id) -} -inline ::int32_t CreateSubscriberRequest::_internal_vchan_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.vchan_id_; -} -inline void CreateSubscriberRequest::_internal_set_vchan_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = value; -} - -// ------------------------------------------------------------------- - -// CreateSubscriberResponse - -// string error = 1; -inline void CreateSubscriberResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& CreateSubscriberResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void CreateSubscriberResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberResponse.error) - return _s; -} -inline const ::std::string& CreateSubscriberResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void CreateSubscriberResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreateSubscriberResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void CreateSubscriberResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreateSubscriberResponse.error) -} - -// int32 channel_id = 2; -inline void CreateSubscriberResponse::clear_channel_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t CreateSubscriberResponse::channel_id() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.channel_id) - return _internal_channel_id(); -} -inline void CreateSubscriberResponse::set_channel_id(::int32_t value) { - _internal_set_channel_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.channel_id) -} -inline ::int32_t CreateSubscriberResponse::_internal_channel_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_id_; -} -inline void CreateSubscriberResponse::_internal_set_channel_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = value; -} - -// int32 subscriber_id = 3; -inline void CreateSubscriberResponse::clear_subscriber_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::int32_t CreateSubscriberResponse::subscriber_id() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.subscriber_id) - return _internal_subscriber_id(); -} -inline void CreateSubscriberResponse::set_subscriber_id(::int32_t value) { - _internal_set_subscriber_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.subscriber_id) -} -inline ::int32_t CreateSubscriberResponse::_internal_subscriber_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.subscriber_id_; -} -inline void CreateSubscriberResponse::_internal_set_subscriber_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = value; -} - -// int32 ccb_fd_index = 4; -inline void CreateSubscriberResponse::clear_ccb_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.ccb_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline ::int32_t CreateSubscriberResponse::ccb_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.ccb_fd_index) - return _internal_ccb_fd_index(); -} -inline void CreateSubscriberResponse::set_ccb_fd_index(::int32_t value) { - _internal_set_ccb_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.ccb_fd_index) -} -inline ::int32_t CreateSubscriberResponse::_internal_ccb_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.ccb_fd_index_; -} -inline void CreateSubscriberResponse::_internal_set_ccb_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.ccb_fd_index_ = value; -} - -// int32 bcb_fd_index = 5; -inline void CreateSubscriberResponse::clear_bcb_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bcb_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline ::int32_t CreateSubscriberResponse::bcb_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.bcb_fd_index) - return _internal_bcb_fd_index(); -} -inline void CreateSubscriberResponse::set_bcb_fd_index(::int32_t value) { - _internal_set_bcb_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.bcb_fd_index) -} -inline ::int32_t CreateSubscriberResponse::_internal_bcb_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bcb_fd_index_; -} -inline void CreateSubscriberResponse::_internal_set_bcb_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bcb_fd_index_ = value; -} - -// int32 trigger_fd_index = 6; -inline void CreateSubscriberResponse::clear_trigger_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.trigger_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline ::int32_t CreateSubscriberResponse::trigger_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.trigger_fd_index) - return _internal_trigger_fd_index(); -} -inline void CreateSubscriberResponse::set_trigger_fd_index(::int32_t value) { - _internal_set_trigger_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.trigger_fd_index) -} -inline ::int32_t CreateSubscriberResponse::_internal_trigger_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.trigger_fd_index_; -} -inline void CreateSubscriberResponse::_internal_set_trigger_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.trigger_fd_index_ = value; -} - -// int32 poll_fd_index = 7; -inline void CreateSubscriberResponse::clear_poll_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.poll_fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline ::int32_t CreateSubscriberResponse::poll_fd_index() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.poll_fd_index) - return _internal_poll_fd_index(); -} -inline void CreateSubscriberResponse::set_poll_fd_index(::int32_t value) { - _internal_set_poll_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.poll_fd_index) -} -inline ::int32_t CreateSubscriberResponse::_internal_poll_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.poll_fd_index_; -} -inline void CreateSubscriberResponse::_internal_set_poll_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.poll_fd_index_ = value; -} - -// int32 slot_size = 8; -inline void CreateSubscriberResponse::clear_slot_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline ::int32_t CreateSubscriberResponse::slot_size() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.slot_size) - return _internal_slot_size(); -} -inline void CreateSubscriberResponse::set_slot_size(::int32_t value) { - _internal_set_slot_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.slot_size) -} -inline ::int32_t CreateSubscriberResponse::_internal_slot_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_size_; -} -inline void CreateSubscriberResponse::_internal_set_slot_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = value; -} - -// int32 num_slots = 9; -inline void CreateSubscriberResponse::clear_num_slots() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000800U); -} -inline ::int32_t CreateSubscriberResponse::num_slots() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.num_slots) - return _internal_num_slots(); -} -inline void CreateSubscriberResponse::set_num_slots(::int32_t value) { - _internal_set_num_slots(value); - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.num_slots) -} -inline ::int32_t CreateSubscriberResponse::_internal_num_slots() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_slots_; -} -inline void CreateSubscriberResponse::_internal_set_num_slots(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = value; -} - -// repeated int32 reliable_pub_trigger_fd_indexes = 10; -inline int CreateSubscriberResponse::_internal_reliable_pub_trigger_fd_indexes_size() const { - return _internal_reliable_pub_trigger_fd_indexes().size(); -} -inline int CreateSubscriberResponse::reliable_pub_trigger_fd_indexes_size() const { - return _internal_reliable_pub_trigger_fd_indexes_size(); -} -inline void CreateSubscriberResponse::clear_reliable_pub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_pub_trigger_fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::int32_t CreateSubscriberResponse::reliable_pub_trigger_fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) - return _internal_reliable_pub_trigger_fd_indexes().Get(index); -} -inline void CreateSubscriberResponse::set_reliable_pub_trigger_fd_indexes(int index, ::int32_t value) { - _internal_mutable_reliable_pub_trigger_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) -} -inline void CreateSubscriberResponse::add_reliable_pub_trigger_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_reliable_pub_trigger_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& CreateSubscriberResponse::reliable_pub_trigger_fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) - return _internal_reliable_pub_trigger_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_reliable_pub_trigger_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.CreateSubscriberResponse.reliable_pub_trigger_fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_reliable_pub_trigger_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -CreateSubscriberResponse::_internal_reliable_pub_trigger_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.reliable_pub_trigger_fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -CreateSubscriberResponse::_internal_mutable_reliable_pub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.reliable_pub_trigger_fd_indexes_; -} - -// int32 num_pub_updates = 11; -inline void CreateSubscriberResponse::clear_num_pub_updates() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_pub_updates_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00001000U); -} -inline ::int32_t CreateSubscriberResponse::num_pub_updates() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.num_pub_updates) - return _internal_num_pub_updates(); -} -inline void CreateSubscriberResponse::set_num_pub_updates(::int32_t value) { - _internal_set_num_pub_updates(value); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.num_pub_updates) -} -inline ::int32_t CreateSubscriberResponse::_internal_num_pub_updates() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_pub_updates_; -} -inline void CreateSubscriberResponse::_internal_set_num_pub_updates(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_pub_updates_ = value; -} - -// bytes type = 12; -inline void CreateSubscriberResponse::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::std::string& CreateSubscriberResponse::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void CreateSubscriberResponse::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.type) -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.CreateSubscriberResponse.type) - return _s; -} -inline const ::std::string& CreateSubscriberResponse::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void CreateSubscriberResponse::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL CreateSubscriberResponse::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE CreateSubscriberResponse::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.CreateSubscriberResponse.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void CreateSubscriberResponse::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.CreateSubscriberResponse.type) -} - -// int32 vchan_id = 13; -inline void CreateSubscriberResponse::clear_vchan_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00002000U); -} -inline ::int32_t CreateSubscriberResponse::vchan_id() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.vchan_id) - return _internal_vchan_id(); -} -inline void CreateSubscriberResponse::set_vchan_id(::int32_t value) { - _internal_set_vchan_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.vchan_id) -} -inline ::int32_t CreateSubscriberResponse::_internal_vchan_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.vchan_id_; -} -inline void CreateSubscriberResponse::_internal_set_vchan_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = value; -} - -// repeated int32 retirement_fd_indexes = 14; -inline int CreateSubscriberResponse::_internal_retirement_fd_indexes_size() const { - return _internal_retirement_fd_indexes().size(); -} -inline int CreateSubscriberResponse::retirement_fd_indexes_size() const { - return _internal_retirement_fd_indexes_size(); -} -inline void CreateSubscriberResponse::clear_retirement_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.retirement_fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t CreateSubscriberResponse::retirement_fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.retirement_fd_indexes) - return _internal_retirement_fd_indexes().Get(index); -} -inline void CreateSubscriberResponse::set_retirement_fd_indexes(int index, ::int32_t value) { - _internal_mutable_retirement_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.retirement_fd_indexes) -} -inline void CreateSubscriberResponse::add_retirement_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_retirement_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_add:subspace.CreateSubscriberResponse.retirement_fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& CreateSubscriberResponse::retirement_fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.CreateSubscriberResponse.retirement_fd_indexes) - return _internal_retirement_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL CreateSubscriberResponse::mutable_retirement_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_mutable_list:subspace.CreateSubscriberResponse.retirement_fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_retirement_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -CreateSubscriberResponse::_internal_retirement_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.retirement_fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -CreateSubscriberResponse::_internal_mutable_retirement_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.retirement_fd_indexes_; -} - -// int32 checksum_size = 15; -inline void CreateSubscriberResponse::clear_checksum_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00004000U); -} -inline ::int32_t CreateSubscriberResponse::checksum_size() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.checksum_size) - return _internal_checksum_size(); -} -inline void CreateSubscriberResponse::set_checksum_size(::int32_t value) { - _internal_set_checksum_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00004000U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.checksum_size) -} -inline ::int32_t CreateSubscriberResponse::_internal_checksum_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.checksum_size_; -} -inline void CreateSubscriberResponse::_internal_set_checksum_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = value; -} - -// int32 metadata_size = 16; -inline void CreateSubscriberResponse::clear_metadata_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00008000U); -} -inline ::int32_t CreateSubscriberResponse::metadata_size() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.metadata_size) - return _internal_metadata_size(); -} -inline void CreateSubscriberResponse::set_metadata_size(::int32_t value) { - _internal_set_metadata_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00008000U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.metadata_size) -} -inline ::int32_t CreateSubscriberResponse::_internal_metadata_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.metadata_size_; -} -inline void CreateSubscriberResponse::_internal_set_metadata_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = value; -} - -// bool use_split_buffers = 17; -inline void CreateSubscriberResponse::clear_use_split_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00010000U); -} -inline bool CreateSubscriberResponse::use_split_buffers() const { - // @@protoc_insertion_point(field_get:subspace.CreateSubscriberResponse.use_split_buffers) - return _internal_use_split_buffers(); -} -inline void CreateSubscriberResponse::set_use_split_buffers(bool value) { - _internal_set_use_split_buffers(value); - SetHasBit(_impl_._has_bits_[0], 0x00010000U); - // @@protoc_insertion_point(field_set:subspace.CreateSubscriberResponse.use_split_buffers) -} -inline bool CreateSubscriberResponse::_internal_use_split_buffers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.use_split_buffers_; -} -inline void CreateSubscriberResponse::_internal_set_use_split_buffers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = value; -} - -// ------------------------------------------------------------------- - -// GetTriggersRequest - -// string channel_name = 1; -inline void GetTriggersRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& GetTriggersRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetTriggersRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void GetTriggersRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetTriggersRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL GetTriggersRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.GetTriggersRequest.channel_name) - return _s; -} -inline const ::std::string& GetTriggersRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void GetTriggersRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetTriggersRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetTriggersRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetTriggersRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void GetTriggersRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetTriggersRequest.channel_name) -} - -// ------------------------------------------------------------------- - -// GetTriggersResponse - -// string error = 1; -inline void GetTriggersResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::std::string& GetTriggersResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void GetTriggersResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetTriggersResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL GetTriggersResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.GetTriggersResponse.error) - return _s; -} -inline const ::std::string& GetTriggersResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void GetTriggersResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetTriggersResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetTriggersResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetTriggersResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void GetTriggersResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetTriggersResponse.error) -} - -// repeated int32 reliable_pub_trigger_fd_indexes = 2; -inline int GetTriggersResponse::_internal_reliable_pub_trigger_fd_indexes_size() const { - return _internal_reliable_pub_trigger_fd_indexes().size(); -} -inline int GetTriggersResponse::reliable_pub_trigger_fd_indexes_size() const { - return _internal_reliable_pub_trigger_fd_indexes_size(); -} -inline void GetTriggersResponse::clear_reliable_pub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_pub_trigger_fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::int32_t GetTriggersResponse::reliable_pub_trigger_fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) - return _internal_reliable_pub_trigger_fd_indexes().Get(index); -} -inline void GetTriggersResponse::set_reliable_pub_trigger_fd_indexes(int index, ::int32_t value) { - _internal_mutable_reliable_pub_trigger_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) -} -inline void GetTriggersResponse::add_reliable_pub_trigger_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_reliable_pub_trigger_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse::reliable_pub_trigger_fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) - return _internal_reliable_pub_trigger_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetTriggersResponse::mutable_reliable_pub_trigger_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.GetTriggersResponse.reliable_pub_trigger_fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_reliable_pub_trigger_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -GetTriggersResponse::_internal_reliable_pub_trigger_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.reliable_pub_trigger_fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -GetTriggersResponse::_internal_mutable_reliable_pub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.reliable_pub_trigger_fd_indexes_; -} - -// repeated int32 sub_trigger_fd_indexes = 3; -inline int GetTriggersResponse::_internal_sub_trigger_fd_indexes_size() const { - return _internal_sub_trigger_fd_indexes().size(); -} -inline int GetTriggersResponse::sub_trigger_fd_indexes_size() const { - return _internal_sub_trigger_fd_indexes_size(); -} -inline void GetTriggersResponse::clear_sub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sub_trigger_fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t GetTriggersResponse::sub_trigger_fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.sub_trigger_fd_indexes) - return _internal_sub_trigger_fd_indexes().Get(index); -} -inline void GetTriggersResponse::set_sub_trigger_fd_indexes(int index, ::int32_t value) { - _internal_mutable_sub_trigger_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.GetTriggersResponse.sub_trigger_fd_indexes) -} -inline void GetTriggersResponse::add_sub_trigger_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_sub_trigger_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_add:subspace.GetTriggersResponse.sub_trigger_fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse::sub_trigger_fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.GetTriggersResponse.sub_trigger_fd_indexes) - return _internal_sub_trigger_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetTriggersResponse::mutable_sub_trigger_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_mutable_list:subspace.GetTriggersResponse.sub_trigger_fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_sub_trigger_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -GetTriggersResponse::_internal_sub_trigger_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.sub_trigger_fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -GetTriggersResponse::_internal_mutable_sub_trigger_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.sub_trigger_fd_indexes_; -} - -// repeated int32 retirement_fd_indexes = 4; -inline int GetTriggersResponse::_internal_retirement_fd_indexes_size() const { - return _internal_retirement_fd_indexes().size(); -} -inline int GetTriggersResponse::retirement_fd_indexes_size() const { - return _internal_retirement_fd_indexes_size(); -} -inline void GetTriggersResponse::clear_retirement_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.retirement_fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t GetTriggersResponse::retirement_fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.GetTriggersResponse.retirement_fd_indexes) - return _internal_retirement_fd_indexes().Get(index); -} -inline void GetTriggersResponse::set_retirement_fd_indexes(int index, ::int32_t value) { - _internal_mutable_retirement_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.GetTriggersResponse.retirement_fd_indexes) -} -inline void GetTriggersResponse::add_retirement_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_retirement_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_add:subspace.GetTriggersResponse.retirement_fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& GetTriggersResponse::retirement_fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.GetTriggersResponse.retirement_fd_indexes) - return _internal_retirement_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetTriggersResponse::mutable_retirement_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_mutable_list:subspace.GetTriggersResponse.retirement_fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_retirement_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -GetTriggersResponse::_internal_retirement_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.retirement_fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -GetTriggersResponse::_internal_mutable_retirement_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.retirement_fd_indexes_; -} - -// ------------------------------------------------------------------- - -// RemovePublisherRequest - -// string channel_name = 1; -inline void RemovePublisherRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RemovePublisherRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RemovePublisherRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void RemovePublisherRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RemovePublisherRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL RemovePublisherRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.RemovePublisherRequest.channel_name) - return _s; -} -inline const ::std::string& RemovePublisherRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void RemovePublisherRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RemovePublisherRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RemovePublisherRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RemovePublisherRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void RemovePublisherRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RemovePublisherRequest.channel_name) -} - -// int32 publisher_id = 2; -inline void RemovePublisherRequest::clear_publisher_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t RemovePublisherRequest::publisher_id() const { - // @@protoc_insertion_point(field_get:subspace.RemovePublisherRequest.publisher_id) - return _internal_publisher_id(); -} -inline void RemovePublisherRequest::set_publisher_id(::int32_t value) { - _internal_set_publisher_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RemovePublisherRequest.publisher_id) -} -inline ::int32_t RemovePublisherRequest::_internal_publisher_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.publisher_id_; -} -inline void RemovePublisherRequest::_internal_set_publisher_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = value; -} - -// ------------------------------------------------------------------- - -// RemovePublisherResponse - -// string error = 1; -inline void RemovePublisherResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RemovePublisherResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RemovePublisherResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void RemovePublisherResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RemovePublisherResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL RemovePublisherResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.RemovePublisherResponse.error) - return _s; -} -inline const ::std::string& RemovePublisherResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void RemovePublisherResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RemovePublisherResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RemovePublisherResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RemovePublisherResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void RemovePublisherResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RemovePublisherResponse.error) -} - -// ------------------------------------------------------------------- - -// RemoveSubscriberRequest - -// string channel_name = 1; -inline void RemoveSubscriberRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RemoveSubscriberRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RemoveSubscriberRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void RemoveSubscriberRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RemoveSubscriberRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.RemoveSubscriberRequest.channel_name) - return _s; -} -inline const ::std::string& RemoveSubscriberRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void RemoveSubscriberRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RemoveSubscriberRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RemoveSubscriberRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void RemoveSubscriberRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RemoveSubscriberRequest.channel_name) -} - -// int32 subscriber_id = 2; -inline void RemoveSubscriberRequest::clear_subscriber_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t RemoveSubscriberRequest::subscriber_id() const { - // @@protoc_insertion_point(field_get:subspace.RemoveSubscriberRequest.subscriber_id) - return _internal_subscriber_id(); -} -inline void RemoveSubscriberRequest::set_subscriber_id(::int32_t value) { - _internal_set_subscriber_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RemoveSubscriberRequest.subscriber_id) -} -inline ::int32_t RemoveSubscriberRequest::_internal_subscriber_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.subscriber_id_; -} -inline void RemoveSubscriberRequest::_internal_set_subscriber_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = value; -} - -// ------------------------------------------------------------------- - -// RemoveSubscriberResponse - -// string error = 1; -inline void RemoveSubscriberResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RemoveSubscriberResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RemoveSubscriberResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void RemoveSubscriberResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RemoveSubscriberResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.RemoveSubscriberResponse.error) - return _s; -} -inline const ::std::string& RemoveSubscriberResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void RemoveSubscriberResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RemoveSubscriberResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RemoveSubscriberResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RemoveSubscriberResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void RemoveSubscriberResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RemoveSubscriberResponse.error) -} - -// ------------------------------------------------------------------- - -// GetChannelInfoRequest - -// string channel_name = 1; -inline void GetChannelInfoRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& GetChannelInfoRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetChannelInfoRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void GetChannelInfoRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetChannelInfoRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL GetChannelInfoRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.GetChannelInfoRequest.channel_name) - return _s; -} -inline const ::std::string& GetChannelInfoRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void GetChannelInfoRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetChannelInfoRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetChannelInfoRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetChannelInfoRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void GetChannelInfoRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetChannelInfoRequest.channel_name) -} - -// ------------------------------------------------------------------- - -// GetChannelInfoResponse - -// string error = 1; -inline void GetChannelInfoResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& GetChannelInfoResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetChannelInfoResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void GetChannelInfoResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetChannelInfoResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL GetChannelInfoResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.GetChannelInfoResponse.error) - return _s; -} -inline const ::std::string& GetChannelInfoResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void GetChannelInfoResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetChannelInfoResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetChannelInfoResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetChannelInfoResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void GetChannelInfoResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetChannelInfoResponse.error) -} - -// repeated .subspace.ChannelInfoProto channels = 2; -inline int GetChannelInfoResponse::_internal_channels_size() const { - return _internal_channels().size(); -} -inline int GetChannelInfoResponse::channels_size() const { - return _internal_channels_size(); -} -inline void GetChannelInfoResponse::clear_channels() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channels_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL GetChannelInfoResponse::mutable_channels(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:subspace.GetChannelInfoResponse.channels) - return _internal_mutable_channels()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL GetChannelInfoResponse::mutable_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.GetChannelInfoResponse.channels) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_channels(); -} -inline const ::subspace::ChannelInfoProto& GetChannelInfoResponse::channels(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetChannelInfoResponse.channels) - return _internal_channels().Get(index); -} -inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL GetChannelInfoResponse::add_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelInfoProto* _add = - _internal_mutable_channels()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.GetChannelInfoResponse.channels) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& GetChannelInfoResponse::channels() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.GetChannelInfoResponse.channels) - return _internal_channels(); -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& -GetChannelInfoResponse::_internal_channels() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channels_; -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL -GetChannelInfoResponse::_internal_mutable_channels() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.channels_; -} - -// ------------------------------------------------------------------- - -// GetChannelStatsRequest - -// string channel_name = 1; -inline void GetChannelStatsRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& GetChannelStatsRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetChannelStatsRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void GetChannelStatsRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetChannelStatsRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL GetChannelStatsRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.GetChannelStatsRequest.channel_name) - return _s; -} -inline const ::std::string& GetChannelStatsRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void GetChannelStatsRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetChannelStatsRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetChannelStatsRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetChannelStatsRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void GetChannelStatsRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetChannelStatsRequest.channel_name) -} - -// ------------------------------------------------------------------- - -// GetChannelStatsResponse - -// string error = 1; -inline void GetChannelStatsResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& GetChannelStatsResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetChannelStatsResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void GetChannelStatsResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetChannelStatsResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL GetChannelStatsResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.GetChannelStatsResponse.error) - return _s; -} -inline const ::std::string& GetChannelStatsResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void GetChannelStatsResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetChannelStatsResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetChannelStatsResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetChannelStatsResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void GetChannelStatsResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetChannelStatsResponse.error) -} - -// repeated .subspace.ChannelStatsProto channels = 2; -inline int GetChannelStatsResponse::_internal_channels_size() const { - return _internal_channels().size(); -} -inline int GetChannelStatsResponse::channels_size() const { - return _internal_channels_size(); -} -inline void GetChannelStatsResponse::clear_channels() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channels_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL GetChannelStatsResponse::mutable_channels(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:subspace.GetChannelStatsResponse.channels) - return _internal_mutable_channels()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL GetChannelStatsResponse::mutable_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.GetChannelStatsResponse.channels) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_channels(); -} -inline const ::subspace::ChannelStatsProto& GetChannelStatsResponse::channels(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetChannelStatsResponse.channels) - return _internal_channels().Get(index); -} -inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL GetChannelStatsResponse::add_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelStatsProto* _add = - _internal_mutable_channels()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.GetChannelStatsResponse.channels) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& GetChannelStatsResponse::channels() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.GetChannelStatsResponse.channels) - return _internal_channels(); -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& -GetChannelStatsResponse::_internal_channels() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channels_; -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL -GetChannelStatsResponse::_internal_mutable_channels() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.channels_; -} - -// ------------------------------------------------------------------- - -// ClientBufferHandleMetadataProto - -// string channel_name = 1; -inline void ClientBufferHandleMetadataProto::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ClientBufferHandleMetadataProto::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.channel_name) - return _s; -} -inline const ::std::string& ClientBufferHandleMetadataProto::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ClientBufferHandleMetadataProto::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ClientBufferHandleMetadataProto::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ClientBufferHandleMetadataProto.channel_name) -} - -// uint64 session_id = 2; -inline void ClientBufferHandleMetadataProto::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline ::uint64_t ClientBufferHandleMetadataProto::session_id() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.session_id) - return _internal_session_id(); -} -inline void ClientBufferHandleMetadataProto::set_session_id(::uint64_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.session_id) -} -inline ::uint64_t ClientBufferHandleMetadataProto::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_session_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// uint32 buffer_index = 3; -inline void ClientBufferHandleMetadataProto::clear_buffer_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline ::uint32_t ClientBufferHandleMetadataProto::buffer_index() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.buffer_index) - return _internal_buffer_index(); -} -inline void ClientBufferHandleMetadataProto::set_buffer_index(::uint32_t value) { - _internal_set_buffer_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.buffer_index) -} -inline ::uint32_t ClientBufferHandleMetadataProto::_internal_buffer_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.buffer_index_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_buffer_index(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = value; -} - -// uint32 slot_id = 4; -inline void ClientBufferHandleMetadataProto::clear_slot_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_id_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline ::uint32_t ClientBufferHandleMetadataProto::slot_id() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.slot_id) - return _internal_slot_id(); -} -inline void ClientBufferHandleMetadataProto::set_slot_id(::uint32_t value) { - _internal_set_slot_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.slot_id) -} -inline ::uint32_t ClientBufferHandleMetadataProto::_internal_slot_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_id_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_slot_id(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_id_ = value; -} - -// bool is_prefix = 5; -inline void ClientBufferHandleMetadataProto::clear_is_prefix() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_prefix_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00001000U); -} -inline bool ClientBufferHandleMetadataProto::is_prefix() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.is_prefix) - return _internal_is_prefix(); -} -inline void ClientBufferHandleMetadataProto::set_is_prefix(bool value) { - _internal_set_is_prefix(value); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.is_prefix) -} -inline bool ClientBufferHandleMetadataProto::_internal_is_prefix() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_prefix_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_is_prefix(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_prefix_ = value; -} - -// uint64 full_size = 6; -inline void ClientBufferHandleMetadataProto::clear_full_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.full_size_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline ::uint64_t ClientBufferHandleMetadataProto::full_size() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.full_size) - return _internal_full_size(); -} -inline void ClientBufferHandleMetadataProto::set_full_size(::uint64_t value) { - _internal_set_full_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.full_size) -} -inline ::uint64_t ClientBufferHandleMetadataProto::_internal_full_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.full_size_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_full_size(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.full_size_ = value; -} - -// uint64 allocation_size = 7; -inline void ClientBufferHandleMetadataProto::clear_allocation_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.allocation_size_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline ::uint64_t ClientBufferHandleMetadataProto::allocation_size() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.allocation_size) - return _internal_allocation_size(); -} -inline void ClientBufferHandleMetadataProto::set_allocation_size(::uint64_t value) { - _internal_set_allocation_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.allocation_size) -} -inline ::uint64_t ClientBufferHandleMetadataProto::_internal_allocation_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.allocation_size_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_allocation_size(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.allocation_size_ = value; -} - -// uint64 handle = 8; -inline void ClientBufferHandleMetadataProto::clear_handle() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.handle_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000800U); -} -inline ::uint64_t ClientBufferHandleMetadataProto::handle() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.handle) - return _internal_handle(); -} -inline void ClientBufferHandleMetadataProto::set_handle(::uint64_t value) { - _internal_set_handle(value); - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.handle) -} -inline ::uint64_t ClientBufferHandleMetadataProto::_internal_handle() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.handle_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_handle(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.handle_ = value; -} - -// string shadow_file = 9; -inline void ClientBufferHandleMetadataProto::clear_shadow_file() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.shadow_file_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& ClientBufferHandleMetadataProto::shadow_file() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.shadow_file) - return _internal_shadow_file(); -} -template -PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_shadow_file(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.shadow_file_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.shadow_file) -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_shadow_file() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_shadow_file(); - // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.shadow_file) - return _s; -} -inline const ::std::string& ClientBufferHandleMetadataProto::_internal_shadow_file() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.shadow_file_.Get(); -} -inline void ClientBufferHandleMetadataProto::_internal_set_shadow_file(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.shadow_file_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_shadow_file() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.shadow_file_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_shadow_file() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.shadow_file) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.shadow_file_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.shadow_file_.Set("", GetArena()); - } - return released; -} -inline void ClientBufferHandleMetadataProto::set_allocated_shadow_file(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.shadow_file_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.shadow_file_.IsDefault()) { - _impl_.shadow_file_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ClientBufferHandleMetadataProto.shadow_file) -} - -// string object_name = 10; -inline void ClientBufferHandleMetadataProto::clear_object_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.object_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& ClientBufferHandleMetadataProto::object_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.object_name) - return _internal_object_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_object_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.object_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.object_name) -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_object_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_object_name(); - // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.object_name) - return _s; -} -inline const ::std::string& ClientBufferHandleMetadataProto::_internal_object_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.object_name_.Get(); -} -inline void ClientBufferHandleMetadataProto::_internal_set_object_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.object_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_object_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.object_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_object_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.object_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.object_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.object_name_.Set("", GetArena()); - } - return released; -} -inline void ClientBufferHandleMetadataProto::set_allocated_object_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.object_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.object_name_.IsDefault()) { - _impl_.object_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ClientBufferHandleMetadataProto.object_name) -} - -// string allocator = 11; -inline void ClientBufferHandleMetadataProto::clear_allocator() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.allocator_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::std::string& ClientBufferHandleMetadataProto::allocator() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.allocator) - return _internal_allocator(); -} -template -PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_allocator(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - _impl_.allocator_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.allocator) -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_allocator() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::std::string* _s = _internal_mutable_allocator(); - // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.allocator) - return _s; -} -inline const ::std::string& ClientBufferHandleMetadataProto::_internal_allocator() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.allocator_.Get(); -} -inline void ClientBufferHandleMetadataProto::_internal_set_allocator(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.allocator_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_allocator() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.allocator_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_allocator() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.allocator) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - auto* released = _impl_.allocator_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.allocator_.Set("", GetArena()); - } - return released; -} -inline void ClientBufferHandleMetadataProto::set_allocated_allocator(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - _impl_.allocator_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.allocator_.IsDefault()) { - _impl_.allocator_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ClientBufferHandleMetadataProto.allocator) -} - -// string pool_id = 12; -inline void ClientBufferHandleMetadataProto::clear_pool_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pool_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline const ::std::string& ClientBufferHandleMetadataProto::pool_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.pool_id) - return _internal_pool_id(); -} -template -PROTOBUF_ALWAYS_INLINE void ClientBufferHandleMetadataProto::set_pool_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - _impl_.pool_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.pool_id) -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_pool_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - ::std::string* _s = _internal_mutable_pool_id(); - // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.pool_id) - return _s; -} -inline const ::std::string& ClientBufferHandleMetadataProto::_internal_pool_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.pool_id_.Get(); -} -inline void ClientBufferHandleMetadataProto::_internal_set_pool_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pool_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_pool_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.pool_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_pool_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.pool_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - auto* released = _impl_.pool_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.pool_id_.Set("", GetArena()); - } - return released; -} -inline void ClientBufferHandleMetadataProto::set_allocated_pool_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - } - _impl_.pool_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pool_id_.IsDefault()) { - _impl_.pool_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ClientBufferHandleMetadataProto.pool_id) -} - -// bool cache_enabled = 13; -inline void ClientBufferHandleMetadataProto::clear_cache_enabled() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.cache_enabled_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00002000U); -} -inline bool ClientBufferHandleMetadataProto::cache_enabled() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.cache_enabled) - return _internal_cache_enabled(); -} -inline void ClientBufferHandleMetadataProto::set_cache_enabled(bool value) { - _internal_set_cache_enabled(value); - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.cache_enabled) -} -inline bool ClientBufferHandleMetadataProto::_internal_cache_enabled() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.cache_enabled_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_cache_enabled(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.cache_enabled_ = value; -} - -// uint32 alignment = 14; -inline void ClientBufferHandleMetadataProto::clear_alignment() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.alignment_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00004000U); -} -inline ::uint32_t ClientBufferHandleMetadataProto::alignment() const { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.alignment) - return _internal_alignment(); -} -inline void ClientBufferHandleMetadataProto::set_alignment(::uint32_t value) { - _internal_set_alignment(value); - SetHasBit(_impl_._has_bits_[0], 0x00004000U); - // @@protoc_insertion_point(field_set:subspace.ClientBufferHandleMetadataProto.alignment) -} -inline ::uint32_t ClientBufferHandleMetadataProto::_internal_alignment() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.alignment_; -} -inline void ClientBufferHandleMetadataProto::_internal_set_alignment(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.alignment_ = value; -} - -// .google.protobuf.Any allocator_metadata = 15; -inline bool ClientBufferHandleMetadataProto::has_allocator_metadata() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); - PROTOBUF_ASSUME(!value || _impl_.allocator_metadata_ != nullptr); - return value; -} -inline const ::google::protobuf::Any& ClientBufferHandleMetadataProto::_internal_allocator_metadata() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::google::protobuf::Any* p = _impl_.allocator_metadata_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Any_default_instance_); -} -inline const ::google::protobuf::Any& ClientBufferHandleMetadataProto::allocator_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ClientBufferHandleMetadataProto.allocator_metadata) - return _internal_allocator_metadata(); -} -inline void ClientBufferHandleMetadataProto::unsafe_arena_set_allocated_allocator_metadata( - ::google::protobuf::Any* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.allocator_metadata_); - } - _impl_.allocator_metadata_ = reinterpret_cast<::google::protobuf::Any*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ClientBufferHandleMetadataProto.allocator_metadata) -} -inline ::google::protobuf::Any* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::release_allocator_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); - ::google::protobuf::Any* released = _impl_.allocator_metadata_; - _impl_.allocator_metadata_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::google::protobuf::Any* PROTOBUF_NULLABLE ClientBufferHandleMetadataProto::unsafe_arena_release_allocator_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ClientBufferHandleMetadataProto.allocator_metadata) - - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); - ::google::protobuf::Any* temp = _impl_.allocator_metadata_; - _impl_.allocator_metadata_ = nullptr; - return temp; -} -inline ::google::protobuf::Any* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::_internal_mutable_allocator_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.allocator_metadata_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); - _impl_.allocator_metadata_ = reinterpret_cast<::google::protobuf::Any*>(p); - } - return _impl_.allocator_metadata_; -} -inline ::google::protobuf::Any* PROTOBUF_NONNULL ClientBufferHandleMetadataProto::mutable_allocator_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - ::google::protobuf::Any* _msg = _internal_mutable_allocator_metadata(); - // @@protoc_insertion_point(field_mutable:subspace.ClientBufferHandleMetadataProto.allocator_metadata) - return _msg; -} -inline void ClientBufferHandleMetadataProto::set_allocated_allocator_metadata(::google::protobuf::Any* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.allocator_metadata_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); - } - - _impl_.allocator_metadata_ = reinterpret_cast<::google::protobuf::Any*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.ClientBufferHandleMetadataProto.allocator_metadata) -} - -// ------------------------------------------------------------------- - -// RegisterClientBufferRequest - -// .subspace.ClientBufferHandleMetadataProto metadata = 1; -inline bool RegisterClientBufferRequest::has_metadata() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; -} -inline void RegisterClientBufferRequest::clear_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::subspace::ClientBufferHandleMetadataProto& RegisterClientBufferRequest::_internal_metadata() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::subspace::ClientBufferHandleMetadataProto* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::subspace::_ClientBufferHandleMetadataProto_default_instance_); -} -inline const ::subspace::ClientBufferHandleMetadataProto& RegisterClientBufferRequest::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferRequest.metadata) - return _internal_metadata(); -} -inline void RegisterClientBufferRequest::unsafe_arena_set_allocated_metadata( - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); - } - _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RegisterClientBufferRequest.metadata) -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE RegisterClientBufferRequest::release_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::subspace::ClientBufferHandleMetadataProto* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE RegisterClientBufferRequest::unsafe_arena_release_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RegisterClientBufferRequest.metadata) - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::subspace::ClientBufferHandleMetadataProto* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; - return temp; -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL RegisterClientBufferRequest::_internal_mutable_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.metadata_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ClientBufferHandleMetadataProto>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(p); - } - return _impl_.metadata_; -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL RegisterClientBufferRequest::mutable_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::subspace::ClientBufferHandleMetadataProto* _msg = _internal_mutable_metadata(); - // @@protoc_insertion_point(field_mutable:subspace.RegisterClientBufferRequest.metadata) - return _msg; -} -inline void RegisterClientBufferRequest::set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - - _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.RegisterClientBufferRequest.metadata) -} - -// bool has_fd = 2; -inline void RegisterClientBufferRequest::clear_has_fd() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_fd_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline bool RegisterClientBufferRequest::has_fd() const { - // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferRequest.has_fd) - return _internal_has_fd(); -} -inline void RegisterClientBufferRequest::set_has_fd(bool value) { - _internal_set_has_fd(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RegisterClientBufferRequest.has_fd) -} -inline bool RegisterClientBufferRequest::_internal_has_fd() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.has_fd_; -} -inline void RegisterClientBufferRequest::_internal_set_has_fd(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_fd_ = value; -} - -// int32 fd_index = 3; -inline void RegisterClientBufferRequest::clear_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t RegisterClientBufferRequest::fd_index() const { - // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferRequest.fd_index) - return _internal_fd_index(); -} -inline void RegisterClientBufferRequest::set_fd_index(::int32_t value) { - _internal_set_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.RegisterClientBufferRequest.fd_index) -} -inline ::int32_t RegisterClientBufferRequest::_internal_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.fd_index_; -} -inline void RegisterClientBufferRequest::_internal_set_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.fd_index_ = value; -} - -// ------------------------------------------------------------------- - -// RegisterClientBufferResponse - -// string error = 1; -inline void RegisterClientBufferResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RegisterClientBufferResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RegisterClientBufferResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void RegisterClientBufferResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RegisterClientBufferResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL RegisterClientBufferResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.RegisterClientBufferResponse.error) - return _s; -} -inline const ::std::string& RegisterClientBufferResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void RegisterClientBufferResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RegisterClientBufferResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RegisterClientBufferResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RegisterClientBufferResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void RegisterClientBufferResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RegisterClientBufferResponse.error) -} - -// ------------------------------------------------------------------- - -// UnregisterClientBufferRequest - -// string channel_name = 1; -inline void UnregisterClientBufferRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& UnregisterClientBufferRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.UnregisterClientBufferRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void UnregisterClientBufferRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL UnregisterClientBufferRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.UnregisterClientBufferRequest.channel_name) - return _s; -} -inline const ::std::string& UnregisterClientBufferRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void UnregisterClientBufferRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL UnregisterClientBufferRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE UnregisterClientBufferRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.UnregisterClientBufferRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void UnregisterClientBufferRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.UnregisterClientBufferRequest.channel_name) -} - -// uint64 session_id = 2; -inline void UnregisterClientBufferRequest::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::uint64_t UnregisterClientBufferRequest::session_id() const { - // @@protoc_insertion_point(field_get:subspace.UnregisterClientBufferRequest.session_id) - return _internal_session_id(); -} -inline void UnregisterClientBufferRequest::set_session_id(::uint64_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.session_id) -} -inline ::uint64_t UnregisterClientBufferRequest::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void UnregisterClientBufferRequest::_internal_set_session_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// uint32 buffer_index = 3; -inline void UnregisterClientBufferRequest::clear_buffer_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::uint32_t UnregisterClientBufferRequest::buffer_index() const { - // @@protoc_insertion_point(field_get:subspace.UnregisterClientBufferRequest.buffer_index) - return _internal_buffer_index(); -} -inline void UnregisterClientBufferRequest::set_buffer_index(::uint32_t value) { - _internal_set_buffer_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.UnregisterClientBufferRequest.buffer_index) -} -inline ::uint32_t UnregisterClientBufferRequest::_internal_buffer_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.buffer_index_; -} -inline void UnregisterClientBufferRequest::_internal_set_buffer_index(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = value; -} - -// ------------------------------------------------------------------- - -// GetClientBuffersRequest - -// string channel_name = 1; -inline void GetClientBuffersRequest::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& GetClientBuffersRequest::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetClientBuffersRequest.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void GetClientBuffersRequest::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetClientBuffersRequest.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL GetClientBuffersRequest::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.GetClientBuffersRequest.channel_name) - return _s; -} -inline const ::std::string& GetClientBuffersRequest::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void GetClientBuffersRequest::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetClientBuffersRequest::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetClientBuffersRequest::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetClientBuffersRequest.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void GetClientBuffersRequest::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetClientBuffersRequest.channel_name) -} - -// uint64 session_id = 2; -inline void GetClientBuffersRequest::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::uint64_t GetClientBuffersRequest::session_id() const { - // @@protoc_insertion_point(field_get:subspace.GetClientBuffersRequest.session_id) - return _internal_session_id(); -} -inline void GetClientBuffersRequest::set_session_id(::uint64_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.GetClientBuffersRequest.session_id) -} -inline ::uint64_t GetClientBuffersRequest::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void GetClientBuffersRequest::_internal_set_session_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// uint32 buffer_index = 3; -inline void GetClientBuffersRequest::clear_buffer_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::uint32_t GetClientBuffersRequest::buffer_index() const { - // @@protoc_insertion_point(field_get:subspace.GetClientBuffersRequest.buffer_index) - return _internal_buffer_index(); -} -inline void GetClientBuffersRequest::set_buffer_index(::uint32_t value) { - _internal_set_buffer_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.GetClientBuffersRequest.buffer_index) -} -inline ::uint32_t GetClientBuffersRequest::_internal_buffer_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.buffer_index_; -} -inline void GetClientBuffersRequest::_internal_set_buffer_index(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = value; -} - -// ------------------------------------------------------------------- - -// GetClientBuffersResponse - -// string error = 1; -inline void GetClientBuffersResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& GetClientBuffersResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetClientBuffersResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void GetClientBuffersResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.GetClientBuffersResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.GetClientBuffersResponse.error) - return _s; -} -inline const ::std::string& GetClientBuffersResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void GetClientBuffersResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GetClientBuffersResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GetClientBuffersResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.GetClientBuffersResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void GetClientBuffersResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.GetClientBuffersResponse.error) -} - -// repeated .subspace.ClientBufferHandleMetadataProto metadata = 2; -inline int GetClientBuffersResponse::_internal_metadata_size() const { - return _internal_metadata().size(); -} -inline int GetClientBuffersResponse::metadata_size() const { - return _internal_metadata_size(); -} -inline void GetClientBuffersResponse::clear_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_metadata(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:subspace.GetClientBuffersResponse.metadata) - return _internal_mutable_metadata()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.GetClientBuffersResponse.metadata) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_metadata(); -} -inline const ::subspace::ClientBufferHandleMetadataProto& GetClientBuffersResponse::metadata(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.GetClientBuffersResponse.metadata) - return _internal_metadata().Get(index); -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL GetClientBuffersResponse::add_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ClientBufferHandleMetadataProto* _add = - _internal_mutable_metadata()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.GetClientBuffersResponse.metadata) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& GetClientBuffersResponse::metadata() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.GetClientBuffersResponse.metadata) - return _internal_metadata(); -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>& -GetClientBuffersResponse::_internal_metadata() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.metadata_; -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ClientBufferHandleMetadataProto>* PROTOBUF_NONNULL -GetClientBuffersResponse::_internal_mutable_metadata() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.metadata_; -} - -// repeated int32 fd_indexes = 3; -inline int GetClientBuffersResponse::_internal_fd_indexes_size() const { - return _internal_fd_indexes().size(); -} -inline int GetClientBuffersResponse::fd_indexes_size() const { - return _internal_fd_indexes_size(); -} -inline void GetClientBuffersResponse::clear_fd_indexes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.fd_indexes_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t GetClientBuffersResponse::fd_indexes(int index) const { - // @@protoc_insertion_point(field_get:subspace.GetClientBuffersResponse.fd_indexes) - return _internal_fd_indexes().Get(index); -} -inline void GetClientBuffersResponse::set_fd_indexes(int index, ::int32_t value) { - _internal_mutable_fd_indexes()->Set(index, value); - // @@protoc_insertion_point(field_set:subspace.GetClientBuffersResponse.fd_indexes) -} -inline void GetClientBuffersResponse::add_fd_indexes(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_fd_indexes()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_add:subspace.GetClientBuffersResponse.fd_indexes) -} -inline const ::google::protobuf::RepeatedField<::int32_t>& GetClientBuffersResponse::fd_indexes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.GetClientBuffersResponse.fd_indexes) - return _internal_fd_indexes(); -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL GetClientBuffersResponse::mutable_fd_indexes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_mutable_list:subspace.GetClientBuffersResponse.fd_indexes) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_fd_indexes(); -} -inline const ::google::protobuf::RepeatedField<::int32_t>& -GetClientBuffersResponse::_internal_fd_indexes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.fd_indexes_; -} -inline ::google::protobuf::RepeatedField<::int32_t>* PROTOBUF_NONNULL -GetClientBuffersResponse::_internal_mutable_fd_indexes() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.fd_indexes_; -} - -// ------------------------------------------------------------------- - -// Request - -// .subspace.InitRequest init = 1; -inline bool Request::has_init() const { - return request_case() == kInit; -} -inline bool Request::_internal_has_init() const { - return request_case() == kInit; -} -inline void Request::set_has_init() { - _impl_._oneof_case_[0] = kInit; -} -inline void Request::clear_init() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kInit) { - if (GetArena() == nullptr) { - delete _impl_.request_.init_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.init_); - } - clear_has_request(); - } -} -inline ::subspace::InitRequest* PROTOBUF_NULLABLE Request::release_init() { - // @@protoc_insertion_point(field_release:subspace.Request.init) - if (request_case() == kInit) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.init_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::InitRequest& Request::_internal_init() const { - return request_case() == kInit ? static_cast(*reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_)) - : reinterpret_cast(::subspace::_InitRequest_default_instance_); -} -inline const ::subspace::InitRequest& Request::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.init) - return _internal_init(); -} -inline ::subspace::InitRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_init() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.init) - if (request_case() == kInit) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_); - _impl_.request_.init_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_init( - ::subspace::InitRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_init(); - _impl_.request_.init_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.init) -} -inline ::subspace::InitRequest* PROTOBUF_NONNULL Request::_internal_mutable_init() { - if (request_case() != kInit) { - clear_request(); - set_has_init(); - _impl_.request_.init_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::InitRequest>(GetArena())); - } - return reinterpret_cast<::subspace::InitRequest*>(_impl_.request_.init_); -} -inline ::subspace::InitRequest* PROTOBUF_NONNULL Request::mutable_init() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::InitRequest* _msg = _internal_mutable_init(); - // @@protoc_insertion_point(field_mutable:subspace.Request.init) - return _msg; -} - -// .subspace.CreatePublisherRequest create_publisher = 2; -inline bool Request::has_create_publisher() const { - return request_case() == kCreatePublisher; -} -inline bool Request::_internal_has_create_publisher() const { - return request_case() == kCreatePublisher; -} -inline void Request::set_has_create_publisher() { - _impl_._oneof_case_[0] = kCreatePublisher; -} -inline void Request::clear_create_publisher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kCreatePublisher) { - if (GetArena() == nullptr) { - delete _impl_.request_.create_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.create_publisher_); - } - clear_has_request(); - } -} -inline ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE Request::release_create_publisher() { - // @@protoc_insertion_point(field_release:subspace.Request.create_publisher) - if (request_case() == kCreatePublisher) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.create_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::CreatePublisherRequest& Request::_internal_create_publisher() const { - return request_case() == kCreatePublisher ? static_cast(*reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_)) - : reinterpret_cast(::subspace::_CreatePublisherRequest_default_instance_); -} -inline const ::subspace::CreatePublisherRequest& Request::create_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.create_publisher) - return _internal_create_publisher(); -} -inline ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_create_publisher() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.create_publisher) - if (request_case() == kCreatePublisher) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_); - _impl_.request_.create_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_create_publisher( - ::subspace::CreatePublisherRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_create_publisher(); - _impl_.request_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.create_publisher) -} -inline ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL Request::_internal_mutable_create_publisher() { - if (request_case() != kCreatePublisher) { - clear_request(); - set_has_create_publisher(); - _impl_.request_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::CreatePublisherRequest>(GetArena())); - } - return reinterpret_cast<::subspace::CreatePublisherRequest*>(_impl_.request_.create_publisher_); -} -inline ::subspace::CreatePublisherRequest* PROTOBUF_NONNULL Request::mutable_create_publisher() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::CreatePublisherRequest* _msg = _internal_mutable_create_publisher(); - // @@protoc_insertion_point(field_mutable:subspace.Request.create_publisher) - return _msg; -} - -// .subspace.CreateSubscriberRequest create_subscriber = 3; -inline bool Request::has_create_subscriber() const { - return request_case() == kCreateSubscriber; -} -inline bool Request::_internal_has_create_subscriber() const { - return request_case() == kCreateSubscriber; -} -inline void Request::set_has_create_subscriber() { - _impl_._oneof_case_[0] = kCreateSubscriber; -} -inline void Request::clear_create_subscriber() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kCreateSubscriber) { - if (GetArena() == nullptr) { - delete _impl_.request_.create_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.create_subscriber_); - } - clear_has_request(); - } -} -inline ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE Request::release_create_subscriber() { - // @@protoc_insertion_point(field_release:subspace.Request.create_subscriber) - if (request_case() == kCreateSubscriber) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.create_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::CreateSubscriberRequest& Request::_internal_create_subscriber() const { - return request_case() == kCreateSubscriber ? static_cast(*reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_)) - : reinterpret_cast(::subspace::_CreateSubscriberRequest_default_instance_); -} -inline const ::subspace::CreateSubscriberRequest& Request::create_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.create_subscriber) - return _internal_create_subscriber(); -} -inline ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_create_subscriber() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.create_subscriber) - if (request_case() == kCreateSubscriber) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_); - _impl_.request_.create_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_create_subscriber( - ::subspace::CreateSubscriberRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_create_subscriber(); - _impl_.request_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.create_subscriber) -} -inline ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL Request::_internal_mutable_create_subscriber() { - if (request_case() != kCreateSubscriber) { - clear_request(); - set_has_create_subscriber(); - _impl_.request_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::CreateSubscriberRequest>(GetArena())); - } - return reinterpret_cast<::subspace::CreateSubscriberRequest*>(_impl_.request_.create_subscriber_); -} -inline ::subspace::CreateSubscriberRequest* PROTOBUF_NONNULL Request::mutable_create_subscriber() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::CreateSubscriberRequest* _msg = _internal_mutable_create_subscriber(); - // @@protoc_insertion_point(field_mutable:subspace.Request.create_subscriber) - return _msg; -} - -// .subspace.GetTriggersRequest get_triggers = 4; -inline bool Request::has_get_triggers() const { - return request_case() == kGetTriggers; -} -inline bool Request::_internal_has_get_triggers() const { - return request_case() == kGetTriggers; -} -inline void Request::set_has_get_triggers() { - _impl_._oneof_case_[0] = kGetTriggers; -} -inline void Request::clear_get_triggers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kGetTriggers) { - if (GetArena() == nullptr) { - delete _impl_.request_.get_triggers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_triggers_); - } - clear_has_request(); - } -} -inline ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE Request::release_get_triggers() { - // @@protoc_insertion_point(field_release:subspace.Request.get_triggers) - if (request_case() == kGetTriggers) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.get_triggers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetTriggersRequest& Request::_internal_get_triggers() const { - return request_case() == kGetTriggers ? static_cast(*reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_)) - : reinterpret_cast(::subspace::_GetTriggersRequest_default_instance_); -} -inline const ::subspace::GetTriggersRequest& Request::get_triggers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.get_triggers) - return _internal_get_triggers(); -} -inline ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_triggers() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_triggers) - if (request_case() == kGetTriggers) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_); - _impl_.request_.get_triggers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_get_triggers( - ::subspace::GetTriggersRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_get_triggers(); - _impl_.request_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_triggers) -} -inline ::subspace::GetTriggersRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_triggers() { - if (request_case() != kGetTriggers) { - clear_request(); - set_has_get_triggers(); - _impl_.request_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetTriggersRequest>(GetArena())); - } - return reinterpret_cast<::subspace::GetTriggersRequest*>(_impl_.request_.get_triggers_); -} -inline ::subspace::GetTriggersRequest* PROTOBUF_NONNULL Request::mutable_get_triggers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetTriggersRequest* _msg = _internal_mutable_get_triggers(); - // @@protoc_insertion_point(field_mutable:subspace.Request.get_triggers) - return _msg; -} - -// .subspace.RemovePublisherRequest remove_publisher = 5; -inline bool Request::has_remove_publisher() const { - return request_case() == kRemovePublisher; -} -inline bool Request::_internal_has_remove_publisher() const { - return request_case() == kRemovePublisher; -} -inline void Request::set_has_remove_publisher() { - _impl_._oneof_case_[0] = kRemovePublisher; -} -inline void Request::clear_remove_publisher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kRemovePublisher) { - if (GetArena() == nullptr) { - delete _impl_.request_.remove_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.remove_publisher_); - } - clear_has_request(); - } -} -inline ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE Request::release_remove_publisher() { - // @@protoc_insertion_point(field_release:subspace.Request.remove_publisher) - if (request_case() == kRemovePublisher) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.remove_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RemovePublisherRequest& Request::_internal_remove_publisher() const { - return request_case() == kRemovePublisher ? static_cast(*reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_)) - : reinterpret_cast(::subspace::_RemovePublisherRequest_default_instance_); -} -inline const ::subspace::RemovePublisherRequest& Request::remove_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.remove_publisher) - return _internal_remove_publisher(); -} -inline ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_remove_publisher() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.remove_publisher) - if (request_case() == kRemovePublisher) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_); - _impl_.request_.remove_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_remove_publisher( - ::subspace::RemovePublisherRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_remove_publisher(); - _impl_.request_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.remove_publisher) -} -inline ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL Request::_internal_mutable_remove_publisher() { - if (request_case() != kRemovePublisher) { - clear_request(); - set_has_remove_publisher(); - _impl_.request_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::RemovePublisherRequest>(GetArena())); - } - return reinterpret_cast<::subspace::RemovePublisherRequest*>(_impl_.request_.remove_publisher_); -} -inline ::subspace::RemovePublisherRequest* PROTOBUF_NONNULL Request::mutable_remove_publisher() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RemovePublisherRequest* _msg = _internal_mutable_remove_publisher(); - // @@protoc_insertion_point(field_mutable:subspace.Request.remove_publisher) - return _msg; -} - -// .subspace.RemoveSubscriberRequest remove_subscriber = 6; -inline bool Request::has_remove_subscriber() const { - return request_case() == kRemoveSubscriber; -} -inline bool Request::_internal_has_remove_subscriber() const { - return request_case() == kRemoveSubscriber; -} -inline void Request::set_has_remove_subscriber() { - _impl_._oneof_case_[0] = kRemoveSubscriber; -} -inline void Request::clear_remove_subscriber() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kRemoveSubscriber) { - if (GetArena() == nullptr) { - delete _impl_.request_.remove_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.remove_subscriber_); - } - clear_has_request(); - } -} -inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE Request::release_remove_subscriber() { - // @@protoc_insertion_point(field_release:subspace.Request.remove_subscriber) - if (request_case() == kRemoveSubscriber) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.remove_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RemoveSubscriberRequest& Request::_internal_remove_subscriber() const { - return request_case() == kRemoveSubscriber ? static_cast(*reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_)) - : reinterpret_cast(::subspace::_RemoveSubscriberRequest_default_instance_); -} -inline const ::subspace::RemoveSubscriberRequest& Request::remove_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.remove_subscriber) - return _internal_remove_subscriber(); -} -inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_remove_subscriber() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.remove_subscriber) - if (request_case() == kRemoveSubscriber) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_); - _impl_.request_.remove_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_remove_subscriber( - ::subspace::RemoveSubscriberRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_remove_subscriber(); - _impl_.request_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.remove_subscriber) -} -inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL Request::_internal_mutable_remove_subscriber() { - if (request_case() != kRemoveSubscriber) { - clear_request(); - set_has_remove_subscriber(); - _impl_.request_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::RemoveSubscriberRequest>(GetArena())); - } - return reinterpret_cast<::subspace::RemoveSubscriberRequest*>(_impl_.request_.remove_subscriber_); -} -inline ::subspace::RemoveSubscriberRequest* PROTOBUF_NONNULL Request::mutable_remove_subscriber() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RemoveSubscriberRequest* _msg = _internal_mutable_remove_subscriber(); - // @@protoc_insertion_point(field_mutable:subspace.Request.remove_subscriber) - return _msg; -} - -// .subspace.GetChannelInfoRequest get_channel_info = 9; -inline bool Request::has_get_channel_info() const { - return request_case() == kGetChannelInfo; -} -inline bool Request::_internal_has_get_channel_info() const { - return request_case() == kGetChannelInfo; -} -inline void Request::set_has_get_channel_info() { - _impl_._oneof_case_[0] = kGetChannelInfo; -} -inline void Request::clear_get_channel_info() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kGetChannelInfo) { - if (GetArena() == nullptr) { - delete _impl_.request_.get_channel_info_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_channel_info_); - } - clear_has_request(); - } -} -inline ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE Request::release_get_channel_info() { - // @@protoc_insertion_point(field_release:subspace.Request.get_channel_info) - if (request_case() == kGetChannelInfo) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.get_channel_info_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetChannelInfoRequest& Request::_internal_get_channel_info() const { - return request_case() == kGetChannelInfo ? static_cast(*reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_)) - : reinterpret_cast(::subspace::_GetChannelInfoRequest_default_instance_); -} -inline const ::subspace::GetChannelInfoRequest& Request::get_channel_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.get_channel_info) - return _internal_get_channel_info(); -} -inline ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_channel_info() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_channel_info) - if (request_case() == kGetChannelInfo) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_); - _impl_.request_.get_channel_info_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_get_channel_info( - ::subspace::GetChannelInfoRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_get_channel_info(); - _impl_.request_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_channel_info) -} -inline ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_channel_info() { - if (request_case() != kGetChannelInfo) { - clear_request(); - set_has_get_channel_info(); - _impl_.request_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelInfoRequest>(GetArena())); - } - return reinterpret_cast<::subspace::GetChannelInfoRequest*>(_impl_.request_.get_channel_info_); -} -inline ::subspace::GetChannelInfoRequest* PROTOBUF_NONNULL Request::mutable_get_channel_info() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetChannelInfoRequest* _msg = _internal_mutable_get_channel_info(); - // @@protoc_insertion_point(field_mutable:subspace.Request.get_channel_info) - return _msg; -} - -// .subspace.GetChannelStatsRequest get_channel_stats = 10; -inline bool Request::has_get_channel_stats() const { - return request_case() == kGetChannelStats; -} -inline bool Request::_internal_has_get_channel_stats() const { - return request_case() == kGetChannelStats; -} -inline void Request::set_has_get_channel_stats() { - _impl_._oneof_case_[0] = kGetChannelStats; -} -inline void Request::clear_get_channel_stats() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kGetChannelStats) { - if (GetArena() == nullptr) { - delete _impl_.request_.get_channel_stats_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_channel_stats_); - } - clear_has_request(); - } -} -inline ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE Request::release_get_channel_stats() { - // @@protoc_insertion_point(field_release:subspace.Request.get_channel_stats) - if (request_case() == kGetChannelStats) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.get_channel_stats_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetChannelStatsRequest& Request::_internal_get_channel_stats() const { - return request_case() == kGetChannelStats ? static_cast(*reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_)) - : reinterpret_cast(::subspace::_GetChannelStatsRequest_default_instance_); -} -inline const ::subspace::GetChannelStatsRequest& Request::get_channel_stats() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.get_channel_stats) - return _internal_get_channel_stats(); -} -inline ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_channel_stats() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_channel_stats) - if (request_case() == kGetChannelStats) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_); - _impl_.request_.get_channel_stats_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_get_channel_stats( - ::subspace::GetChannelStatsRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_get_channel_stats(); - _impl_.request_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_channel_stats) -} -inline ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_channel_stats() { - if (request_case() != kGetChannelStats) { - clear_request(); - set_has_get_channel_stats(); - _impl_.request_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelStatsRequest>(GetArena())); - } - return reinterpret_cast<::subspace::GetChannelStatsRequest*>(_impl_.request_.get_channel_stats_); -} -inline ::subspace::GetChannelStatsRequest* PROTOBUF_NONNULL Request::mutable_get_channel_stats() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetChannelStatsRequest* _msg = _internal_mutable_get_channel_stats(); - // @@protoc_insertion_point(field_mutable:subspace.Request.get_channel_stats) - return _msg; -} - -// .subspace.RegisterClientBufferRequest register_client_buffer = 11; -inline bool Request::has_register_client_buffer() const { - return request_case() == kRegisterClientBuffer; -} -inline bool Request::_internal_has_register_client_buffer() const { - return request_case() == kRegisterClientBuffer; -} -inline void Request::set_has_register_client_buffer() { - _impl_._oneof_case_[0] = kRegisterClientBuffer; -} -inline void Request::clear_register_client_buffer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kRegisterClientBuffer) { - if (GetArena() == nullptr) { - delete _impl_.request_.register_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.register_client_buffer_); - } - clear_has_request(); - } -} -inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE Request::release_register_client_buffer() { - // @@protoc_insertion_point(field_release:subspace.Request.register_client_buffer) - if (request_case() == kRegisterClientBuffer) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.register_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RegisterClientBufferRequest& Request::_internal_register_client_buffer() const { - return request_case() == kRegisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_)) - : reinterpret_cast(::subspace::_RegisterClientBufferRequest_default_instance_); -} -inline const ::subspace::RegisterClientBufferRequest& Request::register_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.register_client_buffer) - return _internal_register_client_buffer(); -} -inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_register_client_buffer() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.register_client_buffer) - if (request_case() == kRegisterClientBuffer) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_); - _impl_.request_.register_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_register_client_buffer( - ::subspace::RegisterClientBufferRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_register_client_buffer(); - _impl_.request_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.register_client_buffer) -} -inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL Request::_internal_mutable_register_client_buffer() { - if (request_case() != kRegisterClientBuffer) { - clear_request(); - set_has_register_client_buffer(); - _impl_.request_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::RegisterClientBufferRequest>(GetArena())); - } - return reinterpret_cast<::subspace::RegisterClientBufferRequest*>(_impl_.request_.register_client_buffer_); -} -inline ::subspace::RegisterClientBufferRequest* PROTOBUF_NONNULL Request::mutable_register_client_buffer() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RegisterClientBufferRequest* _msg = _internal_mutable_register_client_buffer(); - // @@protoc_insertion_point(field_mutable:subspace.Request.register_client_buffer) - return _msg; -} - -// .subspace.UnregisterClientBufferRequest unregister_client_buffer = 12; -inline bool Request::has_unregister_client_buffer() const { - return request_case() == kUnregisterClientBuffer; -} -inline bool Request::_internal_has_unregister_client_buffer() const { - return request_case() == kUnregisterClientBuffer; -} -inline void Request::set_has_unregister_client_buffer() { - _impl_._oneof_case_[0] = kUnregisterClientBuffer; -} -inline void Request::clear_unregister_client_buffer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kUnregisterClientBuffer) { - if (GetArena() == nullptr) { - delete _impl_.request_.unregister_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.unregister_client_buffer_); - } - clear_has_request(); - } -} -inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE Request::release_unregister_client_buffer() { - // @@protoc_insertion_point(field_release:subspace.Request.unregister_client_buffer) - if (request_case() == kUnregisterClientBuffer) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.unregister_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::UnregisterClientBufferRequest& Request::_internal_unregister_client_buffer() const { - return request_case() == kUnregisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_)) - : reinterpret_cast(::subspace::_UnregisterClientBufferRequest_default_instance_); -} -inline const ::subspace::UnregisterClientBufferRequest& Request::unregister_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.unregister_client_buffer) - return _internal_unregister_client_buffer(); -} -inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_unregister_client_buffer() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.unregister_client_buffer) - if (request_case() == kUnregisterClientBuffer) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_); - _impl_.request_.unregister_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_unregister_client_buffer( - ::subspace::UnregisterClientBufferRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_unregister_client_buffer(); - _impl_.request_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.unregister_client_buffer) -} -inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL Request::_internal_mutable_unregister_client_buffer() { - if (request_case() != kUnregisterClientBuffer) { - clear_request(); - set_has_unregister_client_buffer(); - _impl_.request_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::UnregisterClientBufferRequest>(GetArena())); - } - return reinterpret_cast<::subspace::UnregisterClientBufferRequest*>(_impl_.request_.unregister_client_buffer_); -} -inline ::subspace::UnregisterClientBufferRequest* PROTOBUF_NONNULL Request::mutable_unregister_client_buffer() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::UnregisterClientBufferRequest* _msg = _internal_mutable_unregister_client_buffer(); - // @@protoc_insertion_point(field_mutable:subspace.Request.unregister_client_buffer) - return _msg; -} - -// .subspace.GetClientBuffersRequest get_client_buffers = 13; -inline bool Request::has_get_client_buffers() const { - return request_case() == kGetClientBuffers; -} -inline bool Request::_internal_has_get_client_buffers() const { - return request_case() == kGetClientBuffers; -} -inline void Request::set_has_get_client_buffers() { - _impl_._oneof_case_[0] = kGetClientBuffers; -} -inline void Request::clear_get_client_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kGetClientBuffers) { - if (GetArena() == nullptr) { - delete _impl_.request_.get_client_buffers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.get_client_buffers_); - } - clear_has_request(); - } -} -inline ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE Request::release_get_client_buffers() { - // @@protoc_insertion_point(field_release:subspace.Request.get_client_buffers) - if (request_case() == kGetClientBuffers) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.get_client_buffers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetClientBuffersRequest& Request::_internal_get_client_buffers() const { - return request_case() == kGetClientBuffers ? static_cast(*reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_)) - : reinterpret_cast(::subspace::_GetClientBuffersRequest_default_instance_); -} -inline const ::subspace::GetClientBuffersRequest& Request::get_client_buffers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Request.get_client_buffers) - return _internal_get_client_buffers(); -} -inline ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE Request::unsafe_arena_release_get_client_buffers() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Request.get_client_buffers) - if (request_case() == kGetClientBuffers) { - clear_has_request(); - auto* temp = reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_); - _impl_.request_.get_client_buffers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Request::unsafe_arena_set_allocated_get_client_buffers( - ::subspace::GetClientBuffersRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_get_client_buffers(); - _impl_.request_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Request.get_client_buffers) -} -inline ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL Request::_internal_mutable_get_client_buffers() { - if (request_case() != kGetClientBuffers) { - clear_request(); - set_has_get_client_buffers(); - _impl_.request_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetClientBuffersRequest>(GetArena())); - } - return reinterpret_cast<::subspace::GetClientBuffersRequest*>(_impl_.request_.get_client_buffers_); -} -inline ::subspace::GetClientBuffersRequest* PROTOBUF_NONNULL Request::mutable_get_client_buffers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetClientBuffersRequest* _msg = _internal_mutable_get_client_buffers(); - // @@protoc_insertion_point(field_mutable:subspace.Request.get_client_buffers) - return _msg; -} - -inline bool Request::has_request() const { - return request_case() != REQUEST_NOT_SET; -} -inline void Request::clear_has_request() { - _impl_._oneof_case_[0] = REQUEST_NOT_SET; -} -inline Request::RequestCase Request::request_case() const { - return Request::RequestCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Response - -// .subspace.InitResponse init = 1; -inline bool Response::has_init() const { - return response_case() == kInit; -} -inline bool Response::_internal_has_init() const { - return response_case() == kInit; -} -inline void Response::set_has_init() { - _impl_._oneof_case_[0] = kInit; -} -inline void Response::clear_init() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kInit) { - if (GetArena() == nullptr) { - delete _impl_.response_.init_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.init_); - } - clear_has_response(); - } -} -inline ::subspace::InitResponse* PROTOBUF_NULLABLE Response::release_init() { - // @@protoc_insertion_point(field_release:subspace.Response.init) - if (response_case() == kInit) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.init_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::InitResponse& Response::_internal_init() const { - return response_case() == kInit ? static_cast(*reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_)) - : reinterpret_cast(::subspace::_InitResponse_default_instance_); -} -inline const ::subspace::InitResponse& Response::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.init) - return _internal_init(); -} -inline ::subspace::InitResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_init() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.init) - if (response_case() == kInit) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_); - _impl_.response_.init_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_init( - ::subspace::InitResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_init(); - _impl_.response_.init_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.init) -} -inline ::subspace::InitResponse* PROTOBUF_NONNULL Response::_internal_mutable_init() { - if (response_case() != kInit) { - clear_response(); - set_has_init(); - _impl_.response_.init_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::InitResponse>(GetArena())); - } - return reinterpret_cast<::subspace::InitResponse*>(_impl_.response_.init_); -} -inline ::subspace::InitResponse* PROTOBUF_NONNULL Response::mutable_init() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::InitResponse* _msg = _internal_mutable_init(); - // @@protoc_insertion_point(field_mutable:subspace.Response.init) - return _msg; -} - -// .subspace.CreatePublisherResponse create_publisher = 2; -inline bool Response::has_create_publisher() const { - return response_case() == kCreatePublisher; -} -inline bool Response::_internal_has_create_publisher() const { - return response_case() == kCreatePublisher; -} -inline void Response::set_has_create_publisher() { - _impl_._oneof_case_[0] = kCreatePublisher; -} -inline void Response::clear_create_publisher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kCreatePublisher) { - if (GetArena() == nullptr) { - delete _impl_.response_.create_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.create_publisher_); - } - clear_has_response(); - } -} -inline ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE Response::release_create_publisher() { - // @@protoc_insertion_point(field_release:subspace.Response.create_publisher) - if (response_case() == kCreatePublisher) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.create_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::CreatePublisherResponse& Response::_internal_create_publisher() const { - return response_case() == kCreatePublisher ? static_cast(*reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_)) - : reinterpret_cast(::subspace::_CreatePublisherResponse_default_instance_); -} -inline const ::subspace::CreatePublisherResponse& Response::create_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.create_publisher) - return _internal_create_publisher(); -} -inline ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_create_publisher() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.create_publisher) - if (response_case() == kCreatePublisher) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_); - _impl_.response_.create_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_create_publisher( - ::subspace::CreatePublisherResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_create_publisher(); - _impl_.response_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.create_publisher) -} -inline ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL Response::_internal_mutable_create_publisher() { - if (response_case() != kCreatePublisher) { - clear_response(); - set_has_create_publisher(); - _impl_.response_.create_publisher_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::CreatePublisherResponse>(GetArena())); - } - return reinterpret_cast<::subspace::CreatePublisherResponse*>(_impl_.response_.create_publisher_); -} -inline ::subspace::CreatePublisherResponse* PROTOBUF_NONNULL Response::mutable_create_publisher() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::CreatePublisherResponse* _msg = _internal_mutable_create_publisher(); - // @@protoc_insertion_point(field_mutable:subspace.Response.create_publisher) - return _msg; -} - -// .subspace.CreateSubscriberResponse create_subscriber = 3; -inline bool Response::has_create_subscriber() const { - return response_case() == kCreateSubscriber; -} -inline bool Response::_internal_has_create_subscriber() const { - return response_case() == kCreateSubscriber; -} -inline void Response::set_has_create_subscriber() { - _impl_._oneof_case_[0] = kCreateSubscriber; -} -inline void Response::clear_create_subscriber() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kCreateSubscriber) { - if (GetArena() == nullptr) { - delete _impl_.response_.create_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.create_subscriber_); - } - clear_has_response(); - } -} -inline ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE Response::release_create_subscriber() { - // @@protoc_insertion_point(field_release:subspace.Response.create_subscriber) - if (response_case() == kCreateSubscriber) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.create_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::CreateSubscriberResponse& Response::_internal_create_subscriber() const { - return response_case() == kCreateSubscriber ? static_cast(*reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_)) - : reinterpret_cast(::subspace::_CreateSubscriberResponse_default_instance_); -} -inline const ::subspace::CreateSubscriberResponse& Response::create_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.create_subscriber) - return _internal_create_subscriber(); -} -inline ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_create_subscriber() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.create_subscriber) - if (response_case() == kCreateSubscriber) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_); - _impl_.response_.create_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_create_subscriber( - ::subspace::CreateSubscriberResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_create_subscriber(); - _impl_.response_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.create_subscriber) -} -inline ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL Response::_internal_mutable_create_subscriber() { - if (response_case() != kCreateSubscriber) { - clear_response(); - set_has_create_subscriber(); - _impl_.response_.create_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::CreateSubscriberResponse>(GetArena())); - } - return reinterpret_cast<::subspace::CreateSubscriberResponse*>(_impl_.response_.create_subscriber_); -} -inline ::subspace::CreateSubscriberResponse* PROTOBUF_NONNULL Response::mutable_create_subscriber() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::CreateSubscriberResponse* _msg = _internal_mutable_create_subscriber(); - // @@protoc_insertion_point(field_mutable:subspace.Response.create_subscriber) - return _msg; -} - -// .subspace.GetTriggersResponse get_triggers = 4; -inline bool Response::has_get_triggers() const { - return response_case() == kGetTriggers; -} -inline bool Response::_internal_has_get_triggers() const { - return response_case() == kGetTriggers; -} -inline void Response::set_has_get_triggers() { - _impl_._oneof_case_[0] = kGetTriggers; -} -inline void Response::clear_get_triggers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kGetTriggers) { - if (GetArena() == nullptr) { - delete _impl_.response_.get_triggers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_triggers_); - } - clear_has_response(); - } -} -inline ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE Response::release_get_triggers() { - // @@protoc_insertion_point(field_release:subspace.Response.get_triggers) - if (response_case() == kGetTriggers) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.get_triggers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetTriggersResponse& Response::_internal_get_triggers() const { - return response_case() == kGetTriggers ? static_cast(*reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_)) - : reinterpret_cast(::subspace::_GetTriggersResponse_default_instance_); -} -inline const ::subspace::GetTriggersResponse& Response::get_triggers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.get_triggers) - return _internal_get_triggers(); -} -inline ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_triggers() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_triggers) - if (response_case() == kGetTriggers) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_); - _impl_.response_.get_triggers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_get_triggers( - ::subspace::GetTriggersResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_get_triggers(); - _impl_.response_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_triggers) -} -inline ::subspace::GetTriggersResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_triggers() { - if (response_case() != kGetTriggers) { - clear_response(); - set_has_get_triggers(); - _impl_.response_.get_triggers_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetTriggersResponse>(GetArena())); - } - return reinterpret_cast<::subspace::GetTriggersResponse*>(_impl_.response_.get_triggers_); -} -inline ::subspace::GetTriggersResponse* PROTOBUF_NONNULL Response::mutable_get_triggers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetTriggersResponse* _msg = _internal_mutable_get_triggers(); - // @@protoc_insertion_point(field_mutable:subspace.Response.get_triggers) - return _msg; -} - -// .subspace.RemovePublisherResponse remove_publisher = 5; -inline bool Response::has_remove_publisher() const { - return response_case() == kRemovePublisher; -} -inline bool Response::_internal_has_remove_publisher() const { - return response_case() == kRemovePublisher; -} -inline void Response::set_has_remove_publisher() { - _impl_._oneof_case_[0] = kRemovePublisher; -} -inline void Response::clear_remove_publisher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kRemovePublisher) { - if (GetArena() == nullptr) { - delete _impl_.response_.remove_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.remove_publisher_); - } - clear_has_response(); - } -} -inline ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE Response::release_remove_publisher() { - // @@protoc_insertion_point(field_release:subspace.Response.remove_publisher) - if (response_case() == kRemovePublisher) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.remove_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RemovePublisherResponse& Response::_internal_remove_publisher() const { - return response_case() == kRemovePublisher ? static_cast(*reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_)) - : reinterpret_cast(::subspace::_RemovePublisherResponse_default_instance_); -} -inline const ::subspace::RemovePublisherResponse& Response::remove_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.remove_publisher) - return _internal_remove_publisher(); -} -inline ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_remove_publisher() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.remove_publisher) - if (response_case() == kRemovePublisher) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_); - _impl_.response_.remove_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_remove_publisher( - ::subspace::RemovePublisherResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_remove_publisher(); - _impl_.response_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.remove_publisher) -} -inline ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL Response::_internal_mutable_remove_publisher() { - if (response_case() != kRemovePublisher) { - clear_response(); - set_has_remove_publisher(); - _impl_.response_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::RemovePublisherResponse>(GetArena())); - } - return reinterpret_cast<::subspace::RemovePublisherResponse*>(_impl_.response_.remove_publisher_); -} -inline ::subspace::RemovePublisherResponse* PROTOBUF_NONNULL Response::mutable_remove_publisher() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RemovePublisherResponse* _msg = _internal_mutable_remove_publisher(); - // @@protoc_insertion_point(field_mutable:subspace.Response.remove_publisher) - return _msg; -} - -// .subspace.RemoveSubscriberResponse remove_subscriber = 6; -inline bool Response::has_remove_subscriber() const { - return response_case() == kRemoveSubscriber; -} -inline bool Response::_internal_has_remove_subscriber() const { - return response_case() == kRemoveSubscriber; -} -inline void Response::set_has_remove_subscriber() { - _impl_._oneof_case_[0] = kRemoveSubscriber; -} -inline void Response::clear_remove_subscriber() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kRemoveSubscriber) { - if (GetArena() == nullptr) { - delete _impl_.response_.remove_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.remove_subscriber_); - } - clear_has_response(); - } -} -inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE Response::release_remove_subscriber() { - // @@protoc_insertion_point(field_release:subspace.Response.remove_subscriber) - if (response_case() == kRemoveSubscriber) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.remove_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RemoveSubscriberResponse& Response::_internal_remove_subscriber() const { - return response_case() == kRemoveSubscriber ? static_cast(*reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_)) - : reinterpret_cast(::subspace::_RemoveSubscriberResponse_default_instance_); -} -inline const ::subspace::RemoveSubscriberResponse& Response::remove_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.remove_subscriber) - return _internal_remove_subscriber(); -} -inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_remove_subscriber() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.remove_subscriber) - if (response_case() == kRemoveSubscriber) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_); - _impl_.response_.remove_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_remove_subscriber( - ::subspace::RemoveSubscriberResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_remove_subscriber(); - _impl_.response_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.remove_subscriber) -} -inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL Response::_internal_mutable_remove_subscriber() { - if (response_case() != kRemoveSubscriber) { - clear_response(); - set_has_remove_subscriber(); - _impl_.response_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::RemoveSubscriberResponse>(GetArena())); - } - return reinterpret_cast<::subspace::RemoveSubscriberResponse*>(_impl_.response_.remove_subscriber_); -} -inline ::subspace::RemoveSubscriberResponse* PROTOBUF_NONNULL Response::mutable_remove_subscriber() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RemoveSubscriberResponse* _msg = _internal_mutable_remove_subscriber(); - // @@protoc_insertion_point(field_mutable:subspace.Response.remove_subscriber) - return _msg; -} - -// .subspace.GetChannelInfoResponse get_channel_info = 9; -inline bool Response::has_get_channel_info() const { - return response_case() == kGetChannelInfo; -} -inline bool Response::_internal_has_get_channel_info() const { - return response_case() == kGetChannelInfo; -} -inline void Response::set_has_get_channel_info() { - _impl_._oneof_case_[0] = kGetChannelInfo; -} -inline void Response::clear_get_channel_info() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kGetChannelInfo) { - if (GetArena() == nullptr) { - delete _impl_.response_.get_channel_info_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_channel_info_); - } - clear_has_response(); - } -} -inline ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE Response::release_get_channel_info() { - // @@protoc_insertion_point(field_release:subspace.Response.get_channel_info) - if (response_case() == kGetChannelInfo) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.get_channel_info_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetChannelInfoResponse& Response::_internal_get_channel_info() const { - return response_case() == kGetChannelInfo ? static_cast(*reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_)) - : reinterpret_cast(::subspace::_GetChannelInfoResponse_default_instance_); -} -inline const ::subspace::GetChannelInfoResponse& Response::get_channel_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.get_channel_info) - return _internal_get_channel_info(); -} -inline ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_channel_info() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_channel_info) - if (response_case() == kGetChannelInfo) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_); - _impl_.response_.get_channel_info_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_get_channel_info( - ::subspace::GetChannelInfoResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_get_channel_info(); - _impl_.response_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_channel_info) -} -inline ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_channel_info() { - if (response_case() != kGetChannelInfo) { - clear_response(); - set_has_get_channel_info(); - _impl_.response_.get_channel_info_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelInfoResponse>(GetArena())); - } - return reinterpret_cast<::subspace::GetChannelInfoResponse*>(_impl_.response_.get_channel_info_); -} -inline ::subspace::GetChannelInfoResponse* PROTOBUF_NONNULL Response::mutable_get_channel_info() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetChannelInfoResponse* _msg = _internal_mutable_get_channel_info(); - // @@protoc_insertion_point(field_mutable:subspace.Response.get_channel_info) - return _msg; -} - -// .subspace.GetChannelStatsResponse get_channel_stats = 10; -inline bool Response::has_get_channel_stats() const { - return response_case() == kGetChannelStats; -} -inline bool Response::_internal_has_get_channel_stats() const { - return response_case() == kGetChannelStats; -} -inline void Response::set_has_get_channel_stats() { - _impl_._oneof_case_[0] = kGetChannelStats; -} -inline void Response::clear_get_channel_stats() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kGetChannelStats) { - if (GetArena() == nullptr) { - delete _impl_.response_.get_channel_stats_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_channel_stats_); - } - clear_has_response(); - } -} -inline ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE Response::release_get_channel_stats() { - // @@protoc_insertion_point(field_release:subspace.Response.get_channel_stats) - if (response_case() == kGetChannelStats) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.get_channel_stats_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetChannelStatsResponse& Response::_internal_get_channel_stats() const { - return response_case() == kGetChannelStats ? static_cast(*reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_)) - : reinterpret_cast(::subspace::_GetChannelStatsResponse_default_instance_); -} -inline const ::subspace::GetChannelStatsResponse& Response::get_channel_stats() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.get_channel_stats) - return _internal_get_channel_stats(); -} -inline ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_channel_stats() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_channel_stats) - if (response_case() == kGetChannelStats) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_); - _impl_.response_.get_channel_stats_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_get_channel_stats( - ::subspace::GetChannelStatsResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_get_channel_stats(); - _impl_.response_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_channel_stats) -} -inline ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_channel_stats() { - if (response_case() != kGetChannelStats) { - clear_response(); - set_has_get_channel_stats(); - _impl_.response_.get_channel_stats_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetChannelStatsResponse>(GetArena())); - } - return reinterpret_cast<::subspace::GetChannelStatsResponse*>(_impl_.response_.get_channel_stats_); -} -inline ::subspace::GetChannelStatsResponse* PROTOBUF_NONNULL Response::mutable_get_channel_stats() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetChannelStatsResponse* _msg = _internal_mutable_get_channel_stats(); - // @@protoc_insertion_point(field_mutable:subspace.Response.get_channel_stats) - return _msg; -} - -// .subspace.GetClientBuffersResponse get_client_buffers = 11; -inline bool Response::has_get_client_buffers() const { - return response_case() == kGetClientBuffers; -} -inline bool Response::_internal_has_get_client_buffers() const { - return response_case() == kGetClientBuffers; -} -inline void Response::set_has_get_client_buffers() { - _impl_._oneof_case_[0] = kGetClientBuffers; -} -inline void Response::clear_get_client_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kGetClientBuffers) { - if (GetArena() == nullptr) { - delete _impl_.response_.get_client_buffers_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.get_client_buffers_); - } - clear_has_response(); - } -} -inline ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE Response::release_get_client_buffers() { - // @@protoc_insertion_point(field_release:subspace.Response.get_client_buffers) - if (response_case() == kGetClientBuffers) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.get_client_buffers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::GetClientBuffersResponse& Response::_internal_get_client_buffers() const { - return response_case() == kGetClientBuffers ? static_cast(*reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_)) - : reinterpret_cast(::subspace::_GetClientBuffersResponse_default_instance_); -} -inline const ::subspace::GetClientBuffersResponse& Response::get_client_buffers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.get_client_buffers) - return _internal_get_client_buffers(); -} -inline ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_get_client_buffers() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.get_client_buffers) - if (response_case() == kGetClientBuffers) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_); - _impl_.response_.get_client_buffers_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_get_client_buffers( - ::subspace::GetClientBuffersResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_get_client_buffers(); - _impl_.response_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.get_client_buffers) -} -inline ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL Response::_internal_mutable_get_client_buffers() { - if (response_case() != kGetClientBuffers) { - clear_response(); - set_has_get_client_buffers(); - _impl_.response_.get_client_buffers_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::GetClientBuffersResponse>(GetArena())); - } - return reinterpret_cast<::subspace::GetClientBuffersResponse*>(_impl_.response_.get_client_buffers_); -} -inline ::subspace::GetClientBuffersResponse* PROTOBUF_NONNULL Response::mutable_get_client_buffers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::GetClientBuffersResponse* _msg = _internal_mutable_get_client_buffers(); - // @@protoc_insertion_point(field_mutable:subspace.Response.get_client_buffers) - return _msg; -} - -// .subspace.RegisterClientBufferResponse register_client_buffer = 12; -inline bool Response::has_register_client_buffer() const { - return response_case() == kRegisterClientBuffer; -} -inline bool Response::_internal_has_register_client_buffer() const { - return response_case() == kRegisterClientBuffer; -} -inline void Response::set_has_register_client_buffer() { - _impl_._oneof_case_[0] = kRegisterClientBuffer; -} -inline void Response::clear_register_client_buffer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kRegisterClientBuffer) { - if (GetArena() == nullptr) { - delete _impl_.response_.register_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.register_client_buffer_); - } - clear_has_response(); - } -} -inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE Response::release_register_client_buffer() { - // @@protoc_insertion_point(field_release:subspace.Response.register_client_buffer) - if (response_case() == kRegisterClientBuffer) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.register_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RegisterClientBufferResponse& Response::_internal_register_client_buffer() const { - return response_case() == kRegisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_)) - : reinterpret_cast(::subspace::_RegisterClientBufferResponse_default_instance_); -} -inline const ::subspace::RegisterClientBufferResponse& Response::register_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Response.register_client_buffer) - return _internal_register_client_buffer(); -} -inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE Response::unsafe_arena_release_register_client_buffer() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Response.register_client_buffer) - if (response_case() == kRegisterClientBuffer) { - clear_has_response(); - auto* temp = reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_); - _impl_.response_.register_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Response::unsafe_arena_set_allocated_register_client_buffer( - ::subspace::RegisterClientBufferResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_register_client_buffer(); - _impl_.response_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Response.register_client_buffer) -} -inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL Response::_internal_mutable_register_client_buffer() { - if (response_case() != kRegisterClientBuffer) { - clear_response(); - set_has_register_client_buffer(); - _impl_.response_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::RegisterClientBufferResponse>(GetArena())); - } - return reinterpret_cast<::subspace::RegisterClientBufferResponse*>(_impl_.response_.register_client_buffer_); -} -inline ::subspace::RegisterClientBufferResponse* PROTOBUF_NONNULL Response::mutable_register_client_buffer() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RegisterClientBufferResponse* _msg = _internal_mutable_register_client_buffer(); - // @@protoc_insertion_point(field_mutable:subspace.Response.register_client_buffer) - return _msg; -} - -inline bool Response::has_response() const { - return response_case() != RESPONSE_NOT_SET; -} -inline void Response::clear_has_response() { - _impl_._oneof_case_[0] = RESPONSE_NOT_SET; -} -inline Response::ResponseCase Response::response_case() const { - return Response::ResponseCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ChannelInfoProto - -// string name = 1; -inline void ChannelInfoProto::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ChannelInfoProto::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.name) - return _internal_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.name) -} -inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::mutable_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:subspace.ChannelInfoProto.name) - return _s; -} -inline const ::std::string& ChannelInfoProto::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void ChannelInfoProto::_internal_set_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ChannelInfoProto::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ChannelInfoProto.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.name_.Set("", GetArena()); - } - return released; -} -inline void ChannelInfoProto::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ChannelInfoProto.name) -} - -// int32 slot_size = 2; -inline void ChannelInfoProto::clear_slot_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t ChannelInfoProto::slot_size() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.slot_size) - return _internal_slot_size(); -} -inline void ChannelInfoProto::set_slot_size(::int32_t value) { - _internal_set_slot_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.slot_size) -} -inline ::int32_t ChannelInfoProto::_internal_slot_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_size_; -} -inline void ChannelInfoProto::_internal_set_slot_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = value; -} - -// int32 num_slots = 3; -inline void ChannelInfoProto::clear_num_slots() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t ChannelInfoProto::num_slots() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_slots) - return _internal_num_slots(); -} -inline void ChannelInfoProto::set_num_slots(::int32_t value) { - _internal_set_num_slots(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_slots) -} -inline ::int32_t ChannelInfoProto::_internal_num_slots() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_slots_; -} -inline void ChannelInfoProto::_internal_set_num_slots(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = value; -} - -// bytes type = 4; -inline void ChannelInfoProto::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& ChannelInfoProto::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.type) -} -inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.ChannelInfoProto.type) - return _s; -} -inline const ::std::string& ChannelInfoProto::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void ChannelInfoProto::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ChannelInfoProto::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ChannelInfoProto.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void ChannelInfoProto::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ChannelInfoProto.type) -} - -// int32 num_pubs = 5; -inline void ChannelInfoProto::clear_num_pubs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_pubs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::int32_t ChannelInfoProto::num_pubs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_pubs) - return _internal_num_pubs(); -} -inline void ChannelInfoProto::set_num_pubs(::int32_t value) { - _internal_set_num_pubs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_pubs) -} -inline ::int32_t ChannelInfoProto::_internal_num_pubs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_pubs_; -} -inline void ChannelInfoProto::_internal_set_num_pubs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_pubs_ = value; -} - -// int32 num_subs = 6; -inline void ChannelInfoProto::clear_num_subs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_subs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline ::int32_t ChannelInfoProto::num_subs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_subs) - return _internal_num_subs(); -} -inline void ChannelInfoProto::set_num_subs(::int32_t value) { - _internal_set_num_subs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_subs) -} -inline ::int32_t ChannelInfoProto::_internal_num_subs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_subs_; -} -inline void ChannelInfoProto::_internal_set_num_subs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_subs_ = value; -} - -// int32 num_bridge_pubs = 7; -inline void ChannelInfoProto::clear_num_bridge_pubs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_pubs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline ::int32_t ChannelInfoProto::num_bridge_pubs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_bridge_pubs) - return _internal_num_bridge_pubs(); -} -inline void ChannelInfoProto::set_num_bridge_pubs(::int32_t value) { - _internal_set_num_bridge_pubs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_bridge_pubs) -} -inline ::int32_t ChannelInfoProto::_internal_num_bridge_pubs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_bridge_pubs_; -} -inline void ChannelInfoProto::_internal_set_num_bridge_pubs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_pubs_ = value; -} - -// int32 num_bridge_subs = 8; -inline void ChannelInfoProto::clear_num_bridge_subs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_subs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline ::int32_t ChannelInfoProto::num_bridge_subs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_bridge_subs) - return _internal_num_bridge_subs(); -} -inline void ChannelInfoProto::set_num_bridge_subs(::int32_t value) { - _internal_set_num_bridge_subs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_bridge_subs) -} -inline ::int32_t ChannelInfoProto::_internal_num_bridge_subs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_bridge_subs_; -} -inline void ChannelInfoProto::_internal_set_num_bridge_subs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_subs_ = value; -} - -// bool is_reliable = 9; -inline void ChannelInfoProto::clear_is_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline bool ChannelInfoProto::is_reliable() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.is_reliable) - return _internal_is_reliable(); -} -inline void ChannelInfoProto::set_is_reliable(bool value) { - _internal_set_is_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.is_reliable) -} -inline bool ChannelInfoProto::_internal_is_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_reliable_; -} -inline void ChannelInfoProto::_internal_set_is_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = value; -} - -// int32 num_tunnel_pubs = 13; -inline void ChannelInfoProto::clear_num_tunnel_pubs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_tunnel_pubs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00001000U); -} -inline ::int32_t ChannelInfoProto::num_tunnel_pubs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_tunnel_pubs) - return _internal_num_tunnel_pubs(); -} -inline void ChannelInfoProto::set_num_tunnel_pubs(::int32_t value) { - _internal_set_num_tunnel_pubs(value); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_tunnel_pubs) -} -inline ::int32_t ChannelInfoProto::_internal_num_tunnel_pubs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_tunnel_pubs_; -} -inline void ChannelInfoProto::_internal_set_num_tunnel_pubs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_tunnel_pubs_ = value; -} - -// int32 num_tunnel_subs = 14; -inline void ChannelInfoProto::clear_num_tunnel_subs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_tunnel_subs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00002000U); -} -inline ::int32_t ChannelInfoProto::num_tunnel_subs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.num_tunnel_subs) - return _internal_num_tunnel_subs(); -} -inline void ChannelInfoProto::set_num_tunnel_subs(::int32_t value) { - _internal_set_num_tunnel_subs(value); - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.num_tunnel_subs) -} -inline ::int32_t ChannelInfoProto::_internal_num_tunnel_subs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_tunnel_subs_; -} -inline void ChannelInfoProto::_internal_set_num_tunnel_subs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_tunnel_subs_ = value; -} - -// bool is_virtual = 10; -inline void ChannelInfoProto::clear_is_virtual() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_virtual_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline bool ChannelInfoProto::is_virtual() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.is_virtual) - return _internal_is_virtual(); -} -inline void ChannelInfoProto::set_is_virtual(bool value) { - _internal_set_is_virtual(value); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.is_virtual) -} -inline bool ChannelInfoProto::_internal_is_virtual() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_virtual_; -} -inline void ChannelInfoProto::_internal_set_is_virtual(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_virtual_ = value; -} - -// int32 vchan_id = 11; -inline void ChannelInfoProto::clear_vchan_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000800U); -} -inline ::int32_t ChannelInfoProto::vchan_id() const { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.vchan_id) - return _internal_vchan_id(); -} -inline void ChannelInfoProto::set_vchan_id(::int32_t value) { - _internal_set_vchan_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.vchan_id) -} -inline ::int32_t ChannelInfoProto::_internal_vchan_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.vchan_id_; -} -inline void ChannelInfoProto::_internal_set_vchan_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = value; -} - -// string mux = 12; -inline void ChannelInfoProto::clear_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& ChannelInfoProto::mux() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ChannelInfoProto.mux) - return _internal_mux(); -} -template -PROTOBUF_ALWAYS_INLINE void ChannelInfoProto::set_mux(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.mux_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ChannelInfoProto.mux) -} -inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::mutable_mux() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_mux(); - // @@protoc_insertion_point(field_mutable:subspace.ChannelInfoProto.mux) - return _s; -} -inline const ::std::string& ChannelInfoProto::_internal_mux() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.mux_.Get(); -} -inline void ChannelInfoProto::_internal_set_mux(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ChannelInfoProto::_internal_mutable_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.mux_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ChannelInfoProto::release_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ChannelInfoProto.mux) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.mux_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.mux_.Set("", GetArena()); - } - return released; -} -inline void ChannelInfoProto::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.mux_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { - _impl_.mux_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ChannelInfoProto.mux) -} - -// ------------------------------------------------------------------- - -// ChannelDirectory - -// string server_id = 1; -inline void ChannelDirectory::clear_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.server_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& ChannelDirectory::server_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ChannelDirectory.server_id) - return _internal_server_id(); -} -template -PROTOBUF_ALWAYS_INLINE void ChannelDirectory::set_server_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.server_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ChannelDirectory.server_id) -} -inline ::std::string* PROTOBUF_NONNULL ChannelDirectory::mutable_server_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_server_id(); - // @@protoc_insertion_point(field_mutable:subspace.ChannelDirectory.server_id) - return _s; -} -inline const ::std::string& ChannelDirectory::_internal_server_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.server_id_.Get(); -} -inline void ChannelDirectory::_internal_set_server_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.server_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ChannelDirectory::_internal_mutable_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.server_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ChannelDirectory::release_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ChannelDirectory.server_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.server_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.server_id_.Set("", GetArena()); - } - return released; -} -inline void ChannelDirectory::set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.server_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.server_id_.IsDefault()) { - _impl_.server_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ChannelDirectory.server_id) -} - -// repeated .subspace.ChannelInfoProto channels = 2; -inline int ChannelDirectory::_internal_channels_size() const { - return _internal_channels().size(); -} -inline int ChannelDirectory::channels_size() const { - return _internal_channels_size(); -} -inline void ChannelDirectory::clear_channels() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channels_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL ChannelDirectory::mutable_channels(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:subspace.ChannelDirectory.channels) - return _internal_mutable_channels()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL ChannelDirectory::mutable_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.ChannelDirectory.channels) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_channels(); -} -inline const ::subspace::ChannelInfoProto& ChannelDirectory::channels(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ChannelDirectory.channels) - return _internal_channels().Get(index); -} -inline ::subspace::ChannelInfoProto* PROTOBUF_NONNULL ChannelDirectory::add_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelInfoProto* _add = - _internal_mutable_channels()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.ChannelDirectory.channels) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& ChannelDirectory::channels() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.ChannelDirectory.channels) - return _internal_channels(); -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>& -ChannelDirectory::_internal_channels() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channels_; -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelInfoProto>* PROTOBUF_NONNULL -ChannelDirectory::_internal_mutable_channels() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.channels_; -} - -// ------------------------------------------------------------------- - -// ChannelStatsProto - -// string channel_name = 1; -inline void ChannelStatsProto::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ChannelStatsProto::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ChannelStatsProto::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ChannelStatsProto::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ChannelStatsProto.channel_name) - return _s; -} -inline const ::std::string& ChannelStatsProto::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ChannelStatsProto::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ChannelStatsProto::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ChannelStatsProto::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ChannelStatsProto.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ChannelStatsProto::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ChannelStatsProto.channel_name) -} - -// int64 total_bytes = 2; -inline void ChannelStatsProto::clear_total_bytes() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.total_bytes_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int64_t ChannelStatsProto::total_bytes() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.total_bytes) - return _internal_total_bytes(); -} -inline void ChannelStatsProto::set_total_bytes(::int64_t value) { - _internal_set_total_bytes(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.total_bytes) -} -inline ::int64_t ChannelStatsProto::_internal_total_bytes() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.total_bytes_; -} -inline void ChannelStatsProto::_internal_set_total_bytes(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.total_bytes_ = value; -} - -// int64 total_messages = 3; -inline void ChannelStatsProto::clear_total_messages() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.total_messages_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int64_t ChannelStatsProto::total_messages() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.total_messages) - return _internal_total_messages(); -} -inline void ChannelStatsProto::set_total_messages(::int64_t value) { - _internal_set_total_messages(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.total_messages) -} -inline ::int64_t ChannelStatsProto::_internal_total_messages() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.total_messages_; -} -inline void ChannelStatsProto::_internal_set_total_messages(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.total_messages_ = value; -} - -// int32 slot_size = 4; -inline void ChannelStatsProto::clear_slot_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t ChannelStatsProto::slot_size() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.slot_size) - return _internal_slot_size(); -} -inline void ChannelStatsProto::set_slot_size(::int32_t value) { - _internal_set_slot_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.slot_size) -} -inline ::int32_t ChannelStatsProto::_internal_slot_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_size_; -} -inline void ChannelStatsProto::_internal_set_slot_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = value; -} - -// int32 num_slots = 5; -inline void ChannelStatsProto::clear_num_slots() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t ChannelStatsProto::num_slots() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_slots) - return _internal_num_slots(); -} -inline void ChannelStatsProto::set_num_slots(::int32_t value) { - _internal_set_num_slots(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_slots) -} -inline ::int32_t ChannelStatsProto::_internal_num_slots() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_slots_; -} -inline void ChannelStatsProto::_internal_set_num_slots(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = value; -} - -// int32 num_pubs = 6; -inline void ChannelStatsProto::clear_num_pubs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_pubs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::int32_t ChannelStatsProto::num_pubs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_pubs) - return _internal_num_pubs(); -} -inline void ChannelStatsProto::set_num_pubs(::int32_t value) { - _internal_set_num_pubs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_pubs) -} -inline ::int32_t ChannelStatsProto::_internal_num_pubs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_pubs_; -} -inline void ChannelStatsProto::_internal_set_num_pubs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_pubs_ = value; -} - -// int32 num_subs = 7; -inline void ChannelStatsProto::clear_num_subs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_subs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline ::int32_t ChannelStatsProto::num_subs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_subs) - return _internal_num_subs(); -} -inline void ChannelStatsProto::set_num_subs(::int32_t value) { - _internal_set_num_subs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_subs) -} -inline ::int32_t ChannelStatsProto::_internal_num_subs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_subs_; -} -inline void ChannelStatsProto::_internal_set_num_subs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_subs_ = value; -} - -// uint32 max_message_size = 8; -inline void ChannelStatsProto::clear_max_message_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_message_size_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline ::uint32_t ChannelStatsProto::max_message_size() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.max_message_size) - return _internal_max_message_size(); -} -inline void ChannelStatsProto::set_max_message_size(::uint32_t value) { - _internal_set_max_message_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.max_message_size) -} -inline ::uint32_t ChannelStatsProto::_internal_max_message_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.max_message_size_; -} -inline void ChannelStatsProto::_internal_set_max_message_size(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_message_size_ = value; -} - -// uint32 total_drops = 9; -inline void ChannelStatsProto::clear_total_drops() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.total_drops_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline ::uint32_t ChannelStatsProto::total_drops() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.total_drops) - return _internal_total_drops(); -} -inline void ChannelStatsProto::set_total_drops(::uint32_t value) { - _internal_set_total_drops(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.total_drops) -} -inline ::uint32_t ChannelStatsProto::_internal_total_drops() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.total_drops_; -} -inline void ChannelStatsProto::_internal_set_total_drops(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.total_drops_ = value; -} - -// int32 num_bridge_pubs = 10; -inline void ChannelStatsProto::clear_num_bridge_pubs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_pubs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline ::int32_t ChannelStatsProto::num_bridge_pubs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_bridge_pubs) - return _internal_num_bridge_pubs(); -} -inline void ChannelStatsProto::set_num_bridge_pubs(::int32_t value) { - _internal_set_num_bridge_pubs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_bridge_pubs) -} -inline ::int32_t ChannelStatsProto::_internal_num_bridge_pubs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_bridge_pubs_; -} -inline void ChannelStatsProto::_internal_set_num_bridge_pubs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_pubs_ = value; -} - -// int32 num_bridge_subs = 11; -inline void ChannelStatsProto::clear_num_bridge_subs() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_subs_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline ::int32_t ChannelStatsProto::num_bridge_subs() const { - // @@protoc_insertion_point(field_get:subspace.ChannelStatsProto.num_bridge_subs) - return _internal_num_bridge_subs(); -} -inline void ChannelStatsProto::set_num_bridge_subs(::int32_t value) { - _internal_set_num_bridge_subs(value); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - // @@protoc_insertion_point(field_set:subspace.ChannelStatsProto.num_bridge_subs) -} -inline ::int32_t ChannelStatsProto::_internal_num_bridge_subs() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_bridge_subs_; -} -inline void ChannelStatsProto::_internal_set_num_bridge_subs(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_bridge_subs_ = value; -} - -// ------------------------------------------------------------------- - -// Statistics - -// string server_id = 1; -inline void Statistics::clear_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.server_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& Statistics::server_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Statistics.server_id) - return _internal_server_id(); -} -template -PROTOBUF_ALWAYS_INLINE void Statistics::set_server_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.server_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.Statistics.server_id) -} -inline ::std::string* PROTOBUF_NONNULL Statistics::mutable_server_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_server_id(); - // @@protoc_insertion_point(field_mutable:subspace.Statistics.server_id) - return _s; -} -inline const ::std::string& Statistics::_internal_server_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.server_id_.Get(); -} -inline void Statistics::_internal_set_server_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.server_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Statistics::_internal_mutable_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.server_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Statistics::release_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Statistics.server_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.server_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.server_id_.Set("", GetArena()); - } - return released; -} -inline void Statistics::set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.server_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.server_id_.IsDefault()) { - _impl_.server_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.Statistics.server_id) -} - -// int64 timestamp = 2; -inline void Statistics::clear_timestamp() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.timestamp_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int64_t Statistics::timestamp() const { - // @@protoc_insertion_point(field_get:subspace.Statistics.timestamp) - return _internal_timestamp(); -} -inline void Statistics::set_timestamp(::int64_t value) { - _internal_set_timestamp(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.Statistics.timestamp) -} -inline ::int64_t Statistics::_internal_timestamp() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.timestamp_; -} -inline void Statistics::_internal_set_timestamp(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.timestamp_ = value; -} - -// repeated .subspace.ChannelStatsProto channels = 3; -inline int Statistics::_internal_channels_size() const { - return _internal_channels().size(); -} -inline int Statistics::channels_size() const { - return _internal_channels_size(); -} -inline void Statistics::clear_channels() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channels_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL Statistics::mutable_channels(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:subspace.Statistics.channels) - return _internal_mutable_channels()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL Statistics::mutable_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.Statistics.channels) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_channels(); -} -inline const ::subspace::ChannelStatsProto& Statistics::channels(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Statistics.channels) - return _internal_channels().Get(index); -} -inline ::subspace::ChannelStatsProto* PROTOBUF_NONNULL Statistics::add_channels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::ChannelStatsProto* _add = - _internal_mutable_channels()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.Statistics.channels) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& Statistics::channels() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.Statistics.channels) - return _internal_channels(); -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>& -Statistics::_internal_channels() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channels_; -} -inline ::google::protobuf::RepeatedPtrField<::subspace::ChannelStatsProto>* PROTOBUF_NONNULL -Statistics::_internal_mutable_channels() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.channels_; -} - -// ------------------------------------------------------------------- - -// ChannelAddress - -// bytes address = 1; -inline void ChannelAddress::clear_address() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.address_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ChannelAddress::address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ChannelAddress.address) - return _internal_address(); -} -template -PROTOBUF_ALWAYS_INLINE void ChannelAddress::set_address(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.address_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ChannelAddress.address) -} -inline ::std::string* PROTOBUF_NONNULL ChannelAddress::mutable_address() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_address(); - // @@protoc_insertion_point(field_mutable:subspace.ChannelAddress.address) - return _s; -} -inline const ::std::string& ChannelAddress::_internal_address() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.address_.Get(); -} -inline void ChannelAddress::_internal_set_address(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.address_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ChannelAddress::_internal_mutable_address() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.address_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ChannelAddress::release_address() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ChannelAddress.address) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.address_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.address_.Set("", GetArena()); - } - return released; -} -inline void ChannelAddress::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.address_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { - _impl_.address_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ChannelAddress.address) -} - -// int32 port = 2; -inline void ChannelAddress::clear_port() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.port_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ChannelAddress::port() const { - // @@protoc_insertion_point(field_get:subspace.ChannelAddress.port) - return _internal_port(); -} -inline void ChannelAddress::set_port(::int32_t value) { - _internal_set_port(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ChannelAddress.port) -} -inline ::int32_t ChannelAddress::_internal_port() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.port_; -} -inline void ChannelAddress::_internal_set_port(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.port_ = value; -} - -// ------------------------------------------------------------------- - -// Subscribed - -// string channel_name = 1; -inline void Subscribed::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Subscribed::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Subscribed.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void Subscribed::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.Subscribed.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL Subscribed::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.Subscribed.channel_name) - return _s; -} -inline const ::std::string& Subscribed::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void Subscribed::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Subscribed::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Subscribed::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Subscribed.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void Subscribed::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.Subscribed.channel_name) -} - -// int32 slot_size = 2; -inline void Subscribed::clear_slot_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t Subscribed::slot_size() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.slot_size) - return _internal_slot_size(); -} -inline void Subscribed::set_slot_size(::int32_t value) { - _internal_set_slot_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.slot_size) -} -inline ::int32_t Subscribed::_internal_slot_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_size_; -} -inline void Subscribed::_internal_set_slot_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = value; -} - -// int32 num_slots = 3; -inline void Subscribed::clear_num_slots() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t Subscribed::num_slots() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.num_slots) - return _internal_num_slots(); -} -inline void Subscribed::set_num_slots(::int32_t value) { - _internal_set_num_slots(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.num_slots) -} -inline ::int32_t Subscribed::_internal_num_slots() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_slots_; -} -inline void Subscribed::_internal_set_num_slots(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = value; -} - -// bool reliable = 4; -inline void Subscribed::clear_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline bool Subscribed::reliable() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.reliable) - return _internal_reliable(); -} -inline void Subscribed::set_reliable(bool value) { - _internal_set_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.reliable) -} -inline bool Subscribed::_internal_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.reliable_; -} -inline void Subscribed::_internal_set_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_ = value; -} - -// bool notify_retirement = 5; -inline void Subscribed::clear_notify_retirement() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline bool Subscribed::notify_retirement() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.notify_retirement) - return _internal_notify_retirement(); -} -inline void Subscribed::set_notify_retirement(bool value) { - _internal_set_notify_retirement(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.notify_retirement) -} -inline bool Subscribed::_internal_notify_retirement() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.notify_retirement_; -} -inline void Subscribed::_internal_set_notify_retirement(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = value; -} - -// .subspace.ChannelAddress retirement_socket = 6; -inline bool Subscribed::has_retirement_socket() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - PROTOBUF_ASSUME(!value || _impl_.retirement_socket_ != nullptr); - return value; -} -inline void Subscribed::clear_retirement_socket() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.retirement_socket_ != nullptr) _impl_.retirement_socket_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::subspace::ChannelAddress& Subscribed::_internal_retirement_socket() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::subspace::ChannelAddress* p = _impl_.retirement_socket_; - return p != nullptr ? *p : reinterpret_cast(::subspace::_ChannelAddress_default_instance_); -} -inline const ::subspace::ChannelAddress& Subscribed::retirement_socket() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Subscribed.retirement_socket) - return _internal_retirement_socket(); -} -inline void Subscribed::unsafe_arena_set_allocated_retirement_socket( - ::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.retirement_socket_); - } - _impl_.retirement_socket_ = reinterpret_cast<::subspace::ChannelAddress*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Subscribed.retirement_socket) -} -inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Subscribed::release_retirement_socket() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::subspace::ChannelAddress* released = _impl_.retirement_socket_; - _impl_.retirement_socket_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Subscribed::unsafe_arena_release_retirement_socket() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Subscribed.retirement_socket) - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::subspace::ChannelAddress* temp = _impl_.retirement_socket_; - _impl_.retirement_socket_ = nullptr; - return temp; -} -inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Subscribed::_internal_mutable_retirement_socket() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.retirement_socket_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ChannelAddress>(GetArena()); - _impl_.retirement_socket_ = reinterpret_cast<::subspace::ChannelAddress*>(p); - } - return _impl_.retirement_socket_; -} -inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Subscribed::mutable_retirement_socket() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::subspace::ChannelAddress* _msg = _internal_mutable_retirement_socket(); - // @@protoc_insertion_point(field_mutable:subspace.Subscribed.retirement_socket) - return _msg; -} -inline void Subscribed::set_allocated_retirement_socket(::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.retirement_socket_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - - _impl_.retirement_socket_ = reinterpret_cast<::subspace::ChannelAddress*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.Subscribed.retirement_socket) -} - -// int32 checksum_size = 7; -inline void Subscribed::clear_checksum_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t Subscribed::checksum_size() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.checksum_size) - return _internal_checksum_size(); -} -inline void Subscribed::set_checksum_size(::int32_t value) { - _internal_set_checksum_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.checksum_size) -} -inline ::int32_t Subscribed::_internal_checksum_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.checksum_size_; -} -inline void Subscribed::_internal_set_checksum_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = value; -} - -// int32 metadata_size = 8; -inline void Subscribed::clear_metadata_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline ::int32_t Subscribed::metadata_size() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.metadata_size) - return _internal_metadata_size(); -} -inline void Subscribed::set_metadata_size(::int32_t value) { - _internal_set_metadata_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.metadata_size) -} -inline ::int32_t Subscribed::_internal_metadata_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.metadata_size_; -} -inline void Subscribed::_internal_set_metadata_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = value; -} - -// bool split_buffers = 9; -inline void Subscribed::clear_split_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline bool Subscribed::split_buffers() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.split_buffers) - return _internal_split_buffers(); -} -inline void Subscribed::set_split_buffers(bool value) { - _internal_set_split_buffers(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.split_buffers) -} -inline bool Subscribed::_internal_split_buffers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.split_buffers_; -} -inline void Subscribed::_internal_set_split_buffers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_ = value; -} - -// bool split_buffers_over_bridge = 10; -inline void Subscribed::clear_split_buffers_over_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline bool Subscribed::split_buffers_over_bridge() const { - // @@protoc_insertion_point(field_get:subspace.Subscribed.split_buffers_over_bridge) - return _internal_split_buffers_over_bridge(); -} -inline void Subscribed::set_split_buffers_over_bridge(bool value) { - _internal_set_split_buffers_over_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.Subscribed.split_buffers_over_bridge) -} -inline bool Subscribed::_internal_split_buffers_over_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.split_buffers_over_bridge_; -} -inline void Subscribed::_internal_set_split_buffers_over_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = value; -} - -// ------------------------------------------------------------------- - -// RetirementNotification - -// int32 slot_id = 1; -inline void RetirementNotification::clear_slot_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::int32_t RetirementNotification::slot_id() const { - // @@protoc_insertion_point(field_get:subspace.RetirementNotification.slot_id) - return _internal_slot_id(); -} -inline void RetirementNotification::set_slot_id(::int32_t value) { - _internal_set_slot_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:subspace.RetirementNotification.slot_id) -} -inline ::int32_t RetirementNotification::_internal_slot_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_id_; -} -inline void RetirementNotification::_internal_set_slot_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_id_ = value; -} - -// ------------------------------------------------------------------- - -// Discovery_Query - -// string channel_name = 1; -inline void Discovery_Query::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Discovery_Query::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.Query.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void Discovery_Query::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.Discovery.Query.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL Discovery_Query::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.Query.channel_name) - return _s; -} -inline const ::std::string& Discovery_Query::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void Discovery_Query::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Discovery_Query::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Discovery_Query::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Discovery.Query.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void Discovery_Query::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.Query.channel_name) -} - -// ------------------------------------------------------------------- - -// Discovery_Advertise - -// string channel_name = 1; -inline void Discovery_Advertise::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Discovery_Advertise::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void Discovery_Advertise::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL Discovery_Advertise::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.Advertise.channel_name) - return _s; -} -inline const ::std::string& Discovery_Advertise::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void Discovery_Advertise::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Discovery_Advertise::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Discovery_Advertise::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Discovery.Advertise.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void Discovery_Advertise::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.Advertise.channel_name) -} - -// bool reliable = 2; -inline void Discovery_Advertise::clear_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline bool Discovery_Advertise::reliable() const { - // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.reliable) - return _internal_reliable(); -} -inline void Discovery_Advertise::set_reliable(bool value) { - _internal_set_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.reliable) -} -inline bool Discovery_Advertise::_internal_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.reliable_; -} -inline void Discovery_Advertise::_internal_set_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_ = value; -} - -// bool notify_retirement = 3; -inline void Discovery_Advertise::clear_notify_retirement() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline bool Discovery_Advertise::notify_retirement() const { - // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.notify_retirement) - return _internal_notify_retirement(); -} -inline void Discovery_Advertise::set_notify_retirement(bool value) { - _internal_set_notify_retirement(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.notify_retirement) -} -inline bool Discovery_Advertise::_internal_notify_retirement() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.notify_retirement_; -} -inline void Discovery_Advertise::_internal_set_notify_retirement(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = value; -} - -// bool split_buffers = 4; -inline void Discovery_Advertise::clear_split_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline bool Discovery_Advertise::split_buffers() const { - // @@protoc_insertion_point(field_get:subspace.Discovery.Advertise.split_buffers) - return _internal_split_buffers(); -} -inline void Discovery_Advertise::set_split_buffers(bool value) { - _internal_set_split_buffers(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.Discovery.Advertise.split_buffers) -} -inline bool Discovery_Advertise::_internal_split_buffers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.split_buffers_; -} -inline void Discovery_Advertise::_internal_set_split_buffers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_ = value; -} - -// ------------------------------------------------------------------- - -// Discovery_Subscribe - -// string channel_name = 1; -inline void Discovery_Subscribe::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Discovery_Subscribe::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.Subscribe.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void Discovery_Subscribe::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.Discovery.Subscribe.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL Discovery_Subscribe::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.Subscribe.channel_name) - return _s; -} -inline const ::std::string& Discovery_Subscribe::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void Discovery_Subscribe::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Discovery_Subscribe::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Discovery_Subscribe::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Discovery.Subscribe.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void Discovery_Subscribe::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.Subscribe.channel_name) -} - -// .subspace.ChannelAddress receiver = 2; -inline bool Discovery_Subscribe::has_receiver() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - PROTOBUF_ASSUME(!value || _impl_.receiver_ != nullptr); - return value; -} -inline void Discovery_Subscribe::clear_receiver() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.receiver_ != nullptr) _impl_.receiver_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::subspace::ChannelAddress& Discovery_Subscribe::_internal_receiver() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::subspace::ChannelAddress* p = _impl_.receiver_; - return p != nullptr ? *p : reinterpret_cast(::subspace::_ChannelAddress_default_instance_); -} -inline const ::subspace::ChannelAddress& Discovery_Subscribe::receiver() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.Subscribe.receiver) - return _internal_receiver(); -} -inline void Discovery_Subscribe::unsafe_arena_set_allocated_receiver( - ::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receiver_); - } - _impl_.receiver_ = reinterpret_cast<::subspace::ChannelAddress*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.Subscribe.receiver) -} -inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Discovery_Subscribe::release_receiver() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::subspace::ChannelAddress* released = _impl_.receiver_; - _impl_.receiver_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::subspace::ChannelAddress* PROTOBUF_NULLABLE Discovery_Subscribe::unsafe_arena_release_receiver() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Discovery.Subscribe.receiver) - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::subspace::ChannelAddress* temp = _impl_.receiver_; - _impl_.receiver_ = nullptr; - return temp; -} -inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Discovery_Subscribe::_internal_mutable_receiver() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.receiver_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ChannelAddress>(GetArena()); - _impl_.receiver_ = reinterpret_cast<::subspace::ChannelAddress*>(p); - } - return _impl_.receiver_; -} -inline ::subspace::ChannelAddress* PROTOBUF_NONNULL Discovery_Subscribe::mutable_receiver() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::subspace::ChannelAddress* _msg = _internal_mutable_receiver(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.Subscribe.receiver) - return _msg; -} -inline void Discovery_Subscribe::set_allocated_receiver(::subspace::ChannelAddress* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.receiver_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - - _impl_.receiver_ = reinterpret_cast<::subspace::ChannelAddress*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.Subscribe.receiver) -} - -// bool reliable = 3; -inline void Discovery_Subscribe::clear_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline bool Discovery_Subscribe::reliable() const { - // @@protoc_insertion_point(field_get:subspace.Discovery.Subscribe.reliable) - return _internal_reliable(); -} -inline void Discovery_Subscribe::set_reliable(bool value) { - _internal_set_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.Discovery.Subscribe.reliable) -} -inline bool Discovery_Subscribe::_internal_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.reliable_; -} -inline void Discovery_Subscribe::_internal_set_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.reliable_ = value; -} - -// ------------------------------------------------------------------- - -// Discovery - -// string server_id = 1; -inline void Discovery::clear_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.server_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Discovery::server_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.server_id) - return _internal_server_id(); -} -template -PROTOBUF_ALWAYS_INLINE void Discovery::set_server_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.server_id_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.Discovery.server_id) -} -inline ::std::string* PROTOBUF_NONNULL Discovery::mutable_server_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_server_id(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.server_id) - return _s; -} -inline const ::std::string& Discovery::_internal_server_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.server_id_.Get(); -} -inline void Discovery::_internal_set_server_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.server_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Discovery::_internal_mutable_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.server_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Discovery::release_server_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.Discovery.server_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.server_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.server_id_.Set("", GetArena()); - } - return released; -} -inline void Discovery::set_allocated_server_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.server_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.server_id_.IsDefault()) { - _impl_.server_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.Discovery.server_id) -} - -// int32 port = 2; -inline void Discovery::clear_port() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.port_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t Discovery::port() const { - // @@protoc_insertion_point(field_get:subspace.Discovery.port) - return _internal_port(); -} -inline void Discovery::set_port(::int32_t value) { - _internal_set_port(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.Discovery.port) -} -inline ::int32_t Discovery::_internal_port() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.port_; -} -inline void Discovery::_internal_set_port(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.port_ = value; -} - -// .subspace.Discovery.Query query = 3; -inline bool Discovery::has_query() const { - return data_case() == kQuery; -} -inline bool Discovery::_internal_has_query() const { - return data_case() == kQuery; -} -inline void Discovery::set_has_query() { - _impl_._oneof_case_[0] = kQuery; -} -inline void Discovery::clear_query() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (data_case() == kQuery) { - if (GetArena() == nullptr) { - delete _impl_.data_.query_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.data_.query_); - } - clear_has_data(); - } -} -inline ::subspace::Discovery_Query* PROTOBUF_NULLABLE Discovery::release_query() { - // @@protoc_insertion_point(field_release:subspace.Discovery.query) - if (data_case() == kQuery) { - clear_has_data(); - auto* temp = reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.data_.query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::Discovery_Query& Discovery::_internal_query() const { - return data_case() == kQuery ? static_cast(*reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_)) - : reinterpret_cast(::subspace::_Discovery_Query_default_instance_); -} -inline const ::subspace::Discovery_Query& Discovery::query() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.query) - return _internal_query(); -} -inline ::subspace::Discovery_Query* PROTOBUF_NULLABLE Discovery::unsafe_arena_release_query() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Discovery.query) - if (data_case() == kQuery) { - clear_has_data(); - auto* temp = reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_); - _impl_.data_.query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Discovery::unsafe_arena_set_allocated_query( - ::subspace::Discovery_Query* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_data(); - if (value) { - set_has_query(); - _impl_.data_.query_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.query) -} -inline ::subspace::Discovery_Query* PROTOBUF_NONNULL Discovery::_internal_mutable_query() { - if (data_case() != kQuery) { - clear_data(); - set_has_query(); - _impl_.data_.query_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Query>(GetArena())); - } - return reinterpret_cast<::subspace::Discovery_Query*>(_impl_.data_.query_); -} -inline ::subspace::Discovery_Query* PROTOBUF_NONNULL Discovery::mutable_query() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::Discovery_Query* _msg = _internal_mutable_query(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.query) - return _msg; -} - -// .subspace.Discovery.Advertise advertise = 4; -inline bool Discovery::has_advertise() const { - return data_case() == kAdvertise; -} -inline bool Discovery::_internal_has_advertise() const { - return data_case() == kAdvertise; -} -inline void Discovery::set_has_advertise() { - _impl_._oneof_case_[0] = kAdvertise; -} -inline void Discovery::clear_advertise() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (data_case() == kAdvertise) { - if (GetArena() == nullptr) { - delete _impl_.data_.advertise_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.data_.advertise_); - } - clear_has_data(); - } -} -inline ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE Discovery::release_advertise() { - // @@protoc_insertion_point(field_release:subspace.Discovery.advertise) - if (data_case() == kAdvertise) { - clear_has_data(); - auto* temp = reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.data_.advertise_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::Discovery_Advertise& Discovery::_internal_advertise() const { - return data_case() == kAdvertise ? static_cast(*reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_)) - : reinterpret_cast(::subspace::_Discovery_Advertise_default_instance_); -} -inline const ::subspace::Discovery_Advertise& Discovery::advertise() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.advertise) - return _internal_advertise(); -} -inline ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE Discovery::unsafe_arena_release_advertise() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Discovery.advertise) - if (data_case() == kAdvertise) { - clear_has_data(); - auto* temp = reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_); - _impl_.data_.advertise_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Discovery::unsafe_arena_set_allocated_advertise( - ::subspace::Discovery_Advertise* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_data(); - if (value) { - set_has_advertise(); - _impl_.data_.advertise_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.advertise) -} -inline ::subspace::Discovery_Advertise* PROTOBUF_NONNULL Discovery::_internal_mutable_advertise() { - if (data_case() != kAdvertise) { - clear_data(); - set_has_advertise(); - _impl_.data_.advertise_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Advertise>(GetArena())); - } - return reinterpret_cast<::subspace::Discovery_Advertise*>(_impl_.data_.advertise_); -} -inline ::subspace::Discovery_Advertise* PROTOBUF_NONNULL Discovery::mutable_advertise() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::Discovery_Advertise* _msg = _internal_mutable_advertise(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.advertise) - return _msg; -} - -// .subspace.Discovery.Subscribe subscribe = 5; -inline bool Discovery::has_subscribe() const { - return data_case() == kSubscribe; -} -inline bool Discovery::_internal_has_subscribe() const { - return data_case() == kSubscribe; -} -inline void Discovery::set_has_subscribe() { - _impl_._oneof_case_[0] = kSubscribe; -} -inline void Discovery::clear_subscribe() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (data_case() == kSubscribe) { - if (GetArena() == nullptr) { - delete _impl_.data_.subscribe_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.data_.subscribe_); - } - clear_has_data(); - } -} -inline ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE Discovery::release_subscribe() { - // @@protoc_insertion_point(field_release:subspace.Discovery.subscribe) - if (data_case() == kSubscribe) { - clear_has_data(); - auto* temp = reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.data_.subscribe_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::Discovery_Subscribe& Discovery::_internal_subscribe() const { - return data_case() == kSubscribe ? static_cast(*reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_)) - : reinterpret_cast(::subspace::_Discovery_Subscribe_default_instance_); -} -inline const ::subspace::Discovery_Subscribe& Discovery::subscribe() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.Discovery.subscribe) - return _internal_subscribe(); -} -inline ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE Discovery::unsafe_arena_release_subscribe() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.Discovery.subscribe) - if (data_case() == kSubscribe) { - clear_has_data(); - auto* temp = reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_); - _impl_.data_.subscribe_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void Discovery::unsafe_arena_set_allocated_subscribe( - ::subspace::Discovery_Subscribe* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_data(); - if (value) { - set_has_subscribe(); - _impl_.data_.subscribe_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.Discovery.subscribe) -} -inline ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL Discovery::_internal_mutable_subscribe() { - if (data_case() != kSubscribe) { - clear_data(); - set_has_subscribe(); - _impl_.data_.subscribe_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::Discovery_Subscribe>(GetArena())); - } - return reinterpret_cast<::subspace::Discovery_Subscribe*>(_impl_.data_.subscribe_); -} -inline ::subspace::Discovery_Subscribe* PROTOBUF_NONNULL Discovery::mutable_subscribe() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::Discovery_Subscribe* _msg = _internal_mutable_subscribe(); - // @@protoc_insertion_point(field_mutable:subspace.Discovery.subscribe) - return _msg; -} - -inline bool Discovery::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void Discovery::clear_has_data() { - _impl_._oneof_case_[0] = DATA_NOT_SET; -} -inline Discovery::DataCase Discovery::data_case() const { - return Discovery::DataCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// RpcOpenRequest - -// ------------------------------------------------------------------- - -// RpcOpenResponse_RequestChannel - -// string name = 1; -inline void RpcOpenResponse_RequestChannel::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RpcOpenResponse_RequestChannel::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.name) - return _internal_name(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_RequestChannel::set_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.name) -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::mutable_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.RequestChannel.name) - return _s; -} -inline const ::std::string& RpcOpenResponse_RequestChannel::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void RpcOpenResponse_RequestChannel::_internal_set_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_RequestChannel::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.RequestChannel.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.name_.Set("", GetArena()); - } - return released; -} -inline void RpcOpenResponse_RequestChannel::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.RequestChannel.name) -} - -// int32 slot_size = 2; -inline void RpcOpenResponse_RequestChannel::clear_slot_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t RpcOpenResponse_RequestChannel::slot_size() const { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.slot_size) - return _internal_slot_size(); -} -inline void RpcOpenResponse_RequestChannel::set_slot_size(::int32_t value) { - _internal_set_slot_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.slot_size) -} -inline ::int32_t RpcOpenResponse_RequestChannel::_internal_slot_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_size_; -} -inline void RpcOpenResponse_RequestChannel::_internal_set_slot_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = value; -} - -// int32 num_slots = 3; -inline void RpcOpenResponse_RequestChannel::clear_num_slots() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t RpcOpenResponse_RequestChannel::num_slots() const { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.num_slots) - return _internal_num_slots(); -} -inline void RpcOpenResponse_RequestChannel::set_num_slots(::int32_t value) { - _internal_set_num_slots(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.num_slots) -} -inline ::int32_t RpcOpenResponse_RequestChannel::_internal_num_slots() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_slots_; -} -inline void RpcOpenResponse_RequestChannel::_internal_set_num_slots(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = value; -} - -// string type = 4; -inline void RpcOpenResponse_RequestChannel::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& RpcOpenResponse_RequestChannel::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.RequestChannel.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_RequestChannel::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.RequestChannel.type) -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.RequestChannel.type) - return _s; -} -inline const ::std::string& RpcOpenResponse_RequestChannel::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void RpcOpenResponse_RequestChannel::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_RequestChannel::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_RequestChannel::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.RequestChannel.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void RpcOpenResponse_RequestChannel::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.RequestChannel.type) -} - -// ------------------------------------------------------------------- - -// RpcOpenResponse_ResponseChannel - -// string name = 1; -inline void RpcOpenResponse_ResponseChannel::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RpcOpenResponse_ResponseChannel::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.ResponseChannel.name) - return _internal_name(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_ResponseChannel::set_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.ResponseChannel.name) -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::mutable_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.ResponseChannel.name) - return _s; -} -inline const ::std::string& RpcOpenResponse_ResponseChannel::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void RpcOpenResponse_ResponseChannel::_internal_set_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_ResponseChannel::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.ResponseChannel.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.name_.Set("", GetArena()); - } - return released; -} -inline void RpcOpenResponse_ResponseChannel::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.ResponseChannel.name) -} - -// string type = 2; -inline void RpcOpenResponse_ResponseChannel::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& RpcOpenResponse_ResponseChannel::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.ResponseChannel.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_ResponseChannel::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.ResponseChannel.type) -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.ResponseChannel.type) - return _s; -} -inline const ::std::string& RpcOpenResponse_ResponseChannel::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void RpcOpenResponse_ResponseChannel::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_ResponseChannel::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_ResponseChannel::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.ResponseChannel.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void RpcOpenResponse_ResponseChannel::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.ResponseChannel.type) -} - -// ------------------------------------------------------------------- - -// RpcOpenResponse_Method - -// string name = 1; -inline void RpcOpenResponse_Method::clear_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RpcOpenResponse_Method::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.name) - return _internal_name(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_Method::set_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.Method.name) -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.name) - return _s; -} -inline const ::std::string& RpcOpenResponse_Method::_internal_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.name_.Get(); -} -inline void RpcOpenResponse_Method::_internal_set_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.name_.Set("", GetArena()); - } - return released; -} -inline void RpcOpenResponse_Method::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.Method.name) -} - -// int32 id = 2; -inline void RpcOpenResponse_Method::clear_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t RpcOpenResponse_Method::id() const { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.id) - return _internal_id(); -} -inline void RpcOpenResponse_Method::set_id(::int32_t value) { - _internal_set_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.Method.id) -} -inline ::int32_t RpcOpenResponse_Method::_internal_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.id_; -} -inline void RpcOpenResponse_Method::_internal_set_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.id_ = value; -} - -// .subspace.RpcOpenResponse.RequestChannel request_channel = 3; -inline bool RpcOpenResponse_Method::has_request_channel() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - PROTOBUF_ASSUME(!value || _impl_.request_channel_ != nullptr); - return value; -} -inline void RpcOpenResponse_Method::clear_request_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.request_channel_ != nullptr) _impl_.request_channel_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::subspace::RpcOpenResponse_RequestChannel& RpcOpenResponse_Method::_internal_request_channel() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::subspace::RpcOpenResponse_RequestChannel* p = _impl_.request_channel_; - return p != nullptr ? *p : reinterpret_cast(::subspace::_RpcOpenResponse_RequestChannel_default_instance_); -} -inline const ::subspace::RpcOpenResponse_RequestChannel& RpcOpenResponse_Method::request_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.request_channel) - return _internal_request_channel(); -} -inline void RpcOpenResponse_Method::unsafe_arena_set_allocated_request_channel( - ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.request_channel_); - } - _impl_.request_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_RequestChannel*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcOpenResponse.Method.request_channel) -} -inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_request_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - ::subspace::RpcOpenResponse_RequestChannel* released = _impl_.request_channel_; - _impl_.request_channel_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::unsafe_arena_release_request_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.request_channel) - - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - ::subspace::RpcOpenResponse_RequestChannel* temp = _impl_.request_channel_; - _impl_.request_channel_ = nullptr; - return temp; -} -inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_request_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.request_channel_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenResponse_RequestChannel>(GetArena()); - _impl_.request_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_RequestChannel*>(p); - } - return _impl_.request_channel_; -} -inline ::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_request_channel() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::subspace::RpcOpenResponse_RequestChannel* _msg = _internal_mutable_request_channel(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.request_channel) - return _msg; -} -inline void RpcOpenResponse_Method::set_allocated_request_channel(::subspace::RpcOpenResponse_RequestChannel* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.request_channel_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - - _impl_.request_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_RequestChannel*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.Method.request_channel) -} - -// .subspace.RpcOpenResponse.ResponseChannel response_channel = 4; -inline bool RpcOpenResponse_Method::has_response_channel() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - PROTOBUF_ASSUME(!value || _impl_.response_channel_ != nullptr); - return value; -} -inline void RpcOpenResponse_Method::clear_response_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.response_channel_ != nullptr) _impl_.response_channel_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::subspace::RpcOpenResponse_ResponseChannel& RpcOpenResponse_Method::_internal_response_channel() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::subspace::RpcOpenResponse_ResponseChannel* p = _impl_.response_channel_; - return p != nullptr ? *p : reinterpret_cast(::subspace::_RpcOpenResponse_ResponseChannel_default_instance_); -} -inline const ::subspace::RpcOpenResponse_ResponseChannel& RpcOpenResponse_Method::response_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.response_channel) - return _internal_response_channel(); -} -inline void RpcOpenResponse_Method::unsafe_arena_set_allocated_response_channel( - ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.response_channel_); - } - _impl_.response_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_ResponseChannel*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcOpenResponse.Method.response_channel) -} -inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_response_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - ::subspace::RpcOpenResponse_ResponseChannel* released = _impl_.response_channel_; - _impl_.response_channel_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE RpcOpenResponse_Method::unsafe_arena_release_response_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.response_channel) - - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - ::subspace::RpcOpenResponse_ResponseChannel* temp = _impl_.response_channel_; - _impl_.response_channel_ = nullptr; - return temp; -} -inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_response_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.response_channel_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenResponse_ResponseChannel>(GetArena()); - _impl_.response_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_ResponseChannel*>(p); - } - return _impl_.response_channel_; -} -inline ::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_response_channel() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::subspace::RpcOpenResponse_ResponseChannel* _msg = _internal_mutable_response_channel(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.response_channel) - return _msg; -} -inline void RpcOpenResponse_Method::set_allocated_response_channel(::subspace::RpcOpenResponse_ResponseChannel* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.response_channel_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - - _impl_.response_channel_ = reinterpret_cast<::subspace::RpcOpenResponse_ResponseChannel*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.Method.response_channel) -} - -// string cancel_channel = 5; -inline void RpcOpenResponse_Method::clear_cancel_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.cancel_channel_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& RpcOpenResponse_Method::cancel_channel() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.Method.cancel_channel) - return _internal_cancel_channel(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcOpenResponse_Method::set_cancel_channel(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.cancel_channel_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.Method.cancel_channel) -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::mutable_cancel_channel() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_cancel_channel(); - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.Method.cancel_channel) - return _s; -} -inline const ::std::string& RpcOpenResponse_Method::_internal_cancel_channel() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.cancel_channel_.Get(); -} -inline void RpcOpenResponse_Method::_internal_set_cancel_channel(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.cancel_channel_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcOpenResponse_Method::_internal_mutable_cancel_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.cancel_channel_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcOpenResponse_Method::release_cancel_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcOpenResponse.Method.cancel_channel) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.cancel_channel_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.cancel_channel_.Set("", GetArena()); - } - return released; -} -inline void RpcOpenResponse_Method::set_allocated_cancel_channel(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.cancel_channel_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.cancel_channel_.IsDefault()) { - _impl_.cancel_channel_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcOpenResponse.Method.cancel_channel) -} - -// ------------------------------------------------------------------- - -// RpcOpenResponse - -// int32 session_id = 1; -inline void RpcOpenResponse::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t RpcOpenResponse::session_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.session_id) - return _internal_session_id(); -} -inline void RpcOpenResponse::set_session_id(::int32_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.session_id) -} -inline ::int32_t RpcOpenResponse::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void RpcOpenResponse::_internal_set_session_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// repeated .subspace.RpcOpenResponse.Method methods = 2; -inline int RpcOpenResponse::_internal_methods_size() const { - return _internal_methods().size(); -} -inline int RpcOpenResponse::methods_size() const { - return _internal_methods_size(); -} -inline void RpcOpenResponse::clear_methods() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.methods_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL RpcOpenResponse::mutable_methods(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:subspace.RpcOpenResponse.methods) - return _internal_mutable_methods()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL RpcOpenResponse::mutable_methods() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:subspace.RpcOpenResponse.methods) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_methods(); -} -inline const ::subspace::RpcOpenResponse_Method& RpcOpenResponse::methods(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.methods) - return _internal_methods().Get(index); -} -inline ::subspace::RpcOpenResponse_Method* PROTOBUF_NONNULL RpcOpenResponse::add_methods() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::subspace::RpcOpenResponse_Method* _add = - _internal_mutable_methods()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:subspace.RpcOpenResponse.methods) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>& RpcOpenResponse::methods() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:subspace.RpcOpenResponse.methods) - return _internal_methods(); -} -inline const ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>& -RpcOpenResponse::_internal_methods() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.methods_; -} -inline ::google::protobuf::RepeatedPtrField<::subspace::RpcOpenResponse_Method>* PROTOBUF_NONNULL -RpcOpenResponse::_internal_mutable_methods() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.methods_; -} - -// uint64 client_id = 3; -inline void RpcOpenResponse::clear_client_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::uint64_t RpcOpenResponse::client_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcOpenResponse.client_id) - return _internal_client_id(); -} -inline void RpcOpenResponse::set_client_id(::uint64_t value) { - _internal_set_client_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RpcOpenResponse.client_id) -} -inline ::uint64_t RpcOpenResponse::_internal_client_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_id_; -} -inline void RpcOpenResponse::_internal_set_client_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = value; -} - -// ------------------------------------------------------------------- - -// RpcCloseRequest - -// int32 session_id = 1; -inline void RpcCloseRequest::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::int32_t RpcCloseRequest::session_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcCloseRequest.session_id) - return _internal_session_id(); -} -inline void RpcCloseRequest::set_session_id(::int32_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:subspace.RpcCloseRequest.session_id) -} -inline ::int32_t RpcCloseRequest::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void RpcCloseRequest::_internal_set_session_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// ------------------------------------------------------------------- - -// RpcCloseResponse - -// ------------------------------------------------------------------- - -// RpcServerRequest - -// uint64 client_id = 1; -inline void RpcServerRequest::clear_client_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::uint64_t RpcServerRequest::client_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.client_id) - return _internal_client_id(); -} -inline void RpcServerRequest::set_client_id(::uint64_t value) { - _internal_set_client_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:subspace.RpcServerRequest.client_id) -} -inline ::uint64_t RpcServerRequest::_internal_client_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_id_; -} -inline void RpcServerRequest::_internal_set_client_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = value; -} - -// int32 request_id = 2; -inline void RpcServerRequest::clear_request_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t RpcServerRequest::request_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.request_id) - return _internal_request_id(); -} -inline void RpcServerRequest::set_request_id(::int32_t value) { - _internal_set_request_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RpcServerRequest.request_id) -} -inline ::int32_t RpcServerRequest::_internal_request_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.request_id_; -} -inline void RpcServerRequest::_internal_set_request_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = value; -} - -// .subspace.RpcOpenRequest open = 3; -inline bool RpcServerRequest::has_open() const { - return request_case() == kOpen; -} -inline bool RpcServerRequest::_internal_has_open() const { - return request_case() == kOpen; -} -inline void RpcServerRequest::set_has_open() { - _impl_._oneof_case_[0] = kOpen; -} -inline void RpcServerRequest::clear_open() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kOpen) { - if (GetArena() == nullptr) { - delete _impl_.request_.open_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.open_); - } - clear_has_request(); - } -} -inline ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE RpcServerRequest::release_open() { - // @@protoc_insertion_point(field_release:subspace.RpcServerRequest.open) - if (request_case() == kOpen) { - clear_has_request(); - auto* temp = _impl_.request_.open_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.open_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RpcOpenRequest& RpcServerRequest::_internal_open() const { - return request_case() == kOpen ? static_cast(*_impl_.request_.open_) - : reinterpret_cast(::subspace::_RpcOpenRequest_default_instance_); -} -inline const ::subspace::RpcOpenRequest& RpcServerRequest::open() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.open) - return _internal_open(); -} -inline ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE RpcServerRequest::unsafe_arena_release_open() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerRequest.open) - if (request_case() == kOpen) { - clear_has_request(); - auto* temp = _impl_.request_.open_; - _impl_.request_.open_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RpcServerRequest::unsafe_arena_set_allocated_open( - ::subspace::RpcOpenRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_open(); - _impl_.request_.open_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerRequest.open) -} -inline ::subspace::RpcOpenRequest* PROTOBUF_NONNULL RpcServerRequest::_internal_mutable_open() { - if (request_case() != kOpen) { - clear_request(); - set_has_open(); - _impl_.request_.open_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenRequest>(GetArena()); - } - return _impl_.request_.open_; -} -inline ::subspace::RpcOpenRequest* PROTOBUF_NONNULL RpcServerRequest::mutable_open() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RpcOpenRequest* _msg = _internal_mutable_open(); - // @@protoc_insertion_point(field_mutable:subspace.RpcServerRequest.open) - return _msg; -} - -// .subspace.RpcCloseRequest close = 4; -inline bool RpcServerRequest::has_close() const { - return request_case() == kClose; -} -inline bool RpcServerRequest::_internal_has_close() const { - return request_case() == kClose; -} -inline void RpcServerRequest::set_has_close() { - _impl_._oneof_case_[0] = kClose; -} -inline void RpcServerRequest::clear_close() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (request_case() == kClose) { - if (GetArena() == nullptr) { - delete _impl_.request_.close_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.request_.close_); - } - clear_has_request(); - } -} -inline ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE RpcServerRequest::release_close() { - // @@protoc_insertion_point(field_release:subspace.RpcServerRequest.close) - if (request_case() == kClose) { - clear_has_request(); - auto* temp = _impl_.request_.close_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.request_.close_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RpcCloseRequest& RpcServerRequest::_internal_close() const { - return request_case() == kClose ? static_cast(*_impl_.request_.close_) - : reinterpret_cast(::subspace::_RpcCloseRequest_default_instance_); -} -inline const ::subspace::RpcCloseRequest& RpcServerRequest::close() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcServerRequest.close) - return _internal_close(); -} -inline ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE RpcServerRequest::unsafe_arena_release_close() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerRequest.close) - if (request_case() == kClose) { - clear_has_request(); - auto* temp = _impl_.request_.close_; - _impl_.request_.close_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RpcServerRequest::unsafe_arena_set_allocated_close( - ::subspace::RpcCloseRequest* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_request(); - if (value) { - set_has_close(); - _impl_.request_.close_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerRequest.close) -} -inline ::subspace::RpcCloseRequest* PROTOBUF_NONNULL RpcServerRequest::_internal_mutable_close() { - if (request_case() != kClose) { - clear_request(); - set_has_close(); - _impl_.request_.close_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RpcCloseRequest>(GetArena()); - } - return _impl_.request_.close_; -} -inline ::subspace::RpcCloseRequest* PROTOBUF_NONNULL RpcServerRequest::mutable_close() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RpcCloseRequest* _msg = _internal_mutable_close(); - // @@protoc_insertion_point(field_mutable:subspace.RpcServerRequest.close) - return _msg; -} - -inline bool RpcServerRequest::has_request() const { - return request_case() != REQUEST_NOT_SET; -} -inline void RpcServerRequest::clear_has_request() { - _impl_._oneof_case_[0] = REQUEST_NOT_SET; -} -inline RpcServerRequest::RequestCase RpcServerRequest::request_case() const { - return RpcServerRequest::RequestCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// RpcServerResponse - -// uint64 client_id = 1; -inline void RpcServerResponse::clear_client_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::uint64_t RpcServerResponse::client_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.client_id) - return _internal_client_id(); -} -inline void RpcServerResponse::set_client_id(::uint64_t value) { - _internal_set_client_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RpcServerResponse.client_id) -} -inline ::uint64_t RpcServerResponse::_internal_client_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_id_; -} -inline void RpcServerResponse::_internal_set_client_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = value; -} - -// int32 request_id = 2; -inline void RpcServerResponse::clear_request_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t RpcServerResponse::request_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.request_id) - return _internal_request_id(); -} -inline void RpcServerResponse::set_request_id(::int32_t value) { - _internal_set_request_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.RpcServerResponse.request_id) -} -inline ::int32_t RpcServerResponse::_internal_request_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.request_id_; -} -inline void RpcServerResponse::_internal_set_request_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = value; -} - -// .subspace.RpcOpenResponse open = 3; -inline bool RpcServerResponse::has_open() const { - return response_case() == kOpen; -} -inline bool RpcServerResponse::_internal_has_open() const { - return response_case() == kOpen; -} -inline void RpcServerResponse::set_has_open() { - _impl_._oneof_case_[0] = kOpen; -} -inline void RpcServerResponse::clear_open() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kOpen) { - if (GetArena() == nullptr) { - delete _impl_.response_.open_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.open_); - } - clear_has_response(); - } -} -inline ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE RpcServerResponse::release_open() { - // @@protoc_insertion_point(field_release:subspace.RpcServerResponse.open) - if (response_case() == kOpen) { - clear_has_response(); - auto* temp = _impl_.response_.open_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.open_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RpcOpenResponse& RpcServerResponse::_internal_open() const { - return response_case() == kOpen ? static_cast(*_impl_.response_.open_) - : reinterpret_cast(::subspace::_RpcOpenResponse_default_instance_); -} -inline const ::subspace::RpcOpenResponse& RpcServerResponse::open() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.open) - return _internal_open(); -} -inline ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE RpcServerResponse::unsafe_arena_release_open() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerResponse.open) - if (response_case() == kOpen) { - clear_has_response(); - auto* temp = _impl_.response_.open_; - _impl_.response_.open_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RpcServerResponse::unsafe_arena_set_allocated_open( - ::subspace::RpcOpenResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_open(); - _impl_.response_.open_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerResponse.open) -} -inline ::subspace::RpcOpenResponse* PROTOBUF_NONNULL RpcServerResponse::_internal_mutable_open() { - if (response_case() != kOpen) { - clear_response(); - set_has_open(); - _impl_.response_.open_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RpcOpenResponse>(GetArena()); - } - return _impl_.response_.open_; -} -inline ::subspace::RpcOpenResponse* PROTOBUF_NONNULL RpcServerResponse::mutable_open() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RpcOpenResponse* _msg = _internal_mutable_open(); - // @@protoc_insertion_point(field_mutable:subspace.RpcServerResponse.open) - return _msg; -} - -// .subspace.RpcCloseResponse close = 4; -inline bool RpcServerResponse::has_close() const { - return response_case() == kClose; -} -inline bool RpcServerResponse::_internal_has_close() const { - return response_case() == kClose; -} -inline void RpcServerResponse::set_has_close() { - _impl_._oneof_case_[0] = kClose; -} -inline void RpcServerResponse::clear_close() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (response_case() == kClose) { - if (GetArena() == nullptr) { - delete _impl_.response_.close_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.response_.close_); - } - clear_has_response(); - } -} -inline ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE RpcServerResponse::release_close() { - // @@protoc_insertion_point(field_release:subspace.RpcServerResponse.close) - if (response_case() == kClose) { - clear_has_response(); - auto* temp = _impl_.response_.close_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.response_.close_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::RpcCloseResponse& RpcServerResponse::_internal_close() const { - return response_case() == kClose ? static_cast(*_impl_.response_.close_) - : reinterpret_cast(::subspace::_RpcCloseResponse_default_instance_); -} -inline const ::subspace::RpcCloseResponse& RpcServerResponse::close() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.close) - return _internal_close(); -} -inline ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE RpcServerResponse::unsafe_arena_release_close() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.RpcServerResponse.close) - if (response_case() == kClose) { - clear_has_response(); - auto* temp = _impl_.response_.close_; - _impl_.response_.close_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void RpcServerResponse::unsafe_arena_set_allocated_close( - ::subspace::RpcCloseResponse* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_response(); - if (value) { - set_has_close(); - _impl_.response_.close_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcServerResponse.close) -} -inline ::subspace::RpcCloseResponse* PROTOBUF_NONNULL RpcServerResponse::_internal_mutable_close() { - if (response_case() != kClose) { - clear_response(); - set_has_close(); - _impl_.response_.close_ = - ::google::protobuf::Message::DefaultConstruct<::subspace::RpcCloseResponse>(GetArena()); - } - return _impl_.response_.close_; -} -inline ::subspace::RpcCloseResponse* PROTOBUF_NONNULL RpcServerResponse::mutable_close() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::RpcCloseResponse* _msg = _internal_mutable_close(); - // @@protoc_insertion_point(field_mutable:subspace.RpcServerResponse.close) - return _msg; -} - -// string error = 5; -inline void RpcServerResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RpcServerResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcServerResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcServerResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcServerResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL RpcServerResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.RpcServerResponse.error) - return _s; -} -inline const ::std::string& RpcServerResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void RpcServerResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcServerResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcServerResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcServerResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void RpcServerResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcServerResponse.error) -} - -inline bool RpcServerResponse::has_response() const { - return response_case() != RESPONSE_NOT_SET; -} -inline void RpcServerResponse::clear_has_response() { - _impl_._oneof_case_[0] = RESPONSE_NOT_SET; -} -inline RpcServerResponse::ResponseCase RpcServerResponse::response_case() const { - return RpcServerResponse::ResponseCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// RpcRequest - -// int32 method = 1; -inline void RpcRequest::clear_method() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.method_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t RpcRequest::method() const { - // @@protoc_insertion_point(field_get:subspace.RpcRequest.method) - return _internal_method(); -} -inline void RpcRequest::set_method(::int32_t value) { - _internal_set_method(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RpcRequest.method) -} -inline ::int32_t RpcRequest::_internal_method() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.method_; -} -inline void RpcRequest::_internal_set_method(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.method_ = value; -} - -// .google.protobuf.Any argument = 2; -inline bool RpcRequest::has_argument() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - PROTOBUF_ASSUME(!value || _impl_.argument_ != nullptr); - return value; -} -inline const ::google::protobuf::Any& RpcRequest::_internal_argument() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::google::protobuf::Any* p = _impl_.argument_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Any_default_instance_); -} -inline const ::google::protobuf::Any& RpcRequest::argument() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcRequest.argument) - return _internal_argument(); -} -inline void RpcRequest::unsafe_arena_set_allocated_argument( - ::google::protobuf::Any* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.argument_); - } - _impl_.argument_ = reinterpret_cast<::google::protobuf::Any*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcRequest.argument) -} -inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcRequest::release_argument() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::google::protobuf::Any* released = _impl_.argument_; - _impl_.argument_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcRequest::unsafe_arena_release_argument() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcRequest.argument) - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::google::protobuf::Any* temp = _impl_.argument_; - _impl_.argument_ = nullptr; - return temp; -} -inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcRequest::_internal_mutable_argument() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.argument_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); - _impl_.argument_ = reinterpret_cast<::google::protobuf::Any*>(p); - } - return _impl_.argument_; -} -inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcRequest::mutable_argument() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::google::protobuf::Any* _msg = _internal_mutable_argument(); - // @@protoc_insertion_point(field_mutable:subspace.RpcRequest.argument) - return _msg; -} -inline void RpcRequest::set_allocated_argument(::google::protobuf::Any* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.argument_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - - _impl_.argument_ = reinterpret_cast<::google::protobuf::Any*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.RpcRequest.argument) -} - -// int32 session_id = 3; -inline void RpcRequest::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t RpcRequest::session_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcRequest.session_id) - return _internal_session_id(); -} -inline void RpcRequest::set_session_id(::int32_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.RpcRequest.session_id) -} -inline ::int32_t RpcRequest::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void RpcRequest::_internal_set_session_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// int32 request_id = 4; -inline void RpcRequest::clear_request_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t RpcRequest::request_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcRequest.request_id) - return _internal_request_id(); -} -inline void RpcRequest::set_request_id(::int32_t value) { - _internal_set_request_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.RpcRequest.request_id) -} -inline ::int32_t RpcRequest::_internal_request_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.request_id_; -} -inline void RpcRequest::_internal_set_request_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = value; -} - -// uint64 client_id = 5; -inline void RpcRequest::clear_client_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::uint64_t RpcRequest::client_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcRequest.client_id) - return _internal_client_id(); -} -inline void RpcRequest::set_client_id(::uint64_t value) { - _internal_set_client_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.RpcRequest.client_id) -} -inline ::uint64_t RpcRequest::_internal_client_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_id_; -} -inline void RpcRequest::_internal_set_client_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = value; -} - -// ------------------------------------------------------------------- - -// RpcResponse - -// string error = 1; -inline void RpcResponse::clear_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RpcResponse::error() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcResponse.error) - return _internal_error(); -} -template -PROTOBUF_ALWAYS_INLINE void RpcResponse::set_error(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.error_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RpcResponse.error) -} -inline ::std::string* PROTOBUF_NONNULL RpcResponse::mutable_error() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_error(); - // @@protoc_insertion_point(field_mutable:subspace.RpcResponse.error) - return _s; -} -inline const ::std::string& RpcResponse::_internal_error() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_.Get(); -} -inline void RpcResponse::_internal_set_error(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RpcResponse::_internal_mutable_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RpcResponse::release_error() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcResponse.error) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.error_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_.Set("", GetArena()); - } - return released; -} -inline void RpcResponse::set_allocated_error(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.error_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_.IsDefault()) { - _impl_.error_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RpcResponse.error) -} - -// .google.protobuf.Any result = 2; -inline bool RpcResponse::has_result() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - PROTOBUF_ASSUME(!value || _impl_.result_ != nullptr); - return value; -} -inline const ::google::protobuf::Any& RpcResponse::_internal_result() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::google::protobuf::Any* p = _impl_.result_; - return p != nullptr ? *p : reinterpret_cast(::google::protobuf::_Any_default_instance_); -} -inline const ::google::protobuf::Any& RpcResponse::result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RpcResponse.result) - return _internal_result(); -} -inline void RpcResponse::unsafe_arena_set_allocated_result( - ::google::protobuf::Any* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_); - } - _impl_.result_ = reinterpret_cast<::google::protobuf::Any*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.RpcResponse.result) -} -inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcResponse::release_result() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::google::protobuf::Any* released = _impl_.result_; - _impl_.result_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::google::protobuf::Any* PROTOBUF_NULLABLE RpcResponse::unsafe_arena_release_result() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RpcResponse.result) - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::google::protobuf::Any* temp = _impl_.result_; - _impl_.result_ = nullptr; - return temp; -} -inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcResponse::_internal_mutable_result() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.result_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena()); - _impl_.result_ = reinterpret_cast<::google::protobuf::Any*>(p); - } - return _impl_.result_; -} -inline ::google::protobuf::Any* PROTOBUF_NONNULL RpcResponse::mutable_result() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::google::protobuf::Any* _msg = _internal_mutable_result(); - // @@protoc_insertion_point(field_mutable:subspace.RpcResponse.result) - return _msg; -} -inline void RpcResponse::set_allocated_result(::google::protobuf::Any* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - - _impl_.result_ = reinterpret_cast<::google::protobuf::Any*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.RpcResponse.result) -} - -// int32 session_id = 3; -inline void RpcResponse::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t RpcResponse::session_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcResponse.session_id) - return _internal_session_id(); -} -inline void RpcResponse::set_session_id(::int32_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.RpcResponse.session_id) -} -inline ::int32_t RpcResponse::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void RpcResponse::_internal_set_session_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// int32 request_id = 4; -inline void RpcResponse::clear_request_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t RpcResponse::request_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcResponse.request_id) - return _internal_request_id(); -} -inline void RpcResponse::set_request_id(::int32_t value) { - _internal_set_request_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.RpcResponse.request_id) -} -inline ::int32_t RpcResponse::_internal_request_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.request_id_; -} -inline void RpcResponse::_internal_set_request_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = value; -} - -// uint64 client_id = 5; -inline void RpcResponse::clear_client_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::uint64_t RpcResponse::client_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcResponse.client_id) - return _internal_client_id(); -} -inline void RpcResponse::set_client_id(::uint64_t value) { - _internal_set_client_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.RpcResponse.client_id) -} -inline ::uint64_t RpcResponse::_internal_client_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_id_; -} -inline void RpcResponse::_internal_set_client_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = value; -} - -// bool is_last = 6; -inline void RpcResponse::clear_is_last() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_last_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline bool RpcResponse::is_last() const { - // @@protoc_insertion_point(field_get:subspace.RpcResponse.is_last) - return _internal_is_last(); -} -inline void RpcResponse::set_is_last(bool value) { - _internal_set_is_last(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.RpcResponse.is_last) -} -inline bool RpcResponse::_internal_is_last() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_last_; -} -inline void RpcResponse::_internal_set_is_last(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_last_ = value; -} - -// bool is_cancelled = 7; -inline void RpcResponse::clear_is_cancelled() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_cancelled_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline bool RpcResponse::is_cancelled() const { - // @@protoc_insertion_point(field_get:subspace.RpcResponse.is_cancelled) - return _internal_is_cancelled(); -} -inline void RpcResponse::set_is_cancelled(bool value) { - _internal_set_is_cancelled(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.RpcResponse.is_cancelled) -} -inline bool RpcResponse::_internal_is_cancelled() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_cancelled_; -} -inline void RpcResponse::_internal_set_is_cancelled(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_cancelled_ = value; -} - -// ------------------------------------------------------------------- - -// RpcCancelRequest - -// int32 session_id = 1; -inline void RpcCancelRequest::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::int32_t RpcCancelRequest::session_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcCancelRequest.session_id) - return _internal_session_id(); -} -inline void RpcCancelRequest::set_session_id(::int32_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:subspace.RpcCancelRequest.session_id) -} -inline ::int32_t RpcCancelRequest::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void RpcCancelRequest::_internal_set_session_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// int32 request_id = 2; -inline void RpcCancelRequest::clear_request_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t RpcCancelRequest::request_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcCancelRequest.request_id) - return _internal_request_id(); -} -inline void RpcCancelRequest::set_request_id(::int32_t value) { - _internal_set_request_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.RpcCancelRequest.request_id) -} -inline ::int32_t RpcCancelRequest::_internal_request_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.request_id_; -} -inline void RpcCancelRequest::_internal_set_request_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.request_id_ = value; -} - -// uint64 client_id = 3; -inline void RpcCancelRequest::clear_client_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::uint64_t RpcCancelRequest::client_id() const { - // @@protoc_insertion_point(field_get:subspace.RpcCancelRequest.client_id) - return _internal_client_id(); -} -inline void RpcCancelRequest::set_client_id(::uint64_t value) { - _internal_set_client_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.RpcCancelRequest.client_id) -} -inline ::uint64_t RpcCancelRequest::_internal_client_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.client_id_; -} -inline void RpcCancelRequest::_internal_set_client_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.client_id_ = value; -} - -// ------------------------------------------------------------------- - -// RawMessage - -// bytes data = 1; -inline void RawMessage::clear_data() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.data_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& RawMessage::data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.RawMessage.data) - return _internal_data(); -} -template -PROTOBUF_ALWAYS_INLINE void RawMessage::set_data(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.RawMessage.data) -} -inline ::std::string* PROTOBUF_NONNULL RawMessage::mutable_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_data(); - // @@protoc_insertion_point(field_mutable:subspace.RawMessage.data) - return _s; -} -inline const ::std::string& RawMessage::_internal_data() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.data_.Get(); -} -inline void RawMessage::_internal_set_data(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.data_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL RawMessage::_internal_mutable_data() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.data_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE RawMessage::release_data() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.RawMessage.data) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.data_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.data_.Set("", GetArena()); - } - return released; -} -inline void RawMessage::set_allocated_data(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.data_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.RawMessage.data) -} - -// ------------------------------------------------------------------- - -// VoidMessage - -// ------------------------------------------------------------------- - -// ShadowEvent - -// .subspace.ShadowInit init = 1; -inline bool ShadowEvent::has_init() const { - return event_case() == kInit; -} -inline bool ShadowEvent::_internal_has_init() const { - return event_case() == kInit; -} -inline void ShadowEvent::set_has_init() { - _impl_._oneof_case_[0] = kInit; -} -inline void ShadowEvent::clear_init() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kInit) { - if (GetArena() == nullptr) { - delete _impl_.event_.init_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.init_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowInit* PROTOBUF_NULLABLE ShadowEvent::release_init() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.init) - if (event_case() == kInit) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.init_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowInit& ShadowEvent::_internal_init() const { - return event_case() == kInit ? static_cast(*reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_)) - : reinterpret_cast(::subspace::_ShadowInit_default_instance_); -} -inline const ::subspace::ShadowInit& ShadowEvent::init() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.init) - return _internal_init(); -} -inline ::subspace::ShadowInit* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_init() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.init) - if (event_case() == kInit) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_); - _impl_.event_.init_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_init( - ::subspace::ShadowInit* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_init(); - _impl_.event_.init_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.init) -} -inline ::subspace::ShadowInit* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_init() { - if (event_case() != kInit) { - clear_event(); - set_has_init(); - _impl_.event_.init_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowInit>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowInit*>(_impl_.event_.init_); -} -inline ::subspace::ShadowInit* PROTOBUF_NONNULL ShadowEvent::mutable_init() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowInit* _msg = _internal_mutable_init(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.init) - return _msg; -} - -// .subspace.ShadowCreateChannel create_channel = 2; -inline bool ShadowEvent::has_create_channel() const { - return event_case() == kCreateChannel; -} -inline bool ShadowEvent::_internal_has_create_channel() const { - return event_case() == kCreateChannel; -} -inline void ShadowEvent::set_has_create_channel() { - _impl_._oneof_case_[0] = kCreateChannel; -} -inline void ShadowEvent::clear_create_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kCreateChannel) { - if (GetArena() == nullptr) { - delete _impl_.event_.create_channel_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.create_channel_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE ShadowEvent::release_create_channel() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.create_channel) - if (event_case() == kCreateChannel) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.create_channel_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowCreateChannel& ShadowEvent::_internal_create_channel() const { - return event_case() == kCreateChannel ? static_cast(*reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_)) - : reinterpret_cast(::subspace::_ShadowCreateChannel_default_instance_); -} -inline const ::subspace::ShadowCreateChannel& ShadowEvent::create_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.create_channel) - return _internal_create_channel(); -} -inline ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_create_channel() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.create_channel) - if (event_case() == kCreateChannel) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_); - _impl_.event_.create_channel_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_create_channel( - ::subspace::ShadowCreateChannel* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_create_channel(); - _impl_.event_.create_channel_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.create_channel) -} -inline ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_create_channel() { - if (event_case() != kCreateChannel) { - clear_event(); - set_has_create_channel(); - _impl_.event_.create_channel_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowCreateChannel>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowCreateChannel*>(_impl_.event_.create_channel_); -} -inline ::subspace::ShadowCreateChannel* PROTOBUF_NONNULL ShadowEvent::mutable_create_channel() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowCreateChannel* _msg = _internal_mutable_create_channel(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.create_channel) - return _msg; -} - -// .subspace.ShadowRemoveChannel remove_channel = 3; -inline bool ShadowEvent::has_remove_channel() const { - return event_case() == kRemoveChannel; -} -inline bool ShadowEvent::_internal_has_remove_channel() const { - return event_case() == kRemoveChannel; -} -inline void ShadowEvent::set_has_remove_channel() { - _impl_._oneof_case_[0] = kRemoveChannel; -} -inline void ShadowEvent::clear_remove_channel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kRemoveChannel) { - if (GetArena() == nullptr) { - delete _impl_.event_.remove_channel_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.remove_channel_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE ShadowEvent::release_remove_channel() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.remove_channel) - if (event_case() == kRemoveChannel) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.remove_channel_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowRemoveChannel& ShadowEvent::_internal_remove_channel() const { - return event_case() == kRemoveChannel ? static_cast(*reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_)) - : reinterpret_cast(::subspace::_ShadowRemoveChannel_default_instance_); -} -inline const ::subspace::ShadowRemoveChannel& ShadowEvent::remove_channel() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.remove_channel) - return _internal_remove_channel(); -} -inline ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_remove_channel() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.remove_channel) - if (event_case() == kRemoveChannel) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_); - _impl_.event_.remove_channel_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_remove_channel( - ::subspace::ShadowRemoveChannel* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_remove_channel(); - _impl_.event_.remove_channel_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.remove_channel) -} -inline ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_remove_channel() { - if (event_case() != kRemoveChannel) { - clear_event(); - set_has_remove_channel(); - _impl_.event_.remove_channel_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemoveChannel>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowRemoveChannel*>(_impl_.event_.remove_channel_); -} -inline ::subspace::ShadowRemoveChannel* PROTOBUF_NONNULL ShadowEvent::mutable_remove_channel() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowRemoveChannel* _msg = _internal_mutable_remove_channel(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.remove_channel) - return _msg; -} - -// .subspace.ShadowAddPublisher add_publisher = 4; -inline bool ShadowEvent::has_add_publisher() const { - return event_case() == kAddPublisher; -} -inline bool ShadowEvent::_internal_has_add_publisher() const { - return event_case() == kAddPublisher; -} -inline void ShadowEvent::set_has_add_publisher() { - _impl_._oneof_case_[0] = kAddPublisher; -} -inline void ShadowEvent::clear_add_publisher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kAddPublisher) { - if (GetArena() == nullptr) { - delete _impl_.event_.add_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.add_publisher_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE ShadowEvent::release_add_publisher() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.add_publisher) - if (event_case() == kAddPublisher) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.add_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowAddPublisher& ShadowEvent::_internal_add_publisher() const { - return event_case() == kAddPublisher ? static_cast(*reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_)) - : reinterpret_cast(::subspace::_ShadowAddPublisher_default_instance_); -} -inline const ::subspace::ShadowAddPublisher& ShadowEvent::add_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.add_publisher) - return _internal_add_publisher(); -} -inline ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_add_publisher() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.add_publisher) - if (event_case() == kAddPublisher) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_); - _impl_.event_.add_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_add_publisher( - ::subspace::ShadowAddPublisher* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_add_publisher(); - _impl_.event_.add_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.add_publisher) -} -inline ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_add_publisher() { - if (event_case() != kAddPublisher) { - clear_event(); - set_has_add_publisher(); - _impl_.event_.add_publisher_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowAddPublisher>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowAddPublisher*>(_impl_.event_.add_publisher_); -} -inline ::subspace::ShadowAddPublisher* PROTOBUF_NONNULL ShadowEvent::mutable_add_publisher() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowAddPublisher* _msg = _internal_mutable_add_publisher(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.add_publisher) - return _msg; -} - -// .subspace.ShadowRemovePublisher remove_publisher = 5; -inline bool ShadowEvent::has_remove_publisher() const { - return event_case() == kRemovePublisher; -} -inline bool ShadowEvent::_internal_has_remove_publisher() const { - return event_case() == kRemovePublisher; -} -inline void ShadowEvent::set_has_remove_publisher() { - _impl_._oneof_case_[0] = kRemovePublisher; -} -inline void ShadowEvent::clear_remove_publisher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kRemovePublisher) { - if (GetArena() == nullptr) { - delete _impl_.event_.remove_publisher_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.remove_publisher_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE ShadowEvent::release_remove_publisher() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.remove_publisher) - if (event_case() == kRemovePublisher) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.remove_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowRemovePublisher& ShadowEvent::_internal_remove_publisher() const { - return event_case() == kRemovePublisher ? static_cast(*reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_)) - : reinterpret_cast(::subspace::_ShadowRemovePublisher_default_instance_); -} -inline const ::subspace::ShadowRemovePublisher& ShadowEvent::remove_publisher() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.remove_publisher) - return _internal_remove_publisher(); -} -inline ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_remove_publisher() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.remove_publisher) - if (event_case() == kRemovePublisher) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_); - _impl_.event_.remove_publisher_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_remove_publisher( - ::subspace::ShadowRemovePublisher* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_remove_publisher(); - _impl_.event_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.remove_publisher) -} -inline ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_remove_publisher() { - if (event_case() != kRemovePublisher) { - clear_event(); - set_has_remove_publisher(); - _impl_.event_.remove_publisher_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemovePublisher>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowRemovePublisher*>(_impl_.event_.remove_publisher_); -} -inline ::subspace::ShadowRemovePublisher* PROTOBUF_NONNULL ShadowEvent::mutable_remove_publisher() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowRemovePublisher* _msg = _internal_mutable_remove_publisher(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.remove_publisher) - return _msg; -} - -// .subspace.ShadowAddSubscriber add_subscriber = 6; -inline bool ShadowEvent::has_add_subscriber() const { - return event_case() == kAddSubscriber; -} -inline bool ShadowEvent::_internal_has_add_subscriber() const { - return event_case() == kAddSubscriber; -} -inline void ShadowEvent::set_has_add_subscriber() { - _impl_._oneof_case_[0] = kAddSubscriber; -} -inline void ShadowEvent::clear_add_subscriber() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kAddSubscriber) { - if (GetArena() == nullptr) { - delete _impl_.event_.add_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.add_subscriber_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE ShadowEvent::release_add_subscriber() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.add_subscriber) - if (event_case() == kAddSubscriber) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.add_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowAddSubscriber& ShadowEvent::_internal_add_subscriber() const { - return event_case() == kAddSubscriber ? static_cast(*reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_)) - : reinterpret_cast(::subspace::_ShadowAddSubscriber_default_instance_); -} -inline const ::subspace::ShadowAddSubscriber& ShadowEvent::add_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.add_subscriber) - return _internal_add_subscriber(); -} -inline ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_add_subscriber() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.add_subscriber) - if (event_case() == kAddSubscriber) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_); - _impl_.event_.add_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_add_subscriber( - ::subspace::ShadowAddSubscriber* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_add_subscriber(); - _impl_.event_.add_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.add_subscriber) -} -inline ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_add_subscriber() { - if (event_case() != kAddSubscriber) { - clear_event(); - set_has_add_subscriber(); - _impl_.event_.add_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowAddSubscriber>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowAddSubscriber*>(_impl_.event_.add_subscriber_); -} -inline ::subspace::ShadowAddSubscriber* PROTOBUF_NONNULL ShadowEvent::mutable_add_subscriber() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowAddSubscriber* _msg = _internal_mutable_add_subscriber(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.add_subscriber) - return _msg; -} - -// .subspace.ShadowRemoveSubscriber remove_subscriber = 7; -inline bool ShadowEvent::has_remove_subscriber() const { - return event_case() == kRemoveSubscriber; -} -inline bool ShadowEvent::_internal_has_remove_subscriber() const { - return event_case() == kRemoveSubscriber; -} -inline void ShadowEvent::set_has_remove_subscriber() { - _impl_._oneof_case_[0] = kRemoveSubscriber; -} -inline void ShadowEvent::clear_remove_subscriber() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kRemoveSubscriber) { - if (GetArena() == nullptr) { - delete _impl_.event_.remove_subscriber_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.remove_subscriber_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE ShadowEvent::release_remove_subscriber() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.remove_subscriber) - if (event_case() == kRemoveSubscriber) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.remove_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowRemoveSubscriber& ShadowEvent::_internal_remove_subscriber() const { - return event_case() == kRemoveSubscriber ? static_cast(*reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_)) - : reinterpret_cast(::subspace::_ShadowRemoveSubscriber_default_instance_); -} -inline const ::subspace::ShadowRemoveSubscriber& ShadowEvent::remove_subscriber() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.remove_subscriber) - return _internal_remove_subscriber(); -} -inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_remove_subscriber() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.remove_subscriber) - if (event_case() == kRemoveSubscriber) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_); - _impl_.event_.remove_subscriber_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_remove_subscriber( - ::subspace::ShadowRemoveSubscriber* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_remove_subscriber(); - _impl_.event_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.remove_subscriber) -} -inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_remove_subscriber() { - if (event_case() != kRemoveSubscriber) { - clear_event(); - set_has_remove_subscriber(); - _impl_.event_.remove_subscriber_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRemoveSubscriber>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowRemoveSubscriber*>(_impl_.event_.remove_subscriber_); -} -inline ::subspace::ShadowRemoveSubscriber* PROTOBUF_NONNULL ShadowEvent::mutable_remove_subscriber() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowRemoveSubscriber* _msg = _internal_mutable_remove_subscriber(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.remove_subscriber) - return _msg; -} - -// .subspace.ShadowStateDump state_dump = 8; -inline bool ShadowEvent::has_state_dump() const { - return event_case() == kStateDump; -} -inline bool ShadowEvent::_internal_has_state_dump() const { - return event_case() == kStateDump; -} -inline void ShadowEvent::set_has_state_dump() { - _impl_._oneof_case_[0] = kStateDump; -} -inline void ShadowEvent::clear_state_dump() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kStateDump) { - if (GetArena() == nullptr) { - delete _impl_.event_.state_dump_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.state_dump_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowStateDump* PROTOBUF_NULLABLE ShadowEvent::release_state_dump() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.state_dump) - if (event_case() == kStateDump) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.state_dump_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowStateDump& ShadowEvent::_internal_state_dump() const { - return event_case() == kStateDump ? static_cast(*reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_)) - : reinterpret_cast(::subspace::_ShadowStateDump_default_instance_); -} -inline const ::subspace::ShadowStateDump& ShadowEvent::state_dump() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.state_dump) - return _internal_state_dump(); -} -inline ::subspace::ShadowStateDump* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_state_dump() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.state_dump) - if (event_case() == kStateDump) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_); - _impl_.event_.state_dump_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_state_dump( - ::subspace::ShadowStateDump* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_state_dump(); - _impl_.event_.state_dump_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.state_dump) -} -inline ::subspace::ShadowStateDump* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_state_dump() { - if (event_case() != kStateDump) { - clear_event(); - set_has_state_dump(); - _impl_.event_.state_dump_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowStateDump>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowStateDump*>(_impl_.event_.state_dump_); -} -inline ::subspace::ShadowStateDump* PROTOBUF_NONNULL ShadowEvent::mutable_state_dump() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowStateDump* _msg = _internal_mutable_state_dump(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.state_dump) - return _msg; -} - -// .subspace.ShadowStateDone state_done = 9; -inline bool ShadowEvent::has_state_done() const { - return event_case() == kStateDone; -} -inline bool ShadowEvent::_internal_has_state_done() const { - return event_case() == kStateDone; -} -inline void ShadowEvent::set_has_state_done() { - _impl_._oneof_case_[0] = kStateDone; -} -inline void ShadowEvent::clear_state_done() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kStateDone) { - if (GetArena() == nullptr) { - delete _impl_.event_.state_done_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.state_done_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowStateDone* PROTOBUF_NULLABLE ShadowEvent::release_state_done() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.state_done) - if (event_case() == kStateDone) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.state_done_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowStateDone& ShadowEvent::_internal_state_done() const { - return event_case() == kStateDone ? static_cast(*reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_)) - : reinterpret_cast(::subspace::_ShadowStateDone_default_instance_); -} -inline const ::subspace::ShadowStateDone& ShadowEvent::state_done() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.state_done) - return _internal_state_done(); -} -inline ::subspace::ShadowStateDone* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_state_done() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.state_done) - if (event_case() == kStateDone) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_); - _impl_.event_.state_done_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_state_done( - ::subspace::ShadowStateDone* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_state_done(); - _impl_.event_.state_done_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.state_done) -} -inline ::subspace::ShadowStateDone* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_state_done() { - if (event_case() != kStateDone) { - clear_event(); - set_has_state_done(); - _impl_.event_.state_done_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowStateDone>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowStateDone*>(_impl_.event_.state_done_); -} -inline ::subspace::ShadowStateDone* PROTOBUF_NONNULL ShadowEvent::mutable_state_done() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowStateDone* _msg = _internal_mutable_state_done(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.state_done) - return _msg; -} - -// .subspace.ShadowRegisterClientBuffer register_client_buffer = 10; -inline bool ShadowEvent::has_register_client_buffer() const { - return event_case() == kRegisterClientBuffer; -} -inline bool ShadowEvent::_internal_has_register_client_buffer() const { - return event_case() == kRegisterClientBuffer; -} -inline void ShadowEvent::set_has_register_client_buffer() { - _impl_._oneof_case_[0] = kRegisterClientBuffer; -} -inline void ShadowEvent::clear_register_client_buffer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kRegisterClientBuffer) { - if (GetArena() == nullptr) { - delete _impl_.event_.register_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.register_client_buffer_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::release_register_client_buffer() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.register_client_buffer) - if (event_case() == kRegisterClientBuffer) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.register_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowRegisterClientBuffer& ShadowEvent::_internal_register_client_buffer() const { - return event_case() == kRegisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_)) - : reinterpret_cast(::subspace::_ShadowRegisterClientBuffer_default_instance_); -} -inline const ::subspace::ShadowRegisterClientBuffer& ShadowEvent::register_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.register_client_buffer) - return _internal_register_client_buffer(); -} -inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_register_client_buffer() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.register_client_buffer) - if (event_case() == kRegisterClientBuffer) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_); - _impl_.event_.register_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_register_client_buffer( - ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_register_client_buffer(); - _impl_.event_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.register_client_buffer) -} -inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_register_client_buffer() { - if (event_case() != kRegisterClientBuffer) { - clear_event(); - set_has_register_client_buffer(); - _impl_.event_.register_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowRegisterClientBuffer>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowRegisterClientBuffer*>(_impl_.event_.register_client_buffer_); -} -inline ::subspace::ShadowRegisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::mutable_register_client_buffer() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowRegisterClientBuffer* _msg = _internal_mutable_register_client_buffer(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.register_client_buffer) - return _msg; -} - -// .subspace.ShadowUnregisterClientBuffer unregister_client_buffer = 11; -inline bool ShadowEvent::has_unregister_client_buffer() const { - return event_case() == kUnregisterClientBuffer; -} -inline bool ShadowEvent::_internal_has_unregister_client_buffer() const { - return event_case() == kUnregisterClientBuffer; -} -inline void ShadowEvent::set_has_unregister_client_buffer() { - _impl_._oneof_case_[0] = kUnregisterClientBuffer; -} -inline void ShadowEvent::clear_unregister_client_buffer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kUnregisterClientBuffer) { - if (GetArena() == nullptr) { - delete _impl_.event_.unregister_client_buffer_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.unregister_client_buffer_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::release_unregister_client_buffer() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.unregister_client_buffer) - if (event_case() == kUnregisterClientBuffer) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.unregister_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowUnregisterClientBuffer& ShadowEvent::_internal_unregister_client_buffer() const { - return event_case() == kUnregisterClientBuffer ? static_cast(*reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_)) - : reinterpret_cast(::subspace::_ShadowUnregisterClientBuffer_default_instance_); -} -inline const ::subspace::ShadowUnregisterClientBuffer& ShadowEvent::unregister_client_buffer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.unregister_client_buffer) - return _internal_unregister_client_buffer(); -} -inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_unregister_client_buffer() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.unregister_client_buffer) - if (event_case() == kUnregisterClientBuffer) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_); - _impl_.event_.unregister_client_buffer_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_unregister_client_buffer( - ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_unregister_client_buffer(); - _impl_.event_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.unregister_client_buffer) -} -inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_unregister_client_buffer() { - if (event_case() != kUnregisterClientBuffer) { - clear_event(); - set_has_unregister_client_buffer(); - _impl_.event_.unregister_client_buffer_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowUnregisterClientBuffer>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowUnregisterClientBuffer*>(_impl_.event_.unregister_client_buffer_); -} -inline ::subspace::ShadowUnregisterClientBuffer* PROTOBUF_NONNULL ShadowEvent::mutable_unregister_client_buffer() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowUnregisterClientBuffer* _msg = _internal_mutable_unregister_client_buffer(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.unregister_client_buffer) - return _msg; -} - -// .subspace.ShadowUpdateChannelOptions update_channel_options = 12; -inline bool ShadowEvent::has_update_channel_options() const { - return event_case() == kUpdateChannelOptions; -} -inline bool ShadowEvent::_internal_has_update_channel_options() const { - return event_case() == kUpdateChannelOptions; -} -inline void ShadowEvent::set_has_update_channel_options() { - _impl_._oneof_case_[0] = kUpdateChannelOptions; -} -inline void ShadowEvent::clear_update_channel_options() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (event_case() == kUpdateChannelOptions) { - if (GetArena() == nullptr) { - delete _impl_.event_.update_channel_options_; - } else if (::google::protobuf::internal::DebugHardenClearOneofMessageOnArena()) { - ::google::protobuf::internal::MaybePoisonAfterClear(_impl_.event_.update_channel_options_); - } - clear_has_event(); - } -} -inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE ShadowEvent::release_update_channel_options() { - // @@protoc_insertion_point(field_release:subspace.ShadowEvent.update_channel_options) - if (event_case() == kUpdateChannelOptions) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_); - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.event_.update_channel_options_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::subspace::ShadowUpdateChannelOptions& ShadowEvent::_internal_update_channel_options() const { - return event_case() == kUpdateChannelOptions ? static_cast(*reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_)) - : reinterpret_cast(::subspace::_ShadowUpdateChannelOptions_default_instance_); -} -inline const ::subspace::ShadowUpdateChannelOptions& ShadowEvent::update_channel_options() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowEvent.update_channel_options) - return _internal_update_channel_options(); -} -inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE ShadowEvent::unsafe_arena_release_update_channel_options() { - // @@protoc_insertion_point(field_unsafe_arena_release:subspace.ShadowEvent.update_channel_options) - if (event_case() == kUpdateChannelOptions) { - clear_has_event(); - auto* temp = reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_); - _impl_.event_.update_channel_options_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void ShadowEvent::unsafe_arena_set_allocated_update_channel_options( - ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NULLABLE value) { - // We rely on the oneof clear method to free the earlier contents - // of this oneof. We can directly use the pointer we're given to - // set the new value. - clear_event(); - if (value) { - set_has_update_channel_options(); - _impl_.event_.update_channel_options_ = reinterpret_cast<::google::protobuf::Message*>(value); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowEvent.update_channel_options) -} -inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL ShadowEvent::_internal_mutable_update_channel_options() { - if (event_case() != kUpdateChannelOptions) { - clear_event(); - set_has_update_channel_options(); - _impl_.event_.update_channel_options_ = reinterpret_cast<::google::protobuf::Message*>( - ::google::protobuf::Message::DefaultConstruct<::subspace::ShadowUpdateChannelOptions>(GetArena())); - } - return reinterpret_cast<::subspace::ShadowUpdateChannelOptions*>(_impl_.event_.update_channel_options_); -} -inline ::subspace::ShadowUpdateChannelOptions* PROTOBUF_NONNULL ShadowEvent::mutable_update_channel_options() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::subspace::ShadowUpdateChannelOptions* _msg = _internal_mutable_update_channel_options(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowEvent.update_channel_options) - return _msg; -} - -inline bool ShadowEvent::has_event() const { - return event_case() != EVENT_NOT_SET; -} -inline void ShadowEvent::clear_has_event() { - _impl_._oneof_case_[0] = EVENT_NOT_SET; -} -inline ShadowEvent::EventCase ShadowEvent::event_case() const { - return ShadowEvent::EventCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ShadowInit - -// uint64 session_id = 1; -inline void ShadowInit::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::uint64_t ShadowInit::session_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowInit.session_id) - return _internal_session_id(); -} -inline void ShadowInit::set_session_id(::uint64_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:subspace.ShadowInit.session_id) -} -inline ::uint64_t ShadowInit::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void ShadowInit::_internal_set_session_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowCreateChannel - -// string channel_name = 1; -inline void ShadowCreateChannel::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowCreateChannel::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowCreateChannel.channel_name) - return _s; -} -inline const ::std::string& ShadowCreateChannel::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowCreateChannel::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowCreateChannel::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowCreateChannel.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowCreateChannel::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowCreateChannel.channel_name) -} - -// int32 channel_id = 2; -inline void ShadowCreateChannel::clear_channel_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t ShadowCreateChannel::channel_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.channel_id) - return _internal_channel_id(); -} -inline void ShadowCreateChannel::set_channel_id(::int32_t value) { - _internal_set_channel_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.channel_id) -} -inline ::int32_t ShadowCreateChannel::_internal_channel_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_id_; -} -inline void ShadowCreateChannel::_internal_set_channel_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = value; -} - -// int32 slot_size = 3; -inline void ShadowCreateChannel::clear_slot_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::int32_t ShadowCreateChannel::slot_size() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.slot_size) - return _internal_slot_size(); -} -inline void ShadowCreateChannel::set_slot_size(::int32_t value) { - _internal_set_slot_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.slot_size) -} -inline ::int32_t ShadowCreateChannel::_internal_slot_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.slot_size_; -} -inline void ShadowCreateChannel::_internal_set_slot_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.slot_size_ = value; -} - -// int32 num_slots = 4; -inline void ShadowCreateChannel::clear_num_slots() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::int32_t ShadowCreateChannel::num_slots() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.num_slots) - return _internal_num_slots(); -} -inline void ShadowCreateChannel::set_num_slots(::int32_t value) { - _internal_set_num_slots(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.num_slots) -} -inline ::int32_t ShadowCreateChannel::_internal_num_slots() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_slots_; -} -inline void ShadowCreateChannel::_internal_set_num_slots(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_slots_ = value; -} - -// bytes type = 5; -inline void ShadowCreateChannel::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& ShadowCreateChannel::type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.type) - return _internal_type(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.type_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.type) -} -inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::mutable_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_type(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowCreateChannel.type) - return _s; -} -inline const ::std::string& ShadowCreateChannel::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.type_.Get(); -} -inline void ShadowCreateChannel::_internal_set_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::_internal_mutable_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowCreateChannel::release_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowCreateChannel.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.type_.Set("", GetArena()); - } - return released; -} -inline void ShadowCreateChannel::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { - _impl_.type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowCreateChannel.type) -} - -// bool is_local = 6; -inline void ShadowCreateChannel::clear_is_local() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_local_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline bool ShadowCreateChannel::is_local() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.is_local) - return _internal_is_local(); -} -inline void ShadowCreateChannel::set_is_local(bool value) { - _internal_set_is_local(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.is_local) -} -inline bool ShadowCreateChannel::_internal_is_local() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_local_; -} -inline void ShadowCreateChannel::_internal_set_is_local(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_local_ = value; -} - -// bool is_reliable = 7; -inline void ShadowCreateChannel::clear_is_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline bool ShadowCreateChannel::is_reliable() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.is_reliable) - return _internal_is_reliable(); -} -inline void ShadowCreateChannel::set_is_reliable(bool value) { - _internal_set_is_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.is_reliable) -} -inline bool ShadowCreateChannel::_internal_is_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_reliable_; -} -inline void ShadowCreateChannel::_internal_set_is_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = value; -} - -// bool is_fixed_size = 8; -inline void ShadowCreateChannel::clear_is_fixed_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_fixed_size_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline bool ShadowCreateChannel::is_fixed_size() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.is_fixed_size) - return _internal_is_fixed_size(); -} -inline void ShadowCreateChannel::set_is_fixed_size(bool value) { - _internal_set_is_fixed_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.is_fixed_size) -} -inline bool ShadowCreateChannel::_internal_is_fixed_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_fixed_size_; -} -inline void ShadowCreateChannel::_internal_set_is_fixed_size(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_fixed_size_ = value; -} - -// int32 checksum_size = 9; -inline void ShadowCreateChannel::clear_checksum_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline ::int32_t ShadowCreateChannel::checksum_size() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.checksum_size) - return _internal_checksum_size(); -} -inline void ShadowCreateChannel::set_checksum_size(::int32_t value) { - _internal_set_checksum_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.checksum_size) -} -inline ::int32_t ShadowCreateChannel::_internal_checksum_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.checksum_size_; -} -inline void ShadowCreateChannel::_internal_set_checksum_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.checksum_size_ = value; -} - -// int32 metadata_size = 10; -inline void ShadowCreateChannel::clear_metadata_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000800U); -} -inline ::int32_t ShadowCreateChannel::metadata_size() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.metadata_size) - return _internal_metadata_size(); -} -inline void ShadowCreateChannel::set_metadata_size(::int32_t value) { - _internal_set_metadata_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.metadata_size) -} -inline ::int32_t ShadowCreateChannel::_internal_metadata_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.metadata_size_; -} -inline void ShadowCreateChannel::_internal_set_metadata_size(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.metadata_size_ = value; -} - -// string mux = 11; -inline void ShadowCreateChannel::clear_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& ShadowCreateChannel::mux() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.mux) - return _internal_mux(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowCreateChannel::set_mux(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.mux_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.mux) -} -inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::mutable_mux() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_mux(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowCreateChannel.mux) - return _s; -} -inline const ::std::string& ShadowCreateChannel::_internal_mux() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.mux_.Get(); -} -inline void ShadowCreateChannel::_internal_set_mux(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mux_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowCreateChannel::_internal_mutable_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.mux_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowCreateChannel::release_mux() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowCreateChannel.mux) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.mux_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.mux_.Set("", GetArena()); - } - return released; -} -inline void ShadowCreateChannel::set_allocated_mux(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.mux_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.mux_.IsDefault()) { - _impl_.mux_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowCreateChannel.mux) -} - -// int32 vchan_id = 12; -inline void ShadowCreateChannel::clear_vchan_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00001000U); -} -inline ::int32_t ShadowCreateChannel::vchan_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.vchan_id) - return _internal_vchan_id(); -} -inline void ShadowCreateChannel::set_vchan_id(::int32_t value) { - _internal_set_vchan_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.vchan_id) -} -inline ::int32_t ShadowCreateChannel::_internal_vchan_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.vchan_id_; -} -inline void ShadowCreateChannel::_internal_set_vchan_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.vchan_id_ = value; -} - -// bool has_split_buffer_options = 13; -inline void ShadowCreateChannel::clear_has_split_buffer_options() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_split_buffer_options_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline bool ShadowCreateChannel::has_split_buffer_options() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.has_split_buffer_options) - return _internal_has_split_buffer_options(); -} -inline void ShadowCreateChannel::set_has_split_buffer_options(bool value) { - _internal_set_has_split_buffer_options(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.has_split_buffer_options) -} -inline bool ShadowCreateChannel::_internal_has_split_buffer_options() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.has_split_buffer_options_; -} -inline void ShadowCreateChannel::_internal_set_has_split_buffer_options(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_split_buffer_options_ = value; -} - -// bool use_split_buffers = 14; -inline void ShadowCreateChannel::clear_use_split_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00002000U); -} -inline bool ShadowCreateChannel::use_split_buffers() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.use_split_buffers) - return _internal_use_split_buffers(); -} -inline void ShadowCreateChannel::set_use_split_buffers(bool value) { - _internal_set_use_split_buffers(value); - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.use_split_buffers) -} -inline bool ShadowCreateChannel::_internal_use_split_buffers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.use_split_buffers_; -} -inline void ShadowCreateChannel::_internal_set_use_split_buffers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = value; -} - -// bool has_max_publishers = 15; -inline void ShadowCreateChannel::clear_has_max_publishers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_max_publishers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00004000U); -} -inline bool ShadowCreateChannel::has_max_publishers() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.has_max_publishers) - return _internal_has_max_publishers(); -} -inline void ShadowCreateChannel::set_has_max_publishers(bool value) { - _internal_set_has_max_publishers(value); - SetHasBit(_impl_._has_bits_[0], 0x00004000U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.has_max_publishers) -} -inline bool ShadowCreateChannel::_internal_has_max_publishers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.has_max_publishers_; -} -inline void ShadowCreateChannel::_internal_set_has_max_publishers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_max_publishers_ = value; -} - -// int32 max_publishers = 16; -inline void ShadowCreateChannel::clear_max_publishers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_publishers_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00010000U); -} -inline ::int32_t ShadowCreateChannel::max_publishers() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.max_publishers) - return _internal_max_publishers(); -} -inline void ShadowCreateChannel::set_max_publishers(::int32_t value) { - _internal_set_max_publishers(value); - SetHasBit(_impl_._has_bits_[0], 0x00010000U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.max_publishers) -} -inline ::int32_t ShadowCreateChannel::_internal_max_publishers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.max_publishers_; -} -inline void ShadowCreateChannel::_internal_set_max_publishers(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_publishers_ = value; -} - -// bool split_buffers_over_bridge = 17; -inline void ShadowCreateChannel::clear_split_buffers_over_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00008000U); -} -inline bool ShadowCreateChannel::split_buffers_over_bridge() const { - // @@protoc_insertion_point(field_get:subspace.ShadowCreateChannel.split_buffers_over_bridge) - return _internal_split_buffers_over_bridge(); -} -inline void ShadowCreateChannel::set_split_buffers_over_bridge(bool value) { - _internal_set_split_buffers_over_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00008000U); - // @@protoc_insertion_point(field_set:subspace.ShadowCreateChannel.split_buffers_over_bridge) -} -inline bool ShadowCreateChannel::_internal_split_buffers_over_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.split_buffers_over_bridge_; -} -inline void ShadowCreateChannel::_internal_set_split_buffers_over_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowRemoveChannel - -// string channel_name = 1; -inline void ShadowRemoveChannel::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowRemoveChannel::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowRemoveChannel.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowRemoveChannel::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowRemoveChannel.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowRemoveChannel::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowRemoveChannel.channel_name) - return _s; -} -inline const ::std::string& ShadowRemoveChannel::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowRemoveChannel::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowRemoveChannel::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowRemoveChannel::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowRemoveChannel.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowRemoveChannel::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowRemoveChannel.channel_name) -} - -// int32 channel_id = 2; -inline void ShadowRemoveChannel::clear_channel_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ShadowRemoveChannel::channel_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowRemoveChannel.channel_id) - return _internal_channel_id(); -} -inline void ShadowRemoveChannel::set_channel_id(::int32_t value) { - _internal_set_channel_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowRemoveChannel.channel_id) -} -inline ::int32_t ShadowRemoveChannel::_internal_channel_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_id_; -} -inline void ShadowRemoveChannel::_internal_set_channel_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_id_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowAddPublisher - -// string channel_name = 1; -inline void ShadowAddPublisher::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowAddPublisher::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowAddPublisher::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowAddPublisher::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowAddPublisher.channel_name) - return _s; -} -inline const ::std::string& ShadowAddPublisher::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowAddPublisher::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowAddPublisher::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowAddPublisher::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowAddPublisher.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowAddPublisher::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowAddPublisher.channel_name) -} - -// int32 publisher_id = 2; -inline void ShadowAddPublisher::clear_publisher_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ShadowAddPublisher::publisher_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.publisher_id) - return _internal_publisher_id(); -} -inline void ShadowAddPublisher::set_publisher_id(::int32_t value) { - _internal_set_publisher_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.publisher_id) -} -inline ::int32_t ShadowAddPublisher::_internal_publisher_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.publisher_id_; -} -inline void ShadowAddPublisher::_internal_set_publisher_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = value; -} - -// bool is_reliable = 3; -inline void ShadowAddPublisher::clear_is_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline bool ShadowAddPublisher::is_reliable() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_reliable) - return _internal_is_reliable(); -} -inline void ShadowAddPublisher::set_is_reliable(bool value) { - _internal_set_is_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_reliable) -} -inline bool ShadowAddPublisher::_internal_is_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_reliable_; -} -inline void ShadowAddPublisher::_internal_set_is_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = value; -} - -// bool is_local = 4; -inline void ShadowAddPublisher::clear_is_local() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_local_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline bool ShadowAddPublisher::is_local() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_local) - return _internal_is_local(); -} -inline void ShadowAddPublisher::set_is_local(bool value) { - _internal_set_is_local(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_local) -} -inline bool ShadowAddPublisher::_internal_is_local() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_local_; -} -inline void ShadowAddPublisher::_internal_set_is_local(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_local_ = value; -} - -// bool is_bridge = 5; -inline void ShadowAddPublisher::clear_is_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline bool ShadowAddPublisher::is_bridge() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_bridge) - return _internal_is_bridge(); -} -inline void ShadowAddPublisher::set_is_bridge(bool value) { - _internal_set_is_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_bridge) -} -inline bool ShadowAddPublisher::_internal_is_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_bridge_; -} -inline void ShadowAddPublisher::_internal_set_is_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = value; -} - -// bool is_fixed_size = 6; -inline void ShadowAddPublisher::clear_is_fixed_size() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_fixed_size_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline bool ShadowAddPublisher::is_fixed_size() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.is_fixed_size) - return _internal_is_fixed_size(); -} -inline void ShadowAddPublisher::set_is_fixed_size(bool value) { - _internal_set_is_fixed_size(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.is_fixed_size) -} -inline bool ShadowAddPublisher::_internal_is_fixed_size() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_fixed_size_; -} -inline void ShadowAddPublisher::_internal_set_is_fixed_size(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_fixed_size_ = value; -} - -// bool notify_retirement = 7; -inline void ShadowAddPublisher::clear_notify_retirement() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline bool ShadowAddPublisher::notify_retirement() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.notify_retirement) - return _internal_notify_retirement(); -} -inline void ShadowAddPublisher::set_notify_retirement(bool value) { - _internal_set_notify_retirement(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.notify_retirement) -} -inline bool ShadowAddPublisher::_internal_notify_retirement() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.notify_retirement_; -} -inline void ShadowAddPublisher::_internal_set_notify_retirement(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notify_retirement_ = value; -} - -// bool for_tunnel = 8; -inline void ShadowAddPublisher::clear_for_tunnel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline bool ShadowAddPublisher::for_tunnel() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddPublisher.for_tunnel) - return _internal_for_tunnel(); -} -inline void ShadowAddPublisher::set_for_tunnel(bool value) { - _internal_set_for_tunnel(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddPublisher.for_tunnel) -} -inline bool ShadowAddPublisher::_internal_for_tunnel() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.for_tunnel_; -} -inline void ShadowAddPublisher::_internal_set_for_tunnel(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowRemovePublisher - -// string channel_name = 1; -inline void ShadowRemovePublisher::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowRemovePublisher::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowRemovePublisher.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowRemovePublisher::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowRemovePublisher.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowRemovePublisher::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowRemovePublisher.channel_name) - return _s; -} -inline const ::std::string& ShadowRemovePublisher::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowRemovePublisher::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowRemovePublisher::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowRemovePublisher::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowRemovePublisher.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowRemovePublisher::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowRemovePublisher.channel_name) -} - -// int32 publisher_id = 2; -inline void ShadowRemovePublisher::clear_publisher_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ShadowRemovePublisher::publisher_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowRemovePublisher.publisher_id) - return _internal_publisher_id(); -} -inline void ShadowRemovePublisher::set_publisher_id(::int32_t value) { - _internal_set_publisher_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowRemovePublisher.publisher_id) -} -inline ::int32_t ShadowRemovePublisher::_internal_publisher_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.publisher_id_; -} -inline void ShadowRemovePublisher::_internal_set_publisher_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.publisher_id_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowAddSubscriber - -// string channel_name = 1; -inline void ShadowAddSubscriber::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowAddSubscriber::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowAddSubscriber::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowAddSubscriber::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowAddSubscriber.channel_name) - return _s; -} -inline const ::std::string& ShadowAddSubscriber::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowAddSubscriber::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowAddSubscriber::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowAddSubscriber::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowAddSubscriber.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowAddSubscriber::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowAddSubscriber.channel_name) -} - -// int32 subscriber_id = 2; -inline void ShadowAddSubscriber::clear_subscriber_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ShadowAddSubscriber::subscriber_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.subscriber_id) - return _internal_subscriber_id(); -} -inline void ShadowAddSubscriber::set_subscriber_id(::int32_t value) { - _internal_set_subscriber_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.subscriber_id) -} -inline ::int32_t ShadowAddSubscriber::_internal_subscriber_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.subscriber_id_; -} -inline void ShadowAddSubscriber::_internal_set_subscriber_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = value; -} - -// bool is_reliable = 3; -inline void ShadowAddSubscriber::clear_is_reliable() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline bool ShadowAddSubscriber::is_reliable() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.is_reliable) - return _internal_is_reliable(); -} -inline void ShadowAddSubscriber::set_is_reliable(bool value) { - _internal_set_is_reliable(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.is_reliable) -} -inline bool ShadowAddSubscriber::_internal_is_reliable() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_reliable_; -} -inline void ShadowAddSubscriber::_internal_set_is_reliable(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_reliable_ = value; -} - -// bool is_bridge = 4; -inline void ShadowAddSubscriber::clear_is_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline bool ShadowAddSubscriber::is_bridge() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.is_bridge) - return _internal_is_bridge(); -} -inline void ShadowAddSubscriber::set_is_bridge(bool value) { - _internal_set_is_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.is_bridge) -} -inline bool ShadowAddSubscriber::_internal_is_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_bridge_; -} -inline void ShadowAddSubscriber::_internal_set_is_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_bridge_ = value; -} - -// int32 max_active_messages = 5; -inline void ShadowAddSubscriber::clear_max_active_messages() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_active_messages_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::int32_t ShadowAddSubscriber::max_active_messages() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.max_active_messages) - return _internal_max_active_messages(); -} -inline void ShadowAddSubscriber::set_max_active_messages(::int32_t value) { - _internal_set_max_active_messages(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.max_active_messages) -} -inline ::int32_t ShadowAddSubscriber::_internal_max_active_messages() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.max_active_messages_; -} -inline void ShadowAddSubscriber::_internal_set_max_active_messages(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_active_messages_ = value; -} - -// bool for_tunnel = 6; -inline void ShadowAddSubscriber::clear_for_tunnel() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline bool ShadowAddSubscriber::for_tunnel() const { - // @@protoc_insertion_point(field_get:subspace.ShadowAddSubscriber.for_tunnel) - return _internal_for_tunnel(); -} -inline void ShadowAddSubscriber::set_for_tunnel(bool value) { - _internal_set_for_tunnel(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.ShadowAddSubscriber.for_tunnel) -} -inline bool ShadowAddSubscriber::_internal_for_tunnel() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.for_tunnel_; -} -inline void ShadowAddSubscriber::_internal_set_for_tunnel(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.for_tunnel_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowRemoveSubscriber - -// string channel_name = 1; -inline void ShadowRemoveSubscriber::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowRemoveSubscriber::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowRemoveSubscriber.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowRemoveSubscriber::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowRemoveSubscriber.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowRemoveSubscriber::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowRemoveSubscriber.channel_name) - return _s; -} -inline const ::std::string& ShadowRemoveSubscriber::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowRemoveSubscriber::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowRemoveSubscriber::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowRemoveSubscriber::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowRemoveSubscriber.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowRemoveSubscriber::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowRemoveSubscriber.channel_name) -} - -// int32 subscriber_id = 2; -inline void ShadowRemoveSubscriber::clear_subscriber_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ShadowRemoveSubscriber::subscriber_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowRemoveSubscriber.subscriber_id) - return _internal_subscriber_id(); -} -inline void ShadowRemoveSubscriber::set_subscriber_id(::int32_t value) { - _internal_set_subscriber_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowRemoveSubscriber.subscriber_id) -} -inline ::int32_t ShadowRemoveSubscriber::_internal_subscriber_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.subscriber_id_; -} -inline void ShadowRemoveSubscriber::_internal_set_subscriber_id(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.subscriber_id_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowStateDump - -// uint64 session_id = 1; -inline void ShadowStateDump::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::uint64_t ShadowStateDump::session_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowStateDump.session_id) - return _internal_session_id(); -} -inline void ShadowStateDump::set_session_id(::uint64_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:subspace.ShadowStateDump.session_id) -} -inline ::uint64_t ShadowStateDump::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void ShadowStateDump::_internal_set_session_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// int32 num_channels = 2; -inline void ShadowStateDump::clear_num_channels() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_channels_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ShadowStateDump::num_channels() const { - // @@protoc_insertion_point(field_get:subspace.ShadowStateDump.num_channels) - return _internal_num_channels(); -} -inline void ShadowStateDump::set_num_channels(::int32_t value) { - _internal_set_num_channels(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowStateDump.num_channels) -} -inline ::int32_t ShadowStateDump::_internal_num_channels() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.num_channels_; -} -inline void ShadowStateDump::_internal_set_num_channels(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.num_channels_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowStateDone - -// ------------------------------------------------------------------- - -// ShadowRegisterClientBuffer - -// .subspace.ClientBufferHandleMetadataProto metadata = 1; -inline bool ShadowRegisterClientBuffer::has_metadata() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; -} -inline void ShadowRegisterClientBuffer::clear_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::subspace::ClientBufferHandleMetadataProto& ShadowRegisterClientBuffer::_internal_metadata() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::subspace::ClientBufferHandleMetadataProto* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::subspace::_ClientBufferHandleMetadataProto_default_instance_); -} -inline const ::subspace::ClientBufferHandleMetadataProto& ShadowRegisterClientBuffer::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowRegisterClientBuffer.metadata) - return _internal_metadata(); -} -inline void ShadowRegisterClientBuffer::unsafe_arena_set_allocated_metadata( - ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); - } - _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:subspace.ShadowRegisterClientBuffer.metadata) -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE ShadowRegisterClientBuffer::release_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::subspace::ClientBufferHandleMetadataProto* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE ShadowRegisterClientBuffer::unsafe_arena_release_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowRegisterClientBuffer.metadata) - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::subspace::ClientBufferHandleMetadataProto* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; - return temp; -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL ShadowRegisterClientBuffer::_internal_mutable_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.metadata_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::subspace::ClientBufferHandleMetadataProto>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(p); - } - return _impl_.metadata_; -} -inline ::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NONNULL ShadowRegisterClientBuffer::mutable_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::subspace::ClientBufferHandleMetadataProto* _msg = _internal_mutable_metadata(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowRegisterClientBuffer.metadata) - return _msg; -} -inline void ShadowRegisterClientBuffer::set_allocated_metadata(::subspace::ClientBufferHandleMetadataProto* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - - _impl_.metadata_ = reinterpret_cast<::subspace::ClientBufferHandleMetadataProto*>(value); - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowRegisterClientBuffer.metadata) -} - -// bool has_fd = 2; -inline void ShadowRegisterClientBuffer::clear_has_fd() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_fd_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline bool ShadowRegisterClientBuffer::has_fd() const { - // @@protoc_insertion_point(field_get:subspace.ShadowRegisterClientBuffer.has_fd) - return _internal_has_fd(); -} -inline void ShadowRegisterClientBuffer::set_has_fd(bool value) { - _internal_set_has_fd(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowRegisterClientBuffer.has_fd) -} -inline bool ShadowRegisterClientBuffer::_internal_has_fd() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.has_fd_; -} -inline void ShadowRegisterClientBuffer::_internal_set_has_fd(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_fd_ = value; -} - -// int32 fd_index = 3; -inline void ShadowRegisterClientBuffer::clear_fd_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.fd_index_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t ShadowRegisterClientBuffer::fd_index() const { - // @@protoc_insertion_point(field_get:subspace.ShadowRegisterClientBuffer.fd_index) - return _internal_fd_index(); -} -inline void ShadowRegisterClientBuffer::set_fd_index(::int32_t value) { - _internal_set_fd_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.ShadowRegisterClientBuffer.fd_index) -} -inline ::int32_t ShadowRegisterClientBuffer::_internal_fd_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.fd_index_; -} -inline void ShadowRegisterClientBuffer::_internal_set_fd_index(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.fd_index_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowUnregisterClientBuffer - -// string channel_name = 1; -inline void ShadowUnregisterClientBuffer::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowUnregisterClientBuffer::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowUnregisterClientBuffer.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowUnregisterClientBuffer::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowUnregisterClientBuffer.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowUnregisterClientBuffer.channel_name) - return _s; -} -inline const ::std::string& ShadowUnregisterClientBuffer::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowUnregisterClientBuffer::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowUnregisterClientBuffer::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowUnregisterClientBuffer::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowUnregisterClientBuffer.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowUnregisterClientBuffer::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowUnregisterClientBuffer.channel_name) -} - -// uint64 session_id = 2; -inline void ShadowUnregisterClientBuffer::clear_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::uint64_t ShadowUnregisterClientBuffer::session_id() const { - // @@protoc_insertion_point(field_get:subspace.ShadowUnregisterClientBuffer.session_id) - return _internal_session_id(); -} -inline void ShadowUnregisterClientBuffer::set_session_id(::uint64_t value) { - _internal_set_session_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowUnregisterClientBuffer.session_id) -} -inline ::uint64_t ShadowUnregisterClientBuffer::_internal_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.session_id_; -} -inline void ShadowUnregisterClientBuffer::_internal_set_session_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.session_id_ = value; -} - -// uint32 buffer_index = 3; -inline void ShadowUnregisterClientBuffer::clear_buffer_index() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::uint32_t ShadowUnregisterClientBuffer::buffer_index() const { - // @@protoc_insertion_point(field_get:subspace.ShadowUnregisterClientBuffer.buffer_index) - return _internal_buffer_index(); -} -inline void ShadowUnregisterClientBuffer::set_buffer_index(::uint32_t value) { - _internal_set_buffer_index(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.ShadowUnregisterClientBuffer.buffer_index) -} -inline ::uint32_t ShadowUnregisterClientBuffer::_internal_buffer_index() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.buffer_index_; -} -inline void ShadowUnregisterClientBuffer::_internal_set_buffer_index(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.buffer_index_ = value; -} - -// ------------------------------------------------------------------- - -// ShadowUpdateChannelOptions - -// string channel_name = 1; -inline void ShadowUpdateChannelOptions::clear_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& ShadowUpdateChannelOptions::channel_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.channel_name) - return _internal_channel_name(); -} -template -PROTOBUF_ALWAYS_INLINE void ShadowUpdateChannelOptions::set_channel_name(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.channel_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.channel_name) -} -inline ::std::string* PROTOBUF_NONNULL ShadowUpdateChannelOptions::mutable_channel_name() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_channel_name(); - // @@protoc_insertion_point(field_mutable:subspace.ShadowUpdateChannelOptions.channel_name) - return _s; -} -inline const ::std::string& ShadowUpdateChannelOptions::_internal_channel_name() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.channel_name_.Get(); -} -inline void ShadowUpdateChannelOptions::_internal_set_channel_name(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.channel_name_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL ShadowUpdateChannelOptions::_internal_mutable_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.channel_name_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE ShadowUpdateChannelOptions::release_channel_name() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:subspace.ShadowUpdateChannelOptions.channel_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.channel_name_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.channel_name_.Set("", GetArena()); - } - return released; -} -inline void ShadowUpdateChannelOptions::set_allocated_channel_name(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.channel_name_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.channel_name_.IsDefault()) { - _impl_.channel_name_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:subspace.ShadowUpdateChannelOptions.channel_name) -} - -// bool has_split_buffer_options = 2; -inline void ShadowUpdateChannelOptions::clear_has_split_buffer_options() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_split_buffer_options_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline bool ShadowUpdateChannelOptions::has_split_buffer_options() const { - // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.has_split_buffer_options) - return _internal_has_split_buffer_options(); -} -inline void ShadowUpdateChannelOptions::set_has_split_buffer_options(bool value) { - _internal_set_has_split_buffer_options(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.has_split_buffer_options) -} -inline bool ShadowUpdateChannelOptions::_internal_has_split_buffer_options() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.has_split_buffer_options_; -} -inline void ShadowUpdateChannelOptions::_internal_set_has_split_buffer_options(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_split_buffer_options_ = value; -} - -// bool use_split_buffers = 3; -inline void ShadowUpdateChannelOptions::clear_use_split_buffers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline bool ShadowUpdateChannelOptions::use_split_buffers() const { - // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.use_split_buffers) - return _internal_use_split_buffers(); -} -inline void ShadowUpdateChannelOptions::set_use_split_buffers(bool value) { - _internal_set_use_split_buffers(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.use_split_buffers) -} -inline bool ShadowUpdateChannelOptions::_internal_use_split_buffers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.use_split_buffers_; -} -inline void ShadowUpdateChannelOptions::_internal_set_use_split_buffers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.use_split_buffers_ = value; -} - -// bool has_max_publishers = 4; -inline void ShadowUpdateChannelOptions::clear_has_max_publishers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_max_publishers_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline bool ShadowUpdateChannelOptions::has_max_publishers() const { - // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.has_max_publishers) - return _internal_has_max_publishers(); -} -inline void ShadowUpdateChannelOptions::set_has_max_publishers(bool value) { - _internal_set_has_max_publishers(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.has_max_publishers) -} -inline bool ShadowUpdateChannelOptions::_internal_has_max_publishers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.has_max_publishers_; -} -inline void ShadowUpdateChannelOptions::_internal_set_has_max_publishers(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.has_max_publishers_ = value; -} - -// int32 max_publishers = 5; -inline void ShadowUpdateChannelOptions::clear_max_publishers() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_publishers_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::int32_t ShadowUpdateChannelOptions::max_publishers() const { - // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.max_publishers) - return _internal_max_publishers(); -} -inline void ShadowUpdateChannelOptions::set_max_publishers(::int32_t value) { - _internal_set_max_publishers(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.max_publishers) -} -inline ::int32_t ShadowUpdateChannelOptions::_internal_max_publishers() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.max_publishers_; -} -inline void ShadowUpdateChannelOptions::_internal_set_max_publishers(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.max_publishers_ = value; -} - -// bool split_buffers_over_bridge = 6; -inline void ShadowUpdateChannelOptions::clear_split_buffers_over_bridge() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline bool ShadowUpdateChannelOptions::split_buffers_over_bridge() const { - // @@protoc_insertion_point(field_get:subspace.ShadowUpdateChannelOptions.split_buffers_over_bridge) - return _internal_split_buffers_over_bridge(); -} -inline void ShadowUpdateChannelOptions::set_split_buffers_over_bridge(bool value) { - _internal_set_split_buffers_over_bridge(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:subspace.ShadowUpdateChannelOptions.split_buffers_over_bridge) -} -inline bool ShadowUpdateChannelOptions::_internal_split_buffers_over_bridge() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.split_buffers_over_bridge_; -} -inline void ShadowUpdateChannelOptions::_internal_set_split_buffers_over_bridge(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.split_buffers_over_bridge_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace subspace - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // subspace_2eproto_2epb_2eh diff --git a/proto/subspace.proto b/proto/subspace.proto index e587d5e..777e5cd 100644 --- a/proto/subspace.proto +++ b/proto/subspace.proto @@ -136,6 +136,14 @@ message GetChannelStatsResponse { repeated ChannelStatsProto channels = 2; } +enum ClientBufferAllocator { + CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED = 0; + CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD = 1; + CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM = 2; + CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK = 3; + CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST = 4; +} + message ClientBufferHandleMetadataProto { string channel_name = 1; uint64 session_id = 2; @@ -147,11 +155,9 @@ message ClientBufferHandleMetadataProto { uint64 handle = 8; string shadow_file = 9; string object_name = 10; - string allocator = 11; - string pool_id = 12; - bool cache_enabled = 13; - uint32 alignment = 14; - google.protobuf.Any allocator_metadata = 15; + ClientBufferAllocator allocator = 11; + reserved 12 to 15; + reserved "pool_id", "cache_enabled", "alignment", "allocator_metadata"; } message RegisterClientBufferRequest { diff --git a/rpc/client/client_test.cc b/rpc/client/client_test.cc index d483610..402aae3 100644 --- a/rpc/client/client_test.cc +++ b/rpc/client/client_test.cc @@ -58,7 +58,11 @@ class ClientTest : public ::testing::Test { return; } printf("Starting Subspace server\n"); +#if defined(__ANDROID__) + char socket_name_template[] = "/data/local/tmp/subspaceXXXXXX"; // NOLINT +#else char socket_name_template[] = "/tmp/subspaceXXXXXX"; // NOLINT +#endif ::close(mkstemp(&socket_name_template[0])); socket_ = &socket_name_template[0]; @@ -118,7 +122,11 @@ class ClientTest : public ::testing::Test { }; co::CoroutineScheduler ClientTest::scheduler_; +#if defined(__ANDROID__) +std::string ClientTest::socket_ = "/data/local/tmp/subspace"; +#else std::string ClientTest::socket_ = "/tmp/subspace"; +#endif int ClientTest::server_pipe_[2]; std::unique_ptr ClientTest::server_; std::thread ClientTest::server_thread_; diff --git a/rpc/server/server_test.cc b/rpc/server/server_test.cc index 4d18245..9497809 100644 --- a/rpc/server/server_test.cc +++ b/rpc/server/server_test.cc @@ -55,7 +55,11 @@ class ServerTest : public ::testing::Test { return; } printf("Starting Subspace server\n"); +#if defined(__ANDROID__) + char socket_name_template[] = "/data/local/tmp/subspaceXXXXXX"; // NOLINT +#else char socket_name_template[] = "/tmp/subspaceXXXXXX"; // NOLINT +#endif ::close(mkstemp(&socket_name_template[0])); socket_ = &socket_name_template[0]; @@ -115,7 +119,11 @@ class ServerTest : public ::testing::Test { }; co::CoroutineScheduler ServerTest::scheduler_; +#if defined(__ANDROID__) +std::string ServerTest::socket_ = "/data/local/tmp/subspace"; +#else std::string ServerTest::socket_ = "/tmp/subspace"; +#endif int ServerTest::server_pipe_[2]; std::unique_ptr ServerTest::server_; std::thread ServerTest::server_thread_; diff --git a/rpc/test/rpc_test.cc b/rpc/test/rpc_test.cc index 2a3b380..6793188 100644 --- a/rpc/test/rpc_test.cc +++ b/rpc/test/rpc_test.cc @@ -59,7 +59,11 @@ class RpcTest : public ::testing::Test { return; } printf("Starting Subspace server\n"); +#if defined(__ANDROID__) + char socket_name_template[] = "/data/local/tmp/subspaceXXXXXX"; // NOLINT +#else char socket_name_template[] = "/tmp/subspaceXXXXXX"; // NOLINT +#endif ::close(mkstemp(&socket_name_template[0])); socket_ = &socket_name_template[0]; @@ -119,7 +123,11 @@ class RpcTest : public ::testing::Test { }; co::CoroutineScheduler RpcTest::scheduler_; +#if defined(__ANDROID__) +std::string RpcTest::socket_ = "/data/local/tmp/subspace"; +#else std::string RpcTest::socket_ = "/tmp/subspace"; +#endif int RpcTest::server_pipe_[2]; std::unique_ptr RpcTest::server_; std::thread RpcTest::server_thread_; diff --git a/server/client_handler.cc b/server/client_handler.cc index 331a4cf..cbe2f75 100644 --- a/server/client_handler.cc +++ b/server/client_handler.cc @@ -9,6 +9,39 @@ namespace subspace { namespace { + +ClientBufferAllocatorKind FromProtoAllocator(ClientBufferAllocator allocator) { + switch (allocator) { + case CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD: + return ClientBufferAllocatorKind::kAndroidMemfd; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM: + return ClientBufferAllocatorKind::kSplitShm; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK: + return ClientBufferAllocatorKind::kSplitCallback; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST: + return ClientBufferAllocatorKind::kSplitBufferFreeTest; + case CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED: + default: + return ClientBufferAllocatorKind::kUnspecified; + } +} + +ClientBufferAllocator ToProtoAllocator(ClientBufferAllocatorKind allocator) { + switch (allocator) { + case ClientBufferAllocatorKind::kAndroidMemfd: + return CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD; + case ClientBufferAllocatorKind::kSplitShm: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM; + case ClientBufferAllocatorKind::kSplitCallback: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK; + case ClientBufferAllocatorKind::kSplitBufferFreeTest: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST; + case ClientBufferAllocatorKind::kUnspecified: + default: + return CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED; + } +} + ClientBufferHandleMetadata FromProto(const ClientBufferHandleMetadataProto &proto) { ClientBufferHandleMetadata metadata; @@ -22,11 +55,7 @@ FromProto(const ClientBufferHandleMetadataProto &proto) { metadata.handle = static_cast(proto.handle()); metadata.shadow_file = proto.shadow_file(); metadata.object_name = proto.object_name(); - metadata.allocator = proto.allocator(); - metadata.pool_id = proto.pool_id(); - metadata.cache_enabled = proto.cache_enabled(); - metadata.alignment = proto.alignment(); - metadata.allocator_metadata = proto.allocator_metadata(); + metadata.allocator = FromProtoAllocator(proto.allocator()); return metadata; } @@ -42,11 +71,7 @@ void ToProto(const ClientBufferHandleMetadata &metadata, proto->set_handle(static_cast(metadata.handle)); proto->set_shadow_file(metadata.shadow_file); proto->set_object_name(metadata.object_name); - proto->set_allocator(metadata.allocator); - proto->set_pool_id(metadata.pool_id); - proto->set_cache_enabled(metadata.cache_enabled); - proto->set_alignment(metadata.alignment); - *proto->mutable_allocator_metadata() = metadata.allocator_metadata; + proto->set_allocator(ToProtoAllocator(metadata.allocator)); } SplitBufferOptions diff --git a/server/shadow_replicator.cc b/server/shadow_replicator.cc index 47350f7..2d75f18 100644 --- a/server/shadow_replicator.cc +++ b/server/shadow_replicator.cc @@ -10,6 +10,38 @@ namespace subspace { namespace { +ClientBufferAllocatorKind FromProtoAllocator(ClientBufferAllocator allocator) { + switch (allocator) { + case CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD: + return ClientBufferAllocatorKind::kAndroidMemfd; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM: + return ClientBufferAllocatorKind::kSplitShm; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK: + return ClientBufferAllocatorKind::kSplitCallback; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST: + return ClientBufferAllocatorKind::kSplitBufferFreeTest; + case CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED: + default: + return ClientBufferAllocatorKind::kUnspecified; + } +} + +ClientBufferAllocator ToProtoAllocator(ClientBufferAllocatorKind allocator) { + switch (allocator) { + case ClientBufferAllocatorKind::kAndroidMemfd: + return CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD; + case ClientBufferAllocatorKind::kSplitShm: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM; + case ClientBufferAllocatorKind::kSplitCallback: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK; + case ClientBufferAllocatorKind::kSplitBufferFreeTest: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST; + case ClientBufferAllocatorKind::kUnspecified: + default: + return CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED; + } +} + ClientBufferHandleMetadata FromProto(const ClientBufferHandleMetadataProto &proto) { ClientBufferHandleMetadata metadata; @@ -23,11 +55,7 @@ FromProto(const ClientBufferHandleMetadataProto &proto) { metadata.handle = static_cast(proto.handle()); metadata.shadow_file = proto.shadow_file(); metadata.object_name = proto.object_name(); - metadata.allocator = proto.allocator(); - metadata.pool_id = proto.pool_id(); - metadata.cache_enabled = proto.cache_enabled(); - metadata.alignment = proto.alignment(); - metadata.allocator_metadata = proto.allocator_metadata(); + metadata.allocator = FromProtoAllocator(proto.allocator()); return metadata; } @@ -43,11 +71,7 @@ void ToProto(const ClientBufferHandleMetadata &metadata, proto->set_handle(static_cast(metadata.handle)); proto->set_shadow_file(metadata.shadow_file); proto->set_object_name(metadata.object_name); - proto->set_allocator(metadata.allocator); - proto->set_pool_id(metadata.pool_id); - proto->set_cache_enabled(metadata.cache_enabled); - proto->set_alignment(metadata.alignment); - *proto->mutable_allocator_metadata() = metadata.allocator_metadata; + proto->set_allocator(ToProtoAllocator(metadata.allocator)); } } // namespace diff --git a/shadow/shadow.cc b/shadow/shadow.cc index 6c10056..96fec12 100644 --- a/shadow/shadow.cc +++ b/shadow/shadow.cc @@ -11,6 +11,38 @@ namespace subspace { namespace { +ClientBufferAllocatorKind FromProtoAllocator(ClientBufferAllocator allocator) { + switch (allocator) { + case CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD: + return ClientBufferAllocatorKind::kAndroidMemfd; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM: + return ClientBufferAllocatorKind::kSplitShm; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK: + return ClientBufferAllocatorKind::kSplitCallback; + case CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST: + return ClientBufferAllocatorKind::kSplitBufferFreeTest; + case CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED: + default: + return ClientBufferAllocatorKind::kUnspecified; + } +} + +ClientBufferAllocator ToProtoAllocator(ClientBufferAllocatorKind allocator) { + switch (allocator) { + case ClientBufferAllocatorKind::kAndroidMemfd: + return CLIENT_BUFFER_ALLOCATOR_ANDROID_MEMFD; + case ClientBufferAllocatorKind::kSplitShm: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_SHM; + case ClientBufferAllocatorKind::kSplitCallback: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_CALLBACK; + case ClientBufferAllocatorKind::kSplitBufferFreeTest: + return CLIENT_BUFFER_ALLOCATOR_SPLIT_BUFFER_FREE_TEST; + case ClientBufferAllocatorKind::kUnspecified: + default: + return CLIENT_BUFFER_ALLOCATOR_UNSPECIFIED; + } +} + ClientBufferHandleMetadata FromProto(const ClientBufferHandleMetadataProto &proto) { ClientBufferHandleMetadata metadata; @@ -24,11 +56,7 @@ FromProto(const ClientBufferHandleMetadataProto &proto) { metadata.handle = static_cast(proto.handle()); metadata.shadow_file = proto.shadow_file(); metadata.object_name = proto.object_name(); - metadata.allocator = proto.allocator(); - metadata.pool_id = proto.pool_id(); - metadata.cache_enabled = proto.cache_enabled(); - metadata.alignment = proto.alignment(); - metadata.allocator_metadata = proto.allocator_metadata(); + metadata.allocator = FromProtoAllocator(proto.allocator()); return metadata; } @@ -44,11 +72,7 @@ void ToProto(const ClientBufferHandleMetadata &metadata, proto->set_handle(static_cast(metadata.handle)); proto->set_shadow_file(metadata.shadow_file); proto->set_object_name(metadata.object_name); - proto->set_allocator(metadata.allocator); - proto->set_pool_id(metadata.pool_id); - proto->set_cache_enabled(metadata.cache_enabled); - proto->set_alignment(metadata.alignment); - *proto->mutable_allocator_metadata() = metadata.allocator_metadata; + proto->set_allocator(ToProtoAllocator(metadata.allocator)); } } // namespace diff --git a/shadow/shadow_test.cc b/shadow/shadow_test.cc index 0471f9b..8d1ccb1 100644 --- a/shadow/shadow_test.cc +++ b/shadow/shadow_test.cc @@ -25,14 +25,22 @@ namespace { using ::absl_testing::IsOk; +static const char *TestTmpDir() { +#if defined(__ANDROID__) + return "/data/local/tmp"; +#else + return "/tmp"; +#endif +} + // Returns a unique-per-process path for a unix socket. mkstemp picks a // unique filename; we close and immediately unlink it (bind requires the // path to not exist) — Shadow::Run / Server then bind a real unix socket // at that path. Using a unique path per process means concurrent or // repeated test invocations don't collide on a fixed /tmp/ path. static std::string MakeUniqueSocketPath(const char *tag) { - std::string templ = - std::string("/tmp/subspace_shadow_test_") + tag + "_XXXXXX"; + std::string templ = std::string(TestTmpDir()) + "/subspace_shadow_test_" + + tag + "_XXXXXX"; std::vector buf(templ.begin(), templ.end()); buf.push_back('\0'); int fd = mkstemp(buf.data()); @@ -361,19 +369,21 @@ TEST_F(ShadowTest, ShadowReceivesRemoveChannel) { TEST_F(ShadowTest, ServerWithoutShadowSocketWorks) { co::CoroutineScheduler sched; - subspace::Server server(sched, "/tmp/subspace_noshadow", "", 0, 0, true, -1, - 1, false, false); + subspace::Server server( + sched, std::string(TestTmpDir()) + "/subspace_noshadow", "", 0, 0, true, + -1, 1, false, false); EXPECT_EQ(server.GetPrimaryShadowReplicator(), nullptr); EXPECT_EQ(server.GetSecondaryShadowReplicator(), nullptr); server.SetShadowSocket(""); EXPECT_EQ(server.GetPrimaryShadowReplicator(), nullptr); - server.SetShadowSocket("/tmp/some_shadow"); + server.SetShadowSocket(std::string(TestTmpDir()) + "/some_shadow"); EXPECT_NE(server.GetPrimaryShadowReplicator(), nullptr); EXPECT_EQ(server.GetSecondaryShadowReplicator(), nullptr); - server.SetShadowSockets("/tmp/primary", "/tmp/secondary"); + server.SetShadowSockets(std::string(TestTmpDir()) + "/primary", + std::string(TestTmpDir()) + "/secondary"); EXPECT_NE(server.GetPrimaryShadowReplicator(), nullptr); EXPECT_NE(server.GetSecondaryShadowReplicator(), nullptr); } From 227ecc2b6b85ddbaf9774dfdd814188f301c4747 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 12:10:00 -0700 Subject: [PATCH 03/19] Update Rust client buffer registration Keep the Rust client aligned with the fd-backed buffer registration protocol so the full test suite builds again. --- rust_client/src/client.rs | 11 +++++++++++ rust_client/src/split_buffer.rs | 14 +++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/rust_client/src/client.rs b/rust_client/src/client.rs index fbb7873..48c40da 100644 --- a/rust_client/src/client.rs +++ b/rust_client/src/client.rs @@ -1277,10 +1277,21 @@ fn register_pending_client_buffers(client: &mut ClientInner, channel: &mut Chann request: Some(proto::request::Request::RegisterClientBuffer( proto::RegisterClientBufferRequest { metadata: Some(metadata), + has_fd: false, + fd_index: 0, }, )), }; client.socket.send_request(&req)?; + let (resp, _fds) = client.socket.receive_response()?; + match resp.response { + Some(proto::response::Response::RegisterClientBuffer(r)) => { + if !r.error.is_empty() { + return Err(SubspaceError::ServerError(r.error)); + } + } + _ => return Err(SubspaceError::Internal("Unexpected response".into())), + } } Ok(()) } diff --git a/rust_client/src/split_buffer.rs b/rust_client/src/split_buffer.rs index b0ff08d..170fc2a 100644 --- a/rust_client/src/split_buffer.rs +++ b/rust_client/src/split_buffer.rs @@ -74,6 +74,14 @@ impl std::fmt::Debug for SplitBufferCallbacks { impl SplitBufferMetadata { pub fn to_proto(&self, allocator: &str) -> proto::ClientBufferHandleMetadataProto { + let allocator = match allocator { + "split_shm" => proto::ClientBufferAllocator::SplitShm as i32, + "split_callback" => proto::ClientBufferAllocator::SplitCallback as i32, + "split_buffer_free_test" => { + proto::ClientBufferAllocator::SplitBufferFreeTest as i32 + } + _ => proto::ClientBufferAllocator::Unspecified as i32, + }; proto::ClientBufferHandleMetadataProto { channel_name: self.channel_name.clone(), session_id: self.session_id, @@ -85,11 +93,7 @@ impl SplitBufferMetadata { handle: self.handle, shadow_file: self.shadow_file.clone(), object_name: self.object_name.clone(), - allocator: allocator.to_string(), - pool_id: String::new(), - cache_enabled: false, - alignment: 0, - allocator_metadata: None, + allocator, } } } From 3856cf274fc197255495bc49551780691b559389 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 17:12:39 -0700 Subject: [PATCH 04/19] Add Android Java client integration tests --- .bazelrc | 1 + .github/scripts/android-test.sh | 19 ++ .github/scripts/cmake-android-test.sh | 17 ++ .github/workflows/ci.yml | 10 +- Android.bp | 23 +++ CMakeLists.txt | 4 +- MODULE.bazel | 1 + android/Android.bp | 17 +- android/CMakeLists.txt | 42 ++++ android/java/BUILD.bazel | 14 ++ .../subspace/test/SubspaceJavaClientTest.java | 195 ++++++++++++++++++ android/java/subspace_java_client_test.sh | 9 + client/Android.bp | 17 +- common/Android.bp | 15 +- docs/android.md | 42 ++-- .../{Android.bp => Android.bp.example} | 11 +- .../{Android.bp => Android.bp.example} | 14 +- proto/Android.bp | 17 -- proto/CMakeLists.txt | 27 ++- server/Android.bp | 34 +-- 20 files changed, 419 insertions(+), 110 deletions(-) create mode 100644 android/CMakeLists.txt create mode 100644 android/java/BUILD.bazel create mode 100644 android/java/com/subspace/test/SubspaceJavaClientTest.java create mode 100644 android/java/subspace_java_client_test.sh rename external/coroutines/{Android.bp => Android.bp.example} (78%) rename external/cpp_toolbelt/{Android.bp => Android.bp.example} (78%) delete mode 100644 proto/Android.bp diff --git a/.bazelrc b/.bazelrc index 9ae2f33..c206284 100644 --- a/.bazelrc +++ b/.bazelrc @@ -42,6 +42,7 @@ build:macos_x86_64 --extra_execution_platforms=//platform/host:darwin_x86_64 # For all builds, use C++17 build --cxxopt="-std=c++17" +build --java_runtime_version=remotejdk_17 # Statically link C++ deps into Rust binaries (avoids RPATH issues) build --@rules_rust//rust/settings:experimental_use_cc_common_link=True diff --git a/.github/scripts/android-test.sh b/.github/scripts/android-test.sh index 96c8a23..dc6c87c 100755 --- a/.github/scripts/android-test.sh +++ b/.github/scripts/android-test.sh @@ -11,11 +11,14 @@ adb shell "while [[ -z \$(getprop sys.boot_completed) ]]; do sleep 1; done" adb shell "mkdir -p /data/local/tmp" # Collect shared libraries (dereference symlinks from bazel output) +rm -rf /tmp/android_libs mkdir -p /tmp/android_libs find bazel-bin/ -name "*.so" -path "*_solib*" -exec cp -L {} /tmp/android_libs/ \; 2>/dev/null || true find bazel-bin/plugins/ -name "*.so" -exec cp -L {} /tmp/android_libs/ \; 2>/dev/null || true +cp -L bazel-bin/android/jni/libsubspace_jni.so /tmp/android_libs/ 2>/dev/null || true if ls /tmp/android_libs/*.so 1>/dev/null 2>&1; then + adb shell "rm -rf /data/local/tmp/android_libs" adb push /tmp/android_libs /data/local/tmp/android_libs fi @@ -36,6 +39,19 @@ adb push bazel-bin/asio_rpc/test/rpc_test /data/local/tmp/asio_rpc_test adb push bazel-bin/asio_rpc/server/server_test /data/local/tmp/asio_rpc_server_test adb push bazel-bin/asio_rpc/client/client_test /data/local/tmp/asio_rpc_client_test +SDK_ROOT="${ANDROID_HOME:-${ANDROID_SDK_ROOT:-/usr/local/lib/android/sdk}}" +BUILD_TOOLS_VERSION=$(ls "$SDK_ROOT/build-tools" | sort -V | tail -1) +D8="$SDK_ROOT/build-tools/$BUILD_TOOLS_VERSION/d8" +PLATFORM_VERSION=$(ls "$SDK_ROOT/platforms" | sort -V | tail -1) +ANDROID_JAR="$SDK_ROOT/platforms/$PLATFORM_VERSION/android.jar" +rm -rf /tmp/subspace_java_test_dex +mkdir -p /tmp/subspace_java_test_dex +"$D8" --lib "$ANDROID_JAR" --output /tmp/subspace_java_test_dex \ + bazel-bin/android/java/libsubspace-java.jar \ + bazel-bin/android/java/libsubspace-java-test.jar +(cd /tmp/subspace_java_test_dex && zip -q -r /tmp/subspace-java-test-dex.jar classes.dex) +adb push /tmp/subspace-java-test-dex.jar /data/local/tmp/subspace-java-test.jar + # Push plugin .so files to relative path expected by tests adb shell "mkdir -p /data/local/tmp/plugins" find bazel-bin/plugins/ -name "*.so" -exec adb push {} /data/local/tmp/plugins/ \; 2>/dev/null || true @@ -67,4 +83,7 @@ adb shell "cd /data/local/tmp && $LIB ./asio_rpc_test" adb shell "cd /data/local/tmp && $LIB ./asio_rpc_server_test" adb shell "cd /data/local/tmp && $LIB ./asio_rpc_client_test" +echo "=== subspace-java integration test ===" +adb shell "cd /data/local/tmp && $LIB dalvikvm -cp /data/local/tmp/subspace-java-test.jar com.subspace.test.SubspaceJavaClientTest" + echo "=== All Android tests passed ===" diff --git a/.github/scripts/cmake-android-test.sh b/.github/scripts/cmake-android-test.sh index 5fe7187..a13ab57 100755 --- a/.github/scripts/cmake-android-test.sh +++ b/.github/scripts/cmake-android-test.sh @@ -27,6 +27,20 @@ adb push "$BUILD_DIR/common/split_buffer_test" /data/local/tmp/split_buffer_test adb push "$BUILD_DIR/common/common_test" /data/local/tmp/common_test adb push "$BUILD_DIR/c_client/c_client_test" /data/local/tmp/c_client_test adb push "$BUILD_DIR/shadow/shadow_test" /data/local/tmp/shadow_test +adb push "$BUILD_DIR/android/libsubspace_jni.so" /data/local/tmp/libsubspace_jni.so + +SDK_ROOT="${ANDROID_HOME:-${ANDROID_SDK_ROOT:-/usr/local/lib/android/sdk}}" +BUILD_TOOLS_VERSION=$(ls "$SDK_ROOT/build-tools" | sort -V | tail -1) +D8="$SDK_ROOT/build-tools/$BUILD_TOOLS_VERSION/d8" +PLATFORM_VERSION=$(ls "$SDK_ROOT/platforms" | sort -V | tail -1) +ANDROID_JAR="$SDK_ROOT/platforms/$PLATFORM_VERSION/android.jar" +rm -rf /tmp/subspace_cmake_java_test_dex +mkdir -p /tmp/subspace_cmake_java_test_dex +"$D8" --lib "$ANDROID_JAR" --output /tmp/subspace_cmake_java_test_dex \ + "$BUILD_DIR/android/subspace-java.jar" \ + "$BUILD_DIR/android/subspace-java-test.jar" +(cd /tmp/subspace_cmake_java_test_dex && zip -q -r /tmp/subspace-cmake-java-test-dex.jar classes.dex) +adb push /tmp/subspace-cmake-java-test-dex.jar /data/local/tmp/subspace-java-test.jar # Push plugin .so files adb shell "mkdir -p /data/local/tmp/plugins" @@ -51,4 +65,7 @@ adb shell "cd /data/local/tmp && $LIB ./c_client_test" echo "=== shadow_test ===" adb shell "cd /data/local/tmp && $LIB ./shadow_test" +echo "=== subspace-java integration test ===" +adb shell "cd /data/local/tmp && $LIB dalvikvm -cp /data/local/tmp/subspace-java-test.jar com.subspace.test.SubspaceJavaClientTest" + echo "=== All CMake Android tests passed ===" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61600bb..c5f4b3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -279,6 +279,11 @@ jobs: - name: Set up Android NDK run: echo "ANDROID_NDK_HOME=$ANDROID_NDK_LATEST_HOME" >> $GITHUB_ENV + - name: Build host protoc for cross-compilation + run: | + cmake -S . -B build/host-protoc -DCMAKE_BUILD_TYPE=Release + cmake --build build/host-protoc --target protoc --parallel $(nproc) + - name: Configure CMake for Android x86_64 run: | cmake -S . -B build/android \ @@ -286,7 +291,8 @@ jobs: -DANDROID_ABI=x86_64 \ -DANDROID_PLATFORM=android-28 \ -DANDROID_STL=c++_shared \ - -DCMAKE_BUILD_TYPE=Release + -DCMAKE_BUILD_TYPE=Release \ + -DPROTOC_EXECUTABLE="$PWD/build/host-protoc/_deps/protobuf-build/protoc" - name: Build run: cmake --build build/android --parallel $(nproc) @@ -339,6 +345,8 @@ jobs: //common:split_buffer_test \ //plugins:nop_plugin.so \ //plugins:split_buffer_free_test_plugin.so \ + //android/jni:libsubspace_jni.so \ + //android/java:subspace-java-test \ //coro_rpc/test:rpc_test \ //coro_rpc/server:server_test \ //coro_rpc/client:client_test \ diff --git a/Android.bp b/Android.bp index 7f08d1d..1fcbc9f 100644 --- a/Android.bp +++ b/Android.bp @@ -2,6 +2,8 @@ // All Rights Reserved // See LICENSE file for licensing information. +soong_namespace {} + // Common defaults for all subspace native modules. cc_defaults { name: "subspace_defaults", @@ -9,6 +11,7 @@ cc_defaults { "-std=c++17", "-Wall", "-Wextra", + "-Wno-sign-compare", "-Wno-missing-field-initializers", "-Wno-unused-parameter", ], @@ -17,7 +20,27 @@ cc_defaults { cflags: ["-DSUBSPACE_ANDROID"], }, }, + cppflags: ["-fexceptions"], local_include_dirs: ["."], + include_dirs: ["external/subspace"], + rtti: true, stl: "c++_shared", min_sdk_version: "28", + compile_multilib: "64", +} + +// Generate C++ protobuf sources from subspace.proto. +cc_library_static { + name: "libsubspace_proto", + defaults: ["subspace_defaults"], + srcs: ["proto/subspace.proto"], + proto: { + type: "full", + canonical_path_from_root: false, + include_dirs: ["external/protobuf/src"], + export_proto_headers: true, + }, + shared_libs: ["libprotobuf-cpp-full"], + export_shared_lib_headers: ["libprotobuf-cpp-full"], + rtti: false, } diff --git a/CMakeLists.txt b/CMakeLists.txt index 289667b..8e27dd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ set(protobuf_BUILD_TESTS OFF CACHE INTERNAL "No protobuf tests") set(ABSL_BUILD_TEST_HELPERS ON CACHE INTERNAL "Enable Abseil TESTONLY+PUBLIC helpers (e.g. status_matchers)") set(ABSL_USE_EXTERNAL_GOOGLETEST ON CACHE INTERNAL "Use our GoogleTest instead of Abseil downloading its own") set(ABSL_FIND_GOOGLETEST OFF CACHE INTERNAL "Don't find_package(GTest); we provide it via FetchContent") +set(SUBSPACE_PROTOBUF_VERSION 29.5) # When cross-compiling, don't build protoc (we use a host-native one). if(CMAKE_CROSSCOMPILING) @@ -106,7 +107,7 @@ FetchContent_MakeAvailable(cpp_toolbelt) FetchContent_Declare( protobuf GIT_REPOSITORY https://github.com/protocolbuffers/protobuf.git - GIT_TAG v29.5 + GIT_TAG v${SUBSPACE_PROTOBUF_VERSION} CMAKE_ARGS -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_EXAMPLES=OFF @@ -151,6 +152,7 @@ add_subdirectory(server) add_subdirectory(plugins) add_subdirectory(shadow) add_subdirectory(c_client) +add_subdirectory(android) add_subdirectory(rust_client) if(TARGET client_test AND TARGET nop_plugin) diff --git a/MODULE.bazel b/MODULE.bazel index 93b3777..11d11d1 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -10,6 +10,7 @@ bazel_dep(name = "googletest", version = "1.17.0") bazel_dep(name = "protobuf", version = "33.2") bazel_dep(name = "rules_cc", version = "0.2.17") +bazel_dep(name = "rules_java", version = "9.1.0") bazel_dep(name = "rules_pkg", version = "1.0.1") bazel_dep(name = "rules_android_ndk", version = "0.1.5") bazel_dep(name = "zlib", version = "1.3.1.bcr.5") diff --git a/android/Android.bp b/android/Android.bp index 0a2d076..03c8623 100644 --- a/android/Android.bp +++ b/android/Android.bp @@ -7,7 +7,7 @@ cc_library_shared { name: "libsubspace_jni", defaults: ["subspace_defaults"], srcs: ["jni/subspace_jni.cc"], - local_include_dirs: [".."], + include_dirs: ["external/subspace"], shared_libs: [ "libsubspace_client", "liblog", @@ -17,10 +17,10 @@ cc_library_shared { "libsubspace_proto", "libcoroutines", "libcpp_toolbelt", + "libabsl", ], header_libs: [ "jni_headers", - "libabseil-headers", ], } @@ -30,4 +30,17 @@ java_library { srcs: ["java/com/subspace/*.java"], required: ["libsubspace_jni"], sdk_version: "current", + min_sdk_version: "28", +} + +// Device-side integration test for the Java/JNI client. +java_binary { + name: "subspace_java_client_test", + srcs: ["java/com/subspace/test/*.java"], + wrapper: "java/subspace_java_client_test.sh", + static_libs: ["subspace-java"], + jni_libs: ["libsubspace_jni"], + required: ["subspace_server"], + sdk_version: "current", + min_sdk_version: "28", } diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt new file mode 100644 index 0000000..936750e --- /dev/null +++ b/android/CMakeLists.txt @@ -0,0 +1,42 @@ +# Java wrapper for Android clients. The classes use JNI but do not depend on +# Android SDK APIs, so they can be compiled with the host Java toolchain. + +find_package(Java COMPONENTS Development QUIET) + +if(Java_FOUND) + include(UseJava) + + file(GLOB SUBSPACE_JAVA_SOURCES CONFIGURE_DEPENDS + "${CMAKE_CURRENT_SOURCE_DIR}/java/com/subspace/*.java" + ) + + add_jar(subspace_java + SOURCES ${SUBSPACE_JAVA_SOURCES} + OUTPUT_NAME subspace-java + ) + + file(GLOB SUBSPACE_JAVA_TEST_SOURCES CONFIGURE_DEPENDS + "${CMAKE_CURRENT_SOURCE_DIR}/java/com/subspace/test/*.java" + ) + + add_jar(subspace_java_test + SOURCES ${SUBSPACE_JAVA_TEST_SOURCES} + INCLUDE_JARS subspace_java + ENTRY_POINT com.subspace.test.SubspaceJavaClientTest + OUTPUT_NAME subspace-java-test + ) +else() + message(STATUS "Java development tools not found; skipping subspace_java") +endif() + +if(ANDROID) + add_library(subspace_jni SHARED + jni/subspace_jni.cc + ) + + target_link_libraries(subspace_jni PRIVATE + subspace_client + subspace_common + log + ) +endif() diff --git a/android/java/BUILD.bazel b/android/java/BUILD.bazel new file mode 100644 index 0000000..c1302ae --- /dev/null +++ b/android/java/BUILD.bazel @@ -0,0 +1,14 @@ +package(default_visibility = ["//visibility:public"]) + +load("@rules_java//java:defs.bzl", "java_library") + +java_library( + name = "subspace-java", + srcs = glob(["com/subspace/*.java"]), +) + +java_library( + name = "subspace-java-test", + srcs = glob(["com/subspace/test/*.java"]), + deps = [":subspace-java"], +) diff --git a/android/java/com/subspace/test/SubspaceJavaClientTest.java b/android/java/com/subspace/test/SubspaceJavaClientTest.java new file mode 100644 index 0000000..ca5170f --- /dev/null +++ b/android/java/com/subspace/test/SubspaceJavaClientTest.java @@ -0,0 +1,195 @@ +// Copyright 2023-2026 David Allison +// All Rights Reserved +// See LICENSE file for licensing information. + +package com.subspace.test; + +import com.subspace.SubspaceClient; +import com.subspace.SubspaceException; +import com.subspace.SubspaceMessage; +import com.subspace.SubspacePublisher; +import com.subspace.SubspaceSubscriber; + +import java.io.BufferedReader; +import java.io.File; +import java.io.IOException; +import java.io.InputStreamReader; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.Map; +import java.util.concurrent.TimeUnit; + +public final class SubspaceJavaClientTest { + private static final String WORK_DIR = getEnv("SUBSPACE_TEST_WORK_DIR", "/data/local/tmp"); + private static final String SERVER = getEnv("SUBSPACE_SERVER", WORK_DIR + "/subspace_server"); + private static final String SOCKET = getEnv("SUBSPACE_SOCKET", WORK_DIR + "/subspace"); + private static final String NATIVE_LIB_DIR = + getEnv("SUBSPACE_NATIVE_LIB_DIR", WORK_DIR + "/android_libs"); + private static final String LIB_PATH = + getEnv("SUBSPACE_LD_LIBRARY_PATH", NATIVE_LIB_DIR + ":" + WORK_DIR); + private static final long SERVER_TIMEOUT_MS = 10_000; + private static final long MESSAGE_TIMEOUT_MS = 5_000; + + private SubspaceJavaClientTest() {} + + private static String getEnv(String name, String defaultValue) { + String value = System.getenv(name); + return value == null || value.isEmpty() ? defaultValue : value; + } + + public static void main(String[] args) throws Exception { + Process server = null; + try { + preloadNativeLibraries(); + deleteSocket(); + server = startServer(); + waitForServer(); + + testPublishSubscribe(); + testCancelPublish(); + + System.out.println("SubspaceJavaClientTest passed"); + } finally { + stopServer(server); + deleteSocket(); + } + } + + private static void preloadNativeLibraries() { + loadIfPresent("libc++.so"); + loadIfPresent("libprotobuf-cpp-full.so"); + loadIfPresent("libsubspace_client.so"); + loadIfPresent("libsubspace_jni.so"); + } + + private static void loadIfPresent(String libraryName) { + File library = new File(NATIVE_LIB_DIR, libraryName); + if (library.exists()) { + System.load(library.getAbsolutePath()); + } + } + + private static Process startServer() throws IOException { + ProcessBuilder builder = new ProcessBuilder(SERVER); + builder.directory(new File(WORK_DIR)); + builder.redirectErrorStream(true); + Map env = builder.environment(); + env.put("LD_LIBRARY_PATH", LIB_PATH); + + Process process = builder.start(); + Thread outputThread = new Thread(() -> copyServerOutput(process), "subspace-server-output"); + outputThread.setDaemon(true); + outputThread.start(); + return process; + } + + private static void copyServerOutput(Process process) { + try (BufferedReader reader = + new BufferedReader(new InputStreamReader(process.getInputStream()))) { + String line; + while ((line = reader.readLine()) != null) { + System.out.println("[subspace_server] " + line); + } + } catch (IOException ignored) { + } + } + + private static void waitForServer() throws Exception { + long deadline = System.currentTimeMillis() + SERVER_TIMEOUT_MS; + SubspaceException lastError = null; + while (System.currentTimeMillis() < deadline) { + try (SubspaceClient ignored = new SubspaceClient(SOCKET, "java-wait")) { + return; + } catch (SubspaceException e) { + lastError = e; + Thread.sleep(100); + } + } + throw new AssertionError("Timed out waiting for subspace_server", lastError); + } + + private static void testPublishSubscribe() throws Exception { + byte[] payload = "hello from java".getBytes(StandardCharsets.UTF_8); + try (SubspaceClient client = new SubspaceClient(SOCKET, "java-test"); + SubspacePublisher publisher = + client.createPublisher("/java/test/pubsub", 128, 4); + SubspaceSubscriber subscriber = + client.createSubscriber("/java/test/pubsub")) { + + ByteBuffer buffer = publisher.getMessageBuffer(payload.length); + assertTrue(buffer != null, "publisher returned null message buffer"); + buffer.put(payload); + long ordinal = publisher.publishMessage(payload.length); + assertTrue(ordinal >= 0, "publish returned negative ordinal"); + + SubspaceMessage message = readMessageEventually(subscriber); + assertEquals(payload.length, message.getLength(), "message length"); + + byte[] actual = new byte[message.getLength()]; + message.getData().get(actual); + assertTrue(Arrays.equals(payload, actual), + "payload mismatch: expected '" + new String(payload, StandardCharsets.UTF_8) + + "' got '" + new String(actual, StandardCharsets.UTF_8) + "'"); + } + } + + private static void testCancelPublish() { + try (SubspaceClient client = new SubspaceClient(SOCKET, "java-cancel"); + SubspacePublisher publisher = + client.createPublisher("/java/test/cancel", 64, 2)) { + ByteBuffer buffer = publisher.getMessageBuffer(16); + assertTrue(buffer != null, "publisher returned null buffer for cancel test"); + buffer.put("cancelled".getBytes(StandardCharsets.UTF_8)); + publisher.cancelPublish(); + } + } + + private static SubspaceMessage readMessageEventually(SubspaceSubscriber subscriber) + throws InterruptedException { + long deadline = System.currentTimeMillis() + MESSAGE_TIMEOUT_MS; + while (System.currentTimeMillis() < deadline) { + SubspaceMessage message = subscriber.readMessage(); + if (message != null) { + return message; + } + Thread.sleep(10); + } + throw new AssertionError("Timed out waiting for published message"); + } + + private static void stopServer(Process server) { + if (server == null) { + return; + } + server.destroy(); + try { + if (!server.waitFor(2, TimeUnit.SECONDS)) { + server.destroyForcibly(); + server.waitFor(2, TimeUnit.SECONDS); + } + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + server.destroyForcibly(); + } + } + + private static void deleteSocket() { + File socket = new File(SOCKET); + if (socket.exists() && !socket.delete()) { + throw new AssertionError("Failed to delete stale socket " + SOCKET); + } + } + + private static void assertTrue(boolean condition, String message) { + if (!condition) { + throw new AssertionError(message); + } + } + + private static void assertEquals(int expected, int actual, String field) { + if (expected != actual) { + throw new AssertionError(field + ": expected " + expected + " got " + actual); + } + } +} diff --git a/android/java/subspace_java_client_test.sh b/android/java/subspace_java_client_test.sh new file mode 100644 index 0000000..14e9729 --- /dev/null +++ b/android/java/subspace_java_client_test.sh @@ -0,0 +1,9 @@ +#!/system/bin/sh + +base=/system +export CLASSPATH=$base/framework/subspace_java_client_test.jar +export SUBSPACE_TEST_WORK_DIR=${SUBSPACE_TEST_WORK_DIR:-/data/local/tmp} +export SUBSPACE_SERVER=${SUBSPACE_SERVER:-$base/bin/subspace_server} +export SUBSPACE_SOCKET=${SUBSPACE_SOCKET:-/data/local/tmp/subspace} + +exec app_process $base/bin com.subspace.test.SubspaceJavaClientTest "$@" diff --git a/client/Android.bp b/client/Android.bp index 7ec7158..01daef2 100644 --- a/client/Android.bp +++ b/client/Android.bp @@ -15,27 +15,16 @@ cc_library_shared { "arm_crc32.S", ], export_include_dirs: ["."], - local_include_dirs: [".."], + include_dirs: ["external/subspace"], static_libs: [ "libsubspace_common", "libsubspace_proto", "libcoroutines", "libcpp_toolbelt", + "libabsl", ], shared_libs: [ - "libprotobuf-cpp-lite", + "libprotobuf-cpp-full", "liblog", ], - header_libs: [ - "libabseil-headers", - ], - whole_static_libs: [ - "libabsl_status", - "libabsl_statusor", - "libabsl_strings", - "libabsl_str_format_internal", - "libabsl_flat_hash_map", - "libabsl_flat_hash_set", - "libabsl_span", - ], } diff --git a/common/Android.bp b/common/Android.bp index fab36e5..7f17941 100644 --- a/common/Android.bp +++ b/common/Android.bp @@ -12,24 +12,15 @@ cc_library_static { "syscall_shim.cc", ], export_include_dirs: ["."], - local_include_dirs: [".."], + include_dirs: ["external/subspace"], static_libs: [ "libsubspace_proto", "libcoroutines", "libcpp_toolbelt", + "libabsl", ], shared_libs: [ - "libprotobuf-cpp-lite", + "libprotobuf-cpp-full", "liblog", ], - header_libs: [ - "libabseil-headers", - ], - whole_static_libs: [ - "libabsl_status", - "libabsl_statusor", - "libabsl_strings", - "libabsl_str_format_internal", - "libabsl_flat_hash_map", - ], } diff --git a/docs/android.md b/docs/android.md index 00fe072..d0af8a2 100644 --- a/docs/android.md +++ b/docs/android.md @@ -173,9 +173,11 @@ cmake -S . -B build/android \ cmake --build build/android --parallel ``` -CMake cross-compiles generate protobuf sources in the build tree. Ensure a -host-native `protoc` is available on `PATH`, or pass it explicitly with -`-DPROTOC_EXECUTABLE=/path/to/protoc`. +CMake cross-compiles generate protobuf sources in the build tree. Ensure the +host-native `protoc` matches the protobuf version fetched by CMake, or pass a +matching compiler explicitly with `-DPROTOC_EXECUTABLE=/path/to/protoc`. The CI +build does this by building the native `protoc` target first and passing that +binary into the Android configure step. ## AOSP / Soong (Blueprint) Build @@ -206,36 +208,46 @@ tree: 1. **coroutines** (`external/coroutines/`) — https://github.com/dallison/coroutines 2. **cpp_toolbelt** (`external/cpp_toolbelt/`) — https://github.com/dallison/cpp_toolbelt -Example `Android.bp` files for both are provided in `external/coroutines/Android.bp` -and `external/cpp_toolbelt/Android.bp` within this repository. Copy these into -the respective source trees in your AOSP checkout. +Example Blueprint files for both are provided in +`external/coroutines/Android.bp.example` and +`external/cpp_toolbelt/Android.bp.example` within this repository. Copy these to +`Android.bp` in the respective source trees in your AOSP checkout. ### AOSP Dependencies The following modules must be available in the AOSP tree (they are part of standard AOSP): -- `libprotobuf-cpp-lite` — Protocol Buffers runtime +- `libprotobuf-cpp-full` — Protocol Buffers runtime. `subspace.proto` uses + `google.protobuf.Any`, which is not available from the lite runtime. - `liblog` — Android logging - `libdl` — Dynamic linker -- Abseil modules (`libabsl_status`, `libabsl_statusor`, `libabsl_strings`, - `libabsl_str_format_internal`, `libabsl_flat_hash_map`, - `libabsl_flat_hash_set`, `libabsl_flags`, `libabsl_flags_parse`, - `libabsl_span`) -- `libabseil-headers` — Abseil header library +- `libabsl` — Abseil runtime and headers - `jni_headers` — JNI headers (for the JNI module) ### Building +Add Subspace to a product makefile: + +```make +PRODUCT_SOONG_NAMESPACES += external/subspace +PRODUCT_PACKAGES += subspace_server libsubspace_client libsubspace_jni subspace-java +``` + +Then build from your AOSP root: + ```bash -# From your AOSP root: -m subspace_server libsubspace_client libsubspace_jni subspace-java +m external.subspace-subspace_server-soong \ + external.subspace-libsubspace_client-soong \ + external.subspace-libsubspace_jni-soong \ + external.subspace-subspace-java-soong ``` ### Integration Notes - The `subspace_defaults` module in the root `Android.bp` sets C++17 mode, - warning flags, and the `-DSUBSPACE_ANDROID` preprocessor define. + warning flags, exceptions/RTTI, and the `-DSUBSPACE_ANDROID` preprocessor + define. - All modules use `stl: "c++_shared"` and `min_sdk_version: "28"`. - The server binary can be included in the system partition via `PRODUCT_PACKAGES += subspace_server` in your device makefile. diff --git a/external/coroutines/Android.bp b/external/coroutines/Android.bp.example similarity index 78% rename from external/coroutines/Android.bp rename to external/coroutines/Android.bp.example index 07bfe3c..c4863f5 100644 --- a/external/coroutines/Android.bp +++ b/external/coroutines/Android.bp.example @@ -15,13 +15,12 @@ cc_library_static { "-Wall", "-Wno-unused-parameter", ], - header_libs: [ - "libabseil-headers", - ], - whole_static_libs: [ - "libabsl_flat_hash_map", - "libabsl_flat_hash_set", + cppflags: ["-fexceptions"], + rtti: true, + static_libs: [ + "libabsl", ], stl: "c++_shared", min_sdk_version: "28", + compile_multilib: "64", } diff --git a/external/cpp_toolbelt/Android.bp b/external/cpp_toolbelt/Android.bp.example similarity index 78% rename from external/cpp_toolbelt/Android.bp rename to external/cpp_toolbelt/Android.bp.example index b80d83d..8208dcb 100644 --- a/external/cpp_toolbelt/Android.bp +++ b/external/cpp_toolbelt/Android.bp.example @@ -23,19 +23,13 @@ cc_library_static { "-Wall", "-Wno-unused-parameter", ], + cppflags: ["-fexceptions"], + rtti: true, static_libs: [ "libcoroutines", - ], - header_libs: [ - "libabseil-headers", - ], - whole_static_libs: [ - "libabsl_status", - "libabsl_statusor", - "libabsl_strings", - "libabsl_str_format_internal", - "libabsl_span", + "libabsl", ], stl: "c++_shared", min_sdk_version: "28", + compile_multilib: "64", } diff --git a/proto/Android.bp b/proto/Android.bp deleted file mode 100644 index 655b8f7..0000000 --- a/proto/Android.bp +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2023-2026 David Allison -// All Rights Reserved -// See LICENSE file for licensing information. - -// Generate C++ protobuf sources from subspace.proto. -cc_library_static { - name: "libsubspace_proto", - defaults: ["subspace_defaults"], - srcs: ["subspace.proto"], - proto: { - type: "lite", - canonical_path_from_root: false, - export_proto_headers: true, - }, - shared_libs: ["libprotobuf-cpp-lite"], - export_shared_lib_headers: ["libprotobuf-cpp-lite"], -} diff --git a/proto/CMakeLists.txt b/proto/CMakeLists.txt index e50cc7c..46036cc 100644 --- a/proto/CMakeLists.txt +++ b/proto/CMakeLists.txt @@ -4,8 +4,9 @@ cmake_minimum_required(VERSION 3.15) -# Protobuf is already fetched by the parent CMakeLists.txt via FetchContent -# The targets like protobuf::libprotobuf and protobuf::protoc are available directly +# Protobuf is already fetched by the parent CMakeLists.txt via FetchContent. +# Native builds use protobuf::protoc directly. Cross-compiles use a host-native +# protoc that must match the fetched protobuf version. # Include FetchContent to get protobuf source directory for well-known types include(FetchContent) @@ -30,7 +31,27 @@ set(PROTO_HDR "${CMAKE_CURRENT_BINARY_DIR}/subspace.pb.h") if(CMAKE_CROSSCOMPILING) find_program(PROTOC_EXECUTABLE protoc REQUIRED) - message(STATUS "Cross-compiling: using host protoc at ${PROTOC_EXECUTABLE}") + execute_process( + COMMAND ${PROTOC_EXECUTABLE} --version + OUTPUT_VARIABLE PROTOC_VERSION_OUTPUT + OUTPUT_STRIP_TRAILING_WHITESPACE + RESULT_VARIABLE PROTOC_VERSION_RESULT + ) + if(NOT PROTOC_VERSION_RESULT EQUAL 0) + message(FATAL_ERROR "Failed to run host protoc at ${PROTOC_EXECUTABLE}") + endif() + string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" PROTOC_VERSION "${PROTOC_VERSION_OUTPUT}") + if(NOT PROTOC_VERSION) + message(FATAL_ERROR "Could not parse host protoc version from: ${PROTOC_VERSION_OUTPUT}") + endif() + if(NOT PROTOC_VERSION VERSION_EQUAL SUBSPACE_PROTOBUF_VERSION) + message(FATAL_ERROR + "Host protoc version ${PROTOC_VERSION} does not match fetched protobuf " + "version ${SUBSPACE_PROTOBUF_VERSION}. Pass a matching compiler with " + "-DPROTOC_EXECUTABLE=/path/to/protoc." + ) + endif() + message(STATUS "Cross-compiling: using host protoc ${PROTOC_VERSION} at ${PROTOC_EXECUTABLE}") add_custom_command( OUTPUT ${PROTO_SRC} ${PROTO_HDR} COMMAND ${PROTOC_EXECUTABLE} diff --git a/server/Android.bp b/server/Android.bp index e3a4c69..410318f 100644 --- a/server/Android.bp +++ b/server/Android.bp @@ -12,31 +12,19 @@ cc_library_static { "shadow_replicator.cc", ], export_include_dirs: ["."], - local_include_dirs: [".."], + include_dirs: ["external/subspace"], static_libs: [ "libsubspace_common", "libsubspace_proto", "libcoroutines", "libcpp_toolbelt", + "libabsl", ], shared_libs: [ "libsubspace_client", - "libprotobuf-cpp-lite", + "libprotobuf-cpp-full", "liblog", ], - header_libs: [ - "libabseil-headers", - ], - whole_static_libs: [ - "libabsl_status", - "libabsl_statusor", - "libabsl_strings", - "libabsl_str_format_internal", - "libabsl_flat_hash_map", - "libabsl_flat_hash_set", - "libabsl_flags", - "libabsl_flags_parse", - ], } cc_binary { @@ -49,24 +37,12 @@ cc_binary { "libsubspace_proto", "libcoroutines", "libcpp_toolbelt", + "libabsl", ], shared_libs: [ "libsubspace_client", - "libprotobuf-cpp-lite", + "libprotobuf-cpp-full", "liblog", "libdl", ], - header_libs: [ - "libabseil-headers", - ], - whole_static_libs: [ - "libabsl_status", - "libabsl_statusor", - "libabsl_strings", - "libabsl_str_format_internal", - "libabsl_flat_hash_map", - "libabsl_flat_hash_set", - "libabsl_flags", - "libabsl_flags_parse", - ], } From 08e0dc83fbacf5c4417765ef549ae7cc88a7506b Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 17:26:41 -0700 Subject: [PATCH 05/19] Allow longer client test runs --- client/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/client/BUILD.bazel b/client/BUILD.bazel index 233e065..8ee0f6d 100644 --- a/client/BUILD.bazel +++ b/client/BUILD.bazel @@ -52,6 +52,7 @@ cc_library( cc_test( name = "client_test", size = "small", + timeout = "moderate", srcs = ["client_test.cc"], data = [ "//server:subspace_server", From 008ad5b8f57c7425634e7d69c91fa93ff1730bfb Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 17:37:57 -0700 Subject: [PATCH 06/19] Build Java client jar for Android CI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5f4b3b..043ce98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -346,6 +346,7 @@ jobs: //plugins:nop_plugin.so \ //plugins:split_buffer_free_test_plugin.so \ //android/jni:libsubspace_jni.so \ + //android/java:subspace-java \ //android/java:subspace-java-test \ //coro_rpc/test:rpc_test \ //coro_rpc/server:server_test \ From 0482412e57e4f7b975ba65b1057f62fba1037795 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 18:14:43 -0700 Subject: [PATCH 07/19] Update Android file copyrights --- android/CMakeLists.txt | 4 ++++ android/java/BUILD.bazel | 4 ++++ android/java/com/subspace/test/SubspaceJavaClientTest.java | 2 +- android/java/subspace_java_client_test.sh | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt index 936750e..aa1189b 100644 --- a/android/CMakeLists.txt +++ b/android/CMakeLists.txt @@ -1,3 +1,7 @@ +# Copyright 2026 General Motors Inc. +# All Rights Reserved +# See LICENSE file for licensing information. + # Java wrapper for Android clients. The classes use JNI but do not depend on # Android SDK APIs, so they can be compiled with the host Java toolchain. diff --git a/android/java/BUILD.bazel b/android/java/BUILD.bazel index c1302ae..d8c0263 100644 --- a/android/java/BUILD.bazel +++ b/android/java/BUILD.bazel @@ -1,3 +1,7 @@ +# Copyright 2026 General Motors Inc. +# All Rights Reserved +# See LICENSE file for licensing information. + package(default_visibility = ["//visibility:public"]) load("@rules_java//java:defs.bzl", "java_library") diff --git a/android/java/com/subspace/test/SubspaceJavaClientTest.java b/android/java/com/subspace/test/SubspaceJavaClientTest.java index ca5170f..a828b19 100644 --- a/android/java/com/subspace/test/SubspaceJavaClientTest.java +++ b/android/java/com/subspace/test/SubspaceJavaClientTest.java @@ -1,4 +1,4 @@ -// Copyright 2023-2026 David Allison +// Copyright 2026 General Motors Inc. // All Rights Reserved // See LICENSE file for licensing information. diff --git a/android/java/subspace_java_client_test.sh b/android/java/subspace_java_client_test.sh index 14e9729..778d19c 100644 --- a/android/java/subspace_java_client_test.sh +++ b/android/java/subspace_java_client_test.sh @@ -1,5 +1,9 @@ #!/system/bin/sh +# Copyright 2026 General Motors Inc. +# All Rights Reserved +# See LICENSE file for licensing information. + base=/system export CLASSPATH=$base/framework/subspace_java_client_test.jar export SUBSPACE_TEST_WORK_DIR=${SUBSPACE_TEST_WORK_DIR:-/data/local/tmp} From d35ed48ef4841709b4ed31f38baa9ab398c5e9d1 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 18:23:11 -0700 Subject: [PATCH 08/19] Document platform build workflows --- .cursor/skills/subspace-builds/SKILL.md | 142 ++++++++++++++++++++++++ README.md | 2 +- docs/android.md | 83 +++++++++++--- 3 files changed, 210 insertions(+), 17 deletions(-) create mode 100644 .cursor/skills/subspace-builds/SKILL.md diff --git a/.cursor/skills/subspace-builds/SKILL.md b/.cursor/skills/subspace-builds/SKILL.md new file mode 100644 index 0000000..b7df898 --- /dev/null +++ b/.cursor/skills/subspace-builds/SKILL.md @@ -0,0 +1,142 @@ +--- +name: subspace-builds +description: Build and test Subspace across supported platforms and build systems. Use when the user asks how to build, test, cross-compile, run CI-equivalent checks, or work with Bazel, CMake, Android, Soong/Blueprint, AOSP, QNX, Linux, or macOS builds in this repository. +--- + +# Subspace Builds + +## General Rules + +- Use `bazelisk`, not `bazel`, for repository Bazel commands. +- Prefer focused targets while iterating; use `bazelisk test //...` only when broad verification is needed. +- Check `.bazelrc`, `.github/workflows/ci.yml`, and `docs/android.md` before changing platform build behavior. +- Do not check in generated protobuf files. + +## Native Host Builds + +Linux: + +```bash +CC=clang bazelisk build //... +bazelisk test //... + +cmake -S . -B build/cmake-Debug -DCMAKE_BUILD_TYPE=Debug +cmake --build build/cmake-Debug --parallel +ctest --test-dir build/cmake-Debug --output-on-failure +``` + +macOS Apple Silicon: + +```bash +bazelisk build //... --config=macos_arm64 +bazelisk test //... --config=macos_arm64 +``` + +macOS Intel: + +```bash +bazelisk build //... --config=macos_x86_64 +bazelisk test //... --config=macos_x86_64 +``` + +## Android With Bazel + +Requires `ANDROID_NDK_HOME`. + +```bash +bazelisk build \ + //server:subspace_server \ + //client:client_test \ + //c_client:client_test \ + //plugins:nop_plugin.so \ + //plugins:split_buffer_free_test_plugin.so \ + //android/jni:libsubspace_jni.so \ + //android/java:subspace-java \ + //android/java:subspace-java-test \ + --config=android_arm64 +``` + +Use `--config=android_x86_64` for x86_64 emulators and GitHub CI. The emulator +deployment and test flow is in `.github/scripts/android-test.sh`. + +## Android With CMake + +Requires `ANDROID_NDK_HOME`. Build a host `protoc` first and pass it into the +Android cross-compile so protobuf versions match: + +```bash +cmake -S . -B build/host-protoc -DCMAKE_BUILD_TYPE=Release +cmake --build build/host-protoc --target protoc --parallel + +cmake -S . -B build/android \ + -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \ + -DANDROID_ABI=arm64-v8a \ + -DANDROID_PLATFORM=android-28 \ + -DANDROID_STL=c++_shared \ + -DCMAKE_BUILD_TYPE=Release \ + -DPROTOC_EXECUTABLE="$PWD/build/host-protoc/_deps/protobuf-build/protoc" + +cmake --build build/android --parallel +``` + +Use `-DANDROID_ABI=x86_64` for x86_64 emulators and GitHub CI. The emulator +deployment and test flow is in `.github/scripts/cmake-android-test.sh`. + +## Android With Soong/Blueprint + +Soong requires a full AOSP checkout; GitHub-hosted runners do not provide one. +Use a local AOSP tree or a self-hosted runner with AOSP already synced. + +Place this repository at `external/subspace`, ensure `external/coroutines` and +`external/cpp_toolbelt` are present, and copy their repository-provided +`Android.bp.example` files to `Android.bp`. + +Add to the product: + +```make +PRODUCT_SOONG_NAMESPACES += external/subspace +PRODUCT_PACKAGES += \ + subspace_server \ + libsubspace_client \ + libsubspace_jni \ + subspace-java \ + subspace_java_client_test +``` + +Build from AOSP root: + +```bash +source build/envsetup.sh +lunch -userdebug + +m external.subspace-subspace_server-soong \ + external.subspace-libsubspace_client-soong \ + external.subspace-libsubspace_jni-soong \ + external.subspace-subspace-java-soong \ + external.subspace-subspace_java_client_test-soong +``` + +Run the device-side Java integration test: + +```bash +adb shell subspace_java_client_test +``` + +## QNX With Bazel + +Requires the QNX SDP and `QNX_SDP_PATH`. + +```bash +bazelisk build //... --config=qnx_aarch64 +bazelisk build //... --config=qnx_x86_64 +``` + +If the default path in `.bazelrc` is wrong, set `QNX_SDP_PATH` in the +environment or user-local `user.bazelrc`. + +## References + +- Android details: `docs/android.md` +- General Bazel/CMake docs: `README.md` +- CI build matrix: `.github/workflows/ci.yml` +- Test runner rule: `.cursor/rules/test-runner.mdc` diff --git a/README.md b/README.md index db7a728..4c2df25 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ See the file docs/subspace.pdf for full documentation. Additional documentation # Building -Subspace can be built using either Bazel or CMake. Both build systems will automatically download and build all required dependencies. +Subspace can be built using Bazel or CMake. Android platform integrations can also be built with Soong/Blueprint inside an AOSP tree; see [Running Subspace on Android](docs/android.md). ## Building with Bazel diff --git a/docs/android.md b/docs/android.md index d0af8a2..37ffa31 100644 --- a/docs/android.md +++ b/docs/android.md @@ -47,13 +47,26 @@ emulator -avd subspace_test -no-window -no-audio -gpu swiftshader_indirect & adb wait-for-device ``` -## Cross-Compiling +## Building With Bazel -Build the server and tests for Android ARM64: +Bazel is the simplest way to cross-compile Subspace Android artifacts from this +repository because it fetches its own C++ dependencies and uses the NDK +toolchain configured in `.bazelrc`. + +Build the server, native tests, JNI library, and Java client test for Android +ARM64: ```bash -bazelisk build //server:subspace_server //client:client_test \ - --config=android_arm64 +bazelisk build \ + //server:subspace_server \ + //client:client_test \ + //c_client:client_test \ + //plugins:nop_plugin.so \ + //plugins:split_buffer_free_test_plugin.so \ + //android/jni:libsubspace_jni.so \ + //android/java:subspace-java \ + //android/java:subspace-java-test \ + --config=android_arm64 ``` The `android_arm64` config in `.bazelrc` sets: @@ -62,6 +75,8 @@ The `android_arm64` config in `.bazelrc` sets: - `--linkopt=-lc++_static --linkopt=-lc++abi` (NDK C++ stdlib) - `--action_env=ANDROID_NDK_HOME` +For an x86_64 emulator or CI runner, use `--config=android_x86_64` instead. + ## Device Setup ### Enable root access @@ -78,7 +93,7 @@ The default server socket on Android is `/data/local/tmp/subspace` (defined by `kDefaultServerSocket` in `client/client.h`). This path is writable without root. -## Deploying Binaries +## Deploying Bazel Binaries Bazel produces shared libraries as symlinks in `bazel-bin/_solib_arm64-v8a/`. You must dereference them before pushing to the device: @@ -101,7 +116,7 @@ adb push bazel-bin/plugins/nop_plugin.so /data/local/tmp/plugins/ adb push bazel-bin/plugins/split_buffer_free_test_plugin.so /data/local/tmp/plugins/ ``` -## Running +## Running Bazel-built Tests ### Start the server @@ -156,28 +171,43 @@ Android enforces linker namespace restrictions. Shared libraries must be in a directory referenced by `LD_LIBRARY_PATH` or in the same directory as the executable. The `android_libs/` approach works for `/data/local/tmp/` binaries. -## CMake Cross-Compilation +## Building With CMake -Subspace can be cross-compiled for Android using CMake with the NDK toolchain: +Subspace can also be cross-compiled for Android using CMake with the NDK +toolchain. CMake fetches the same third-party dependencies with +`FetchContent`, but protobuf code generation requires a host-native `protoc` +that matches the protobuf version used by the Android build. ```bash export ANDROID_NDK_HOME=/path/to/ndk +# Build a host protoc matching Subspace's protobuf dependency. +cmake -S . -B build/host-protoc -DCMAKE_BUILD_TYPE=Release +cmake --build build/host-protoc --target protoc --parallel + cmake -S . -B build/android \ -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \ -DANDROID_ABI=arm64-v8a \ -DANDROID_PLATFORM=android-28 \ -DANDROID_STL=c++_shared \ - -DCMAKE_BUILD_TYPE=Release + -DCMAKE_BUILD_TYPE=Release \ + -DPROTOC_EXECUTABLE="$PWD/build/host-protoc/_deps/protobuf-build/protoc" cmake --build build/android --parallel ``` -CMake cross-compiles generate protobuf sources in the build tree. Ensure the -host-native `protoc` matches the protobuf version fetched by CMake, or pass a -matching compiler explicitly with `-DPROTOC_EXECUTABLE=/path/to/protoc`. The CI -build does this by building the native `protoc` target first and passing that -binary into the Android configure step. +Use `-DANDROID_ABI=x86_64` for an x86_64 emulator. The Android CMake build +produces the native test binaries plus the Java/JNI artifacts: + +- `build/android/server/subspace_server` +- `build/android/client/client_test` +- `build/android/c_client/c_client_test` +- `build/android/android/libsubspace_jni.so` +- `build/android/android/subspace-java.jar` +- `build/android/android/subspace-java-test.jar` + +The CI helper script `.github/scripts/cmake-android-test.sh` shows the expected +deployment layout and how to run the CMake-built tests on an emulator. ## AOSP / Soong (Blueprint) Build @@ -185,6 +215,10 @@ Subspace provides `Android.bp` files for building as part of an AOSP source tree using the Soong build system. This is the recommended approach for integrating subspace into an Android platform image. +Soong builds require a full AOSP checkout. GitHub-hosted runners do not provide +one by default; use a local AOSP tree or a self-hosted CI runner with AOSP +already synced. + ### Directory Layout Place the subspace source tree in your AOSP checkout (e.g., @@ -199,6 +233,7 @@ Place the subspace source tree in your AOSP checkout (e.g., | `libsubspace_proto` | static lib | Protobuf message definitions | | `libsubspace_jni` | shared lib | JNI bindings for Java clients | | `subspace-java` | java lib | Java client wrapper | +| `subspace_java_client_test` | java binary | Device-side Java integration test | ### External Dependencies @@ -231,16 +266,32 @@ Add Subspace to a product makefile: ```make PRODUCT_SOONG_NAMESPACES += external/subspace -PRODUCT_PACKAGES += subspace_server libsubspace_client libsubspace_jni subspace-java +PRODUCT_PACKAGES += \ + subspace_server \ + libsubspace_client \ + libsubspace_jni \ + subspace-java \ + subspace_java_client_test ``` Then build from your AOSP root: ```bash +source build/envsetup.sh +lunch -userdebug + m external.subspace-subspace_server-soong \ external.subspace-libsubspace_client-soong \ external.subspace-libsubspace_jni-soong \ - external.subspace-subspace-java-soong + external.subspace-subspace-java-soong \ + external.subspace-subspace_java_client_test-soong +``` + +After flashing or installing those artifacts on a device image, the Java +integration test can be run through its wrapper: + +```bash +adb shell subspace_java_client_test ``` ### Integration Notes From f905fc6ebae04f1246ddc4c4007e2067b2031e9b Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 18:25:47 -0700 Subject: [PATCH 09/19] Use bazel in build skill examples --- .cursor/skills/subspace-builds/SKILL.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.cursor/skills/subspace-builds/SKILL.md b/.cursor/skills/subspace-builds/SKILL.md index b7df898..a9444f2 100644 --- a/.cursor/skills/subspace-builds/SKILL.md +++ b/.cursor/skills/subspace-builds/SKILL.md @@ -7,8 +7,10 @@ description: Build and test Subspace across supported platforms and build system ## General Rules -- Use `bazelisk`, not `bazel`, for repository Bazel commands. -- Prefer focused targets while iterating; use `bazelisk test //...` only when broad verification is needed. +- User-facing examples should use `bazel`; use `bazelisk` as a drop-in + replacement if `bazel` is not available. +- Prefer focused targets while iterating; use `bazel test //...` only when + broad verification is needed. - Check `.bazelrc`, `.github/workflows/ci.yml`, and `docs/android.md` before changing platform build behavior. - Do not check in generated protobuf files. @@ -17,8 +19,8 @@ description: Build and test Subspace across supported platforms and build system Linux: ```bash -CC=clang bazelisk build //... -bazelisk test //... +CC=clang bazel build //... +bazel test //... cmake -S . -B build/cmake-Debug -DCMAKE_BUILD_TYPE=Debug cmake --build build/cmake-Debug --parallel @@ -28,15 +30,15 @@ ctest --test-dir build/cmake-Debug --output-on-failure macOS Apple Silicon: ```bash -bazelisk build //... --config=macos_arm64 -bazelisk test //... --config=macos_arm64 +bazel build //... --config=macos_arm64 +bazel test //... --config=macos_arm64 ``` macOS Intel: ```bash -bazelisk build //... --config=macos_x86_64 -bazelisk test //... --config=macos_x86_64 +bazel build //... --config=macos_x86_64 +bazel test //... --config=macos_x86_64 ``` ## Android With Bazel @@ -44,7 +46,7 @@ bazelisk test //... --config=macos_x86_64 Requires `ANDROID_NDK_HOME`. ```bash -bazelisk build \ +bazel build \ //server:subspace_server \ //client:client_test \ //c_client:client_test \ @@ -127,8 +129,8 @@ adb shell subspace_java_client_test Requires the QNX SDP and `QNX_SDP_PATH`. ```bash -bazelisk build //... --config=qnx_aarch64 -bazelisk build //... --config=qnx_x86_64 +bazel build //... --config=qnx_aarch64 +bazel build //... --config=qnx_x86_64 ``` If the default path in `.bazelrc` is wrong, set `QNX_SDP_PATH` in the From ad8f2d995364465b2d63dcd82b974b2f95316ad1 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 18:30:43 -0700 Subject: [PATCH 10/19] Add Subspace client authoring skill --- .cursor/skills/subspace-clients/SKILL.md | 263 +++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 .cursor/skills/subspace-clients/SKILL.md diff --git a/.cursor/skills/subspace-clients/SKILL.md b/.cursor/skills/subspace-clients/SKILL.md new file mode 100644 index 0000000..ad4e975 --- /dev/null +++ b/.cursor/skills/subspace-clients/SKILL.md @@ -0,0 +1,263 @@ +--- +name: subspace-clients +description: Write Subspace clients in C++, Python, Rust, or Java. Use when the user asks how to connect to Subspace, create publishers or subscribers, publish messages, read messages, or build language client libraries with Bazel, CMake, or Android Soong/Blueprint. +--- + +# Subspace Clients + +## Core Model + +- A `subspace_server` process must be running before clients connect. +- Non-Android default socket: `/tmp/subspace`. +- Android default socket: `/data/local/tmp/subspace`. +- A publisher creates a channel with a slot size and slot count, writes into a + shared-memory message buffer, then publishes the written byte count. +- A subscriber attaches to a channel, waits or polls for data, then reads until + the API reports no more messages. +- User-facing build examples use `bazel`; `bazelisk` is a drop-in replacement + when `bazel` is not available. + +## C++ Client + +Include `client/client.h` and link `//client:subspace_client` or the CMake +`subspace_client` target. + +Use a `subspace::Client` when one process needs to create multiple publishers +or subscribers that share one server connection. If the publisher or subscriber +can own its own connection, use the convenience free functions: + +```cpp +auto pub_or = subspace::CreatePublisher( + "example", subspace::PublisherOptions().SetSlotSize(256).SetNumSlots(8), + "/tmp/subspace", "cpp-publisher"); + +auto sub_or = subspace::CreateSubscriber( + "example", subspace::SubscriberOptions(), "/tmp/subspace", + "cpp-subscriber"); +``` + +Publish: + +```cpp +#include "client/client.h" +#include + +subspace::Client client; +auto status = client.Init("/tmp/subspace", "cpp-publisher"); +if (!status.ok()) throw std::runtime_error(status.ToString()); + +auto pub_or = client.CreatePublisher("example", 256, 8); +if (!pub_or.ok()) throw std::runtime_error(pub_or.status().ToString()); +subspace::Publisher pub = *std::move(pub_or); + +auto buffer_or = pub.GetMessageBuffer(); +if (!buffer_or.ok() || *buffer_or == nullptr) { + throw std::runtime_error("no publisher buffer available"); +} + +const char payload[] = "hello from cpp"; +std::memcpy(*buffer_or, payload, sizeof(payload) - 1); +auto msg_or = pub.PublishMessage(sizeof(payload) - 1); +if (!msg_or.ok()) throw std::runtime_error(msg_or.status().ToString()); +``` + +Subscribe: + +```cpp +subspace::Client client; +auto status = client.Init("/tmp/subspace", "cpp-subscriber"); +if (!status.ok()) throw std::runtime_error(status.ToString()); + +auto sub_or = client.CreateSubscriber("example"); +if (!sub_or.ok()) throw std::runtime_error(sub_or.status().ToString()); +subspace::Subscriber sub = *std::move(sub_or); + +status = sub.Wait(); +if (!status.ok()) throw std::runtime_error(status.ToString()); + +for (;;) { + auto msg_or = sub.ReadMessage(); + if (!msg_or.ok()) throw std::runtime_error(msg_or.status().ToString()); + if (msg_or->length == 0) break; + auto bytes = static_cast(msg_or->buffer); + // Process bytes[0..msg_or->length). +} +``` + +## Python Client + +The Python binding is `client.python.subspace`. The server binding used by +tests is `server.python.subspace_server`. + +```python +import client.python.subspace as subspace + +client = subspace.Client() +client.init(server_socket="/tmp/subspace", client_name="python-client") + +publisher = client.create_publisher( + channel_name="example", slot_size=256, num_slots=8 +) +subscriber = client.create_subscriber(channel_name="example") + +publisher.publish_message(b"hello from python") +subscriber.wait() + +while True: + data = subscriber.read_message() + if len(data) == 0: + break + # Process data as bytes. +``` + +For message metadata and ordinals, use `read_message_object()`: + +```python +with subscriber.read_message_object() as msg: + print(msg.ordinal, msg.timestamp, msg.buffer) +``` + +## Rust Client + +The Rust crate name is `subspace_client`. + +```rust +use subspace_client::{Client, PublisherOptions, ReadMode, SubscriberOptions}; + +let client = Client::new("/tmp/subspace", "rust-client").unwrap(); + +let pub_opts = PublisherOptions::new() + .set_slot_size(256) + .set_num_slots(8); +let publisher = client.create_publisher("example", &pub_opts).unwrap(); + +let payload = b"hello from rust"; +let (buf_ptr, _capacity) = publisher + .get_message_buffer(payload.len() as i64) + .unwrap() + .unwrap(); +unsafe { + std::ptr::copy_nonoverlapping(payload.as_ptr(), buf_ptr, payload.len()); +} +publisher.publish_message(payload.len() as i64).unwrap(); + +let sub_opts = SubscriberOptions::new(); +let subscriber = client.create_subscriber("example", &sub_opts).unwrap(); +subscriber.wait(Some(5000)).unwrap(); + +loop { + let msg = subscriber.read_message(ReadMode::ReadNext).unwrap(); + if msg.is_empty() { + break; + } + let data = unsafe { msg.as_slice() }; + // Process data. +} +``` + +## Java Client + +The Java client is Android-focused and uses JNI. Load `libsubspace_jni.so` +normally via `System.loadLibrary("subspace_jni")`; device-side tests may preload +native libraries with absolute paths when using `/data/local/tmp`. + +```java +import com.subspace.SubspaceClient; +import com.subspace.SubspaceMessage; +import com.subspace.SubspacePublisher; +import com.subspace.SubspaceSubscriber; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; + +byte[] payload = "hello from java".getBytes(StandardCharsets.UTF_8); + +try (SubspaceClient client = + new SubspaceClient("/data/local/tmp/subspace", "java-client"); + SubspacePublisher publisher = + client.createPublisher("/example", 256, 8); + SubspaceSubscriber subscriber = + client.createSubscriber("/example")) { + + ByteBuffer buffer = publisher.getMessageBuffer(payload.length); + if (buffer == null) { + throw new IllegalStateException("no publisher buffer available"); + } + buffer.put(payload); + publisher.publishMessage(payload.length); + + SubspaceMessage message = subscriber.readMessage(); + if (message != null) { + ByteBuffer data = message.getData(); + // Process data[0..message.getLength()). + } +} +``` + +## Build The Clients + +C++: + +```bash +bazel build //client:subspace_client +cmake -S . -B build/cmake-Debug -DCMAKE_BUILD_TYPE=Debug +cmake --build build/cmake-Debug --target subspace_client +``` + +Python: + +```bash +bazel build //client/python:subspace +bazel test //client/python:client_test + +cmake -S . -B build/cmake-Debug -DCMAKE_BUILD_TYPE=Debug +cmake --build build/cmake-Debug --target subspace +``` + +Rust: + +```bash +bazel build //rust_client:subspace_client_rust +bazel test //rust_client:client_test + +cmake -S . -B build/cmake-Debug -DCMAKE_BUILD_TYPE=Debug +cmake --build build/cmake-Debug --target subspace_client_rust + +cd rust_client && cargo build && cargo test -- --test-threads=1 +``` + +Java/JNI for Android: + +```bash +bazel build \ + //android/jni:libsubspace_jni.so \ + //android/java:subspace-java \ + //android/java:subspace-java-test \ + --config=android_x86_64 + +cmake -S . -B build/android \ + -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \ + -DANDROID_ABI=x86_64 \ + -DANDROID_PLATFORM=android-28 \ + -DANDROID_STL=c++_shared \ + -DCMAKE_BUILD_TYPE=Release \ + -DPROTOC_EXECUTABLE=/path/to/matching/host/protoc +cmake --build build/android --target subspace_jni subspace_java subspace_java_test +``` + +Soong/Blueprint in AOSP: + +```bash +m external.subspace-libsubspace_client-soong \ + external.subspace-libsubspace_jni-soong \ + external.subspace-subspace-java-soong \ + external.subspace-subspace_java_client_test-soong +``` + +## References + +- C++ API: `client/client.h` +- Python examples: `client/python/client_test.py` +- Rust guide: `docs/rust-client.md` +- Java API: `android/java/com/subspace/*.java` +- Android build/run details: `docs/android.md` +- Platform build skill: `.cursor/skills/subspace-builds/SKILL.md` From 7155e3ec2ca8e7705f3106e8a44207203b9c9334 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 18:34:23 -0700 Subject: [PATCH 11/19] Compact protobuf field numbers --- proto/subspace.proto | 54 +++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/proto/subspace.proto b/proto/subspace.proto index 777e5cd..23ac6e9 100644 --- a/proto/subspace.proto +++ b/proto/subspace.proto @@ -31,13 +31,13 @@ message CreatePublisherRequest { bool is_bridge = 6; // This publisher is for the bridge. bytes type = 7; // Type of data carried on channel. bool is_fixed_size = 8; - bool for_tunnel = 15; - string mux = 9; - int32 vchan_id = 10; - bool notify_retirement = 11; // Notify publisher of slot retirement. - int32 checksum_size = 12; // Bytes reserved for checksum. - int32 metadata_size = 13; // Bytes reserved for user metadata. - int32 publisher_id = 14; // -1 for new, >= 0 to reclaim existing. + bool for_tunnel = 9; + string mux = 10; + int32 vchan_id = 11; + bool notify_retirement = 12; // Notify publisher of slot retirement. + int32 checksum_size = 13; // Bytes reserved for checksum. + int32 metadata_size = 14; // Bytes reserved for user metadata. + int32 publisher_id = 15; // -1 for new, >= 0 to reclaim existing. bool use_split_buffers = 16; // Prefixes and payload slots are separate. int32 max_publishers = 17; // 0 means no explicit publisher limit. bool split_buffers_over_bridge = 18; // Remote bridge publisher uses split buffers. @@ -55,8 +55,8 @@ message CreatePublisherResponse { int32 num_sub_updates = 9; bytes type = 10; int32 vchan_id = 11; - int32 retirement_fd_index = 14; // My retirement fd index (read end) - repeated int32 retirement_fd_indexes = 15; // Write end of all retirement fds. + int32 retirement_fd_index = 12; // My retirement fd index (read end) + repeated int32 retirement_fd_indexes = 13; // Write end of all retirement fds. } // This is used both to create a new subscriber and to reload @@ -69,9 +69,9 @@ message CreateSubscriberRequest { bool is_bridge = 4; // This subscriber is for the bridge. bytes type = 5; // Type of data carried on channel. int32 max_active_messages = 6; // Max number of active message objects. - bool for_tunnel = 9; - string mux = 7; - int32 vchan_id = 8; + bool for_tunnel = 7; + string mux = 8; + int32 vchan_id = 9; } message CreateSubscriberResponse { @@ -156,8 +156,6 @@ message ClientBufferHandleMetadataProto { string shadow_file = 9; string object_name = 10; ClientBufferAllocator allocator = 11; - reserved 12 to 15; - reserved "pool_id", "cache_enabled", "alignment", "allocator_metadata"; } message RegisterClientBufferRequest { @@ -199,11 +197,11 @@ message Request { GetTriggersRequest get_triggers = 4; RemovePublisherRequest remove_publisher = 5; RemoveSubscriberRequest remove_subscriber = 6; - GetChannelInfoRequest get_channel_info = 9; - GetChannelStatsRequest get_channel_stats = 10; - RegisterClientBufferRequest register_client_buffer = 11; - UnregisterClientBufferRequest unregister_client_buffer = 12; - GetClientBuffersRequest get_client_buffers = 13; + GetChannelInfoRequest get_channel_info = 7; + GetChannelStatsRequest get_channel_stats = 8; + RegisterClientBufferRequest register_client_buffer = 9; + UnregisterClientBufferRequest unregister_client_buffer = 10; + GetClientBuffersRequest get_client_buffers = 11; } } @@ -215,10 +213,10 @@ message Response { GetTriggersResponse get_triggers = 4; RemovePublisherResponse remove_publisher = 5; RemoveSubscriberResponse remove_subscriber = 6; - GetChannelInfoResponse get_channel_info = 9; - GetChannelStatsResponse get_channel_stats = 10; - GetClientBuffersResponse get_client_buffers = 11; - RegisterClientBufferResponse register_client_buffer = 12; + GetChannelInfoResponse get_channel_info = 7; + GetChannelStatsResponse get_channel_stats = 8; + GetClientBuffersResponse get_client_buffers = 9; + RegisterClientBufferResponse register_client_buffer = 10; } } @@ -234,13 +232,13 @@ message ChannelInfoProto { int32 num_bridge_pubs = 7; // Number of publishers that are bridges. int32 num_bridge_subs = 8; // Number of subscribers that are bridges. bool is_reliable = 9; // True if channel is reliable. - int32 num_tunnel_pubs = 13; // Number of publishers that are tunnels. - int32 num_tunnel_subs = 14; // Number of subscribers that are tunnels. - bool is_virtual = 10; // True if channel is virtual. + int32 num_tunnel_pubs = 10; // Number of publishers that are tunnels. + int32 num_tunnel_subs = 11; // Number of subscribers that are tunnels. + bool is_virtual = 12; // True if channel is virtual. // Only if is_virtual is true. - int32 vchan_id = 11; // Virtual channel ID. - string mux = 12; + int32 vchan_id = 13; // Virtual channel ID. + string mux = 14; } // This is published to the /subspace/ChannelDirectory channel. From 1ffb38f4c877a2e16b3b6f5af4d2bd855999a227 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 18:39:37 -0700 Subject: [PATCH 12/19] Document Android buffer registration retry --- client/client_channel.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/client_channel.cc b/client/client_channel.cc index b4f8911..ff70418 100644 --- a/client/client_channel.cc +++ b/client/client_channel.cc @@ -442,6 +442,9 @@ ClientChannel::GetRegisteredClientBuffer(uint32_t buffer_index, bool is_prefix, return absl::InternalError("No client buffer lookup callback registered"); } absl::Status status; + // The CCB/BCB can make a buffer generation visible before the server has + // returned the registered Android memfd for that prefix/slot. Poll briefly + // for the registration to catch up before treating it as missing. for (int attempt = 0; attempt < 100; attempt++) { absl::StatusOr> buffers = client_buffer_lookup_callback_(ResolvedName(), session_id_, From d27de38c8b5f3ed6acbe6b8045829847dec56669 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Thu, 28 May 2026 19:22:29 -0700 Subject: [PATCH 13/19] Clean Android plugin deploy directory --- .github/scripts/android-test.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/scripts/android-test.sh b/.github/scripts/android-test.sh index dc6c87c..4304869 100755 --- a/.github/scripts/android-test.sh +++ b/.github/scripts/android-test.sh @@ -52,9 +52,14 @@ mkdir -p /tmp/subspace_java_test_dex (cd /tmp/subspace_java_test_dex && zip -q -r /tmp/subspace-java-test-dex.jar classes.dex) adb push /tmp/subspace-java-test-dex.jar /data/local/tmp/subspace-java-test.jar -# Push plugin .so files to relative path expected by tests -adb shell "mkdir -p /data/local/tmp/plugins" -find bazel-bin/plugins/ -name "*.so" -exec adb push {} /data/local/tmp/plugins/ \; 2>/dev/null || true +# Push plugin .so files to relative path expected by tests. Remove the target +# directory first so an old directory named nop_plugin.so cannot shadow the file. +rm -rf /tmp/android_plugins +mkdir -p /tmp/android_plugins +cp -L bazel-bin/plugins/nop_plugin.so /tmp/android_plugins/ +cp -L bazel-bin/plugins/split_buffer_free_test_plugin.so /tmp/android_plugins/ +adb shell "rm -rf /data/local/tmp/plugins" +adb push /tmp/android_plugins /data/local/tmp/plugins # Make binaries executable adb shell "chmod +x /data/local/tmp/*_test /data/local/tmp/subspace_server" From 658d171410c87b1d792d03f88efcd8891aa62470 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Fri, 29 May 2026 13:47:52 -0700 Subject: [PATCH 14/19] Remove Android split-buffer fd registry Anonymous memfds have no name, so the process-global registry only emulated shm_open-by-name for the unit test; the real Android client owns its descriptors in the BufferSet and shares them with subscribers via the server. Create now returns a caller-owned memfd, open-by-name is unsupported on Android, and destroy is a no-op there (no named object, no shadow file). --- common/CMakeLists.txt | 1 + common/split_buffer.cc | 122 ++++++++++++------------------------ common/split_buffer.h | 5 ++ common/split_buffer_test.cc | 17 ++++- 4 files changed, 61 insertions(+), 84 deletions(-) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 611ff26..0861d05 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -20,6 +20,7 @@ add_library(subspace_common STATIC target_link_libraries(subspace_common PUBLIC absl::base absl::flags + absl::flat_hash_map absl::flat_hash_set absl::strings absl::str_format diff --git a/common/split_buffer.cc b/common/split_buffer.cc index 6dfbde4..ea63329 100644 --- a/common/split_buffer.cc +++ b/common/split_buffer.cc @@ -13,12 +13,10 @@ #include #include #include -#include #include #include #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID #include -#include #ifndef MFD_CLOEXEC #define MFD_CLOEXEC 0x0001U #endif @@ -28,50 +26,6 @@ namespace subspace { namespace { -#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID -std::mutex &AndroidSplitBufferMutex() { - static std::mutex mutex; - return mutex; -} - -std::unordered_map &AndroidSplitBufferFds() { - static std::unordered_map fds; - return fds; -} - -absl::StatusOr -CreateAndroidAnonymousObject(const std::string &name, uint64_t size) { - std::lock_guard lock(AndroidSplitBufferMutex()); - auto &fds = AndroidSplitBufferFds(); - if (fds.find(name) != fds.end()) { - return toolbelt::FileDescriptor(); - } -#ifdef __NR_memfd_create - int fd = static_cast(syscall( - __NR_memfd_create, name.c_str(), static_cast(MFD_CLOEXEC))); - if (fd == -1) { - return absl::InternalError(absl::StrFormat( - "Failed to create split buffer object %s: %s", name, strerror(errno))); - } -#else - return absl::UnimplementedError("memfd_create is not available"); -#endif - if (GetSyscallShim().ftruncate_fn(fd, static_cast(size)) == -1) { - close(fd); - return absl::InternalError(absl::StrFormat( - "Failed to size split buffer object %s: %s", name, strerror(errno))); - } - int kept_fd = dup(fd); - if (kept_fd == -1) { - close(fd); - return absl::InternalError(absl::StrFormat( - "Failed to retain split buffer object %s: %s", name, strerror(errno))); - } - fds.emplace(name, kept_fd); - return toolbelt::FileDescriptor(fd); -} -#endif - absl::Status WriteAll(int fd, const std::string &contents, const std::string &path) { const char *p = contents.data(); @@ -222,12 +176,34 @@ std::string SplitBufferObjectName(const std::string &shadow_file) { absl::StatusOr CreateSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata) { -#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID uint64_t allocation_size = metadata.allocation_size != 0 ? metadata.allocation_size : PageAlignedSize(metadata.full_size); - return CreateAndroidAnonymousObject(metadata.object_name, - PageAlignedSize(allocation_size)); +#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID + // Android has no named shared memory, so back the buffer with an anonymous + // memfd. Ownership of the descriptor is returned to the caller; subscribers + // receive their own copy of it from the server rather than reopening by name. +#ifdef __NR_memfd_create + int fd = static_cast( + syscall(__NR_memfd_create, metadata.object_name.c_str(), + static_cast(MFD_CLOEXEC))); + if (fd == -1) { + return absl::InternalError(absl::StrFormat( + "Failed to create split buffer object %s: %s", metadata.object_name, + strerror(errno))); + } +#else + return absl::UnimplementedError("memfd_create is not available"); +#endif + toolbelt::FileDescriptor shm_fd(fd); + if (GetSyscallShim().ftruncate_fn( + shm_fd.Fd(), static_cast(PageAlignedSize(allocation_size))) == + -1) { + return absl::InternalError(absl::StrFormat( + "Failed to size split buffer object %s: %s", metadata.object_name, + strerror(errno))); + } + return shm_fd; #else int fd = GetSyscallShim().shm_open_fn(metadata.object_name.c_str(), O_RDWR | O_CREAT | O_EXCL, 0666); @@ -241,16 +217,9 @@ CreateSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata) { } toolbelt::FileDescriptor shm_fd(fd); - uint64_t allocation_size = - metadata.allocation_size != 0 ? metadata.allocation_size - : PageAlignedSize(metadata.full_size); if (GetSyscallShim().ftruncate_fn(shm_fd.Fd(), static_cast(allocation_size)) == -1) { -#if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - (void)unlink(path.c_str()); -#else (void)GetSyscallShim().shm_unlink_fn(metadata.object_name.c_str()); -#endif return absl::InternalError(absl::StrFormat( "Failed to size split buffer object %s: %s", metadata.object_name, strerror(errno))); @@ -263,53 +232,41 @@ CreateSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata) { absl::StatusOr OpenSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata, int flags) { #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - std::lock_guard lock(AndroidSplitBufferMutex()); - auto &fds = AndroidSplitBufferFds(); - auto it = fds.find(metadata.object_name); - if (it == fds.end()) { - return absl::NotFoundError(absl::StrFormat( - "Failed to open split buffer object %s: not found", - metadata.object_name)); - } - int fd = dup(it->second); - if (fd == -1) { - return absl::InternalError(absl::StrFormat( - "Failed to duplicate split buffer object %s: %s", - metadata.object_name, strerror(errno))); - } + (void)flags; + // Anonymous memfds cannot be reopened by name; the client obtains its + // descriptors directly (from creation or via the server) instead. + return absl::UnimplementedError(absl::StrFormat( + "Cannot reopen anonymous split buffer object %s by name", + metadata.object_name)); #else int fd = GetSyscallShim().shm_open_fn(metadata.object_name.c_str(), flags, 0666); -#endif if (fd == -1) { return absl::InternalError(absl::StrFormat( "Failed to open split buffer object %s: %s", metadata.object_name, strerror(errno))); } return toolbelt::FileDescriptor(fd); +#endif } absl::Status DestroySplitSharedMemoryBuffer( const SplitBufferMetadata &metadata) { - absl::Status status = absl::OkStatus(); #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - { - std::lock_guard lock(AndroidSplitBufferMutex()); - auto &fds = AndroidSplitBufferFds(); - auto it = fds.find(metadata.object_name); - if (it != fds.end()) { - close(it->second); - fds.erase(it); - } - } + // Android buffers are anonymous memfds with no backing name and no shadow + // metadata file (subscribers receive descriptors from the server, not by + // name). The memory is released when the owning descriptor and all mappings + // are dropped, so there is nothing to remove. + (void)metadata; + return absl::OkStatus(); #else + absl::Status status = absl::OkStatus(); if (GetSyscallShim().shm_unlink_fn(metadata.object_name.c_str()) == -1 && errno != ENOENT) { status = absl::InternalError(absl::StrFormat( "Failed to unlink split buffer object %s: %s", metadata.object_name, strerror(errno))); } -#endif if (unlink(metadata.shadow_file.c_str()) == -1 && errno != ENOENT && status.ok()) { status = absl::InternalError(absl::StrFormat( @@ -317,6 +274,7 @@ absl::Status DestroySplitSharedMemoryBuffer( strerror(errno))); } return status; +#endif } } // namespace subspace diff --git a/common/split_buffer.h b/common/split_buffer.h index 283a78e..a547f66 100644 --- a/common/split_buffer.h +++ b/common/split_buffer.h @@ -63,6 +63,11 @@ ReadSplitBufferMetadataFile(const std::string &shadow_file); std::string SplitBufferObjectName(const std::string &shadow_file); +// On Android these objects are anonymous memfds: CreateSplitSharedMemoryBuffer +// returns a caller-owned descriptor, and OpenSplitSharedMemoryBuffer is +// unsupported because an anonymous memfd cannot be reopened by name (the client +// shares its descriptors with subscribers via the server instead). Other +// platforms use named POSIX/Linux shared memory and support reopen by name. absl::StatusOr CreateSplitSharedMemoryBuffer(const SplitBufferMetadata &metadata); absl::StatusOr diff --git a/common/split_buffer_test.cc b/common/split_buffer_test.cc index 8d1e6c3..c0df263 100644 --- a/common/split_buffer_test.cc +++ b/common/split_buffer_test.cc @@ -48,7 +48,7 @@ SplitBufferMetadata TestMetadata(const std::string &suffix) { TEST(SplitBufferTest, WritesAndReadsMetadata) { SplitBufferMetadata metadata = TestMetadata("metadata"); - (void)DestroySplitSharedMemoryBuffer(metadata); + (void)unlink(metadata.shadow_file.c_str()); ASSERT_TRUE(WriteSplitBufferMetadataFile(metadata).ok()); auto read_metadata = ReadSplitBufferMetadataFile(metadata.shadow_file); @@ -65,7 +65,7 @@ TEST(SplitBufferTest, WritesAndReadsMetadata) { EXPECT_EQ(read_metadata->shadow_file, metadata.shadow_file); EXPECT_EQ(read_metadata->object_name, metadata.object_name); - (void)DestroySplitSharedMemoryBuffer(metadata); + (void)unlink(metadata.shadow_file.c_str()); } TEST(SplitBufferTest, CreatesOpensAndDestroysSharedMemoryObject) { @@ -76,6 +76,16 @@ TEST(SplitBufferTest, CreatesOpensAndDestroysSharedMemoryObject) { ASSERT_TRUE(created.ok()) << created.status(); ASSERT_TRUE(created->Valid()); + struct stat created_sb; + ASSERT_EQ(fstat(created->Fd(), &created_sb), 0); + EXPECT_GE(static_cast(created_sb.st_size), metadata.allocation_size); + +#if defined(__ANDROID__) + // Anonymous memfds cannot be reopened by name; the caller owns the descriptor + // returned by CreateSplitSharedMemoryBuffer instead. There is no shadow file + // on Android. + EXPECT_FALSE(OpenSplitSharedMemoryBuffer(metadata, O_RDWR).ok()); +#else ASSERT_TRUE(WriteSplitBufferMetadataFile(metadata).ok()); auto opened = OpenSplitSharedMemoryBuffer(metadata, O_RDWR); ASSERT_TRUE(opened.ok()) << opened.status(); @@ -84,9 +94,12 @@ TEST(SplitBufferTest, CreatesOpensAndDestroysSharedMemoryObject) { struct stat sb; ASSERT_EQ(fstat(opened->Fd(), &sb), 0); EXPECT_GE(static_cast(sb.st_size), metadata.allocation_size); +#endif ASSERT_TRUE(DestroySplitSharedMemoryBuffer(metadata).ok()); +#if !defined(__ANDROID__) EXPECT_FALSE(OpenSplitSharedMemoryBuffer(metadata, O_RDWR).ok()); +#endif } } // namespace From 463d3e4f9643966fe9a31b5f2f438f1688a4572c Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Fri, 29 May 2026 15:34:35 -0700 Subject: [PATCH 15/19] Add optional TCP unicast discovery for cross-NAT bridging UDP discovery assumes peers can exchange datagrams directly and be reached on their advertised port, which fails across a NAT such as an Android emulator or VM. --tcp_discovery runs the Query/Advertise/Subscribe handshake over a single TCP connection that the peer with --peer_address dials (the other side listens), so only the NAT'd side needs to initiate and there is no source-port rewriting. --bridge_advertise_address lets a NAT'd server advertise a forwarded loopback endpoint for its bridge/retirement listeners and binds them to the any-address. Also: keep absl flag names on Android builds (ABSL_FLAGS_STRIP_NAMES=0) so server/tool command-line flags parse; add --local/--channel to the manual pub and --channel to sub; line-buffer their stdout; and add manual_tests/cross_host_bridge.sh which bridges a channel in both directions between two host servers or between the host and a running Android emulator. Verified both directions natively and on an arm64 emulator. --- .bazelrc | 6 + docs/android.md | 45 ++++ docs/server-architecture.md | 37 ++++ manual_tests/cross_host_bridge.sh | 237 ++++++++++++++++++++ manual_tests/pub.cc | 13 +- manual_tests/sub.cc | 7 +- server/main.cc | 23 ++ server/server.cc | 344 ++++++++++++++++++++++++------ server/server.h | 44 ++++ 9 files changed, 690 insertions(+), 66 deletions(-) create mode 100755 manual_tests/cross_host_bridge.sh diff --git a/.bazelrc b/.bazelrc index c206284..39528cc 100644 --- a/.bazelrc +++ b/.bazelrc @@ -98,6 +98,10 @@ build:android_arm64 --cpu=aarch64 build:android_arm64 --linkopt=-lc++_static build:android_arm64 --linkopt=-lc++abi build:android_arm64 --extra_toolchains=@androidndk//:all +# Abseil strips flag names on Android by default (ABSL_FLAGS_STRIP_NAMES=1), +# which breaks parsing flags by name (e.g. --socket) on the command line even +# though GetFlag() still works. Keep the names so server/tool flags work. +build:android_arm64 --copt=-DABSL_FLAGS_STRIP_NAMES=0 build:android_x86_64 --platforms=//platform/android:android_x86_64 build:android_x86_64 --action_env=ANDROID_NDK_HOME @@ -106,6 +110,8 @@ build:android_x86_64 --cpu=x86_64 build:android_x86_64 --linkopt=-lc++_static build:android_x86_64 --linkopt=-lc++abi build:android_x86_64 --extra_toolchains=@androidndk//:all +# See android_arm64 note above. +build:android_x86_64 --copt=-DABSL_FLAGS_STRIP_NAMES=0 build:android --config=android_arm64 diff --git a/docs/android.md b/docs/android.md index 37ffa31..c0688f7 100644 --- a/docs/android.md +++ b/docs/android.md @@ -305,3 +305,48 @@ adb shell subspace_java_client_test - The JNI library and Java wrapper can be included in apps via the standard AOSP module dependency mechanism. +## Bridging Between the Emulator and the Host + +A Subspace server inside the emulator can bridge channels to a server running +natively on the host, in both directions (publish on Android / subscribe on the +host, and vice versa). The emulator's user‑mode network is a NAT where only the +guest can initiate connections and UDP broadcast does not cross the boundary, so +two server features are used: + +- `--tcp_discovery` — run discovery over a single TCP connection that the guest + dials to the host (instead of UDP broadcast/unicast). See + [`server-architecture.md`](server-architecture.md) for details. +- `--bridge_advertise_address=127.0.0.1` — advertise a loopback endpoint for + bridge listeners, reached through `adb` port tunnels. + +The host and guest use **different** bridge ports so the `adb forward`/`reverse` +loopback listeners never collide with a server's own listener. With the host +acting as the discovery listener: + +```bash +# Tunnels: guest dials out to the host (reverse); host dials into the guest (forward). +adb reverse tcp:6502 tcp:6502 # discovery: guest -> host +adb reverse tcp:7100 tcp:7100 # bridge data: guest publisher -> host subscriber +adb forward tcp:7200 tcp:7200 # bridge data: host publisher -> guest subscriber + +# Host (discovery listener): +./subspace_server --socket=/tmp/subspace_host --tcp_discovery --disc_port=6502 \ + --bridge_ports=7100 --bridge_advertise_address=127.0.0.1 \ + --cleanup_filesystem=false + +# Guest (discovery connector), inside the emulator: +adb shell "/data/local/tmp/subspace_server --socket=/data/local/tmp/subspace \ + --tcp_discovery --peer_address=127.0.0.1 --peer_port=6502 \ + --bridge_ports=7200 --bridge_advertise_address=127.0.0.1" +``` + +Publishers must be created with `local=false` for their channels to bridge. + +The script `manual_tests/cross_host_bridge.sh` automates this end to end and +verifies both directions: + +```bash +manual_tests/cross_host_bridge.sh native # two servers on the host (loopback) +manual_tests/cross_host_bridge.sh emulator # host <-> running emulator +``` + diff --git a/docs/server-architecture.md b/docs/server-architecture.md index 62cdbd8..75824db 100644 --- a/docs/server-architecture.md +++ b/docs/server-architecture.md @@ -151,6 +151,43 @@ to an ephemeral TCP port or fails that bridge setup. Every 5 seconds, broadcasts an `Advertise` for all local channels so late-joining subscribers can discover them. +### TCP Unicast Discovery (across NAT / VMs) + +UDP discovery (broadcast or `--peer_address` unicast) assumes the two servers +can exchange datagrams directly and that each server can be reached on the +discovery port it advertises. That breaks when one server runs inside a NAT'd +environment such as an Android emulator or a VM, where only the NAT'd side can +initiate connections and the UDP "reply to the advertised port" assumption no +longer holds. + +`--tcp_discovery` replaces UDP discovery with a single TCP connection that +carries the same `Query`/`Advertise`/`Subscribe` messages (length‑delimited) +in both directions: + +- A server **with** `--peer_address` set **dials** the peer's `--disc_port`, + retrying until it connects (`DiscoveryConnectorCoroutine`). +- A server **without** a peer address **listens** on `--disc_port` for an + incoming discovery connection (`DiscoveryListenerCoroutine`). + +Because the handshake runs over one established connection, only the dialing +(NAT'd) side needs to reach the other, and there is no source‑port rewriting. +This also lets two servers run on the same host without contending for the UDP +discovery port. UDP broadcast discovery remains the default for the +zero‑configuration LAN case. + +### Advertising bridge listeners across NAT + +The bridge data channel is always TCP, with the transmitter (publisher side) +dialing the receiver (subscriber side) listener. When a server is NAT'd, its +listeners are only reachable through a forwarded loopback port (e.g. an +`adb forward`/`adb reverse` tunnel). `--bridge_advertise_address=IP` makes the +server advertise that address (typically `127.0.0.1`) for its bridge and +retirement listeners instead of the local interface address, and binds those +listeners to the any‑address so the forwarded loopback port reaches them. + +See `manual_tests/cross_host_bridge.sh` for a worked example that bridges a +channel in both directions between a host and an Android emulator. + ## Key Classes ``` diff --git a/manual_tests/cross_host_bridge.sh b/manual_tests/cross_host_bridge.sh new file mode 100755 index 0000000..fca73b0 --- /dev/null +++ b/manual_tests/cross_host_bridge.sh @@ -0,0 +1,237 @@ +#!/usr/bin/env bash +# Copyright 2026 David Allison +# All Rights Reserved +# See LICENSE file for licensing information. +# +# Manual test for cross-host Subspace bridging using TCP unicast discovery. +# +# It runs two Subspace servers and bridges a channel in *both* directions: +# - channel "g2h": published on server B, subscribed on server A +# - channel "h2g": published on server A, subscribed on server B +# +# Two modes are supported: +# +# native Both servers run on this host over loopback. This validates the +# TCP discovery + bridge code path with no emulator involved. +# +# emulator Server A ("host") runs natively; server B ("guest") runs inside a +# running Android emulator. Because the emulator sits behind a NAT +# where only the guest can dial out, we: +# * use TCP discovery with the guest dialing the host, +# * advertise 127.0.0.1 for every bridge listener, and +# * wire the loopback bridge ports through adb: +# adb reverse tcp:6502 -> host discovery listener +# adb reverse tcp:7100 -> host bridge receiver (g2h data) +# adb forward tcp:7200 -> guest bridge receiver (h2g data) +# +# Usage: +# manual_tests/cross_host_bridge.sh [native|emulator] +# +# Requirements for emulator mode: a booted emulator (`adb devices` shows one), +# the Android NDK configured for `--config=android_arm64`, and adb on PATH. + +set -uo pipefail + +MODE="${1:-native}" + +# Discovery + bridge ports. The host and guest use *different* bridge ports so +# the adb forward/reverse listeners never collide with a server's own listener. +DISC_PORT=6502 +HOST_BRIDGE_PORT=7100 # host's bridge receiver (g2h) +GUEST_BRIDGE_PORT=7200 # guest/connector bridge receiver (h2g) + +HOST_SOCKET=/tmp/subspace_bridge_host +PEER_SOCKET=/tmp/subspace_bridge_peer # native mode only +GUEST_SOCKET=/data/local/tmp/subspace # emulator mode only +ANDROID_TMP=/data/local/tmp + +LOGDIR="$(mktemp -d /tmp/subspace_bridge.XXXXXX)" +PIDS=() +SUB_TIME=3 # seconds to let subscribers + bridge establish +PUB_TIME=8 # seconds of publishing + +note() { printf '\n=== %s ===\n' "$*"; } +fail() { printf 'FAIL: %s\n' "$*" >&2; } + +cleanup() { + set +m + for p in "${PIDS[@]:-}"; do + kill "$p" 2>/dev/null + wait "$p" 2>/dev/null + done + pkill -f 'manual_tests/pub' 2>/dev/null + pkill -f 'manual_tests/sub' 2>/dev/null + pkill -f "subspace_server --socket=${HOST_SOCKET}" 2>/dev/null + pkill -f "subspace_server --socket=${PEER_SOCKET}" 2>/dev/null + if [[ "$MODE" == emulator ]]; then + adb shell "pkill subspace_server; pkill pub; pkill sub" 2>/dev/null + adb reverse --remove "tcp:${DISC_PORT}" 2>/dev/null + adb reverse --remove "tcp:${HOST_BRIDGE_PORT}" 2>/dev/null + adb forward --remove "tcp:${GUEST_BRIDGE_PORT}" 2>/dev/null + fi +} +trap cleanup EXIT + +# Count "Message" lines a subscriber printed, and PASS/FAIL accordingly. +check_dir() { + local label="$1" logfile="$2" + local n + n=$(grep -c 'Message' "$logfile" 2>/dev/null) || true + n=${n:-0} + if [[ "$n" -gt 0 ]]; then + printf 'PASS: %s delivered %s messages\n' "$label" "$n" + return 0 + fi + fail "$label delivered no messages" + printf ' --- %s ---\n' "$logfile" + sed -n '1,5p' "$logfile" 2>/dev/null | sed 's/^/ /' + return 1 +} + +run_native() { + note "Building host binaries" + bazelisk build //server:subspace_server //manual_tests:pub //manual_tests:sub \ + >"$LOGDIR/build.log" 2>&1 || { cat "$LOGDIR/build.log"; exit 1; } + + local SRV=bazel-bin/server/subspace_server + local PUB=bazel-bin/manual_tests/pub + local SUB=bazel-bin/manual_tests/sub + + rm -f "$HOST_SOCKET" "$PEER_SOCKET" + + note "Starting servers (TCP discovery over loopback)" + # Server A: discovery listener. + "$SRV" --socket="$HOST_SOCKET" --tcp_discovery --disc_port="$DISC_PORT" \ + --bridge_ports="$HOST_BRIDGE_PORT" --bridge_advertise_address=127.0.0.1 \ + --cleanup_filesystem=false --log_level=debug \ + >"$LOGDIR/serverA.log" 2>&1 & + PIDS+=($!) + # Server B: discovery connector (dials A). + "$SRV" --socket="$PEER_SOCKET" --tcp_discovery --peer_address=127.0.0.1 \ + --peer_port="$DISC_PORT" --bridge_ports="$GUEST_BRIDGE_PORT" \ + --bridge_advertise_address=127.0.0.1 \ + --cleanup_filesystem=false --log_level=debug \ + >"$LOGDIR/serverB.log" 2>&1 & + PIDS+=($!) + sleep 2 + + note "Starting subscribers" + "$SUB" --socket="$HOST_SOCKET" --channel=g2h >"$LOGDIR/sub_g2h.log" 2>&1 & + PIDS+=($!) + "$SUB" --socket="$PEER_SOCKET" --channel=h2g >"$LOGDIR/sub_h2g.log" 2>&1 & + PIDS+=($!) + sleep "$SUB_TIME" + + note "Publishing in both directions for ${PUB_TIME}s" + "$PUB" --socket="$PEER_SOCKET" --channel=g2h --local=false \ + --num_msgs=200 --frequency=25 "$LOGDIR/pub_g2h.log" 2>&1 & + PIDS+=($!) + "$PUB" --socket="$HOST_SOCKET" --channel=h2g --local=false \ + --num_msgs=200 --frequency=25 "$LOGDIR/pub_h2g.log" 2>&1 & + PIDS+=($!) + sleep "$PUB_TIME" + + local rc=0 + note "Results" + check_dir "g2h (server B -> server A)" "$LOGDIR/sub_g2h.log" || rc=1 + check_dir "h2g (server A -> server B)" "$LOGDIR/sub_h2g.log" || rc=1 + return $rc +} + +run_emulator() { + if ! adb get-state >/dev/null 2>&1; then + fail "no Android device/emulator detected (adb get-state). Start one first." + exit 1 + fi + + note "Building host and Android (arm64) binaries" + bazelisk build //server:subspace_server //manual_tests:pub //manual_tests:sub \ + >"$LOGDIR/build_host.log" 2>&1 || { cat "$LOGDIR/build_host.log"; exit 1; } + bazelisk build --config=android_arm64 \ + //server:subspace_server //manual_tests:pub //manual_tests:sub \ + >"$LOGDIR/build_android.log" 2>&1 || { cat "$LOGDIR/build_android.log"; exit 1; } + + # Resolve binary paths via cquery because the bazel-bin symlink points at + # whichever configuration was built last (here, the Android one). + local SRV PUB SUB + SRV=$(bazelisk cquery --output=files //server:subspace_server 2>/dev/null | tail -1) + PUB=$(bazelisk cquery --output=files //manual_tests:pub 2>/dev/null | tail -1) + SUB=$(bazelisk cquery --output=files //manual_tests:sub 2>/dev/null | tail -1) + local AOUT APUB AS + AOUT=$(bazelisk cquery --config=android_arm64 --output=files \ + //server:subspace_server 2>/dev/null | tail -1) + APUB=$(bazelisk cquery --config=android_arm64 --output=files \ + //manual_tests:pub 2>/dev/null | tail -1) + AS=$(bazelisk cquery --config=android_arm64 --output=files \ + //manual_tests:sub 2>/dev/null | tail -1) + + note "Pushing Android binaries to ${ANDROID_TMP}" + adb shell "pkill subspace_server; pkill pub; pkill sub" 2>/dev/null + adb push "$AOUT" "$ANDROID_TMP/subspace_server" >/dev/null + adb push "$APUB" "$ANDROID_TMP/pub" >/dev/null + adb push "$AS" "$ANDROID_TMP/sub" >/dev/null + adb shell "chmod 755 $ANDROID_TMP/subspace_server $ANDROID_TMP/pub $ANDROID_TMP/sub" + + note "Wiring adb port tunnels" + # Discovery: guest dials 127.0.0.1:DISC_PORT -> host discovery listener. + adb reverse "tcp:${DISC_PORT}" "tcp:${DISC_PORT}" + # g2h data: guest transmitter dials 127.0.0.1:HOST_BRIDGE_PORT -> host receiver. + adb reverse "tcp:${HOST_BRIDGE_PORT}" "tcp:${HOST_BRIDGE_PORT}" + # h2g data: host transmitter dials 127.0.0.1:GUEST_BRIDGE_PORT -> guest receiver. + adb forward "tcp:${GUEST_BRIDGE_PORT}" "tcp:${GUEST_BRIDGE_PORT}" + + rm -f "$HOST_SOCKET" + + note "Starting host server (discovery listener)" + "$SRV" --socket="$HOST_SOCKET" --tcp_discovery --disc_port="$DISC_PORT" \ + --bridge_ports="$HOST_BRIDGE_PORT" --bridge_advertise_address=127.0.0.1 \ + --cleanup_filesystem=false --log_level=debug \ + >"$LOGDIR/serverA.log" 2>&1 & + PIDS+=($!) + + note "Starting guest server in emulator (discovery connector)" + adb shell "rm -f $GUEST_SOCKET" 2>/dev/null + adb shell "cd $ANDROID_TMP && ./subspace_server --socket=$GUEST_SOCKET \ + --tcp_discovery --peer_address=127.0.0.1 --peer_port=$DISC_PORT \ + --bridge_ports=$GUEST_BRIDGE_PORT --bridge_advertise_address=127.0.0.1 \ + --cleanup_filesystem=false --log_level=debug" >"$LOGDIR/serverB.log" 2>&1 & + PIDS+=($!) + sleep 3 + + note "Starting subscribers" + # g2h: host subscribes. + "$SUB" --socket="$HOST_SOCKET" --channel=g2h >"$LOGDIR/sub_g2h.log" 2>&1 & + PIDS+=($!) + # h2g: guest subscribes. + adb shell "$ANDROID_TMP/sub --socket=$GUEST_SOCKET --channel=h2g" \ + >"$LOGDIR/sub_h2g.log" 2>&1 & + PIDS+=($!) + sleep "$SUB_TIME" + + note "Publishing in both directions for ${PUB_TIME}s" + # g2h: guest publishes. + adb shell "$ANDROID_TMP/pub --socket=$GUEST_SOCKET --channel=g2h --local=false \ + --num_msgs=200 --frequency=25 "$LOGDIR/pub_g2h.log" 2>&1 & + PIDS+=($!) + # h2g: host publishes. + "$PUB" --socket="$HOST_SOCKET" --channel=h2g --local=false \ + --num_msgs=200 --frequency=25 "$LOGDIR/pub_h2g.log" 2>&1 & + PIDS+=($!) + sleep "$PUB_TIME" + + local rc=0 + note "Results" + check_dir "g2h (guest -> host)" "$LOGDIR/sub_g2h.log" || rc=1 + check_dir "h2g (host -> guest)" "$LOGDIR/sub_h2g.log" || rc=1 + return $rc +} + +printf 'Cross-host bridge test (mode=%s, logs in %s)\n' "$MODE" "$LOGDIR" +case "$MODE" in + native) run_native; RC=$? ;; + emulator) run_emulator; RC=$? ;; + *) echo "unknown mode: $MODE (use native|emulator)"; exit 2 ;; +esac + +note "Done (logs in $LOGDIR)" +exit "$RC" diff --git a/manual_tests/pub.cc b/manual_tests/pub.cc index e69fc22..8960837 100644 --- a/manual_tests/pub.cc +++ b/manual_tests/pub.cc @@ -13,9 +13,16 @@ ABSL_FLAG(int, num_msgs, 1, "Number of messages to send"); ABSL_FLAG(double, frequency, 0, "Freqency to send at (Hz)"); ABSL_FLAG(bool, reliable, false, "Use reliable transport"); ABSL_FLAG(int, num_slots, 5, "Number of slots in channel"); +ABSL_FLAG(bool, local, true, + "Restrict the channel to the local machine. Set to false to allow " + "the channel to be bridged to other servers."); +ABSL_FLAG(std::string, channel, "test", "Channel name to publish on"); int main(int argc, char **argv) { absl::ParseCommandLine(argc, argv); + // Line-buffer stdout so progress is visible (and not lost on termination) + // when output is redirected to a file or pipe, e.g. in scripted tests. + setvbuf(stdout, nullptr, _IOLBF, 0); subspace::Client client; absl::Status init_status = client.Init(absl::GetFlag(FLAGS_socket)); @@ -26,10 +33,12 @@ int main(int argc, char **argv) { } bool reliable = absl::GetFlag(FLAGS_reliable); int num_slots = absl::GetFlag(FLAGS_num_slots); + bool local = absl::GetFlag(FLAGS_local); + std::string channel = absl::GetFlag(FLAGS_channel); absl::StatusOr pub = client.CreatePublisher( - "test", 256, num_slots, - subspace::PublisherOptions().SetLocal(true).SetReliable(reliable)); + channel, 256, num_slots, + subspace::PublisherOptions().SetLocal(local).SetReliable(reliable)); if (!pub.ok()) { fprintf(stderr, "Can't create publisher: %s\n", pub.status().ToString().c_str()); diff --git a/manual_tests/sub.cc b/manual_tests/sub.cc index 297747e..2aca698 100644 --- a/manual_tests/sub.cc +++ b/manual_tests/sub.cc @@ -11,10 +11,14 @@ ABSL_FLAG(std::string, socket, "/tmp/subspace", "Name of Unix socket to listen on"); ABSL_FLAG(bool, reliable, false, "Use reliable transport"); +ABSL_FLAG(std::string, channel, "test", "Channel name to subscribe to"); int main(int argc, char **argv) { absl::ParseCommandLine(argc, argv); signal(SIGPIPE, SIG_IGN); + // Line-buffer stdout so progress is visible (and not lost on termination) + // when output is redirected to a file or pipe, e.g. in scripted tests. + setvbuf(stdout, nullptr, _IOLBF, 0); subspace::Client client; @@ -24,9 +28,10 @@ int main(int argc, char **argv) { exit(1); } bool reliable = absl::GetFlag(FLAGS_reliable); + std::string channel = absl::GetFlag(FLAGS_channel); absl::StatusOr sub = client.CreateSubscriber( - "test", subspace::SubscriberOptions().SetReliable(reliable)); + channel, subspace::SubscriberOptions().SetReliable(reliable)); if (!sub.ok()) { fprintf(stderr, "Can't create subscriber: %s\n", sub.status().ToString().c_str()); diff --git a/server/main.cc b/server/main.cc index 3d647c3..dbe3123 100644 --- a/server/main.cc +++ b/server/main.cc @@ -37,6 +37,15 @@ ABSL_FLAG(bool, bridge_ports_fallback_ephemeral, false, ABSL_FLAG(std::string, log_level, "info", "Log level"); ABSL_FLAG(std::string, interface, "", "Discovery network interface"); ABSL_FLAG(bool, local, false, "Use local computer only"); +ABSL_FLAG(bool, tcp_discovery, false, + "Use a TCP connection for discovery instead of UDP broadcast/unicast. " + "A server with --peer_address dials it; a server without one listens " + "on --disc_port. Useful across NAT (e.g. an Android emulator/VM)."); +ABSL_FLAG(std::string, bridge_advertise_address, "", + "IP address to advertise to peers for this server's bridge " + "listeners, overriding the local interface address (e.g. 127.0.0.1 " + "reached via adb forward/reverse). Bridge listeners bind to the " + "any-address when this is set."); ABSL_FLAG(int, notify_fd, -1, "File descriptor to notify of startup"); ABSL_FLAG(std::string, machine, "", "Machine name"); @@ -148,6 +157,20 @@ int main(int argc, char **argv) { if (absl::GetFlag(FLAGS_cleanup_filesystem)) { server->SetCleanupFilesystem(true); } + if (absl::GetFlag(FLAGS_tcp_discovery)) { + server->SetTcpDiscovery(true); + } + if (const std::string &bridge_advertise = + absl::GetFlag(FLAGS_bridge_advertise_address); + !bridge_advertise.empty()) { + toolbelt::InetAddress advertise_address(bridge_advertise, 0); + if (!advertise_address.Valid()) { + fprintf(stderr, "Invalid --bridge_advertise_address value '%s'\n", + bridge_advertise.c_str()); + exit(1); + } + server->SetBridgeAdvertiseAddress(advertise_address); + } // Load the plugins. Each plugin is a name:path pair. for (const auto &p : absl::GetFlag(FLAGS_plugins)) { diff --git a/server/server.cc b/server/server.cc index 2e67646..2e6d14e 100644 --- a/server/server.cc +++ b/server/server.cc @@ -12,6 +12,7 @@ #include "toolbelt/clock.h" #include "toolbelt/hexdump.h" #include "toolbelt/sockets.h" +#include #include #include #include @@ -426,16 +427,27 @@ void Server::CreateShutdownTrigger() { shutdown_trigger_fd_ = std::move(*fd); } +toolbelt::SocketAddress Server::BridgeBindBase() const { + // When advertising a separate (e.g. forwarded loopback) address, bind to the + // any-address so the listener is reachable both on the local interface and + // via a forwarded loopback port. Otherwise bind to the local interface. + if (bridge_advertise_address_.Valid()) { + return toolbelt::InetAddress::AnyAddress(0); + } + return my_address_; +} + absl::Status Server::BindBridgeListener(toolbelt::StreamSocket &listener) { + toolbelt::SocketAddress bind_base = BridgeBindBase(); if (!bridge_port_range_.Enabled()) { - return listener.Bind(toolbelt::SocketAddress::AnyPort(my_address_), true); + return listener.Bind(toolbelt::SocketAddress::AnyPort(bind_base), true); } absl::Status last_status = absl::UnavailableError("no ports tried"); for (int port = bridge_port_range_.first_port; port <= bridge_port_range_.last_port; ++port) { absl::StatusOr addr = - BridgeAddressWithPort(my_address_, port); + BridgeAddressWithPort(bind_base, port); if (!addr.ok()) { return addr.status(); } @@ -450,7 +462,7 @@ absl::Status Server::BindBridgeListener(toolbelt::StreamSocket &listener) { } if (bridge_ports_fallback_to_ephemeral_) { - return listener.Bind(toolbelt::SocketAddress::AnyPort(my_address_), true); + return listener.Bind(toolbelt::SocketAddress::AnyPort(bind_base), true); } return absl::UnavailableError(absl::StrFormat( @@ -818,35 +830,51 @@ absl::Status Server::Run() { if (absl::Status s = FindIPAddresses(interface_, ip_addr, bcast_addr, logger_); !s.ok()) { - return s; - } - logger_.Log(toolbelt::LogLevel::kInfo, "IPv4: %s, Broadcast: %s", - ip_addr.ToString().c_str(), bcast_addr.ToString().c_str()); - - my_address_ = ip_addr; - // Bind the discovery transmitter to the network and any free - // port on the requested interface. - if (absl::Status s = discovery_transmitter_.Bind(ip_addr); !s.ok()) { - return s; + // TCP discovery does not need a broadcast-capable interface, and when a + // bridge advertise address is configured we don't need the local + // interface address either. Treat the failure as non-fatal in that + // case so loopback/NAT setups (e.g. an Android emulator) can run. + if (tcp_discovery_ && bridge_advertise_address_.Valid()) { + logger_.Log(toolbelt::LogLevel::kWarning, + "Could not determine local interface address (%s); " + "continuing with TCP discovery and advertised bridge " + "address %s", + s.ToString().c_str(), + bridge_advertise_address_.ToString().c_str()); + } else { + return s; + } + } else { + logger_.Log(toolbelt::LogLevel::kInfo, "IPv4: %s, Broadcast: %s", + ip_addr.ToString().c_str(), bcast_addr.ToString().c_str()); + my_address_ = ip_addr; } - if (peer_address_.Valid()) { - // If peer address is supplied, use it. - discovery_addr_ = peer_address_; - } else { - // Otherwise use the broadcast address. - discovery_addr_ = bcast_addr; - discovery_addr_.SetPort(discovery_peer_port_); - if (absl::Status s = discovery_transmitter_.SetBroadcast(); !s.ok()) { + if (!tcp_discovery_) { + // Bind the discovery transmitter to the network and any free + // port on the requested interface. + if (absl::Status s = discovery_transmitter_.Bind(ip_addr); !s.ok()) { return s; } - } - // Open the discovery receiver socket. - if (absl::Status s = discovery_receiver_.Bind( - toolbelt::InetAddress::AnyAddress(discovery_port_)); - !s.ok()) { - return s; + if (peer_address_.Valid()) { + // If peer address is supplied, use it. + discovery_addr_ = peer_address_; + } else { + // Otherwise use the broadcast address. + discovery_addr_ = bcast_addr; + discovery_addr_.SetPort(discovery_peer_port_); + if (absl::Status s = discovery_transmitter_.SetBroadcast(); !s.ok()) { + return s; + } + } + + // Open the discovery receiver socket. + if (absl::Status s = discovery_receiver_.Bind( + toolbelt::InetAddress::AnyAddress(discovery_port_)); + !s.ok()) { + return s; + } } } @@ -875,10 +903,26 @@ absl::Status Server::Run() { } if (!local_) { - // Start the discovery receiver coroutine. - scheduler_.Spawn([this]() { DiscoveryReceiverCoroutine(); }, - {.name = "Discovery receiver", - .interrupt_fd = shutdown_trigger_fd_.GetPollFd().Fd()}); + if (tcp_discovery_) { + // TCP discovery: a server with a peer address dials it; otherwise we + // listen for an incoming discovery connection. + if (peer_address_.Valid()) { + scheduler_.Spawn( + [this]() { DiscoveryConnectorCoroutine(); }, + {.name = "Discovery connector", + .interrupt_fd = shutdown_trigger_fd_.GetPollFd().Fd()}); + } else { + scheduler_.Spawn( + [this]() { DiscoveryListenerCoroutine(); }, + {.name = "Discovery listener", + .interrupt_fd = shutdown_trigger_fd_.GetPollFd().Fd()}); + } + } else { + // Start the discovery receiver coroutine. + scheduler_.Spawn([this]() { DiscoveryReceiverCoroutine(); }, + {.name = "Discovery receiver", + .interrupt_fd = shutdown_trigger_fd_.GetPollFd().Fd()}); + } // Start the gratuitous Advertiser coroutine. This sends Advertise messages // every 5 seconds. @@ -1311,23 +1355,14 @@ void Server::SendQuery(const std::string &channel_name) { logger_.Log(toolbelt::LogLevel::kDebug, "Sending Query %s with discovery port %d", channel_name.c_str(), discovery_port_); - char buffer[kDiscoveryBufferSize]; Discovery disc; disc.set_server_id(server_id_); disc.set_port(discovery_port_); auto *query = disc.mutable_query(); query->set_channel_name(channel_name); - bool ok = disc.SerializeToArray(buffer, sizeof(buffer)); - if (!ok) { - logger_.Log(toolbelt::LogLevel::kError, - "Failed to serialize Query message"); - return; - } - int64_t length = disc.ByteSizeLong(); - absl::Status s = - discovery_transmitter_.SendTo(discovery_addr_, buffer, length); - if (!s.ok()) { + if (absl::Status s = TransmitDiscovery(disc, discovery_addr_); + !s.ok()) { logger_.Log(toolbelt::LogLevel::kError, "Failed to send Query: %s", s.ToString().c_str()); return; @@ -1348,7 +1383,6 @@ void Server::SendAdvertise(const std::string &channel_name, bool reliable) { logger_.Log(toolbelt::LogLevel::kDebug, "Sending Advertise %s with discovery port %d", channel_name.c_str(), discovery_port_); - char buffer[kDiscoveryBufferSize]; Discovery disc; disc.set_server_id(server_id_); disc.set_port(discovery_port_); @@ -1359,16 +1393,8 @@ void Server::SendAdvertise(const std::string &channel_name, bool reliable) { advertise->set_split_buffers( ChannelUsesSplitBuffersOverBridge(it->second.get())); } - bool ok = disc.SerializeToArray(buffer, sizeof(buffer)); - if (!ok) { - logger_.Log(toolbelt::LogLevel::kError, - "Failed to serialize Advertise message"); - return; - } - int64_t length = disc.ByteSizeLong(); - absl::Status s = - discovery_transmitter_.SendTo(discovery_addr_, buffer, length); - if (!s.ok()) { + if (absl::Status s = TransmitDiscovery(disc, discovery_addr_); + !s.ok()) { logger_.Log(toolbelt::LogLevel::kError, "Failed to send Advertise: %s", s.ToString().c_str()); return; @@ -1378,6 +1404,197 @@ void Server::SendAdvertise(const std::string &channel_name, bool reliable) { .interrupt_fd = shutdown_trigger_fd_.GetPollFd().Fd()}); } +absl::Status Server::TransmitDiscovery(const Discovery &disc, + const toolbelt::InetAddress &udp_dest) { + if (tcp_discovery_) { + int64_t length = disc.ByteSizeLong(); + // SendMessage writes a 4-byte length prefix immediately before the + // payload, so reserve room for it at the front of the buffer. + std::vector buffer(sizeof(int32_t) + length); + if (!disc.SerializeToArray(buffer.data() + sizeof(int32_t), + static_cast(length))) { + return absl::InternalError("Failed to serialize discovery message"); + } + // Copy the connection list so a send that drops a connection can't + // invalidate the iterator. Writes are blocking (no coroutine yield) so + // messages from different coroutines can't interleave on a connection. + auto connections = discovery_connections_; + for (const auto &conn : connections) { + absl::StatusOr n = + conn->socket->SendMessage(buffer.data() + sizeof(int32_t), length); + if (!n.ok()) { + logger_.Log(toolbelt::LogLevel::kError, + "Failed to send discovery message to %s: %s", + conn->remote.ToString().c_str(), n.status().ToString().c_str()); + } + } + return absl::OkStatus(); + } + + char buffer[kDiscoveryBufferSize]; + if (!disc.SerializeToArray(buffer, sizeof(buffer))) { + return absl::InternalError("Failed to serialize discovery message"); + } + return discovery_transmitter_.SendTo(udp_dest, buffer, disc.ByteSizeLong()); +} + +void Server::AddDiscoveryConnection(std::shared_ptr conn) { + discovery_connections_.push_back(std::move(conn)); +} + +void Server::RemoveDiscoveryConnection( + const std::shared_ptr &conn) { + auto it = std::find(discovery_connections_.begin(), + discovery_connections_.end(), conn); + if (it != discovery_connections_.end()) { + discovery_connections_.erase(it); + } +} + +void Server::AdvertiseAllChannels() { + for (auto &[name, ch] : channels_) { + if (!ch->IsLocal() && !ch->IsBridgePublisher()) { + SendAdvertise(name, ch->IsReliable()); + } + } +} + +// Reads length-delimited Discovery protobufs from a single TCP discovery +// connection and dispatches them to the same handlers used by UDP discovery. +// Returns when the connection is closed or fails. +void Server::DiscoveryConnectionReaderLoop( + std::shared_ptr conn) { + char buffer[kDiscoveryBufferSize]; + for (;;) { + absl::StatusOr n = + conn->socket->ReceiveMessage(buffer, sizeof(buffer), co::self); + if (!n.ok()) { + logger_.Log(toolbelt::LogLevel::kDebug, + "Discovery connection to %s closed: %s", + conn->remote.ToString().c_str(), n.status().ToString().c_str()); + return; + } + if (*n == 0) { + logger_.Log(toolbelt::LogLevel::kDebug, + "Discovery connection to %s closed by peer", + conn->remote.ToString().c_str()); + return; + } + Discovery disc; + if (!disc.ParseFromArray(buffer, static_cast(*n))) { + logger_.Log(toolbelt::LogLevel::kError, + "Failed to parse discovery message"); + continue; + } + if (disc.server_id() == server_id_) { + continue; + } + // Build the peer address used as a bridge dedup key, mirroring the UDP + // path where the sender port is replaced by the advertised discovery port. + toolbelt::InetAddress sender = conn->remote; + sender.SetPort(disc.port()); + logger_.Log(toolbelt::LogLevel::kDebug, "Discovery message from %s\n%s", + sender.ToString().c_str(), disc.DebugString().c_str()); + switch (disc.data_case()) { + case Discovery::kQuery: + IncomingQuery(disc.query(), sender); + break; + case Discovery::kAdvertise: + IncomingAdvertise(disc.advertise(), sender, disc.server_id()); + break; + case Discovery::kSubscribe: + IncomingSubscribe(disc.subscribe(), sender, disc.server_id()); + break; + default: + break; + } + } +} + +// Listens for an incoming TCP discovery connection and serves each one with a +// reader coroutine. Used by the server that does not have a peer address. +void Server::DiscoveryListenerCoroutine() { + toolbelt::StreamSocket listener; + if (absl::Status s = listener.Bind( + toolbelt::InetAddress::AnyAddress(discovery_port_), true); + !s.ok()) { + logger_.Log(toolbelt::LogLevel::kError, + "Failed to bind TCP discovery listener on port %d: %s", + discovery_port_, s.ToString().c_str()); + return; + } + logger_.Log(toolbelt::LogLevel::kInfo, + "Listening for TCP discovery connections on port %d", + discovery_port_); + for (;;) { + absl::StatusOr incoming = listener.Accept(co::self); + if (!incoming.ok()) { + if (shutting_down_) { + return; + } + logger_.Log(toolbelt::LogLevel::kError, + "Failed to accept discovery connection: %s", + incoming.status().ToString().c_str()); + continue; + } + auto conn = std::make_shared(); + conn->socket = + std::make_shared(std::move(*incoming)); + if (absl::StatusOr peer = + conn->socket->GetPeerName(); + peer.ok() && peer->Type() == toolbelt::SocketAddress::kAddressInet) { + conn->remote = peer->GetInetAddress(); + } + logger_.Log(toolbelt::LogLevel::kInfo, + "Accepted TCP discovery connection from %s", + conn->remote.ToString().c_str()); + AddDiscoveryConnection(conn); + // Advertise our channels right away so the peer can bridge without waiting + // for the next gratuitous advertise cycle. + AdvertiseAllChannels(); + scheduler_.Spawn( + [this, conn]() { + DiscoveryConnectionReaderLoop(conn); + RemoveDiscoveryConnection(conn); + }, + {.name = "Discovery reader", + .interrupt_fd = shutdown_trigger_fd_.GetPollFd().Fd()}); + } +} + +// Dials the configured peer for TCP discovery, retrying on failure, and serves +// the connection inline. Used by the server that has a peer address. +void Server::DiscoveryConnectorCoroutine() { + constexpr int kRetrySecs = 1; + for (;;) { + if (shutting_down_) { + return; + } + auto socket = std::make_shared(); + if (absl::Status s = socket->Connect(peer_address_); !s.ok()) { + logger_.Log(toolbelt::LogLevel::kDebug, + "TCP discovery connect to %s failed: %s; retrying", + peer_address_.ToString().c_str(), s.ToString().c_str()); + co::Sleep(kRetrySecs); + continue; + } + auto conn = std::make_shared(); + conn->socket = socket; + conn->remote = peer_address_; + logger_.Log(toolbelt::LogLevel::kInfo, + "Connected TCP discovery to %s", + peer_address_.ToString().c_str()); + AddDiscoveryConnection(conn); + AdvertiseAllChannels(); + DiscoveryConnectionReaderLoop(conn); + RemoveDiscoveryConnection(conn); + if (shutting_down_) { + return; + } + co::Sleep(kRetrySecs); + } +} + // This coroutine receives discovery messages over UDP. void Server::DiscoveryReceiverCoroutine() { char buffer[kDiscoveryBufferSize]; @@ -1489,7 +1706,9 @@ void Server::BridgeTransmitterCoroutine(ServerChannel *channel, auto *ret_addr = subscribed.mutable_retirement_socket(); switch (retirement_addr.Type()) { case toolbelt::SocketAddress::kAddressInet: { - in_addr ip_addr = retirement_addr.GetInetAddress().IpAddress(); + in_addr ip_addr = bridge_advertise_address_.Valid() + ? bridge_advertise_address_.IpAddress() + : retirement_addr.GetInetAddress().IpAddress(); ret_addr->set_address(&ip_addr, sizeof(ip_addr)); break; } @@ -1739,8 +1958,11 @@ Server::SendSubscribeMessage(const std::string &channel_name, bool reliable, auto *sub_addr = sub->mutable_receiver(); switch (receiver_addr.Type()) { case toolbelt::SocketAddress::kAddressInet: { - // IPv4 address. - in_addr ip_addr = receiver_addr.GetInetAddress().IpAddress(); + // IPv4 address. Advertise the configured bridge address if set, so a + // NAT'd peer can reach us via a forwarded loopback endpoint. + in_addr ip_addr = bridge_advertise_address_.Valid() + ? bridge_advertise_address_.IpAddress() + : receiver_addr.GetInetAddress().IpAddress(); sub_addr->set_address(&ip_addr, sizeof(ip_addr)); break; } @@ -1757,15 +1979,11 @@ Server::SendSubscribeMessage(const std::string &channel_name, bool reliable, } sub_addr->set_port(receiver_addr.Port()); - bool ok = disc.SerializeToArray(buffer, static_cast(buffer_size)); - if (!ok) { - return absl::InternalError("Failed to serialize subscribe message"); - } - int64_t length = disc.ByteSizeLong(); + (void)buffer; + (void)buffer_size; logger_.Log(toolbelt::LogLevel::kDebug, "Sending subscribe to %s: %s", publisher.ToString().c_str(), disc.DebugString().c_str()); - absl::Status s = - discovery_transmitter_.SendTo(publisher, buffer, length, co::self); + absl::Status s = TransmitDiscovery(disc, publisher); if (!s.ok()) { return absl::InternalError( absl::StrFormat("Failed to send subscribe: %s", s.ToString())); diff --git a/server/server.h b/server/server.h index 8695a64..4f42ac1 100644 --- a/server/server.h +++ b/server/server.h @@ -21,6 +21,7 @@ #include "toolbelt/clock.h" #include "toolbelt/fd.h" #include "toolbelt/logging.h" +#include "toolbelt/sockets.h" #include "toolbelt/triggerfd.h" #include #include @@ -113,6 +114,23 @@ class Server { void SetCleanupFilesystem(bool v) { cleanup_filesystem_ = v; } + // Use a TCP connection (instead of UDP broadcast/unicast) for discovery. + // This is useful when the two servers cannot exchange UDP datagrams + // directly, for example when one of them runs inside a NAT'd virtual + // machine or Android emulator. When enabled, a server with a peer address + // configured dials the peer; a server without one listens for an incoming + // discovery connection. + void SetTcpDiscovery(bool v) { tcp_discovery_ = v; } + + // Address to advertise to peers for this server's bridge (and retirement) + // listeners, overriding the local interface address. This lets a NAT'd + // server advertise a loopback/forwarded endpoint (e.g. 127.0.0.1 reached + // via `adb forward`/`adb reverse`). When set, bridge listeners bind to the + // any-address so the forwarded loopback port reaches them. + void SetBridgeAdvertiseAddress(const toolbelt::InetAddress &addr) { + bridge_advertise_address_ = addr; + } + void CleanupFilesystem(); void CleanupAfterSession(); @@ -159,6 +177,15 @@ class Server { friend class VirtualChannel; static constexpr size_t kDiscoveryBufferSize = 1024; + // A single TCP discovery connection to a peer server. Used only when + // tcp_discovery_ is enabled. + struct DiscoveryConnection { + std::shared_ptr socket; + // Remote address of the peer (without the discovery port, which is taken + // from each received message), used as a stable key for bridge dedup. + toolbelt::InetAddress remote; + }; + struct Plugin { Plugin(const std::string &n, void *h, std::unique_ptr i) : name(n), handle(h), interface(std::move(i)) {} @@ -187,6 +214,20 @@ class Server { void SendChannelDirectory(); void StatisticsCoroutine(); void DiscoveryReceiverCoroutine(); + void DiscoveryListenerCoroutine(); + void DiscoveryConnectorCoroutine(); + void DiscoveryConnectionReaderLoop(std::shared_ptr conn); + void AddDiscoveryConnection(std::shared_ptr conn); + void + RemoveDiscoveryConnection(const std::shared_ptr &conn); + void AdvertiseAllChannels(); + // Send a discovery message to peers. In TCP mode it is written to every + // active discovery connection; in UDP mode it is sent to udp_dest. + absl::Status TransmitDiscovery(const Discovery &disc, + const toolbelt::InetAddress &udp_dest); + // The address bridge listeners bind to: the any-address when a bridge + // advertise address is configured, otherwise the local interface address. + toolbelt::SocketAddress BridgeBindBase() const; void PublisherCoroutine(); void SendQuery(const std::string &channel_name); void SendAdvertise(const std::string &channel_name, bool reliable); @@ -250,6 +291,9 @@ class Server { int discovery_port_; int discovery_peer_port_; bool local_; + bool tcp_discovery_ = false; + toolbelt::InetAddress bridge_advertise_address_; + std::vector> discovery_connections_; toolbelt::FileDescriptor notify_fd_; // Atomic only because of testing. From 026f3250dfb6aef6e1b91d3daa221153e1fa3718 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Fri, 29 May 2026 16:03:17 -0700 Subject: [PATCH 16/19] Remove copyright from script --- manual_tests/cross_host_bridge.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/manual_tests/cross_host_bridge.sh b/manual_tests/cross_host_bridge.sh index fca73b0..c03aba3 100755 --- a/manual_tests/cross_host_bridge.sh +++ b/manual_tests/cross_host_bridge.sh @@ -1,7 +1,4 @@ #!/usr/bin/env bash -# Copyright 2026 David Allison -# All Rights Reserved -# See LICENSE file for licensing information. # # Manual test for cross-host Subspace bridging using TCP unicast discovery. # From 68ac2ffdad4056a26222888fbfd1018fde7df312 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Fri, 29 May 2026 16:06:07 -0700 Subject: [PATCH 17/19] Document cross-computer discovery options Add a README section covering UDP broadcast/unicast and the new TCP unicast discovery, the relevant server flags, --bridge_advertise_address, and the manual_tests/cross_host_bridge.sh cross-computer test. Link the Android guide. --- README.md | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c2df25..7f41dee 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ It has the following features: 1. Ability to read the next or newest message in a channel. 1. File-descriptor-based event triggers. 1. Optional split payload buffers for external allocators and memory pools. -1. Automatic UDP discovery and TCP bridging of channels between servers. +1. Automatic UDP discovery and TCP bridging of channels between servers, plus optional TCP unicast discovery for bridging across NAT/VMs/emulators. 1. Shadow process for crash recovery -- the server can restart and resume without losing shared memory state. 1. Shared and weak pointers for message references. 1. Ports to MacOS, Linux, QNX and Android, for ARM64 and x86_64. @@ -45,6 +45,7 @@ See the file docs/subspace.pdf for full documentation. Additional documentation - [Server Architecture](docs/server-architecture.md) - [Rust Client](docs/rust-client.md) - [Shadow Process (Crash Recovery)](docs/shadow-process.md) +- [Running Subspace on Android](docs/android.md) # Building @@ -1654,6 +1655,71 @@ scheduler.Run(); When using coroutines, `Wait()` operations will yield instead of blocking the thread. +## Cross-Computer Bridging and Discovery + +A channel published on one server can be transparently mirrored to subscribers +on another server. Servers find each other through *discovery*, then move +message data over a TCP *bridge*. Discovery is only active when the server is +**not** started with `--local`, and a channel is only bridged when its +publisher is created with `local = false` (`PublisherOptions::SetLocal(false)`). + +### Discovery modes + +| Mode | How to enable | When to use | +|------|---------------|-------------| +| UDP broadcast (default) | nothing extra | Servers on the same LAN/subnet; zero configuration. | +| UDP unicast | `--peer_address=HOST` | A specific peer is known but broadcast is undesirable/unavailable. | +| TCP unicast | `--tcp_discovery` | Peers that cannot exchange UDP datagrams directly, e.g. across a NAT, a VM, or an Android emulator. | + +Common discovery/bridge flags: + +| Flag | Default | Description | +|------|---------|-------------| +| `--local` | `false` | Disable all network discovery/bridging (local machine only). | +| `--disc_port` | `6502` | Discovery port (UDP, or TCP listen port with `--tcp_discovery`). | +| `--peer_port` | `6502` | Peer discovery port to send/connect to. | +| `--peer_address` | `""` | Peer host/IP. Unicast UDP, or the dial target with `--tcp_discovery`. | +| `--interface` | `""` | Network interface for discovery (auto-detected if empty). | +| `--tcp_discovery` | `false` | Run discovery over a single TCP connection instead of UDP. | +| `--bridge_advertise_address` | `""` | Address to advertise for this server's bridge listeners (e.g. `127.0.0.1` for a forwarded loopback endpoint). | +| `--bridge_ports` | `""` | Fixed TCP bridge port or inclusive range `START-END` (default: ephemeral per bridge). | + +### TCP unicast discovery (across NAT / VMs / emulators) + +UDP discovery assumes peers can exchange datagrams directly and be reached on +the port they advertise. That fails behind a NAT (such as an Android emulator), +where only one side can initiate connections. With `--tcp_discovery` the +handshake runs over a single TCP connection: + +- the server **with** `--peer_address` set **dials** the peer's `--disc_port`; +- the server **without** one **listens** on `--disc_port`. + +Because only the dialing (NAT'd) side needs to reach the other, this works +where UDP cannot. When a server's listeners are only reachable through a +forwarded loopback port (e.g. an `adb forward`/`adb reverse` tunnel), add +`--bridge_advertise_address=127.0.0.1` so it advertises that endpoint and binds +its bridge listeners to the any-address. See +[Server Architecture](docs/server-architecture.md) and, for the emulator case, +[Running Subspace on Android](docs/android.md). + +### Manual cross-computer test + +`manual_tests/cross_host_bridge.sh` brings up two servers and bridges a channel +in **both** directions (publish on A / subscribe on B and vice versa), then +checks that messages arrive: + +```bash +# Two servers on this host over loopback (validates the TCP discovery path): +manual_tests/cross_host_bridge.sh native + +# This host bridged to a running Android emulator (sets up the adb tunnels): +manual_tests/cross_host_bridge.sh emulator +``` + +The `manual_tests/pub` tool takes `--local=false` and `--channel=NAME`, and +`manual_tests/sub` takes `--channel=NAME`, so you can also drive bridging by +hand against servers on two different computers. + ## Shadow Server (Crash Recovery) Subspace supports a **shadow process** that mirrors the server's channel, From c37b33885602ebe6def6d95f7beeaee53c5bc16f Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Fri, 29 May 2026 16:29:50 -0700 Subject: [PATCH 18/19] Store discovery connections in a flat_hash_set The discovery connection list is an unordered collection keyed by connection identity with add/remove/iterate semantics, so a flat_hash_set of shared_ptr fits better than a vector (O(1) removal, no linear scan). --- server/server.cc | 9 ++------- server/server.h | 3 ++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/server/server.cc b/server/server.cc index 2e6d14e..6e6828c 100644 --- a/server/server.cc +++ b/server/server.cc @@ -12,7 +12,6 @@ #include "toolbelt/clock.h" #include "toolbelt/hexdump.h" #include "toolbelt/sockets.h" -#include #include #include #include @@ -1439,16 +1438,12 @@ absl::Status Server::TransmitDiscovery(const Discovery &disc, } void Server::AddDiscoveryConnection(std::shared_ptr conn) { - discovery_connections_.push_back(std::move(conn)); + discovery_connections_.insert(std::move(conn)); } void Server::RemoveDiscoveryConnection( const std::shared_ptr &conn) { - auto it = std::find(discovery_connections_.begin(), - discovery_connections_.end(), conn); - if (it != discovery_connections_.end()) { - discovery_connections_.erase(it); - } + discovery_connections_.erase(conn); } void Server::AdvertiseAllChannels() { diff --git a/server/server.h b/server/server.h index 4f42ac1..503ee84 100644 --- a/server/server.h +++ b/server/server.h @@ -293,7 +293,8 @@ class Server { bool local_; bool tcp_discovery_ = false; toolbelt::InetAddress bridge_advertise_address_; - std::vector> discovery_connections_; + absl::flat_hash_set> + discovery_connections_; toolbelt::FileDescriptor notify_fd_; // Atomic only because of testing. From 319d8a5fd98f069bc2a1800e425db0904d9d5524 Mon Sep 17 00:00:00 2001 From: Dave Allison Date: Fri, 29 May 2026 16:42:29 -0700 Subject: [PATCH 19/19] Store client buffers in a nested flat_hash_map Key the registry by (session_id, buffer_index) and (slot_id, is_prefix) so register, find, and unregister are O(1) average instead of linear scans. Replace the ClientBuffers() vector accessor with ForEachClientBuffer() and NumClientBuffers(). --- server/server.cc | 4 +- server/server_channel.cc | 48 ++++++++++---------- server/server_channel.h | 96 ++++++++++++++++++++++++++-------------- shadow/shadow_test.cc | 2 +- 4 files changed, 91 insertions(+), 59 deletions(-) diff --git a/server/server.cc b/server/server.cc index 6e6828c..77e7f4f 100644 --- a/server/server.cc +++ b/server/server.cc @@ -767,9 +767,9 @@ absl::Status Server::Run() { if (recovered) { for (auto &[name, ch] : channels_) { shadow->SendCreateChannel(ch.get()); - for (const RegisteredClientBuffer &buffer : ch->ClientBuffers()) { + ch->ForEachClientBuffer([&](const RegisteredClientBuffer &buffer) { shadow->SendRegisterClientBuffer(buffer.metadata, buffer.fd); - } + }); for (auto &[uid, user] : ch->GetUsers()) { if (user == nullptr) { continue; diff --git a/server/server_channel.cc b/server/server_channel.cc index 9edf262..1ca8094 100644 --- a/server/server_channel.cc +++ b/server/server_channel.cc @@ -189,30 +189,30 @@ void ServerChannel::RemoveBuffer(uint64_t session_id, Server *server) { } for (int i = 0; i < ccb_->num_buffers; i++) { std::string filename = BufferSharedMemoryName(session_id, i); - for (const RegisteredClientBuffer &buffer : client_buffers_) { - const ClientBufferHandleMetadata &metadata = buffer.metadata; - if (metadata.session_id != session_id || - metadata.buffer_index != static_cast(i)) { - continue; - } - bool plugin_freed = false; - if (server != nullptr) { - absl::StatusOr freed = - server->FreeClientBufferWithPlugins(metadata); - if (freed.ok()) { - plugin_freed = *freed; + auto group = client_buffers_.find( + ClientBufferGroupKey{session_id, static_cast(i)}); + if (group != client_buffers_.end()) { + for (const auto &[slot, buffer] : group->second) { + const ClientBufferHandleMetadata &metadata = buffer.metadata; + bool plugin_freed = false; + if (server != nullptr) { + absl::StatusOr freed = + server->FreeClientBufferWithPlugins(metadata); + if (freed.ok()) { + plugin_freed = *freed; + } } - } - if (!plugin_freed && !metadata.object_name.empty()) { + if (!plugin_freed && !metadata.object_name.empty()) { #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_ANDROID - // Anonymous fd-backed Android buffers are released when the server's - // registered fd is closed. + // Anonymous fd-backed Android buffers are released when the server's + // registered fd is closed. #else - (void)shm_unlink(metadata.object_name.c_str()); + (void)shm_unlink(metadata.object_name.c_str()); #endif - } - if (!metadata.shadow_file.empty()) { - (void)remove(metadata.shadow_file.c_str()); + } + if (!metadata.shadow_file.empty()) { + (void)remove(metadata.shadow_file.c_str()); + } } } #if SUBSPACE_SHMEM_MODE == SUBSPACE_SHMEM_MODE_POSIX @@ -237,17 +237,17 @@ uint64_t ServerChannel::GetVirtualMemoryUsage() const { } uint64_t split_buffer_size = 0; - for (const RegisteredClientBuffer &buffer : client_buffers_) { + ForEachClientBuffer([&](const RegisteredClientBuffer &buffer) { const ClientBufferHandleMetadata &metadata = buffer.metadata; if (metadata.buffer_index >= static_cast(ccb_->num_buffers)) { - continue; + return; } if (bcb_->refs[metadata.buffer_index].load(std::memory_order_relaxed) <= 0) { - continue; + return; } split_buffer_size += metadata.allocation_size; - } + }); if (split_buffer_size == 0) { return Channel::GetVirtualMemoryUsage(); diff --git a/server/server_channel.h b/server/server_channel.h index 56519b7..f72a10d 100644 --- a/server/server_channel.h +++ b/server/server_channel.h @@ -163,6 +163,39 @@ template inline H AbslHashValue(H h, const ChannelTransmitter &a) { return H::combine(std::move(addr_hash), a.reliable_); } +// Identifies the group of client buffers that share a (session, buffer) +// pairing. This is the key used for the partial-key lookups performed by +// FindClientBuffers and UnregisterClientBuffer. +struct ClientBufferGroupKey { + uint64_t session_id; + uint32_t buffer_index; + + bool operator==(const ClientBufferGroupKey &other) const { + return session_id == other.session_id && + buffer_index == other.buffer_index; + } + + template + friend H AbslHashValue(H h, const ClientBufferGroupKey &k) { + return H::combine(std::move(h), k.session_id, k.buffer_index); + } +}; + +// Identifies a single client buffer within a group. +struct ClientBufferSlotKey { + uint32_t slot_id; + bool is_prefix; + + bool operator==(const ClientBufferSlotKey &other) const { + return slot_id == other.slot_id && is_prefix == other.is_prefix; + } + + template + friend H AbslHashValue(H h, const ClientBufferSlotKey &k) { + return H::combine(std::move(h), k.slot_id, k.is_prefix); + } +}; + // This is a channel maintained by the server. The server creates the shared // memory for the channel and distributes the file descriptor associated with // it. @@ -274,47 +307,43 @@ class ServerChannel : public Channel { virtual void RemoveBuffer(uint64_t session_id, Server *server = nullptr); void RegisterClientBuffer(ClientBufferHandleMetadata metadata, toolbelt::FileDescriptor fd = {}) { - auto existing = - std::find_if(client_buffers_.begin(), client_buffers_.end(), - [&metadata](const RegisteredClientBuffer &buffer) { - return buffer.metadata.session_id == - metadata.session_id && - buffer.metadata.buffer_index == - metadata.buffer_index && - buffer.metadata.slot_id == metadata.slot_id && - buffer.metadata.is_prefix == metadata.is_prefix; - }); - RegisteredClientBuffer buffer{.metadata = std::move(metadata), - .fd = std::move(fd)}; - if (existing != client_buffers_.end()) { - *existing = std::move(buffer); - return; + ClientBufferGroupKey group{metadata.session_id, metadata.buffer_index}; + ClientBufferSlotKey slot{metadata.slot_id, metadata.is_prefix}; + client_buffers_[group][slot] = RegisteredClientBuffer{ + .metadata = std::move(metadata), .fd = std::move(fd)}; + } + // Invokes fn(const RegisteredClientBuffer&) for every registered buffer. The + // iteration order is unspecified. + template void ForEachClientBuffer(F &&fn) const { + for (const auto &[group, slots] : client_buffers_) { + for (const auto &[slot, buffer] : slots) { + fn(buffer); + } } - client_buffers_.push_back(std::move(buffer)); } - const std::vector &ClientBuffers() const { - return client_buffers_; + size_t NumClientBuffers() const { + size_t n = 0; + for (const auto &[group, slots] : client_buffers_) { + n += slots.size(); + } + return n; } std::vector FindClientBuffers(uint64_t session_id, uint32_t buffer_index) const { std::vector result; - for (const auto &buffer : client_buffers_) { - if (buffer.metadata.session_id == session_id && - buffer.metadata.buffer_index == buffer_index) { - result.push_back(&buffer); - } + auto it = + client_buffers_.find(ClientBufferGroupKey{session_id, buffer_index}); + if (it == client_buffers_.end()) { + return result; + } + result.reserve(it->second.size()); + for (const auto &[slot, buffer] : it->second) { + result.push_back(&buffer); } return result; } void UnregisterClientBuffer(uint64_t session_id, uint32_t buffer_index) { - client_buffers_.erase( - std::remove_if(client_buffers_.begin(), client_buffers_.end(), - [session_id, buffer_index]( - const RegisteredClientBuffer &buffer) { - return buffer.metadata.session_id == session_id && - buffer.metadata.buffer_index == buffer_index; - }), - client_buffers_.end()); + client_buffers_.erase(ClientBufferGroupKey{session_id, buffer_index}); } // This is true if all publishers are bridge publishers. bool IsBridgePublisher() const; @@ -405,7 +434,10 @@ class ServerChannel : public Channel { absl::flat_hash_map> users_; toolbelt::BitSet user_ids_; absl::flat_hash_map bridged_publishers_; - std::vector client_buffers_; + absl::flat_hash_map> + client_buffers_; SharedMemoryFds shared_memory_fds_; bool is_virtual_ = false; bool skip_cleanup_ = false; diff --git a/shadow/shadow_test.cc b/shadow/shadow_test.cc index 8d1ccb1..7bf7ff1 100644 --- a/shadow/shadow_test.cc +++ b/shadow/shadow_test.cc @@ -601,7 +601,7 @@ TEST_F(ShadowRecoveryTest, ServerRecoversSplitBufferStateFromShadow) { auto *channel = recovered_channels.at("shadow_split_buffers").get(); ASSERT_TRUE(channel->HasSplitBufferOptions()); EXPECT_TRUE(channel->GetSplitBufferOptions().use_split_buffers); - EXPECT_EQ(channel->ClientBuffers().size(), 5u); + EXPECT_EQ(channel->NumClientBuffers(), 5u); EXPECT_EQ(server_->GetSessionId(), old_session_id); StopServer();