diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 711e26c9..a794f5dc 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -115,7 +115,7 @@ jobs: strategy: matrix: config: - - {os: ubuntu-20.04, c: gcc-8, cpp: g++-8, flags: "-Wno-lto-type-mismatch"} + - {os: ubuntu-20.04, c: gcc-7, cpp: g++-7, flags: "-Wno-lto-type-mismatch"} - {os: ubuntu-20.04, c: gcc-11, cpp: g++-11, flags: ""} - {os: ubuntu-22.04, c: gcc-12, cpp: g++-12, flags: ""} @@ -579,7 +579,7 @@ jobs: build-freebsd: - timeout-minutes: 120 + timeout-minutes: 75 runs-on: ${{ matrix.os.host }} strategy: @@ -647,7 +647,7 @@ jobs: build-openbsd: - timeout-minutes: 120 + timeout-minutes: 75 runs-on: ${{ matrix.os.host }} strategy: diff --git a/.gitmodules b/.gitmodules index 2257deae..1c813c17 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,6 +25,6 @@ [submodule "external/src/miniupnp"] path = external/src/miniupnp url = https://github.com/SChernykh/miniupnp -[submodule "external/src/protobuf"] - path = external/src/protobuf - url = https://github.com/SChernykh/protobuf +[submodule "external/src/protobuf-c"] + path = external/src/protobuf-c + url = https://github.com/SChernykh/protobuf-c diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e2d61d0..fbe76edd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,9 +25,6 @@ option(DEV_TRACK_MEMORY "[Developer only] Track memory allocations" OFF) set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT p2pool) -add_subdirectory(external/src/protobuf) -set(LIBS ${LIBS} libprotobuf) - add_subdirectory(external/src/Tari) set(LIBS ${LIBS} Tari_gRPC) @@ -177,7 +174,7 @@ include_directories(external/src/robin-hood-hashing/src/include) if (WITH_UPNP) include_directories(external/src/miniupnp/miniupnpc/include) endif() -include_directories(external/src/protobuf/src) +include_directories(external/src/protobuf-c) if (WIN32) set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi dnsapi dbghelp) diff --git a/README.md b/README.md index 3d1eff06..dd3715f3 100644 --- a/README.md +++ b/README.md @@ -232,7 +232,7 @@ Only 64-bit builds are supported, in particular ARMv7 or older CPUs are not supp ### Prerequisites - cmake >= 3.10 -- C++ compiler with full C++17 support. GCC-8, Clang-13 and MSVC-2019 have been tested and confirmed to work, older compilers may fail to build P2Pool. +- C++ compiler with C++17 support. GCC-7, Clang-13 and MSVC-2019 have been tested and confirmed to work, older compilers may fail to build P2Pool. ### Ubuntu 20.04 diff --git a/external/src/Tari/CMakeLists.txt b/external/src/Tari/CMakeLists.txt index af7d07eb..3d724fe1 100644 --- a/external/src/Tari/CMakeLists.txt +++ b/external/src/Tari/CMakeLists.txt @@ -2,26 +2,29 @@ cmake_minimum_required(VERSION 3.10) project(Tari_gRPC) set(HEADERS - proto/gRPC/base_node.pb.h - proto/gRPC/block.pb.h - proto/gRPC/network.pb.h - proto/gRPC/sidechain_types.pb.h - proto/gRPC/transaction.pb.h - proto/gRPC/types.pb.h + ../protobuf-c/protobuf-c/protobuf-c.h + proto/gRPC/google/protobuf/timestamp.pb-c.h + proto/gRPC/base_node.pb-c.h + proto/gRPC/block.pb-c.h + proto/gRPC/network.pb-c.h + proto/gRPC/sidechain_types.pb-c.h + proto/gRPC/transaction.pb-c.h + proto/gRPC/types.pb-c.h proto.h ) set(SOURCES - proto/gRPC/base_node.pb.cc - proto/gRPC/block.pb.cc - proto/gRPC/network.pb.cc - proto/gRPC/sidechain_types.pb.cc - proto/gRPC/transaction.pb.cc - proto/gRPC/types.pb.cc + ../protobuf-c/protobuf-c/protobuf-c.c + proto/gRPC/google/protobuf/timestamp.pb-c.c + proto/gRPC/base_node.pb-c.c + proto/gRPC/block.pb-c.c + proto/gRPC/network.pb-c.c + proto/gRPC/sidechain_types.pb-c.c + proto/gRPC/transaction.pb-c.c + proto/gRPC/types.pb-c.c ) -include_directories(../protobuf/src) -include_directories(../protobuf/third_party/abseil-cpp) +include_directories(../protobuf-c) set(DISABLE_WARNINGS ON) diff --git a/external/src/Tari/proto.h b/external/src/Tari/proto.h index 24071fb7..d6018aa1 100644 --- a/external/src/Tari/proto.h +++ b/external/src/Tari/proto.h @@ -4,12 +4,16 @@ #pragma warning(push, 0) #endif -#include "proto/gRPC/base_node.pb.h" -#include "proto/gRPC/block.pb.h" -#include "proto/gRPC/network.pb.h" -#include "proto/gRPC/sidechain_types.pb.h" -#include "proto/gRPC/transaction.pb.h" -#include "proto/gRPC/types.pb.h" +extern "C" { + +#include "proto/gRPC/base_node.pb-c.h" +#include "proto/gRPC/block.pb-c.h" +#include "proto/gRPC/network.pb-c.h" +#include "proto/gRPC/sidechain_types.pb-c.h" +#include "proto/gRPC/transaction.pb-c.h" +#include "proto/gRPC/types.pb-c.h" + +} #ifdef _MSC_VER #pragma warning(pop) diff --git a/external/src/Tari/proto/gRPC/base_node.pb-c.c b/external/src/Tari/proto/gRPC/base_node.pb-c.c new file mode 100644 index 00000000..bbd5f92e --- /dev/null +++ b/external/src/Tari/proto/gRPC/base_node.pb-c.c @@ -0,0 +1,5839 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: base_node.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "base_node.pb-c.h" +void tari__rpc__get_asset_metadata_request__init + (Tari__Rpc__GetAssetMetadataRequest *message) +{ + static const Tari__Rpc__GetAssetMetadataRequest init_value = TARI__RPC__GET_ASSET_METADATA_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_asset_metadata_request__get_packed_size + (const Tari__Rpc__GetAssetMetadataRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_asset_metadata_request__pack + (const Tari__Rpc__GetAssetMetadataRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_asset_metadata_request__pack_to_buffer + (const Tari__Rpc__GetAssetMetadataRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetAssetMetadataRequest * + tari__rpc__get_asset_metadata_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetAssetMetadataRequest *) + protobuf_c_message_unpack (&tari__rpc__get_asset_metadata_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_asset_metadata_request__free_unpacked + (Tari__Rpc__GetAssetMetadataRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_asset_metadata_response__init + (Tari__Rpc__GetAssetMetadataResponse *message) +{ + static const Tari__Rpc__GetAssetMetadataResponse init_value = TARI__RPC__GET_ASSET_METADATA_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_asset_metadata_response__get_packed_size + (const Tari__Rpc__GetAssetMetadataResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_asset_metadata_response__pack + (const Tari__Rpc__GetAssetMetadataResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_asset_metadata_response__pack_to_buffer + (const Tari__Rpc__GetAssetMetadataResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetAssetMetadataResponse * + tari__rpc__get_asset_metadata_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetAssetMetadataResponse *) + protobuf_c_message_unpack (&tari__rpc__get_asset_metadata_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_asset_metadata_response__free_unpacked + (Tari__Rpc__GetAssetMetadataResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_asset_metadata_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__list_asset_registrations_request__init + (Tari__Rpc__ListAssetRegistrationsRequest *message) +{ + static const Tari__Rpc__ListAssetRegistrationsRequest init_value = TARI__RPC__LIST_ASSET_REGISTRATIONS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__list_asset_registrations_request__get_packed_size + (const Tari__Rpc__ListAssetRegistrationsRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__list_asset_registrations_request__pack + (const Tari__Rpc__ListAssetRegistrationsRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__list_asset_registrations_request__pack_to_buffer + (const Tari__Rpc__ListAssetRegistrationsRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ListAssetRegistrationsRequest * + tari__rpc__list_asset_registrations_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ListAssetRegistrationsRequest *) + protobuf_c_message_unpack (&tari__rpc__list_asset_registrations_request__descriptor, + allocator, len, data); +} +void tari__rpc__list_asset_registrations_request__free_unpacked + (Tari__Rpc__ListAssetRegistrationsRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__list_asset_registrations_response__init + (Tari__Rpc__ListAssetRegistrationsResponse *message) +{ + static const Tari__Rpc__ListAssetRegistrationsResponse init_value = TARI__RPC__LIST_ASSET_REGISTRATIONS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__list_asset_registrations_response__get_packed_size + (const Tari__Rpc__ListAssetRegistrationsResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__list_asset_registrations_response__pack + (const Tari__Rpc__ListAssetRegistrationsResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__list_asset_registrations_response__pack_to_buffer + (const Tari__Rpc__ListAssetRegistrationsResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ListAssetRegistrationsResponse * + tari__rpc__list_asset_registrations_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ListAssetRegistrationsResponse *) + protobuf_c_message_unpack (&tari__rpc__list_asset_registrations_response__descriptor, + allocator, len, data); +} +void tari__rpc__list_asset_registrations_response__free_unpacked + (Tari__Rpc__ListAssetRegistrationsResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__list_asset_registrations_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_tokens_request__init + (Tari__Rpc__GetTokensRequest *message) +{ + static const Tari__Rpc__GetTokensRequest init_value = TARI__RPC__GET_TOKENS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_tokens_request__get_packed_size + (const Tari__Rpc__GetTokensRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_tokens_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_tokens_request__pack + (const Tari__Rpc__GetTokensRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_tokens_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_tokens_request__pack_to_buffer + (const Tari__Rpc__GetTokensRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_tokens_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetTokensRequest * + tari__rpc__get_tokens_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetTokensRequest *) + protobuf_c_message_unpack (&tari__rpc__get_tokens_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_tokens_request__free_unpacked + (Tari__Rpc__GetTokensRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_tokens_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_tokens_response__init + (Tari__Rpc__GetTokensResponse *message) +{ + static const Tari__Rpc__GetTokensResponse init_value = TARI__RPC__GET_TOKENS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_tokens_response__get_packed_size + (const Tari__Rpc__GetTokensResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_tokens_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_tokens_response__pack + (const Tari__Rpc__GetTokensResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_tokens_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_tokens_response__pack_to_buffer + (const Tari__Rpc__GetTokensResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_tokens_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetTokensResponse * + tari__rpc__get_tokens_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetTokensResponse *) + protobuf_c_message_unpack (&tari__rpc__get_tokens_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_tokens_response__free_unpacked + (Tari__Rpc__GetTokensResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_tokens_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__submit_block_response__init + (Tari__Rpc__SubmitBlockResponse *message) +{ + static const Tari__Rpc__SubmitBlockResponse init_value = TARI__RPC__SUBMIT_BLOCK_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__submit_block_response__get_packed_size + (const Tari__Rpc__SubmitBlockResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__submit_block_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__submit_block_response__pack + (const Tari__Rpc__SubmitBlockResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__submit_block_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__submit_block_response__pack_to_buffer + (const Tari__Rpc__SubmitBlockResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__submit_block_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SubmitBlockResponse * + tari__rpc__submit_block_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SubmitBlockResponse *) + protobuf_c_message_unpack (&tari__rpc__submit_block_response__descriptor, + allocator, len, data); +} +void tari__rpc__submit_block_response__free_unpacked + (Tari__Rpc__SubmitBlockResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__submit_block_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block_blob_request__init + (Tari__Rpc__BlockBlobRequest *message) +{ + static const Tari__Rpc__BlockBlobRequest init_value = TARI__RPC__BLOCK_BLOB_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__block_blob_request__get_packed_size + (const Tari__Rpc__BlockBlobRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__block_blob_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_blob_request__pack + (const Tari__Rpc__BlockBlobRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_blob_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_blob_request__pack_to_buffer + (const Tari__Rpc__BlockBlobRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_blob_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockBlobRequest * + tari__rpc__block_blob_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockBlobRequest *) + protobuf_c_message_unpack (&tari__rpc__block_blob_request__descriptor, + allocator, len, data); +} +void tari__rpc__block_blob_request__free_unpacked + (Tari__Rpc__BlockBlobRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_blob_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__tip_info_response__init + (Tari__Rpc__TipInfoResponse *message) +{ + static const Tari__Rpc__TipInfoResponse init_value = TARI__RPC__TIP_INFO_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__tip_info_response__get_packed_size + (const Tari__Rpc__TipInfoResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__tip_info_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__tip_info_response__pack + (const Tari__Rpc__TipInfoResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__tip_info_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__tip_info_response__pack_to_buffer + (const Tari__Rpc__TipInfoResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__tip_info_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TipInfoResponse * + tari__rpc__tip_info_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TipInfoResponse *) + protobuf_c_message_unpack (&tari__rpc__tip_info_response__descriptor, + allocator, len, data); +} +void tari__rpc__tip_info_response__free_unpacked + (Tari__Rpc__TipInfoResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__tip_info_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__new_block_template_response__init + (Tari__Rpc__NewBlockTemplateResponse *message) +{ + static const Tari__Rpc__NewBlockTemplateResponse init_value = TARI__RPC__NEW_BLOCK_TEMPLATE_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__new_block_template_response__get_packed_size + (const Tari__Rpc__NewBlockTemplateResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__new_block_template_response__pack + (const Tari__Rpc__NewBlockTemplateResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__new_block_template_response__pack_to_buffer + (const Tari__Rpc__NewBlockTemplateResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__NewBlockTemplateResponse * + tari__rpc__new_block_template_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__NewBlockTemplateResponse *) + protobuf_c_message_unpack (&tari__rpc__new_block_template_response__descriptor, + allocator, len, data); +} +void tari__rpc__new_block_template_response__free_unpacked + (Tari__Rpc__NewBlockTemplateResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__new_block_template_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__new_block_template_request__init + (Tari__Rpc__NewBlockTemplateRequest *message) +{ + static const Tari__Rpc__NewBlockTemplateRequest init_value = TARI__RPC__NEW_BLOCK_TEMPLATE_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__new_block_template_request__get_packed_size + (const Tari__Rpc__NewBlockTemplateRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__new_block_template_request__pack + (const Tari__Rpc__NewBlockTemplateRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__new_block_template_request__pack_to_buffer + (const Tari__Rpc__NewBlockTemplateRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__NewBlockTemplateRequest * + tari__rpc__new_block_template_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__NewBlockTemplateRequest *) + protobuf_c_message_unpack (&tari__rpc__new_block_template_request__descriptor, + allocator, len, data); +} +void tari__rpc__new_block_template_request__free_unpacked + (Tari__Rpc__NewBlockTemplateRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__new_block_template_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__network_difficulty_response__init + (Tari__Rpc__NetworkDifficultyResponse *message) +{ + static const Tari__Rpc__NetworkDifficultyResponse init_value = TARI__RPC__NETWORK_DIFFICULTY_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__network_difficulty_response__get_packed_size + (const Tari__Rpc__NetworkDifficultyResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__network_difficulty_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__network_difficulty_response__pack + (const Tari__Rpc__NetworkDifficultyResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__network_difficulty_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__network_difficulty_response__pack_to_buffer + (const Tari__Rpc__NetworkDifficultyResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__network_difficulty_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__NetworkDifficultyResponse * + tari__rpc__network_difficulty_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__NetworkDifficultyResponse *) + protobuf_c_message_unpack (&tari__rpc__network_difficulty_response__descriptor, + allocator, len, data); +} +void tari__rpc__network_difficulty_response__free_unpacked + (Tari__Rpc__NetworkDifficultyResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__network_difficulty_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__value_at_height_response__init + (Tari__Rpc__ValueAtHeightResponse *message) +{ + static const Tari__Rpc__ValueAtHeightResponse init_value = TARI__RPC__VALUE_AT_HEIGHT_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__value_at_height_response__get_packed_size + (const Tari__Rpc__ValueAtHeightResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__value_at_height_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__value_at_height_response__pack + (const Tari__Rpc__ValueAtHeightResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__value_at_height_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__value_at_height_response__pack_to_buffer + (const Tari__Rpc__ValueAtHeightResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__value_at_height_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ValueAtHeightResponse * + tari__rpc__value_at_height_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ValueAtHeightResponse *) + protobuf_c_message_unpack (&tari__rpc__value_at_height_response__descriptor, + allocator, len, data); +} +void tari__rpc__value_at_height_response__free_unpacked + (Tari__Rpc__ValueAtHeightResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__value_at_height_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__integer_value__init + (Tari__Rpc__IntegerValue *message) +{ + static const Tari__Rpc__IntegerValue init_value = TARI__RPC__INTEGER_VALUE__INIT; + *message = init_value; +} +size_t tari__rpc__integer_value__get_packed_size + (const Tari__Rpc__IntegerValue *message) +{ + assert(message->base.descriptor == &tari__rpc__integer_value__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__integer_value__pack + (const Tari__Rpc__IntegerValue *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__integer_value__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__integer_value__pack_to_buffer + (const Tari__Rpc__IntegerValue *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__integer_value__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__IntegerValue * + tari__rpc__integer_value__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__IntegerValue *) + protobuf_c_message_unpack (&tari__rpc__integer_value__descriptor, + allocator, len, data); +} +void tari__rpc__integer_value__free_unpacked + (Tari__Rpc__IntegerValue *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__integer_value__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__string_value__init + (Tari__Rpc__StringValue *message) +{ + static const Tari__Rpc__StringValue init_value = TARI__RPC__STRING_VALUE__INIT; + *message = init_value; +} +size_t tari__rpc__string_value__get_packed_size + (const Tari__Rpc__StringValue *message) +{ + assert(message->base.descriptor == &tari__rpc__string_value__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__string_value__pack + (const Tari__Rpc__StringValue *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__string_value__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__string_value__pack_to_buffer + (const Tari__Rpc__StringValue *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__string_value__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__StringValue * + tari__rpc__string_value__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__StringValue *) + protobuf_c_message_unpack (&tari__rpc__string_value__descriptor, + allocator, len, data); +} +void tari__rpc__string_value__free_unpacked + (Tari__Rpc__StringValue *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__string_value__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block_group_request__init + (Tari__Rpc__BlockGroupRequest *message) +{ + static const Tari__Rpc__BlockGroupRequest init_value = TARI__RPC__BLOCK_GROUP_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__block_group_request__get_packed_size + (const Tari__Rpc__BlockGroupRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__block_group_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_group_request__pack + (const Tari__Rpc__BlockGroupRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_group_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_group_request__pack_to_buffer + (const Tari__Rpc__BlockGroupRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_group_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockGroupRequest * + tari__rpc__block_group_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockGroupRequest *) + protobuf_c_message_unpack (&tari__rpc__block_group_request__descriptor, + allocator, len, data); +} +void tari__rpc__block_group_request__free_unpacked + (Tari__Rpc__BlockGroupRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_group_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block_group_response__init + (Tari__Rpc__BlockGroupResponse *message) +{ + static const Tari__Rpc__BlockGroupResponse init_value = TARI__RPC__BLOCK_GROUP_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__block_group_response__get_packed_size + (const Tari__Rpc__BlockGroupResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__block_group_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_group_response__pack + (const Tari__Rpc__BlockGroupResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_group_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_group_response__pack_to_buffer + (const Tari__Rpc__BlockGroupResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_group_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockGroupResponse * + tari__rpc__block_group_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockGroupResponse *) + protobuf_c_message_unpack (&tari__rpc__block_group_response__descriptor, + allocator, len, data); +} +void tari__rpc__block_group_response__free_unpacked + (Tari__Rpc__BlockGroupResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_group_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__height_request__init + (Tari__Rpc__HeightRequest *message) +{ + static const Tari__Rpc__HeightRequest init_value = TARI__RPC__HEIGHT_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__height_request__get_packed_size + (const Tari__Rpc__HeightRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__height_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__height_request__pack + (const Tari__Rpc__HeightRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__height_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__height_request__pack_to_buffer + (const Tari__Rpc__HeightRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__height_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__HeightRequest * + tari__rpc__height_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__HeightRequest *) + protobuf_c_message_unpack (&tari__rpc__height_request__descriptor, + allocator, len, data); +} +void tari__rpc__height_request__free_unpacked + (Tari__Rpc__HeightRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__height_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block_timing_response__init + (Tari__Rpc__BlockTimingResponse *message) +{ + static const Tari__Rpc__BlockTimingResponse init_value = TARI__RPC__BLOCK_TIMING_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__block_timing_response__get_packed_size + (const Tari__Rpc__BlockTimingResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__block_timing_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_timing_response__pack + (const Tari__Rpc__BlockTimingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_timing_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_timing_response__pack_to_buffer + (const Tari__Rpc__BlockTimingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_timing_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockTimingResponse * + tari__rpc__block_timing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockTimingResponse *) + protobuf_c_message_unpack (&tari__rpc__block_timing_response__descriptor, + allocator, len, data); +} +void tari__rpc__block_timing_response__free_unpacked + (Tari__Rpc__BlockTimingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_timing_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_header_by_hash_request__init + (Tari__Rpc__GetHeaderByHashRequest *message) +{ + static const Tari__Rpc__GetHeaderByHashRequest init_value = TARI__RPC__GET_HEADER_BY_HASH_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_header_by_hash_request__get_packed_size + (const Tari__Rpc__GetHeaderByHashRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_header_by_hash_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_header_by_hash_request__pack + (const Tari__Rpc__GetHeaderByHashRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_header_by_hash_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_header_by_hash_request__pack_to_buffer + (const Tari__Rpc__GetHeaderByHashRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_header_by_hash_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetHeaderByHashRequest * + tari__rpc__get_header_by_hash_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetHeaderByHashRequest *) + protobuf_c_message_unpack (&tari__rpc__get_header_by_hash_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_header_by_hash_request__free_unpacked + (Tari__Rpc__GetHeaderByHashRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_header_by_hash_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block_header_response__init + (Tari__Rpc__BlockHeaderResponse *message) +{ + static const Tari__Rpc__BlockHeaderResponse init_value = TARI__RPC__BLOCK_HEADER_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__block_header_response__get_packed_size + (const Tari__Rpc__BlockHeaderResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__block_header_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_header_response__pack + (const Tari__Rpc__BlockHeaderResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_header_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_header_response__pack_to_buffer + (const Tari__Rpc__BlockHeaderResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_header_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockHeaderResponse * + tari__rpc__block_header_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockHeaderResponse *) + protobuf_c_message_unpack (&tari__rpc__block_header_response__descriptor, + allocator, len, data); +} +void tari__rpc__block_header_response__free_unpacked + (Tari__Rpc__BlockHeaderResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_header_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__list_headers_request__init + (Tari__Rpc__ListHeadersRequest *message) +{ + static const Tari__Rpc__ListHeadersRequest init_value = TARI__RPC__LIST_HEADERS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__list_headers_request__get_packed_size + (const Tari__Rpc__ListHeadersRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__list_headers_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__list_headers_request__pack + (const Tari__Rpc__ListHeadersRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__list_headers_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__list_headers_request__pack_to_buffer + (const Tari__Rpc__ListHeadersRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__list_headers_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ListHeadersRequest * + tari__rpc__list_headers_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ListHeadersRequest *) + protobuf_c_message_unpack (&tari__rpc__list_headers_request__descriptor, + allocator, len, data); +} +void tari__rpc__list_headers_request__free_unpacked + (Tari__Rpc__ListHeadersRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__list_headers_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_blocks_request__init + (Tari__Rpc__GetBlocksRequest *message) +{ + static const Tari__Rpc__GetBlocksRequest init_value = TARI__RPC__GET_BLOCKS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_blocks_request__get_packed_size + (const Tari__Rpc__GetBlocksRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_blocks_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_blocks_request__pack + (const Tari__Rpc__GetBlocksRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_blocks_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_blocks_request__pack_to_buffer + (const Tari__Rpc__GetBlocksRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_blocks_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetBlocksRequest * + tari__rpc__get_blocks_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetBlocksRequest *) + protobuf_c_message_unpack (&tari__rpc__get_blocks_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_blocks_request__free_unpacked + (Tari__Rpc__GetBlocksRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_blocks_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_blocks_response__init + (Tari__Rpc__GetBlocksResponse *message) +{ + static const Tari__Rpc__GetBlocksResponse init_value = TARI__RPC__GET_BLOCKS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_blocks_response__get_packed_size + (const Tari__Rpc__GetBlocksResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_blocks_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_blocks_response__pack + (const Tari__Rpc__GetBlocksResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_blocks_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_blocks_response__pack_to_buffer + (const Tari__Rpc__GetBlocksResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_blocks_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetBlocksResponse * + tari__rpc__get_blocks_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetBlocksResponse *) + protobuf_c_message_unpack (&tari__rpc__get_blocks_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_blocks_response__free_unpacked + (Tari__Rpc__GetBlocksResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_blocks_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__meta_data__init + (Tari__Rpc__MetaData *message) +{ + static const Tari__Rpc__MetaData init_value = TARI__RPC__META_DATA__INIT; + *message = init_value; +} +size_t tari__rpc__meta_data__get_packed_size + (const Tari__Rpc__MetaData *message) +{ + assert(message->base.descriptor == &tari__rpc__meta_data__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__meta_data__pack + (const Tari__Rpc__MetaData *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__meta_data__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__meta_data__pack_to_buffer + (const Tari__Rpc__MetaData *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__meta_data__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__MetaData * + tari__rpc__meta_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__MetaData *) + protobuf_c_message_unpack (&tari__rpc__meta_data__descriptor, + allocator, len, data); +} +void tari__rpc__meta_data__free_unpacked + (Tari__Rpc__MetaData *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__meta_data__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__sync_info_response__init + (Tari__Rpc__SyncInfoResponse *message) +{ + static const Tari__Rpc__SyncInfoResponse init_value = TARI__RPC__SYNC_INFO_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__sync_info_response__get_packed_size + (const Tari__Rpc__SyncInfoResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__sync_info_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__sync_info_response__pack + (const Tari__Rpc__SyncInfoResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__sync_info_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__sync_info_response__pack_to_buffer + (const Tari__Rpc__SyncInfoResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__sync_info_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SyncInfoResponse * + tari__rpc__sync_info_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SyncInfoResponse *) + protobuf_c_message_unpack (&tari__rpc__sync_info_response__descriptor, + allocator, len, data); +} +void tari__rpc__sync_info_response__free_unpacked + (Tari__Rpc__SyncInfoResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__sync_info_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__sync_progress_response__init + (Tari__Rpc__SyncProgressResponse *message) +{ + static const Tari__Rpc__SyncProgressResponse init_value = TARI__RPC__SYNC_PROGRESS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__sync_progress_response__get_packed_size + (const Tari__Rpc__SyncProgressResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__sync_progress_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__sync_progress_response__pack + (const Tari__Rpc__SyncProgressResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__sync_progress_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__sync_progress_response__pack_to_buffer + (const Tari__Rpc__SyncProgressResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__sync_progress_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SyncProgressResponse * + tari__rpc__sync_progress_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SyncProgressResponse *) + protobuf_c_message_unpack (&tari__rpc__sync_progress_response__descriptor, + allocator, len, data); +} +void tari__rpc__sync_progress_response__free_unpacked + (Tari__Rpc__SyncProgressResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__sync_progress_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_new_block_result__init + (Tari__Rpc__GetNewBlockResult *message) +{ + static const Tari__Rpc__GetNewBlockResult init_value = TARI__RPC__GET_NEW_BLOCK_RESULT__INIT; + *message = init_value; +} +size_t tari__rpc__get_new_block_result__get_packed_size + (const Tari__Rpc__GetNewBlockResult *message) +{ + assert(message->base.descriptor == &tari__rpc__get_new_block_result__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_new_block_result__pack + (const Tari__Rpc__GetNewBlockResult *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_new_block_result__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_new_block_result__pack_to_buffer + (const Tari__Rpc__GetNewBlockResult *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_new_block_result__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetNewBlockResult * + tari__rpc__get_new_block_result__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetNewBlockResult *) + protobuf_c_message_unpack (&tari__rpc__get_new_block_result__descriptor, + allocator, len, data); +} +void tari__rpc__get_new_block_result__free_unpacked + (Tari__Rpc__GetNewBlockResult *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_new_block_result__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_new_block_blob_result__init + (Tari__Rpc__GetNewBlockBlobResult *message) +{ + static const Tari__Rpc__GetNewBlockBlobResult init_value = TARI__RPC__GET_NEW_BLOCK_BLOB_RESULT__INIT; + *message = init_value; +} +size_t tari__rpc__get_new_block_blob_result__get_packed_size + (const Tari__Rpc__GetNewBlockBlobResult *message) +{ + assert(message->base.descriptor == &tari__rpc__get_new_block_blob_result__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_new_block_blob_result__pack + (const Tari__Rpc__GetNewBlockBlobResult *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_new_block_blob_result__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_new_block_blob_result__pack_to_buffer + (const Tari__Rpc__GetNewBlockBlobResult *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_new_block_blob_result__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetNewBlockBlobResult * + tari__rpc__get_new_block_blob_result__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetNewBlockBlobResult *) + protobuf_c_message_unpack (&tari__rpc__get_new_block_blob_result__descriptor, + allocator, len, data); +} +void tari__rpc__get_new_block_blob_result__free_unpacked + (Tari__Rpc__GetNewBlockBlobResult *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_new_block_blob_result__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__miner_data__init + (Tari__Rpc__MinerData *message) +{ + static const Tari__Rpc__MinerData init_value = TARI__RPC__MINER_DATA__INIT; + *message = init_value; +} +size_t tari__rpc__miner_data__get_packed_size + (const Tari__Rpc__MinerData *message) +{ + assert(message->base.descriptor == &tari__rpc__miner_data__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__miner_data__pack + (const Tari__Rpc__MinerData *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__miner_data__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__miner_data__pack_to_buffer + (const Tari__Rpc__MinerData *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__miner_data__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__MinerData * + tari__rpc__miner_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__MinerData *) + protobuf_c_message_unpack (&tari__rpc__miner_data__descriptor, + allocator, len, data); +} +void tari__rpc__miner_data__free_unpacked + (Tari__Rpc__MinerData *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__miner_data__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__search_kernels_request__init + (Tari__Rpc__SearchKernelsRequest *message) +{ + static const Tari__Rpc__SearchKernelsRequest init_value = TARI__RPC__SEARCH_KERNELS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__search_kernels_request__get_packed_size + (const Tari__Rpc__SearchKernelsRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__search_kernels_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__search_kernels_request__pack + (const Tari__Rpc__SearchKernelsRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__search_kernels_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__search_kernels_request__pack_to_buffer + (const Tari__Rpc__SearchKernelsRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__search_kernels_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SearchKernelsRequest * + tari__rpc__search_kernels_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SearchKernelsRequest *) + protobuf_c_message_unpack (&tari__rpc__search_kernels_request__descriptor, + allocator, len, data); +} +void tari__rpc__search_kernels_request__free_unpacked + (Tari__Rpc__SearchKernelsRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__search_kernels_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__search_utxos_request__init + (Tari__Rpc__SearchUtxosRequest *message) +{ + static const Tari__Rpc__SearchUtxosRequest init_value = TARI__RPC__SEARCH_UTXOS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__search_utxos_request__get_packed_size + (const Tari__Rpc__SearchUtxosRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__search_utxos_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__search_utxos_request__pack + (const Tari__Rpc__SearchUtxosRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__search_utxos_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__search_utxos_request__pack_to_buffer + (const Tari__Rpc__SearchUtxosRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__search_utxos_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SearchUtxosRequest * + tari__rpc__search_utxos_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SearchUtxosRequest *) + protobuf_c_message_unpack (&tari__rpc__search_utxos_request__descriptor, + allocator, len, data); +} +void tari__rpc__search_utxos_request__free_unpacked + (Tari__Rpc__SearchUtxosRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__search_utxos_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__fetch_matching_utxos_request__init + (Tari__Rpc__FetchMatchingUtxosRequest *message) +{ + static const Tari__Rpc__FetchMatchingUtxosRequest init_value = TARI__RPC__FETCH_MATCHING_UTXOS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__fetch_matching_utxos_request__get_packed_size + (const Tari__Rpc__FetchMatchingUtxosRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__fetch_matching_utxos_request__pack + (const Tari__Rpc__FetchMatchingUtxosRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__fetch_matching_utxos_request__pack_to_buffer + (const Tari__Rpc__FetchMatchingUtxosRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__FetchMatchingUtxosRequest * + tari__rpc__fetch_matching_utxos_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__FetchMatchingUtxosRequest *) + protobuf_c_message_unpack (&tari__rpc__fetch_matching_utxos_request__descriptor, + allocator, len, data); +} +void tari__rpc__fetch_matching_utxos_request__free_unpacked + (Tari__Rpc__FetchMatchingUtxosRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__fetch_matching_utxos_response__init + (Tari__Rpc__FetchMatchingUtxosResponse *message) +{ + static const Tari__Rpc__FetchMatchingUtxosResponse init_value = TARI__RPC__FETCH_MATCHING_UTXOS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__fetch_matching_utxos_response__get_packed_size + (const Tari__Rpc__FetchMatchingUtxosResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__fetch_matching_utxos_response__pack + (const Tari__Rpc__FetchMatchingUtxosResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__fetch_matching_utxos_response__pack_to_buffer + (const Tari__Rpc__FetchMatchingUtxosResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__FetchMatchingUtxosResponse * + tari__rpc__fetch_matching_utxos_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__FetchMatchingUtxosResponse *) + protobuf_c_message_unpack (&tari__rpc__fetch_matching_utxos_response__descriptor, + allocator, len, data); +} +void tari__rpc__fetch_matching_utxos_response__free_unpacked + (Tari__Rpc__FetchMatchingUtxosResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__fetch_matching_utxos_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_peers_response__init + (Tari__Rpc__GetPeersResponse *message) +{ + static const Tari__Rpc__GetPeersResponse init_value = TARI__RPC__GET_PEERS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_peers_response__get_packed_size + (const Tari__Rpc__GetPeersResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_peers_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_peers_response__pack + (const Tari__Rpc__GetPeersResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_peers_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_peers_response__pack_to_buffer + (const Tari__Rpc__GetPeersResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_peers_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetPeersResponse * + tari__rpc__get_peers_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetPeersResponse *) + protobuf_c_message_unpack (&tari__rpc__get_peers_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_peers_response__free_unpacked + (Tari__Rpc__GetPeersResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_peers_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_peers_request__init + (Tari__Rpc__GetPeersRequest *message) +{ + static const Tari__Rpc__GetPeersRequest init_value = TARI__RPC__GET_PEERS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_peers_request__get_packed_size + (const Tari__Rpc__GetPeersRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_peers_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_peers_request__pack + (const Tari__Rpc__GetPeersRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_peers_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_peers_request__pack_to_buffer + (const Tari__Rpc__GetPeersRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_peers_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetPeersRequest * + tari__rpc__get_peers_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetPeersRequest *) + protobuf_c_message_unpack (&tari__rpc__get_peers_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_peers_request__free_unpacked + (Tari__Rpc__GetPeersRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_peers_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__submit_transaction_request__init + (Tari__Rpc__SubmitTransactionRequest *message) +{ + static const Tari__Rpc__SubmitTransactionRequest init_value = TARI__RPC__SUBMIT_TRANSACTION_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__submit_transaction_request__get_packed_size + (const Tari__Rpc__SubmitTransactionRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__submit_transaction_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__submit_transaction_request__pack + (const Tari__Rpc__SubmitTransactionRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__submit_transaction_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__submit_transaction_request__pack_to_buffer + (const Tari__Rpc__SubmitTransactionRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__submit_transaction_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SubmitTransactionRequest * + tari__rpc__submit_transaction_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SubmitTransactionRequest *) + protobuf_c_message_unpack (&tari__rpc__submit_transaction_request__descriptor, + allocator, len, data); +} +void tari__rpc__submit_transaction_request__free_unpacked + (Tari__Rpc__SubmitTransactionRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__submit_transaction_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__submit_transaction_response__init + (Tari__Rpc__SubmitTransactionResponse *message) +{ + static const Tari__Rpc__SubmitTransactionResponse init_value = TARI__RPC__SUBMIT_TRANSACTION_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__submit_transaction_response__get_packed_size + (const Tari__Rpc__SubmitTransactionResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__submit_transaction_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__submit_transaction_response__pack + (const Tari__Rpc__SubmitTransactionResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__submit_transaction_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__submit_transaction_response__pack_to_buffer + (const Tari__Rpc__SubmitTransactionResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__submit_transaction_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SubmitTransactionResponse * + tari__rpc__submit_transaction_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SubmitTransactionResponse *) + protobuf_c_message_unpack (&tari__rpc__submit_transaction_response__descriptor, + allocator, len, data); +} +void tari__rpc__submit_transaction_response__free_unpacked + (Tari__Rpc__SubmitTransactionResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__submit_transaction_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_mempool_transactions_request__init + (Tari__Rpc__GetMempoolTransactionsRequest *message) +{ + static const Tari__Rpc__GetMempoolTransactionsRequest init_value = TARI__RPC__GET_MEMPOOL_TRANSACTIONS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_mempool_transactions_request__get_packed_size + (const Tari__Rpc__GetMempoolTransactionsRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_mempool_transactions_request__pack + (const Tari__Rpc__GetMempoolTransactionsRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_mempool_transactions_request__pack_to_buffer + (const Tari__Rpc__GetMempoolTransactionsRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetMempoolTransactionsRequest * + tari__rpc__get_mempool_transactions_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetMempoolTransactionsRequest *) + protobuf_c_message_unpack (&tari__rpc__get_mempool_transactions_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_mempool_transactions_request__free_unpacked + (Tari__Rpc__GetMempoolTransactionsRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_mempool_transactions_response__init + (Tari__Rpc__GetMempoolTransactionsResponse *message) +{ + static const Tari__Rpc__GetMempoolTransactionsResponse init_value = TARI__RPC__GET_MEMPOOL_TRANSACTIONS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_mempool_transactions_response__get_packed_size + (const Tari__Rpc__GetMempoolTransactionsResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_mempool_transactions_response__pack + (const Tari__Rpc__GetMempoolTransactionsResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_mempool_transactions_response__pack_to_buffer + (const Tari__Rpc__GetMempoolTransactionsResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetMempoolTransactionsResponse * + tari__rpc__get_mempool_transactions_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetMempoolTransactionsResponse *) + protobuf_c_message_unpack (&tari__rpc__get_mempool_transactions_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_mempool_transactions_response__free_unpacked + (Tari__Rpc__GetMempoolTransactionsResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_mempool_transactions_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__transaction_state_request__init + (Tari__Rpc__TransactionStateRequest *message) +{ + static const Tari__Rpc__TransactionStateRequest init_value = TARI__RPC__TRANSACTION_STATE_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__transaction_state_request__get_packed_size + (const Tari__Rpc__TransactionStateRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__transaction_state_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__transaction_state_request__pack + (const Tari__Rpc__TransactionStateRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__transaction_state_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__transaction_state_request__pack_to_buffer + (const Tari__Rpc__TransactionStateRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__transaction_state_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TransactionStateRequest * + tari__rpc__transaction_state_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TransactionStateRequest *) + protobuf_c_message_unpack (&tari__rpc__transaction_state_request__descriptor, + allocator, len, data); +} +void tari__rpc__transaction_state_request__free_unpacked + (Tari__Rpc__TransactionStateRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__transaction_state_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__transaction_state_response__init + (Tari__Rpc__TransactionStateResponse *message) +{ + static const Tari__Rpc__TransactionStateResponse init_value = TARI__RPC__TRANSACTION_STATE_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__transaction_state_response__get_packed_size + (const Tari__Rpc__TransactionStateResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__transaction_state_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__transaction_state_response__pack + (const Tari__Rpc__TransactionStateResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__transaction_state_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__transaction_state_response__pack_to_buffer + (const Tari__Rpc__TransactionStateResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__transaction_state_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TransactionStateResponse * + tari__rpc__transaction_state_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TransactionStateResponse *) + protobuf_c_message_unpack (&tari__rpc__transaction_state_response__descriptor, + allocator, len, data); +} +void tari__rpc__transaction_state_response__free_unpacked + (Tari__Rpc__TransactionStateResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__transaction_state_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__mempool_stats_response__init + (Tari__Rpc__MempoolStatsResponse *message) +{ + static const Tari__Rpc__MempoolStatsResponse init_value = TARI__RPC__MEMPOOL_STATS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__mempool_stats_response__get_packed_size + (const Tari__Rpc__MempoolStatsResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__mempool_stats_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__mempool_stats_response__pack + (const Tari__Rpc__MempoolStatsResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__mempool_stats_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__mempool_stats_response__pack_to_buffer + (const Tari__Rpc__MempoolStatsResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__mempool_stats_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__MempoolStatsResponse * + tari__rpc__mempool_stats_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__MempoolStatsResponse *) + protobuf_c_message_unpack (&tari__rpc__mempool_stats_response__descriptor, + allocator, len, data); +} +void tari__rpc__mempool_stats_response__free_unpacked + (Tari__Rpc__MempoolStatsResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__mempool_stats_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_active_validator_nodes_request__init + (Tari__Rpc__GetActiveValidatorNodesRequest *message) +{ + static const Tari__Rpc__GetActiveValidatorNodesRequest init_value = TARI__RPC__GET_ACTIVE_VALIDATOR_NODES_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_active_validator_nodes_request__get_packed_size + (const Tari__Rpc__GetActiveValidatorNodesRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_active_validator_nodes_request__pack + (const Tari__Rpc__GetActiveValidatorNodesRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_active_validator_nodes_request__pack_to_buffer + (const Tari__Rpc__GetActiveValidatorNodesRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetActiveValidatorNodesRequest * + tari__rpc__get_active_validator_nodes_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetActiveValidatorNodesRequest *) + protobuf_c_message_unpack (&tari__rpc__get_active_validator_nodes_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_active_validator_nodes_request__free_unpacked + (Tari__Rpc__GetActiveValidatorNodesRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_active_validator_nodes_response__init + (Tari__Rpc__GetActiveValidatorNodesResponse *message) +{ + static const Tari__Rpc__GetActiveValidatorNodesResponse init_value = TARI__RPC__GET_ACTIVE_VALIDATOR_NODES_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_active_validator_nodes_response__get_packed_size + (const Tari__Rpc__GetActiveValidatorNodesResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_active_validator_nodes_response__pack + (const Tari__Rpc__GetActiveValidatorNodesResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_active_validator_nodes_response__pack_to_buffer + (const Tari__Rpc__GetActiveValidatorNodesResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetActiveValidatorNodesResponse * + tari__rpc__get_active_validator_nodes_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetActiveValidatorNodesResponse *) + protobuf_c_message_unpack (&tari__rpc__get_active_validator_nodes_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_active_validator_nodes_response__free_unpacked + (Tari__Rpc__GetActiveValidatorNodesResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_active_validator_nodes_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_shard_key_request__init + (Tari__Rpc__GetShardKeyRequest *message) +{ + static const Tari__Rpc__GetShardKeyRequest init_value = TARI__RPC__GET_SHARD_KEY_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_shard_key_request__get_packed_size + (const Tari__Rpc__GetShardKeyRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_shard_key_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_shard_key_request__pack + (const Tari__Rpc__GetShardKeyRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_shard_key_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_shard_key_request__pack_to_buffer + (const Tari__Rpc__GetShardKeyRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_shard_key_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetShardKeyRequest * + tari__rpc__get_shard_key_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetShardKeyRequest *) + protobuf_c_message_unpack (&tari__rpc__get_shard_key_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_shard_key_request__free_unpacked + (Tari__Rpc__GetShardKeyRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_shard_key_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_shard_key_response__init + (Tari__Rpc__GetShardKeyResponse *message) +{ + static const Tari__Rpc__GetShardKeyResponse init_value = TARI__RPC__GET_SHARD_KEY_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_shard_key_response__get_packed_size + (const Tari__Rpc__GetShardKeyResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_shard_key_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_shard_key_response__pack + (const Tari__Rpc__GetShardKeyResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_shard_key_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_shard_key_response__pack_to_buffer + (const Tari__Rpc__GetShardKeyResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_shard_key_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetShardKeyResponse * + tari__rpc__get_shard_key_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetShardKeyResponse *) + protobuf_c_message_unpack (&tari__rpc__get_shard_key_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_shard_key_response__free_unpacked + (Tari__Rpc__GetShardKeyResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_shard_key_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_template_registrations_request__init + (Tari__Rpc__GetTemplateRegistrationsRequest *message) +{ + static const Tari__Rpc__GetTemplateRegistrationsRequest init_value = TARI__RPC__GET_TEMPLATE_REGISTRATIONS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_template_registrations_request__get_packed_size + (const Tari__Rpc__GetTemplateRegistrationsRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_template_registrations_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_template_registrations_request__pack + (const Tari__Rpc__GetTemplateRegistrationsRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_template_registrations_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_template_registrations_request__pack_to_buffer + (const Tari__Rpc__GetTemplateRegistrationsRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_template_registrations_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetTemplateRegistrationsRequest * + tari__rpc__get_template_registrations_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetTemplateRegistrationsRequest *) + protobuf_c_message_unpack (&tari__rpc__get_template_registrations_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_template_registrations_request__free_unpacked + (Tari__Rpc__GetTemplateRegistrationsRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_template_registrations_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_template_registration_response__init + (Tari__Rpc__GetTemplateRegistrationResponse *message) +{ + static const Tari__Rpc__GetTemplateRegistrationResponse init_value = TARI__RPC__GET_TEMPLATE_REGISTRATION_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_template_registration_response__get_packed_size + (const Tari__Rpc__GetTemplateRegistrationResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_template_registration_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_template_registration_response__pack + (const Tari__Rpc__GetTemplateRegistrationResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_template_registration_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_template_registration_response__pack_to_buffer + (const Tari__Rpc__GetTemplateRegistrationResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_template_registration_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetTemplateRegistrationResponse * + tari__rpc__get_template_registration_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetTemplateRegistrationResponse *) + protobuf_c_message_unpack (&tari__rpc__get_template_registration_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_template_registration_response__free_unpacked + (Tari__Rpc__GetTemplateRegistrationResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_template_registration_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block_info__init + (Tari__Rpc__BlockInfo *message) +{ + static const Tari__Rpc__BlockInfo init_value = TARI__RPC__BLOCK_INFO__INIT; + *message = init_value; +} +size_t tari__rpc__block_info__get_packed_size + (const Tari__Rpc__BlockInfo *message) +{ + assert(message->base.descriptor == &tari__rpc__block_info__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_info__pack + (const Tari__Rpc__BlockInfo *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_info__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_info__pack_to_buffer + (const Tari__Rpc__BlockInfo *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_info__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockInfo * + tari__rpc__block_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockInfo *) + protobuf_c_message_unpack (&tari__rpc__block_info__descriptor, + allocator, len, data); +} +void tari__rpc__block_info__free_unpacked + (Tari__Rpc__BlockInfo *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_info__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_side_chain_utxos_request__init + (Tari__Rpc__GetSideChainUtxosRequest *message) +{ + static const Tari__Rpc__GetSideChainUtxosRequest init_value = TARI__RPC__GET_SIDE_CHAIN_UTXOS_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_side_chain_utxos_request__get_packed_size + (const Tari__Rpc__GetSideChainUtxosRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_side_chain_utxos_request__pack + (const Tari__Rpc__GetSideChainUtxosRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_side_chain_utxos_request__pack_to_buffer + (const Tari__Rpc__GetSideChainUtxosRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetSideChainUtxosRequest * + tari__rpc__get_side_chain_utxos_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetSideChainUtxosRequest *) + protobuf_c_message_unpack (&tari__rpc__get_side_chain_utxos_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_side_chain_utxos_request__free_unpacked + (Tari__Rpc__GetSideChainUtxosRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_side_chain_utxos_response__init + (Tari__Rpc__GetSideChainUtxosResponse *message) +{ + static const Tari__Rpc__GetSideChainUtxosResponse init_value = TARI__RPC__GET_SIDE_CHAIN_UTXOS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_side_chain_utxos_response__get_packed_size + (const Tari__Rpc__GetSideChainUtxosResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_side_chain_utxos_response__pack + (const Tari__Rpc__GetSideChainUtxosResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_side_chain_utxos_response__pack_to_buffer + (const Tari__Rpc__GetSideChainUtxosResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetSideChainUtxosResponse * + tari__rpc__get_side_chain_utxos_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetSideChainUtxosResponse *) + protobuf_c_message_unpack (&tari__rpc__get_side_chain_utxos_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_side_chain_utxos_response__free_unpacked + (Tari__Rpc__GetSideChainUtxosResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_side_chain_utxos_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tari__rpc__get_asset_metadata_request__field_descriptors[1] = +{ + { + "asset_public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataRequest, asset_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_asset_metadata_request__field_indices_by_name[] = { + 0, /* field[0] = asset_public_key */ +}; +static const ProtobufCIntRange tari__rpc__get_asset_metadata_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_asset_metadata_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetAssetMetadataRequest", + "GetAssetMetadataRequest", + "Tari__Rpc__GetAssetMetadataRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetAssetMetadataRequest), + 1, + tari__rpc__get_asset_metadata_request__field_descriptors, + tari__rpc__get_asset_metadata_request__field_indices_by_name, + 1, tari__rpc__get_asset_metadata_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_asset_metadata_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_asset_metadata_response__field_descriptors[7] = +{ + { + "name", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataResponse, name), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "description", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataResponse, description), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "image", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataResponse, image), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "owner_commitment", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataResponse, owner_commitment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "features", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataResponse, features), + &tari__rpc__output_features__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mined_height", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataResponse, mined_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mined_in_block", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetAssetMetadataResponse, mined_in_block), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_asset_metadata_response__field_indices_by_name[] = { + 1, /* field[1] = description */ + 4, /* field[4] = features */ + 2, /* field[2] = image */ + 5, /* field[5] = mined_height */ + 6, /* field[6] = mined_in_block */ + 0, /* field[0] = name */ + 3, /* field[3] = owner_commitment */ +}; +static const ProtobufCIntRange tari__rpc__get_asset_metadata_response__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_asset_metadata_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetAssetMetadataResponse", + "GetAssetMetadataResponse", + "Tari__Rpc__GetAssetMetadataResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetAssetMetadataResponse), + 7, + tari__rpc__get_asset_metadata_response__field_descriptors, + tari__rpc__get_asset_metadata_response__field_indices_by_name, + 1, tari__rpc__get_asset_metadata_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_asset_metadata_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__list_asset_registrations_request__field_descriptors[2] = +{ + { + "offset", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsRequest, offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "count", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsRequest, count), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__list_asset_registrations_request__field_indices_by_name[] = { + 1, /* field[1] = count */ + 0, /* field[0] = offset */ +}; +static const ProtobufCIntRange tari__rpc__list_asset_registrations_request__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__list_asset_registrations_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ListAssetRegistrationsRequest", + "ListAssetRegistrationsRequest", + "Tari__Rpc__ListAssetRegistrationsRequest", + "tari.rpc", + sizeof(Tari__Rpc__ListAssetRegistrationsRequest), + 2, + tari__rpc__list_asset_registrations_request__field_descriptors, + tari__rpc__list_asset_registrations_request__field_indices_by_name, + 1, tari__rpc__list_asset_registrations_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__list_asset_registrations_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__list_asset_registrations_response__field_descriptors[7] = +{ + { + "asset_public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsResponse, asset_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "unique_id", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsResponse, unique_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "owner_commitment", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsResponse, owner_commitment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mined_height", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsResponse, mined_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mined_in_block", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsResponse, mined_in_block), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "features", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsResponse, features), + &tari__rpc__output_features__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListAssetRegistrationsResponse, script), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__list_asset_registrations_response__field_indices_by_name[] = { + 0, /* field[0] = asset_public_key */ + 5, /* field[5] = features */ + 3, /* field[3] = mined_height */ + 4, /* field[4] = mined_in_block */ + 2, /* field[2] = owner_commitment */ + 6, /* field[6] = script */ + 1, /* field[1] = unique_id */ +}; +static const ProtobufCIntRange tari__rpc__list_asset_registrations_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor tari__rpc__list_asset_registrations_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ListAssetRegistrationsResponse", + "ListAssetRegistrationsResponse", + "Tari__Rpc__ListAssetRegistrationsResponse", + "tari.rpc", + sizeof(Tari__Rpc__ListAssetRegistrationsResponse), + 7, + tari__rpc__list_asset_registrations_response__field_descriptors, + tari__rpc__list_asset_registrations_response__field_indices_by_name, + 1, tari__rpc__list_asset_registrations_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__list_asset_registrations_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_tokens_request__field_descriptors[2] = +{ + { + "asset_public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensRequest, asset_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "unique_ids", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_BYTES, + offsetof(Tari__Rpc__GetTokensRequest, n_unique_ids), + offsetof(Tari__Rpc__GetTokensRequest, unique_ids), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_tokens_request__field_indices_by_name[] = { + 0, /* field[0] = asset_public_key */ + 1, /* field[1] = unique_ids */ +}; +static const ProtobufCIntRange tari__rpc__get_tokens_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_tokens_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetTokensRequest", + "GetTokensRequest", + "Tari__Rpc__GetTokensRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetTokensRequest), + 2, + tari__rpc__get_tokens_request__field_descriptors, + tari__rpc__get_tokens_request__field_indices_by_name, + 1, tari__rpc__get_tokens_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_tokens_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_tokens_response__field_descriptors[7] = +{ + { + "unique_id", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensResponse, unique_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "asset_public_key", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensResponse, asset_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "owner_commitment", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensResponse, owner_commitment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mined_in_block", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensResponse, mined_in_block), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "mined_height", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensResponse, mined_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "features", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensResponse, features), + &tari__rpc__output_features__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTokensResponse, script), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_tokens_response__field_indices_by_name[] = { + 1, /* field[1] = asset_public_key */ + 5, /* field[5] = features */ + 4, /* field[4] = mined_height */ + 3, /* field[3] = mined_in_block */ + 2, /* field[2] = owner_commitment */ + 6, /* field[6] = script */ + 0, /* field[0] = unique_id */ +}; +static const ProtobufCIntRange tari__rpc__get_tokens_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_tokens_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetTokensResponse", + "GetTokensResponse", + "Tari__Rpc__GetTokensResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetTokensResponse), + 7, + tari__rpc__get_tokens_response__field_descriptors, + tari__rpc__get_tokens_response__field_indices_by_name, + 1, tari__rpc__get_tokens_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_tokens_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__submit_block_response__field_descriptors[1] = +{ + { + "block_hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SubmitBlockResponse, block_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__submit_block_response__field_indices_by_name[] = { + 0, /* field[0] = block_hash */ +}; +static const ProtobufCIntRange tari__rpc__submit_block_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__submit_block_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SubmitBlockResponse", + "SubmitBlockResponse", + "Tari__Rpc__SubmitBlockResponse", + "tari.rpc", + sizeof(Tari__Rpc__SubmitBlockResponse), + 1, + tari__rpc__submit_block_response__field_descriptors, + tari__rpc__submit_block_response__field_indices_by_name, + 1, tari__rpc__submit_block_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__submit_block_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block_blob_request__field_descriptors[2] = +{ + { + "header_blob", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockBlobRequest, header_blob), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "body_blob", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockBlobRequest, body_blob), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_blob_request__field_indices_by_name[] = { + 1, /* field[1] = body_blob */ + 0, /* field[0] = header_blob */ +}; +static const ProtobufCIntRange tari__rpc__block_blob_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_blob_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockBlobRequest", + "BlockBlobRequest", + "Tari__Rpc__BlockBlobRequest", + "tari.rpc", + sizeof(Tari__Rpc__BlockBlobRequest), + 2, + tari__rpc__block_blob_request__field_descriptors, + tari__rpc__block_blob_request__field_indices_by_name, + 1, tari__rpc__block_blob_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_blob_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__tip_info_response__field_descriptors[3] = +{ + { + "metadata", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TipInfoResponse, metadata), + &tari__rpc__meta_data__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "initial_sync_achieved", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TipInfoResponse, initial_sync_achieved), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "base_node_state", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TipInfoResponse, base_node_state), + &tari__rpc__base_node_state__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__tip_info_response__field_indices_by_name[] = { + 2, /* field[2] = base_node_state */ + 1, /* field[1] = initial_sync_achieved */ + 0, /* field[0] = metadata */ +}; +static const ProtobufCIntRange tari__rpc__tip_info_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__tip_info_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TipInfoResponse", + "TipInfoResponse", + "Tari__Rpc__TipInfoResponse", + "tari.rpc", + sizeof(Tari__Rpc__TipInfoResponse), + 3, + tari__rpc__tip_info_response__field_descriptors, + tari__rpc__tip_info_response__field_indices_by_name, + 1, tari__rpc__tip_info_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__tip_info_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__new_block_template_response__field_descriptors[3] = +{ + { + "new_block_template", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockTemplateResponse, new_block_template), + &tari__rpc__new_block_template__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "initial_sync_achieved", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockTemplateResponse, initial_sync_achieved), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "miner_data", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockTemplateResponse, miner_data), + &tari__rpc__miner_data__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__new_block_template_response__field_indices_by_name[] = { + 1, /* field[1] = initial_sync_achieved */ + 2, /* field[2] = miner_data */ + 0, /* field[0] = new_block_template */ +}; +static const ProtobufCIntRange tari__rpc__new_block_template_response__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 3, 1 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__new_block_template_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.NewBlockTemplateResponse", + "NewBlockTemplateResponse", + "Tari__Rpc__NewBlockTemplateResponse", + "tari.rpc", + sizeof(Tari__Rpc__NewBlockTemplateResponse), + 3, + tari__rpc__new_block_template_response__field_descriptors, + tari__rpc__new_block_template_response__field_indices_by_name, + 2, tari__rpc__new_block_template_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__new_block_template_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__new_block_template_request__field_descriptors[2] = +{ + { + "algo", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockTemplateRequest, algo), + &tari__rpc__pow_algo__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "max_weight", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockTemplateRequest, max_weight), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__new_block_template_request__field_indices_by_name[] = { + 0, /* field[0] = algo */ + 1, /* field[1] = max_weight */ +}; +static const ProtobufCIntRange tari__rpc__new_block_template_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__new_block_template_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.NewBlockTemplateRequest", + "NewBlockTemplateRequest", + "Tari__Rpc__NewBlockTemplateRequest", + "tari.rpc", + sizeof(Tari__Rpc__NewBlockTemplateRequest), + 2, + tari__rpc__new_block_template_request__field_descriptors, + tari__rpc__new_block_template_request__field_indices_by_name, + 1, tari__rpc__new_block_template_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__new_block_template_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__network_difficulty_response__field_descriptors[7] = +{ + { + "difficulty", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkDifficultyResponse, difficulty), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "estimated_hash_rate", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkDifficultyResponse, estimated_hash_rate), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "height", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkDifficultyResponse, height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "timestamp", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkDifficultyResponse, timestamp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "pow_algo", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkDifficultyResponse, pow_algo), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sha3x_estimated_hash_rate", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkDifficultyResponse, sha3x_estimated_hash_rate), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "randomx_estimated_hash_rate", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkDifficultyResponse, randomx_estimated_hash_rate), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__network_difficulty_response__field_indices_by_name[] = { + 0, /* field[0] = difficulty */ + 1, /* field[1] = estimated_hash_rate */ + 2, /* field[2] = height */ + 4, /* field[4] = pow_algo */ + 6, /* field[6] = randomx_estimated_hash_rate */ + 5, /* field[5] = sha3x_estimated_hash_rate */ + 3, /* field[3] = timestamp */ +}; +static const ProtobufCIntRange tari__rpc__network_difficulty_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 7 } +}; +const ProtobufCMessageDescriptor tari__rpc__network_difficulty_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.NetworkDifficultyResponse", + "NetworkDifficultyResponse", + "Tari__Rpc__NetworkDifficultyResponse", + "tari.rpc", + sizeof(Tari__Rpc__NetworkDifficultyResponse), + 7, + tari__rpc__network_difficulty_response__field_descriptors, + tari__rpc__network_difficulty_response__field_indices_by_name, + 1, tari__rpc__network_difficulty_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__network_difficulty_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__value_at_height_response__field_descriptors[2] = +{ + { + "value", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ValueAtHeightResponse, value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "height", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ValueAtHeightResponse, height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__value_at_height_response__field_indices_by_name[] = { + 1, /* field[1] = height */ + 0, /* field[0] = value */ +}; +static const ProtobufCIntRange tari__rpc__value_at_height_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__value_at_height_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ValueAtHeightResponse", + "ValueAtHeightResponse", + "Tari__Rpc__ValueAtHeightResponse", + "tari.rpc", + sizeof(Tari__Rpc__ValueAtHeightResponse), + 2, + tari__rpc__value_at_height_response__field_descriptors, + tari__rpc__value_at_height_response__field_indices_by_name, + 1, tari__rpc__value_at_height_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__value_at_height_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__integer_value__field_descriptors[1] = +{ + { + "value", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__IntegerValue, value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__integer_value__field_indices_by_name[] = { + 0, /* field[0] = value */ +}; +static const ProtobufCIntRange tari__rpc__integer_value__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__integer_value__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.IntegerValue", + "IntegerValue", + "Tari__Rpc__IntegerValue", + "tari.rpc", + sizeof(Tari__Rpc__IntegerValue), + 1, + tari__rpc__integer_value__field_descriptors, + tari__rpc__integer_value__field_indices_by_name, + 1, tari__rpc__integer_value__number_ranges, + (ProtobufCMessageInit) tari__rpc__integer_value__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__string_value__field_descriptors[1] = +{ + { + "value", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__StringValue, value), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__string_value__field_indices_by_name[] = { + 0, /* field[0] = value */ +}; +static const ProtobufCIntRange tari__rpc__string_value__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__string_value__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.StringValue", + "StringValue", + "Tari__Rpc__StringValue", + "tari.rpc", + sizeof(Tari__Rpc__StringValue), + 1, + tari__rpc__string_value__field_descriptors, + tari__rpc__string_value__field_indices_by_name, + 1, tari__rpc__string_value__number_ranges, + (ProtobufCMessageInit) tari__rpc__string_value__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block_group_request__field_descriptors[4] = +{ + { + "from_tip", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockGroupRequest, from_tip), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "start_height", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockGroupRequest, start_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "end_height", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockGroupRequest, end_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "calc_type", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockGroupRequest, calc_type), + &tari__rpc__calc_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_group_request__field_indices_by_name[] = { + 3, /* field[3] = calc_type */ + 2, /* field[2] = end_height */ + 0, /* field[0] = from_tip */ + 1, /* field[1] = start_height */ +}; +static const ProtobufCIntRange tari__rpc__block_group_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_group_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockGroupRequest", + "BlockGroupRequest", + "Tari__Rpc__BlockGroupRequest", + "tari.rpc", + sizeof(Tari__Rpc__BlockGroupRequest), + 4, + tari__rpc__block_group_request__field_descriptors, + tari__rpc__block_group_request__field_indices_by_name, + 1, tari__rpc__block_group_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_group_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block_group_response__field_descriptors[2] = +{ + { + "value", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Tari__Rpc__BlockGroupResponse, n_value), + offsetof(Tari__Rpc__BlockGroupResponse, value), + NULL, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "calc_type", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockGroupResponse, calc_type), + &tari__rpc__calc_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_group_response__field_indices_by_name[] = { + 1, /* field[1] = calc_type */ + 0, /* field[0] = value */ +}; +static const ProtobufCIntRange tari__rpc__block_group_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_group_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockGroupResponse", + "BlockGroupResponse", + "Tari__Rpc__BlockGroupResponse", + "tari.rpc", + sizeof(Tari__Rpc__BlockGroupResponse), + 2, + tari__rpc__block_group_response__field_descriptors, + tari__rpc__block_group_response__field_indices_by_name, + 1, tari__rpc__block_group_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_group_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__height_request__field_descriptors[3] = +{ + { + "from_tip", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__HeightRequest, from_tip), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "start_height", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__HeightRequest, start_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "end_height", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__HeightRequest, end_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__height_request__field_indices_by_name[] = { + 2, /* field[2] = end_height */ + 0, /* field[0] = from_tip */ + 1, /* field[1] = start_height */ +}; +static const ProtobufCIntRange tari__rpc__height_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__height_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.HeightRequest", + "HeightRequest", + "Tari__Rpc__HeightRequest", + "tari.rpc", + sizeof(Tari__Rpc__HeightRequest), + 3, + tari__rpc__height_request__field_descriptors, + tari__rpc__height_request__field_indices_by_name, + 1, tari__rpc__height_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__height_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block_timing_response__field_descriptors[3] = +{ + { + "max", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockTimingResponse, max), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "min", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockTimingResponse, min), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "avg", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_DOUBLE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockTimingResponse, avg), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_timing_response__field_indices_by_name[] = { + 2, /* field[2] = avg */ + 0, /* field[0] = max */ + 1, /* field[1] = min */ +}; +static const ProtobufCIntRange tari__rpc__block_timing_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_timing_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockTimingResponse", + "BlockTimingResponse", + "Tari__Rpc__BlockTimingResponse", + "tari.rpc", + sizeof(Tari__Rpc__BlockTimingResponse), + 3, + tari__rpc__block_timing_response__field_descriptors, + tari__rpc__block_timing_response__field_indices_by_name, + 1, tari__rpc__block_timing_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_timing_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_header_by_hash_request__field_descriptors[1] = +{ + { + "hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetHeaderByHashRequest, hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_header_by_hash_request__field_indices_by_name[] = { + 0, /* field[0] = hash */ +}; +static const ProtobufCIntRange tari__rpc__get_header_by_hash_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_header_by_hash_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetHeaderByHashRequest", + "GetHeaderByHashRequest", + "Tari__Rpc__GetHeaderByHashRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetHeaderByHashRequest), + 1, + tari__rpc__get_header_by_hash_request__field_descriptors, + tari__rpc__get_header_by_hash_request__field_indices_by_name, + 1, tari__rpc__get_header_by_hash_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_header_by_hash_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block_header_response__field_descriptors[5] = +{ + { + "header", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeaderResponse, header), + &tari__rpc__block_header__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "confirmations", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeaderResponse, confirmations), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "reward", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeaderResponse, reward), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "difficulty", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeaderResponse, difficulty), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "num_transactions", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeaderResponse, num_transactions), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_header_response__field_indices_by_name[] = { + 1, /* field[1] = confirmations */ + 3, /* field[3] = difficulty */ + 0, /* field[0] = header */ + 4, /* field[4] = num_transactions */ + 2, /* field[2] = reward */ +}; +static const ProtobufCIntRange tari__rpc__block_header_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_header_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockHeaderResponse", + "BlockHeaderResponse", + "Tari__Rpc__BlockHeaderResponse", + "tari.rpc", + sizeof(Tari__Rpc__BlockHeaderResponse), + 5, + tari__rpc__block_header_response__field_descriptors, + tari__rpc__block_header_response__field_indices_by_name, + 1, tari__rpc__block_header_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_header_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__list_headers_request__field_descriptors[3] = +{ + { + "from_height", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListHeadersRequest, from_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "num_headers", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListHeadersRequest, num_headers), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sorting", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ListHeadersRequest, sorting), + &tari__rpc__sorting__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__list_headers_request__field_indices_by_name[] = { + 0, /* field[0] = from_height */ + 1, /* field[1] = num_headers */ + 2, /* field[2] = sorting */ +}; +static const ProtobufCIntRange tari__rpc__list_headers_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__list_headers_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ListHeadersRequest", + "ListHeadersRequest", + "Tari__Rpc__ListHeadersRequest", + "tari.rpc", + sizeof(Tari__Rpc__ListHeadersRequest), + 3, + tari__rpc__list_headers_request__field_descriptors, + tari__rpc__list_headers_request__field_indices_by_name, + 1, tari__rpc__list_headers_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__list_headers_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_blocks_request__field_descriptors[1] = +{ + { + "heights", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(Tari__Rpc__GetBlocksRequest, n_heights), + offsetof(Tari__Rpc__GetBlocksRequest, heights), + NULL, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_blocks_request__field_indices_by_name[] = { + 0, /* field[0] = heights */ +}; +static const ProtobufCIntRange tari__rpc__get_blocks_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_blocks_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetBlocksRequest", + "GetBlocksRequest", + "Tari__Rpc__GetBlocksRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetBlocksRequest), + 1, + tari__rpc__get_blocks_request__field_descriptors, + tari__rpc__get_blocks_request__field_indices_by_name, + 1, tari__rpc__get_blocks_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_blocks_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_blocks_response__field_descriptors[1] = +{ + { + "blocks", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__GetBlocksResponse, n_blocks), + offsetof(Tari__Rpc__GetBlocksResponse, blocks), + &tari__rpc__historical_block__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_blocks_response__field_indices_by_name[] = { + 0, /* field[0] = blocks */ +}; +static const ProtobufCIntRange tari__rpc__get_blocks_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_blocks_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetBlocksResponse", + "GetBlocksResponse", + "Tari__Rpc__GetBlocksResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetBlocksResponse), + 1, + tari__rpc__get_blocks_response__field_descriptors, + tari__rpc__get_blocks_response__field_indices_by_name, + 1, tari__rpc__get_blocks_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_blocks_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__meta_data__field_descriptors[4] = +{ + { + "height_of_longest_chain", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MetaData, height_of_longest_chain), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "best_block", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MetaData, best_block), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "accumulated_difficulty", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MetaData, accumulated_difficulty), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "pruned_height", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MetaData, pruned_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__meta_data__field_indices_by_name[] = { + 2, /* field[2] = accumulated_difficulty */ + 1, /* field[1] = best_block */ + 0, /* field[0] = height_of_longest_chain */ + 3, /* field[3] = pruned_height */ +}; +static const ProtobufCIntRange tari__rpc__meta_data__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 5, 2 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor tari__rpc__meta_data__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.MetaData", + "MetaData", + "Tari__Rpc__MetaData", + "tari.rpc", + sizeof(Tari__Rpc__MetaData), + 4, + tari__rpc__meta_data__field_descriptors, + tari__rpc__meta_data__field_indices_by_name, + 2, tari__rpc__meta_data__number_ranges, + (ProtobufCMessageInit) tari__rpc__meta_data__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__sync_info_response__field_descriptors[3] = +{ + { + "tip_height", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SyncInfoResponse, tip_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "local_height", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SyncInfoResponse, local_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "peer_node_id", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_BYTES, + offsetof(Tari__Rpc__SyncInfoResponse, n_peer_node_id), + offsetof(Tari__Rpc__SyncInfoResponse, peer_node_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__sync_info_response__field_indices_by_name[] = { + 1, /* field[1] = local_height */ + 2, /* field[2] = peer_node_id */ + 0, /* field[0] = tip_height */ +}; +static const ProtobufCIntRange tari__rpc__sync_info_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__sync_info_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SyncInfoResponse", + "SyncInfoResponse", + "Tari__Rpc__SyncInfoResponse", + "tari.rpc", + sizeof(Tari__Rpc__SyncInfoResponse), + 3, + tari__rpc__sync_info_response__field_descriptors, + tari__rpc__sync_info_response__field_indices_by_name, + 1, tari__rpc__sync_info_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__sync_info_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__sync_progress_response__field_descriptors[3] = +{ + { + "tip_height", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SyncProgressResponse, tip_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "local_height", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SyncProgressResponse, local_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "state", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SyncProgressResponse, state), + &tari__rpc__sync_state__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__sync_progress_response__field_indices_by_name[] = { + 1, /* field[1] = local_height */ + 2, /* field[2] = state */ + 0, /* field[0] = tip_height */ +}; +static const ProtobufCIntRange tari__rpc__sync_progress_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__sync_progress_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SyncProgressResponse", + "SyncProgressResponse", + "Tari__Rpc__SyncProgressResponse", + "tari.rpc", + sizeof(Tari__Rpc__SyncProgressResponse), + 3, + tari__rpc__sync_progress_response__field_descriptors, + tari__rpc__sync_progress_response__field_indices_by_name, + 1, tari__rpc__sync_progress_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__sync_progress_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_new_block_result__field_descriptors[4] = +{ + { + "block_hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockResult, block_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "block", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockResult, block), + &tari__rpc__block__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "merge_mining_hash", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockResult, merge_mining_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "tari_unique_id", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockResult, tari_unique_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_new_block_result__field_indices_by_name[] = { + 1, /* field[1] = block */ + 0, /* field[0] = block_hash */ + 2, /* field[2] = merge_mining_hash */ + 3, /* field[3] = tari_unique_id */ +}; +static const ProtobufCIntRange tari__rpc__get_new_block_result__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_new_block_result__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetNewBlockResult", + "GetNewBlockResult", + "Tari__Rpc__GetNewBlockResult", + "tari.rpc", + sizeof(Tari__Rpc__GetNewBlockResult), + 4, + tari__rpc__get_new_block_result__field_descriptors, + tari__rpc__get_new_block_result__field_indices_by_name, + 1, tari__rpc__get_new_block_result__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_new_block_result__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_new_block_blob_result__field_descriptors[6] = +{ + { + "block_hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockBlobResult, block_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "header", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockBlobResult, header), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "block_body", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockBlobResult, block_body), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "merge_mining_hash", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockBlobResult, merge_mining_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "utxo_mr", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockBlobResult, utxo_mr), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "tari_unique_id", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetNewBlockBlobResult, tari_unique_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_new_block_blob_result__field_indices_by_name[] = { + 2, /* field[2] = block_body */ + 0, /* field[0] = block_hash */ + 1, /* field[1] = header */ + 3, /* field[3] = merge_mining_hash */ + 5, /* field[5] = tari_unique_id */ + 4, /* field[4] = utxo_mr */ +}; +static const ProtobufCIntRange tari__rpc__get_new_block_blob_result__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_new_block_blob_result__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetNewBlockBlobResult", + "GetNewBlockBlobResult", + "Tari__Rpc__GetNewBlockBlobResult", + "tari.rpc", + sizeof(Tari__Rpc__GetNewBlockBlobResult), + 6, + tari__rpc__get_new_block_blob_result__field_descriptors, + tari__rpc__get_new_block_blob_result__field_indices_by_name, + 1, tari__rpc__get_new_block_blob_result__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_new_block_blob_result__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__miner_data__field_descriptors[4] = +{ + { + "algo", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MinerData, algo), + &tari__rpc__pow_algo__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "target_difficulty", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MinerData, target_difficulty), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "reward", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MinerData, reward), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "total_fees", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MinerData, total_fees), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__miner_data__field_indices_by_name[] = { + 0, /* field[0] = algo */ + 2, /* field[2] = reward */ + 1, /* field[1] = target_difficulty */ + 3, /* field[3] = total_fees */ +}; +static const ProtobufCIntRange tari__rpc__miner_data__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 5, 3 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor tari__rpc__miner_data__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.MinerData", + "MinerData", + "Tari__Rpc__MinerData", + "tari.rpc", + sizeof(Tari__Rpc__MinerData), + 4, + tari__rpc__miner_data__field_descriptors, + tari__rpc__miner_data__field_indices_by_name, + 2, tari__rpc__miner_data__number_ranges, + (ProtobufCMessageInit) tari__rpc__miner_data__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__search_kernels_request__field_descriptors[1] = +{ + { + "signatures", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__SearchKernelsRequest, n_signatures), + offsetof(Tari__Rpc__SearchKernelsRequest, signatures), + &tari__rpc__signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__search_kernels_request__field_indices_by_name[] = { + 0, /* field[0] = signatures */ +}; +static const ProtobufCIntRange tari__rpc__search_kernels_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__search_kernels_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SearchKernelsRequest", + "SearchKernelsRequest", + "Tari__Rpc__SearchKernelsRequest", + "tari.rpc", + sizeof(Tari__Rpc__SearchKernelsRequest), + 1, + tari__rpc__search_kernels_request__field_descriptors, + tari__rpc__search_kernels_request__field_indices_by_name, + 1, tari__rpc__search_kernels_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__search_kernels_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__search_utxos_request__field_descriptors[1] = +{ + { + "commitments", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_BYTES, + offsetof(Tari__Rpc__SearchUtxosRequest, n_commitments), + offsetof(Tari__Rpc__SearchUtxosRequest, commitments), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__search_utxos_request__field_indices_by_name[] = { + 0, /* field[0] = commitments */ +}; +static const ProtobufCIntRange tari__rpc__search_utxos_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__search_utxos_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SearchUtxosRequest", + "SearchUtxosRequest", + "Tari__Rpc__SearchUtxosRequest", + "tari.rpc", + sizeof(Tari__Rpc__SearchUtxosRequest), + 1, + tari__rpc__search_utxos_request__field_descriptors, + tari__rpc__search_utxos_request__field_indices_by_name, + 1, tari__rpc__search_utxos_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__search_utxos_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__fetch_matching_utxos_request__field_descriptors[1] = +{ + { + "hashes", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_BYTES, + offsetof(Tari__Rpc__FetchMatchingUtxosRequest, n_hashes), + offsetof(Tari__Rpc__FetchMatchingUtxosRequest, hashes), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__fetch_matching_utxos_request__field_indices_by_name[] = { + 0, /* field[0] = hashes */ +}; +static const ProtobufCIntRange tari__rpc__fetch_matching_utxos_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__fetch_matching_utxos_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.FetchMatchingUtxosRequest", + "FetchMatchingUtxosRequest", + "Tari__Rpc__FetchMatchingUtxosRequest", + "tari.rpc", + sizeof(Tari__Rpc__FetchMatchingUtxosRequest), + 1, + tari__rpc__fetch_matching_utxos_request__field_descriptors, + tari__rpc__fetch_matching_utxos_request__field_indices_by_name, + 1, tari__rpc__fetch_matching_utxos_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__fetch_matching_utxos_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__fetch_matching_utxos_response__field_descriptors[1] = +{ + { + "output", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__FetchMatchingUtxosResponse, output), + &tari__rpc__transaction_output__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__fetch_matching_utxos_response__field_indices_by_name[] = { + 0, /* field[0] = output */ +}; +static const ProtobufCIntRange tari__rpc__fetch_matching_utxos_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__fetch_matching_utxos_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.FetchMatchingUtxosResponse", + "FetchMatchingUtxosResponse", + "Tari__Rpc__FetchMatchingUtxosResponse", + "tari.rpc", + sizeof(Tari__Rpc__FetchMatchingUtxosResponse), + 1, + tari__rpc__fetch_matching_utxos_response__field_descriptors, + tari__rpc__fetch_matching_utxos_response__field_indices_by_name, + 1, tari__rpc__fetch_matching_utxos_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__fetch_matching_utxos_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_peers_response__field_descriptors[1] = +{ + { + "peer", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetPeersResponse, peer), + &tari__rpc__peer__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_peers_response__field_indices_by_name[] = { + 0, /* field[0] = peer */ +}; +static const ProtobufCIntRange tari__rpc__get_peers_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_peers_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetPeersResponse", + "GetPeersResponse", + "Tari__Rpc__GetPeersResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetPeersResponse), + 1, + tari__rpc__get_peers_response__field_descriptors, + tari__rpc__get_peers_response__field_indices_by_name, + 1, tari__rpc__get_peers_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_peers_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +#define tari__rpc__get_peers_request__field_descriptors NULL +#define tari__rpc__get_peers_request__field_indices_by_name NULL +#define tari__rpc__get_peers_request__number_ranges NULL +const ProtobufCMessageDescriptor tari__rpc__get_peers_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetPeersRequest", + "GetPeersRequest", + "Tari__Rpc__GetPeersRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetPeersRequest), + 0, + tari__rpc__get_peers_request__field_descriptors, + tari__rpc__get_peers_request__field_indices_by_name, + 0, tari__rpc__get_peers_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_peers_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__submit_transaction_request__field_descriptors[1] = +{ + { + "transaction", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SubmitTransactionRequest, transaction), + &tari__rpc__transaction__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__submit_transaction_request__field_indices_by_name[] = { + 0, /* field[0] = transaction */ +}; +static const ProtobufCIntRange tari__rpc__submit_transaction_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__submit_transaction_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SubmitTransactionRequest", + "SubmitTransactionRequest", + "Tari__Rpc__SubmitTransactionRequest", + "tari.rpc", + sizeof(Tari__Rpc__SubmitTransactionRequest), + 1, + tari__rpc__submit_transaction_request__field_descriptors, + tari__rpc__submit_transaction_request__field_indices_by_name, + 1, tari__rpc__submit_transaction_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__submit_transaction_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__submit_transaction_response__field_descriptors[1] = +{ + { + "result", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SubmitTransactionResponse, result), + &tari__rpc__submit_transaction_result__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__submit_transaction_response__field_indices_by_name[] = { + 0, /* field[0] = result */ +}; +static const ProtobufCIntRange tari__rpc__submit_transaction_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__submit_transaction_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SubmitTransactionResponse", + "SubmitTransactionResponse", + "Tari__Rpc__SubmitTransactionResponse", + "tari.rpc", + sizeof(Tari__Rpc__SubmitTransactionResponse), + 1, + tari__rpc__submit_transaction_response__field_descriptors, + tari__rpc__submit_transaction_response__field_indices_by_name, + 1, tari__rpc__submit_transaction_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__submit_transaction_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +#define tari__rpc__get_mempool_transactions_request__field_descriptors NULL +#define tari__rpc__get_mempool_transactions_request__field_indices_by_name NULL +#define tari__rpc__get_mempool_transactions_request__number_ranges NULL +const ProtobufCMessageDescriptor tari__rpc__get_mempool_transactions_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetMempoolTransactionsRequest", + "GetMempoolTransactionsRequest", + "Tari__Rpc__GetMempoolTransactionsRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetMempoolTransactionsRequest), + 0, + tari__rpc__get_mempool_transactions_request__field_descriptors, + tari__rpc__get_mempool_transactions_request__field_indices_by_name, + 0, tari__rpc__get_mempool_transactions_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_mempool_transactions_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_mempool_transactions_response__field_descriptors[1] = +{ + { + "transaction", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetMempoolTransactionsResponse, transaction), + &tari__rpc__transaction__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_mempool_transactions_response__field_indices_by_name[] = { + 0, /* field[0] = transaction */ +}; +static const ProtobufCIntRange tari__rpc__get_mempool_transactions_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_mempool_transactions_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetMempoolTransactionsResponse", + "GetMempoolTransactionsResponse", + "Tari__Rpc__GetMempoolTransactionsResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetMempoolTransactionsResponse), + 1, + tari__rpc__get_mempool_transactions_response__field_descriptors, + tari__rpc__get_mempool_transactions_response__field_indices_by_name, + 1, tari__rpc__get_mempool_transactions_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_mempool_transactions_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__transaction_state_request__field_descriptors[1] = +{ + { + "excess_sig", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionStateRequest, excess_sig), + &tari__rpc__signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__transaction_state_request__field_indices_by_name[] = { + 0, /* field[0] = excess_sig */ +}; +static const ProtobufCIntRange tari__rpc__transaction_state_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__transaction_state_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TransactionStateRequest", + "TransactionStateRequest", + "Tari__Rpc__TransactionStateRequest", + "tari.rpc", + sizeof(Tari__Rpc__TransactionStateRequest), + 1, + tari__rpc__transaction_state_request__field_descriptors, + tari__rpc__transaction_state_request__field_indices_by_name, + 1, tari__rpc__transaction_state_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__transaction_state_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__transaction_state_response__field_descriptors[1] = +{ + { + "result", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionStateResponse, result), + &tari__rpc__transaction_location__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__transaction_state_response__field_indices_by_name[] = { + 0, /* field[0] = result */ +}; +static const ProtobufCIntRange tari__rpc__transaction_state_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__transaction_state_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TransactionStateResponse", + "TransactionStateResponse", + "Tari__Rpc__TransactionStateResponse", + "tari.rpc", + sizeof(Tari__Rpc__TransactionStateResponse), + 1, + tari__rpc__transaction_state_response__field_descriptors, + tari__rpc__transaction_state_response__field_indices_by_name, + 1, tari__rpc__transaction_state_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__transaction_state_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__mempool_stats_response__field_descriptors[3] = +{ + { + "unconfirmed_txs", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MempoolStatsResponse, unconfirmed_txs), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "reorg_txs", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MempoolStatsResponse, reorg_txs), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "unconfirmed_weight", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__MempoolStatsResponse, unconfirmed_weight), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__mempool_stats_response__field_indices_by_name[] = { + 1, /* field[1] = reorg_txs */ + 0, /* field[0] = unconfirmed_txs */ + 2, /* field[2] = unconfirmed_weight */ +}; +static const ProtobufCIntRange tari__rpc__mempool_stats_response__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__mempool_stats_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.MempoolStatsResponse", + "MempoolStatsResponse", + "Tari__Rpc__MempoolStatsResponse", + "tari.rpc", + sizeof(Tari__Rpc__MempoolStatsResponse), + 3, + tari__rpc__mempool_stats_response__field_descriptors, + tari__rpc__mempool_stats_response__field_indices_by_name, + 1, tari__rpc__mempool_stats_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__mempool_stats_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_active_validator_nodes_request__field_descriptors[1] = +{ + { + "height", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetActiveValidatorNodesRequest, height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_active_validator_nodes_request__field_indices_by_name[] = { + 0, /* field[0] = height */ +}; +static const ProtobufCIntRange tari__rpc__get_active_validator_nodes_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_active_validator_nodes_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetActiveValidatorNodesRequest", + "GetActiveValidatorNodesRequest", + "Tari__Rpc__GetActiveValidatorNodesRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetActiveValidatorNodesRequest), + 1, + tari__rpc__get_active_validator_nodes_request__field_descriptors, + tari__rpc__get_active_validator_nodes_request__field_indices_by_name, + 1, tari__rpc__get_active_validator_nodes_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_active_validator_nodes_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_active_validator_nodes_response__field_descriptors[2] = +{ + { + "shard_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetActiveValidatorNodesResponse, shard_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "public_key", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetActiveValidatorNodesResponse, public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_active_validator_nodes_response__field_indices_by_name[] = { + 1, /* field[1] = public_key */ + 0, /* field[0] = shard_key */ +}; +static const ProtobufCIntRange tari__rpc__get_active_validator_nodes_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_active_validator_nodes_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetActiveValidatorNodesResponse", + "GetActiveValidatorNodesResponse", + "Tari__Rpc__GetActiveValidatorNodesResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetActiveValidatorNodesResponse), + 2, + tari__rpc__get_active_validator_nodes_response__field_descriptors, + tari__rpc__get_active_validator_nodes_response__field_indices_by_name, + 1, tari__rpc__get_active_validator_nodes_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_active_validator_nodes_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_shard_key_request__field_descriptors[2] = +{ + { + "height", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetShardKeyRequest, height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "public_key", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetShardKeyRequest, public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_shard_key_request__field_indices_by_name[] = { + 0, /* field[0] = height */ + 1, /* field[1] = public_key */ +}; +static const ProtobufCIntRange tari__rpc__get_shard_key_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_shard_key_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetShardKeyRequest", + "GetShardKeyRequest", + "Tari__Rpc__GetShardKeyRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetShardKeyRequest), + 2, + tari__rpc__get_shard_key_request__field_descriptors, + tari__rpc__get_shard_key_request__field_indices_by_name, + 1, tari__rpc__get_shard_key_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_shard_key_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_shard_key_response__field_descriptors[2] = +{ + { + "shard_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetShardKeyResponse, shard_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "found", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetShardKeyResponse, found), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_shard_key_response__field_indices_by_name[] = { + 1, /* field[1] = found */ + 0, /* field[0] = shard_key */ +}; +static const ProtobufCIntRange tari__rpc__get_shard_key_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_shard_key_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetShardKeyResponse", + "GetShardKeyResponse", + "Tari__Rpc__GetShardKeyResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetShardKeyResponse), + 2, + tari__rpc__get_shard_key_response__field_descriptors, + tari__rpc__get_shard_key_response__field_indices_by_name, + 1, tari__rpc__get_shard_key_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_shard_key_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_template_registrations_request__field_descriptors[2] = +{ + { + "start_hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTemplateRegistrationsRequest, start_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "count", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTemplateRegistrationsRequest, count), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_template_registrations_request__field_indices_by_name[] = { + 1, /* field[1] = count */ + 0, /* field[0] = start_hash */ +}; +static const ProtobufCIntRange tari__rpc__get_template_registrations_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_template_registrations_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetTemplateRegistrationsRequest", + "GetTemplateRegistrationsRequest", + "Tari__Rpc__GetTemplateRegistrationsRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetTemplateRegistrationsRequest), + 2, + tari__rpc__get_template_registrations_request__field_descriptors, + tari__rpc__get_template_registrations_request__field_indices_by_name, + 1, tari__rpc__get_template_registrations_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_template_registrations_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_template_registration_response__field_descriptors[2] = +{ + { + "utxo_hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTemplateRegistrationResponse, utxo_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "registration", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetTemplateRegistrationResponse, registration), + &tari__rpc__template_registration__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_template_registration_response__field_indices_by_name[] = { + 1, /* field[1] = registration */ + 0, /* field[0] = utxo_hash */ +}; +static const ProtobufCIntRange tari__rpc__get_template_registration_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_template_registration_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetTemplateRegistrationResponse", + "GetTemplateRegistrationResponse", + "Tari__Rpc__GetTemplateRegistrationResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetTemplateRegistrationResponse), + 2, + tari__rpc__get_template_registration_response__field_descriptors, + tari__rpc__get_template_registration_response__field_indices_by_name, + 1, tari__rpc__get_template_registration_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_template_registration_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block_info__field_descriptors[3] = +{ + { + "height", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockInfo, height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "hash", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockInfo, hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "next_block_hash", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockInfo, next_block_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_info__field_indices_by_name[] = { + 1, /* field[1] = hash */ + 0, /* field[0] = height */ + 2, /* field[2] = next_block_hash */ +}; +static const ProtobufCIntRange tari__rpc__block_info__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_info__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockInfo", + "BlockInfo", + "Tari__Rpc__BlockInfo", + "tari.rpc", + sizeof(Tari__Rpc__BlockInfo), + 3, + tari__rpc__block_info__field_descriptors, + tari__rpc__block_info__field_indices_by_name, + 1, tari__rpc__block_info__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_info__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_side_chain_utxos_request__field_descriptors[2] = +{ + { + "start_hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetSideChainUtxosRequest, start_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "count", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetSideChainUtxosRequest, count), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_side_chain_utxos_request__field_indices_by_name[] = { + 1, /* field[1] = count */ + 0, /* field[0] = start_hash */ +}; +static const ProtobufCIntRange tari__rpc__get_side_chain_utxos_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_side_chain_utxos_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetSideChainUtxosRequest", + "GetSideChainUtxosRequest", + "Tari__Rpc__GetSideChainUtxosRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetSideChainUtxosRequest), + 2, + tari__rpc__get_side_chain_utxos_request__field_descriptors, + tari__rpc__get_side_chain_utxos_request__field_indices_by_name, + 1, tari__rpc__get_side_chain_utxos_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_side_chain_utxos_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_side_chain_utxos_response__field_descriptors[2] = +{ + { + "block_info", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetSideChainUtxosResponse, block_info), + &tari__rpc__block_info__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "outputs", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__GetSideChainUtxosResponse, n_outputs), + offsetof(Tari__Rpc__GetSideChainUtxosResponse, outputs), + &tari__rpc__transaction_output__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_side_chain_utxos_response__field_indices_by_name[] = { + 0, /* field[0] = block_info */ + 1, /* field[1] = outputs */ +}; +static const ProtobufCIntRange tari__rpc__get_side_chain_utxos_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_side_chain_utxos_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetSideChainUtxosResponse", + "GetSideChainUtxosResponse", + "Tari__Rpc__GetSideChainUtxosResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetSideChainUtxosResponse), + 2, + tari__rpc__get_side_chain_utxos_response__field_descriptors, + tari__rpc__get_side_chain_utxos_response__field_indices_by_name, + 1, tari__rpc__get_side_chain_utxos_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_side_chain_utxos_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCEnumValue tari__rpc__base_node_state__enum_values_by_number[7] = +{ + { "START_UP", "TARI__RPC__BASE_NODE_STATE__START_UP", 0 }, + { "HEADER_SYNC", "TARI__RPC__BASE_NODE_STATE__HEADER_SYNC", 1 }, + { "HORIZON_SYNC", "TARI__RPC__BASE_NODE_STATE__HORIZON_SYNC", 2 }, + { "CONNECTING", "TARI__RPC__BASE_NODE_STATE__CONNECTING", 3 }, + { "BLOCK_SYNC", "TARI__RPC__BASE_NODE_STATE__BLOCK_SYNC", 4 }, + { "LISTENING", "TARI__RPC__BASE_NODE_STATE__LISTENING", 5 }, + { "SYNC_FAILED", "TARI__RPC__BASE_NODE_STATE__SYNC_FAILED", 6 }, +}; +static const ProtobufCIntRange tari__rpc__base_node_state__value_ranges[] = { +{0, 0},{0, 7} +}; +static const ProtobufCEnumValueIndex tari__rpc__base_node_state__enum_values_by_name[7] = +{ + { "BLOCK_SYNC", 4 }, + { "CONNECTING", 3 }, + { "HEADER_SYNC", 1 }, + { "HORIZON_SYNC", 2 }, + { "LISTENING", 5 }, + { "START_UP", 0 }, + { "SYNC_FAILED", 6 }, +}; +const ProtobufCEnumDescriptor tari__rpc__base_node_state__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.BaseNodeState", + "BaseNodeState", + "Tari__Rpc__BaseNodeState", + "tari.rpc", + 7, + tari__rpc__base_node_state__enum_values_by_number, + 7, + tari__rpc__base_node_state__enum_values_by_name, + 1, + tari__rpc__base_node_state__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue tari__rpc__calc_type__enum_values_by_number[4] = +{ + { "MEAN", "TARI__RPC__CALC_TYPE__MEAN", 0 }, + { "MEDIAN", "TARI__RPC__CALC_TYPE__MEDIAN", 1 }, + { "QUANTILE", "TARI__RPC__CALC_TYPE__QUANTILE", 2 }, + { "QUARTILE", "TARI__RPC__CALC_TYPE__QUARTILE", 3 }, +}; +static const ProtobufCIntRange tari__rpc__calc_type__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex tari__rpc__calc_type__enum_values_by_name[4] = +{ + { "MEAN", 0 }, + { "MEDIAN", 1 }, + { "QUANTILE", 2 }, + { "QUARTILE", 3 }, +}; +const ProtobufCEnumDescriptor tari__rpc__calc_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.CalcType", + "CalcType", + "Tari__Rpc__CalcType", + "tari.rpc", + 4, + tari__rpc__calc_type__enum_values_by_number, + 4, + tari__rpc__calc_type__enum_values_by_name, + 1, + tari__rpc__calc_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue tari__rpc__sorting__enum_values_by_number[2] = +{ + { "SORTING_DESC", "TARI__RPC__SORTING__SORTING_DESC", 0 }, + { "SORTING_ASC", "TARI__RPC__SORTING__SORTING_ASC", 1 }, +}; +static const ProtobufCIntRange tari__rpc__sorting__value_ranges[] = { +{0, 0},{0, 2} +}; +static const ProtobufCEnumValueIndex tari__rpc__sorting__enum_values_by_name[2] = +{ + { "SORTING_ASC", 1 }, + { "SORTING_DESC", 0 }, +}; +const ProtobufCEnumDescriptor tari__rpc__sorting__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.Sorting", + "Sorting", + "Tari__Rpc__Sorting", + "tari.rpc", + 2, + tari__rpc__sorting__enum_values_by_number, + 2, + tari__rpc__sorting__enum_values_by_name, + 1, + tari__rpc__sorting__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue tari__rpc__sync_state__enum_values_by_number[6] = +{ + { "STARTUP", "TARI__RPC__SYNC_STATE__STARTUP", 0 }, + { "HEADER_STARTING", "TARI__RPC__SYNC_STATE__HEADER_STARTING", 1 }, + { "HEADER", "TARI__RPC__SYNC_STATE__HEADER", 2 }, + { "BLOCK_STARTING", "TARI__RPC__SYNC_STATE__BLOCK_STARTING", 3 }, + { "BLOCK", "TARI__RPC__SYNC_STATE__BLOCK", 4 }, + { "DONE", "TARI__RPC__SYNC_STATE__DONE", 5 }, +}; +static const ProtobufCIntRange tari__rpc__sync_state__value_ranges[] = { +{0, 0},{0, 6} +}; +static const ProtobufCEnumValueIndex tari__rpc__sync_state__enum_values_by_name[6] = +{ + { "BLOCK", 4 }, + { "BLOCK_STARTING", 3 }, + { "DONE", 5 }, + { "HEADER", 2 }, + { "HEADER_STARTING", 1 }, + { "STARTUP", 0 }, +}; +const ProtobufCEnumDescriptor tari__rpc__sync_state__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.SyncState", + "SyncState", + "Tari__Rpc__SyncState", + "tari.rpc", + 6, + tari__rpc__sync_state__enum_values_by_number, + 6, + tari__rpc__sync_state__enum_values_by_name, + 1, + tari__rpc__sync_state__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue tari__rpc__submit_transaction_result__enum_values_by_number[5] = +{ + { "NONE", "TARI__RPC__SUBMIT_TRANSACTION_RESULT__NONE", 0 }, + { "ACCEPTED", "TARI__RPC__SUBMIT_TRANSACTION_RESULT__ACCEPTED", 1 }, + { "NOT_PROCESSABLE_AT_THIS_TIME", "TARI__RPC__SUBMIT_TRANSACTION_RESULT__NOT_PROCESSABLE_AT_THIS_TIME", 2 }, + { "ALREADY_MINED", "TARI__RPC__SUBMIT_TRANSACTION_RESULT__ALREADY_MINED", 3 }, + { "REJECTED", "TARI__RPC__SUBMIT_TRANSACTION_RESULT__REJECTED", 4 }, +}; +static const ProtobufCIntRange tari__rpc__submit_transaction_result__value_ranges[] = { +{0, 0},{0, 5} +}; +static const ProtobufCEnumValueIndex tari__rpc__submit_transaction_result__enum_values_by_name[5] = +{ + { "ACCEPTED", 1 }, + { "ALREADY_MINED", 3 }, + { "NONE", 0 }, + { "NOT_PROCESSABLE_AT_THIS_TIME", 2 }, + { "REJECTED", 4 }, +}; +const ProtobufCEnumDescriptor tari__rpc__submit_transaction_result__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.SubmitTransactionResult", + "SubmitTransactionResult", + "Tari__Rpc__SubmitTransactionResult", + "tari.rpc", + 5, + tari__rpc__submit_transaction_result__enum_values_by_number, + 5, + tari__rpc__submit_transaction_result__enum_values_by_name, + 1, + tari__rpc__submit_transaction_result__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue tari__rpc__transaction_location__enum_values_by_number[4] = +{ + { "UNKNOWN", "TARI__RPC__TRANSACTION_LOCATION__UNKNOWN", 0 }, + { "MEMPOOL", "TARI__RPC__TRANSACTION_LOCATION__MEMPOOL", 1 }, + { "MINED", "TARI__RPC__TRANSACTION_LOCATION__MINED", 2 }, + { "NOT_STORED", "TARI__RPC__TRANSACTION_LOCATION__NOT_STORED", 3 }, +}; +static const ProtobufCIntRange tari__rpc__transaction_location__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex tari__rpc__transaction_location__enum_values_by_name[4] = +{ + { "MEMPOOL", 1 }, + { "MINED", 2 }, + { "NOT_STORED", 3 }, + { "UNKNOWN", 0 }, +}; +const ProtobufCEnumDescriptor tari__rpc__transaction_location__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.TransactionLocation", + "TransactionLocation", + "Tari__Rpc__TransactionLocation", + "tari.rpc", + 4, + tari__rpc__transaction_location__enum_values_by_number, + 4, + tari__rpc__transaction_location__enum_values_by_name, + 1, + tari__rpc__transaction_location__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCMethodDescriptor tari__rpc__base_node__method_descriptors[34] = +{ + { "ListHeaders", &tari__rpc__list_headers_request__descriptor, &tari__rpc__block_header_response__descriptor }, + { "GetHeaderByHash", &tari__rpc__get_header_by_hash_request__descriptor, &tari__rpc__block_header_response__descriptor }, + { "GetBlocks", &tari__rpc__get_blocks_request__descriptor, &tari__rpc__historical_block__descriptor }, + { "GetBlockTiming", &tari__rpc__height_request__descriptor, &tari__rpc__block_timing_response__descriptor }, + { "GetConstants", &tari__rpc__block_height__descriptor, &tari__rpc__consensus_constants__descriptor }, + { "GetBlockSize", &tari__rpc__block_group_request__descriptor, &tari__rpc__block_group_response__descriptor }, + { "GetBlockFees", &tari__rpc__block_group_request__descriptor, &tari__rpc__block_group_response__descriptor }, + { "GetVersion", &tari__rpc__empty__descriptor, &tari__rpc__string_value__descriptor }, + { "CheckForUpdates", &tari__rpc__empty__descriptor, &tari__rpc__software_update__descriptor }, + { "GetTokensInCirculation", &tari__rpc__get_blocks_request__descriptor, &tari__rpc__value_at_height_response__descriptor }, + { "GetNetworkDifficulty", &tari__rpc__height_request__descriptor, &tari__rpc__network_difficulty_response__descriptor }, + { "GetNewBlockTemplate", &tari__rpc__new_block_template_request__descriptor, &tari__rpc__new_block_template_response__descriptor }, + { "GetNewBlock", &tari__rpc__new_block_template__descriptor, &tari__rpc__get_new_block_result__descriptor }, + { "GetNewBlockBlob", &tari__rpc__new_block_template__descriptor, &tari__rpc__get_new_block_blob_result__descriptor }, + { "SubmitBlock", &tari__rpc__block__descriptor, &tari__rpc__submit_block_response__descriptor }, + { "SubmitBlockBlob", &tari__rpc__block_blob_request__descriptor, &tari__rpc__submit_block_response__descriptor }, + { "SubmitTransaction", &tari__rpc__submit_transaction_request__descriptor, &tari__rpc__submit_transaction_response__descriptor }, + { "GetSyncInfo", &tari__rpc__empty__descriptor, &tari__rpc__sync_info_response__descriptor }, + { "GetSyncProgress", &tari__rpc__empty__descriptor, &tari__rpc__sync_progress_response__descriptor }, + { "GetTipInfo", &tari__rpc__empty__descriptor, &tari__rpc__tip_info_response__descriptor }, + { "SearchKernels", &tari__rpc__search_kernels_request__descriptor, &tari__rpc__historical_block__descriptor }, + { "SearchUtxos", &tari__rpc__search_utxos_request__descriptor, &tari__rpc__historical_block__descriptor }, + { "FetchMatchingUtxos", &tari__rpc__fetch_matching_utxos_request__descriptor, &tari__rpc__fetch_matching_utxos_response__descriptor }, + { "GetPeers", &tari__rpc__get_peers_request__descriptor, &tari__rpc__get_peers_response__descriptor }, + { "GetMempoolTransactions", &tari__rpc__get_mempool_transactions_request__descriptor, &tari__rpc__get_mempool_transactions_response__descriptor }, + { "TransactionState", &tari__rpc__transaction_state_request__descriptor, &tari__rpc__transaction_state_response__descriptor }, + { "Identify", &tari__rpc__empty__descriptor, &tari__rpc__node_identity__descriptor }, + { "GetNetworkStatus", &tari__rpc__empty__descriptor, &tari__rpc__network_status_response__descriptor }, + { "ListConnectedPeers", &tari__rpc__empty__descriptor, &tari__rpc__list_connected_peers_response__descriptor }, + { "GetMempoolStats", &tari__rpc__empty__descriptor, &tari__rpc__mempool_stats_response__descriptor }, + { "GetActiveValidatorNodes", &tari__rpc__get_active_validator_nodes_request__descriptor, &tari__rpc__get_active_validator_nodes_response__descriptor }, + { "GetShardKey", &tari__rpc__get_shard_key_request__descriptor, &tari__rpc__get_shard_key_response__descriptor }, + { "GetTemplateRegistrations", &tari__rpc__get_template_registrations_request__descriptor, &tari__rpc__get_template_registration_response__descriptor }, + { "GetSideChainUtxos", &tari__rpc__get_side_chain_utxos_request__descriptor, &tari__rpc__get_side_chain_utxos_response__descriptor }, +}; +const unsigned tari__rpc__base_node__method_indices_by_name[] = { + 8, /* CheckForUpdates */ + 22, /* FetchMatchingUtxos */ + 30, /* GetActiveValidatorNodes */ + 6, /* GetBlockFees */ + 5, /* GetBlockSize */ + 3, /* GetBlockTiming */ + 2, /* GetBlocks */ + 4, /* GetConstants */ + 1, /* GetHeaderByHash */ + 29, /* GetMempoolStats */ + 24, /* GetMempoolTransactions */ + 10, /* GetNetworkDifficulty */ + 27, /* GetNetworkStatus */ + 12, /* GetNewBlock */ + 13, /* GetNewBlockBlob */ + 11, /* GetNewBlockTemplate */ + 23, /* GetPeers */ + 31, /* GetShardKey */ + 33, /* GetSideChainUtxos */ + 17, /* GetSyncInfo */ + 18, /* GetSyncProgress */ + 32, /* GetTemplateRegistrations */ + 19, /* GetTipInfo */ + 9, /* GetTokensInCirculation */ + 7, /* GetVersion */ + 26, /* Identify */ + 28, /* ListConnectedPeers */ + 0, /* ListHeaders */ + 20, /* SearchKernels */ + 21, /* SearchUtxos */ + 14, /* SubmitBlock */ + 15, /* SubmitBlockBlob */ + 16, /* SubmitTransaction */ + 25 /* TransactionState */ +}; +const ProtobufCServiceDescriptor tari__rpc__base_node__descriptor = +{ + PROTOBUF_C__SERVICE_DESCRIPTOR_MAGIC, + "tari.rpc.BaseNode", + "BaseNode", + "Tari__Rpc__BaseNode", + "tari.rpc", + 34, + tari__rpc__base_node__method_descriptors, + tari__rpc__base_node__method_indices_by_name +}; +void tari__rpc__base_node__list_headers(ProtobufCService *service, + const Tari__Rpc__ListHeadersRequest *input, + Tari__Rpc__BlockHeaderResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 0, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_header_by_hash(ProtobufCService *service, + const Tari__Rpc__GetHeaderByHashRequest *input, + Tari__Rpc__BlockHeaderResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 1, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_blocks(ProtobufCService *service, + const Tari__Rpc__GetBlocksRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 2, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_block_timing(ProtobufCService *service, + const Tari__Rpc__HeightRequest *input, + Tari__Rpc__BlockTimingResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 3, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_constants(ProtobufCService *service, + const Tari__Rpc__BlockHeight *input, + Tari__Rpc__ConsensusConstants_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 4, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_block_size(ProtobufCService *service, + const Tari__Rpc__BlockGroupRequest *input, + Tari__Rpc__BlockGroupResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 5, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_block_fees(ProtobufCService *service, + const Tari__Rpc__BlockGroupRequest *input, + Tari__Rpc__BlockGroupResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 6, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_version(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__StringValue_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 7, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__check_for_updates(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SoftwareUpdate_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 8, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_tokens_in_circulation(ProtobufCService *service, + const Tari__Rpc__GetBlocksRequest *input, + Tari__Rpc__ValueAtHeightResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 9, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_network_difficulty(ProtobufCService *service, + const Tari__Rpc__HeightRequest *input, + Tari__Rpc__NetworkDifficultyResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 10, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_new_block_template(ProtobufCService *service, + const Tari__Rpc__NewBlockTemplateRequest *input, + Tari__Rpc__NewBlockTemplateResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 11, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_new_block(ProtobufCService *service, + const Tari__Rpc__NewBlockTemplate *input, + Tari__Rpc__GetNewBlockResult_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 12, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_new_block_blob(ProtobufCService *service, + const Tari__Rpc__NewBlockTemplate *input, + Tari__Rpc__GetNewBlockBlobResult_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 13, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__submit_block(ProtobufCService *service, + const Tari__Rpc__Block *input, + Tari__Rpc__SubmitBlockResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 14, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__submit_block_blob(ProtobufCService *service, + const Tari__Rpc__BlockBlobRequest *input, + Tari__Rpc__SubmitBlockResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 15, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__submit_transaction(ProtobufCService *service, + const Tari__Rpc__SubmitTransactionRequest *input, + Tari__Rpc__SubmitTransactionResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 16, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_sync_info(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SyncInfoResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 17, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_sync_progress(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SyncProgressResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 18, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_tip_info(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__TipInfoResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 19, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__search_kernels(ProtobufCService *service, + const Tari__Rpc__SearchKernelsRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 20, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__search_utxos(ProtobufCService *service, + const Tari__Rpc__SearchUtxosRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 21, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__fetch_matching_utxos(ProtobufCService *service, + const Tari__Rpc__FetchMatchingUtxosRequest *input, + Tari__Rpc__FetchMatchingUtxosResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 22, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_peers(ProtobufCService *service, + const Tari__Rpc__GetPeersRequest *input, + Tari__Rpc__GetPeersResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 23, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_mempool_transactions(ProtobufCService *service, + const Tari__Rpc__GetMempoolTransactionsRequest *input, + Tari__Rpc__GetMempoolTransactionsResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 24, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__transaction_state(ProtobufCService *service, + const Tari__Rpc__TransactionStateRequest *input, + Tari__Rpc__TransactionStateResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 25, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__identify(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__NodeIdentity_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 26, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_network_status(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__NetworkStatusResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 27, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__list_connected_peers(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__ListConnectedPeersResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 28, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_mempool_stats(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__MempoolStatsResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 29, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_active_validator_nodes(ProtobufCService *service, + const Tari__Rpc__GetActiveValidatorNodesRequest *input, + Tari__Rpc__GetActiveValidatorNodesResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 30, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_shard_key(ProtobufCService *service, + const Tari__Rpc__GetShardKeyRequest *input, + Tari__Rpc__GetShardKeyResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 31, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_template_registrations(ProtobufCService *service, + const Tari__Rpc__GetTemplateRegistrationsRequest *input, + Tari__Rpc__GetTemplateRegistrationResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 32, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__get_side_chain_utxos(ProtobufCService *service, + const Tari__Rpc__GetSideChainUtxosRequest *input, + Tari__Rpc__GetSideChainUtxosResponse_Closure closure, + void *closure_data) +{ + assert(service->descriptor == &tari__rpc__base_node__descriptor); + service->invoke(service, 33, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data); +} +void tari__rpc__base_node__init (Tari__Rpc__BaseNode_Service *service, + Tari__Rpc__BaseNode_ServiceDestroy destroy) +{ + protobuf_c_service_generated_init (&service->base, + &tari__rpc__base_node__descriptor, + (ProtobufCServiceDestroy) destroy); +} diff --git a/external/src/Tari/proto/gRPC/base_node.pb-c.h b/external/src/Tari/proto/gRPC/base_node.pb-c.h new file mode 100644 index 00000000..5c4e2f97 --- /dev/null +++ b/external/src/Tari/proto/gRPC/base_node.pb-c.h @@ -0,0 +1,2423 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: base_node.proto */ + +#ifndef PROTOBUF_C_base_5fnode_2eproto__INCLUDED +#define PROTOBUF_C_base_5fnode_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "types.pb-c.h" +#include "transaction.pb-c.h" +#include "block.pb-c.h" +#include "network.pb-c.h" +#include "sidechain_types.pb-c.h" + +typedef struct _Tari__Rpc__GetAssetMetadataRequest Tari__Rpc__GetAssetMetadataRequest; +typedef struct _Tari__Rpc__GetAssetMetadataResponse Tari__Rpc__GetAssetMetadataResponse; +typedef struct _Tari__Rpc__ListAssetRegistrationsRequest Tari__Rpc__ListAssetRegistrationsRequest; +typedef struct _Tari__Rpc__ListAssetRegistrationsResponse Tari__Rpc__ListAssetRegistrationsResponse; +typedef struct _Tari__Rpc__GetTokensRequest Tari__Rpc__GetTokensRequest; +typedef struct _Tari__Rpc__GetTokensResponse Tari__Rpc__GetTokensResponse; +typedef struct _Tari__Rpc__SubmitBlockResponse Tari__Rpc__SubmitBlockResponse; +typedef struct _Tari__Rpc__BlockBlobRequest Tari__Rpc__BlockBlobRequest; +typedef struct _Tari__Rpc__TipInfoResponse Tari__Rpc__TipInfoResponse; +typedef struct _Tari__Rpc__NewBlockTemplateResponse Tari__Rpc__NewBlockTemplateResponse; +typedef struct _Tari__Rpc__NewBlockTemplateRequest Tari__Rpc__NewBlockTemplateRequest; +typedef struct _Tari__Rpc__NetworkDifficultyResponse Tari__Rpc__NetworkDifficultyResponse; +typedef struct _Tari__Rpc__ValueAtHeightResponse Tari__Rpc__ValueAtHeightResponse; +typedef struct _Tari__Rpc__IntegerValue Tari__Rpc__IntegerValue; +typedef struct _Tari__Rpc__StringValue Tari__Rpc__StringValue; +typedef struct _Tari__Rpc__BlockGroupRequest Tari__Rpc__BlockGroupRequest; +typedef struct _Tari__Rpc__BlockGroupResponse Tari__Rpc__BlockGroupResponse; +typedef struct _Tari__Rpc__HeightRequest Tari__Rpc__HeightRequest; +typedef struct _Tari__Rpc__BlockTimingResponse Tari__Rpc__BlockTimingResponse; +typedef struct _Tari__Rpc__GetHeaderByHashRequest Tari__Rpc__GetHeaderByHashRequest; +typedef struct _Tari__Rpc__BlockHeaderResponse Tari__Rpc__BlockHeaderResponse; +typedef struct _Tari__Rpc__ListHeadersRequest Tari__Rpc__ListHeadersRequest; +typedef struct _Tari__Rpc__GetBlocksRequest Tari__Rpc__GetBlocksRequest; +typedef struct _Tari__Rpc__GetBlocksResponse Tari__Rpc__GetBlocksResponse; +typedef struct _Tari__Rpc__MetaData Tari__Rpc__MetaData; +typedef struct _Tari__Rpc__SyncInfoResponse Tari__Rpc__SyncInfoResponse; +typedef struct _Tari__Rpc__SyncProgressResponse Tari__Rpc__SyncProgressResponse; +typedef struct _Tari__Rpc__GetNewBlockResult Tari__Rpc__GetNewBlockResult; +typedef struct _Tari__Rpc__GetNewBlockBlobResult Tari__Rpc__GetNewBlockBlobResult; +typedef struct _Tari__Rpc__MinerData Tari__Rpc__MinerData; +typedef struct _Tari__Rpc__SearchKernelsRequest Tari__Rpc__SearchKernelsRequest; +typedef struct _Tari__Rpc__SearchUtxosRequest Tari__Rpc__SearchUtxosRequest; +typedef struct _Tari__Rpc__FetchMatchingUtxosRequest Tari__Rpc__FetchMatchingUtxosRequest; +typedef struct _Tari__Rpc__FetchMatchingUtxosResponse Tari__Rpc__FetchMatchingUtxosResponse; +typedef struct _Tari__Rpc__GetPeersResponse Tari__Rpc__GetPeersResponse; +typedef struct _Tari__Rpc__GetPeersRequest Tari__Rpc__GetPeersRequest; +typedef struct _Tari__Rpc__SubmitTransactionRequest Tari__Rpc__SubmitTransactionRequest; +typedef struct _Tari__Rpc__SubmitTransactionResponse Tari__Rpc__SubmitTransactionResponse; +typedef struct _Tari__Rpc__GetMempoolTransactionsRequest Tari__Rpc__GetMempoolTransactionsRequest; +typedef struct _Tari__Rpc__GetMempoolTransactionsResponse Tari__Rpc__GetMempoolTransactionsResponse; +typedef struct _Tari__Rpc__TransactionStateRequest Tari__Rpc__TransactionStateRequest; +typedef struct _Tari__Rpc__TransactionStateResponse Tari__Rpc__TransactionStateResponse; +typedef struct _Tari__Rpc__MempoolStatsResponse Tari__Rpc__MempoolStatsResponse; +typedef struct _Tari__Rpc__GetActiveValidatorNodesRequest Tari__Rpc__GetActiveValidatorNodesRequest; +typedef struct _Tari__Rpc__GetActiveValidatorNodesResponse Tari__Rpc__GetActiveValidatorNodesResponse; +typedef struct _Tari__Rpc__GetShardKeyRequest Tari__Rpc__GetShardKeyRequest; +typedef struct _Tari__Rpc__GetShardKeyResponse Tari__Rpc__GetShardKeyResponse; +typedef struct _Tari__Rpc__GetTemplateRegistrationsRequest Tari__Rpc__GetTemplateRegistrationsRequest; +typedef struct _Tari__Rpc__GetTemplateRegistrationResponse Tari__Rpc__GetTemplateRegistrationResponse; +typedef struct _Tari__Rpc__BlockInfo Tari__Rpc__BlockInfo; +typedef struct _Tari__Rpc__GetSideChainUtxosRequest Tari__Rpc__GetSideChainUtxosRequest; +typedef struct _Tari__Rpc__GetSideChainUtxosResponse Tari__Rpc__GetSideChainUtxosResponse; + + +/* --- enums --- */ + +typedef enum _Tari__Rpc__BaseNodeState { + TARI__RPC__BASE_NODE_STATE__START_UP = 0, + TARI__RPC__BASE_NODE_STATE__HEADER_SYNC = 1, + TARI__RPC__BASE_NODE_STATE__HORIZON_SYNC = 2, + TARI__RPC__BASE_NODE_STATE__CONNECTING = 3, + TARI__RPC__BASE_NODE_STATE__BLOCK_SYNC = 4, + TARI__RPC__BASE_NODE_STATE__LISTENING = 5, + TARI__RPC__BASE_NODE_STATE__SYNC_FAILED = 6 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__BASE_NODE_STATE) +} Tari__Rpc__BaseNodeState; +typedef enum _Tari__Rpc__CalcType { + TARI__RPC__CALC_TYPE__MEAN = 0, + TARI__RPC__CALC_TYPE__MEDIAN = 1, + TARI__RPC__CALC_TYPE__QUANTILE = 2, + TARI__RPC__CALC_TYPE__QUARTILE = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__CALC_TYPE) +} Tari__Rpc__CalcType; +typedef enum _Tari__Rpc__Sorting { + TARI__RPC__SORTING__SORTING_DESC = 0, + TARI__RPC__SORTING__SORTING_ASC = 1 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__SORTING) +} Tari__Rpc__Sorting; +typedef enum _Tari__Rpc__SyncState { + TARI__RPC__SYNC_STATE__STARTUP = 0, + TARI__RPC__SYNC_STATE__HEADER_STARTING = 1, + TARI__RPC__SYNC_STATE__HEADER = 2, + TARI__RPC__SYNC_STATE__BLOCK_STARTING = 3, + TARI__RPC__SYNC_STATE__BLOCK = 4, + TARI__RPC__SYNC_STATE__DONE = 5 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__SYNC_STATE) +} Tari__Rpc__SyncState; +typedef enum _Tari__Rpc__SubmitTransactionResult { + TARI__RPC__SUBMIT_TRANSACTION_RESULT__NONE = 0, + TARI__RPC__SUBMIT_TRANSACTION_RESULT__ACCEPTED = 1, + TARI__RPC__SUBMIT_TRANSACTION_RESULT__NOT_PROCESSABLE_AT_THIS_TIME = 2, + TARI__RPC__SUBMIT_TRANSACTION_RESULT__ALREADY_MINED = 3, + TARI__RPC__SUBMIT_TRANSACTION_RESULT__REJECTED = 4 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__SUBMIT_TRANSACTION_RESULT) +} Tari__Rpc__SubmitTransactionResult; +typedef enum _Tari__Rpc__TransactionLocation { + TARI__RPC__TRANSACTION_LOCATION__UNKNOWN = 0, + TARI__RPC__TRANSACTION_LOCATION__MEMPOOL = 1, + TARI__RPC__TRANSACTION_LOCATION__MINED = 2, + TARI__RPC__TRANSACTION_LOCATION__NOT_STORED = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__TRANSACTION_LOCATION) +} Tari__Rpc__TransactionLocation; + +/* --- messages --- */ + +struct _Tari__Rpc__GetAssetMetadataRequest +{ + ProtobufCMessage base; + ProtobufCBinaryData asset_public_key; +}; +#define TARI__RPC__GET_ASSET_METADATA_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_asset_metadata_request__descriptor) \ + , {0,NULL} } + + +struct _Tari__Rpc__GetAssetMetadataResponse +{ + ProtobufCMessage base; + char *name; + char *description; + char *image; + ProtobufCBinaryData owner_commitment; + Tari__Rpc__OutputFeatures *features; + uint64_t mined_height; + ProtobufCBinaryData mined_in_block; +}; +#define TARI__RPC__GET_ASSET_METADATA_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_asset_metadata_response__descriptor) \ + , (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, {0,NULL}, NULL, 0, {0,NULL} } + + +struct _Tari__Rpc__ListAssetRegistrationsRequest +{ + ProtobufCMessage base; + uint64_t offset; + uint64_t count; +}; +#define TARI__RPC__LIST_ASSET_REGISTRATIONS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__list_asset_registrations_request__descriptor) \ + , 0, 0 } + + +struct _Tari__Rpc__ListAssetRegistrationsResponse +{ + ProtobufCMessage base; + ProtobufCBinaryData asset_public_key; + ProtobufCBinaryData unique_id; + ProtobufCBinaryData owner_commitment; + uint64_t mined_height; + ProtobufCBinaryData mined_in_block; + Tari__Rpc__OutputFeatures *features; + ProtobufCBinaryData script; +}; +#define TARI__RPC__LIST_ASSET_REGISTRATIONS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__list_asset_registrations_response__descriptor) \ + , {0,NULL}, {0,NULL}, {0,NULL}, 0, {0,NULL}, NULL, {0,NULL} } + + +struct _Tari__Rpc__GetTokensRequest +{ + ProtobufCMessage base; + ProtobufCBinaryData asset_public_key; + /* + * Optionally get a set of specific unique_ids + */ + size_t n_unique_ids; + ProtobufCBinaryData *unique_ids; +}; +#define TARI__RPC__GET_TOKENS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_tokens_request__descriptor) \ + , {0,NULL}, 0,NULL } + + +struct _Tari__Rpc__GetTokensResponse +{ + ProtobufCMessage base; + ProtobufCBinaryData unique_id; + ProtobufCBinaryData asset_public_key; + ProtobufCBinaryData owner_commitment; + ProtobufCBinaryData mined_in_block; + uint64_t mined_height; + Tari__Rpc__OutputFeatures *features; + ProtobufCBinaryData script; +}; +#define TARI__RPC__GET_TOKENS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_tokens_response__descriptor) \ + , {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL}, 0, NULL, {0,NULL} } + + +struct _Tari__Rpc__SubmitBlockResponse +{ + ProtobufCMessage base; + ProtobufCBinaryData block_hash; +}; +#define TARI__RPC__SUBMIT_BLOCK_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__submit_block_response__descriptor) \ + , {0,NULL} } + + +struct _Tari__Rpc__BlockBlobRequest +{ + ProtobufCMessage base; + ProtobufCBinaryData header_blob; + ProtobufCBinaryData body_blob; +}; +#define TARI__RPC__BLOCK_BLOB_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_blob_request__descriptor) \ + , {0,NULL}, {0,NULL} } + + +/* + * / return type of GetTipInfo + */ +struct _Tari__Rpc__TipInfoResponse +{ + ProtobufCMessage base; + Tari__Rpc__MetaData *metadata; + protobuf_c_boolean initial_sync_achieved; + Tari__Rpc__BaseNodeState base_node_state; +}; +#define TARI__RPC__TIP_INFO_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__tip_info_response__descriptor) \ + , NULL, 0, TARI__RPC__BASE_NODE_STATE__START_UP } + + +/* + * / return type of GetNewBlockTemplate + */ +struct _Tari__Rpc__NewBlockTemplateResponse +{ + ProtobufCMessage base; + Tari__Rpc__NewBlockTemplate *new_block_template; + protobuf_c_boolean initial_sync_achieved; + Tari__Rpc__MinerData *miner_data; +}; +#define TARI__RPC__NEW_BLOCK_TEMPLATE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__new_block_template_response__descriptor) \ + , NULL, 0, NULL } + + +/* + * / return type of NewBlockTemplateRequest + */ +struct _Tari__Rpc__NewBlockTemplateRequest +{ + ProtobufCMessage base; + Tari__Rpc__PowAlgo *algo; + /* + *This field should be moved to optional once optional keyword is standard + */ + uint64_t max_weight; +}; +#define TARI__RPC__NEW_BLOCK_TEMPLATE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__new_block_template_request__descriptor) \ + , NULL, 0 } + + +/* + * Network difficulty response + */ +struct _Tari__Rpc__NetworkDifficultyResponse +{ + ProtobufCMessage base; + uint64_t difficulty; + uint64_t estimated_hash_rate; + uint64_t height; + uint64_t timestamp; + uint64_t pow_algo; + uint64_t sha3x_estimated_hash_rate; + uint64_t randomx_estimated_hash_rate; +}; +#define TARI__RPC__NETWORK_DIFFICULTY_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__network_difficulty_response__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0 } + + +/* + * A generic single value response for a specific height + */ +struct _Tari__Rpc__ValueAtHeightResponse +{ + ProtobufCMessage base; + uint64_t value; + uint64_t height; +}; +#define TARI__RPC__VALUE_AT_HEIGHT_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__value_at_height_response__descriptor) \ + , 0, 0 } + + +/* + * A generic uint value + */ +struct _Tari__Rpc__IntegerValue +{ + ProtobufCMessage base; + uint64_t value; +}; +#define TARI__RPC__INTEGER_VALUE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__integer_value__descriptor) \ + , 0 } + + +/* + * A generic String value + */ +struct _Tari__Rpc__StringValue +{ + ProtobufCMessage base; + char *value; +}; +#define TARI__RPC__STRING_VALUE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__string_value__descriptor) \ + , (char *)protobuf_c_empty_string } + + +/* + * / GetBlockSize / GetBlockFees Request + * / Either the starting and ending heights OR the from_tip param must be specified + */ +struct _Tari__Rpc__BlockGroupRequest +{ + ProtobufCMessage base; + /* + * The height from the chain tip (optional) + */ + uint64_t from_tip; + /* + * The starting height (optional) + */ + uint64_t start_height; + /* + * The ending height (optional) + */ + uint64_t end_height; + /* + * / The type of calculation required (optional) + * / Defaults to median + * / median, mean, quartile, quantile + */ + Tari__Rpc__CalcType calc_type; +}; +#define TARI__RPC__BLOCK_GROUP_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_group_request__descriptor) \ + , 0, 0, 0, TARI__RPC__CALC_TYPE__MEAN } + + +/* + * / GetBlockSize / GetBlockFees Response + */ +struct _Tari__Rpc__BlockGroupResponse +{ + ProtobufCMessage base; + size_t n_value; + double *value; + Tari__Rpc__CalcType calc_type; +}; +#define TARI__RPC__BLOCK_GROUP_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_group_response__descriptor) \ + , 0,NULL, TARI__RPC__CALC_TYPE__MEAN } + + +/* + * The request used for querying a function that requires a height, either between 2 points or from the chain tip + * If start_height and end_height are set and > 0, they take precedence, otherwise from_tip is used + */ +struct _Tari__Rpc__HeightRequest +{ + ProtobufCMessage base; + /* + * The height from the chain tip (optional) + */ + uint64_t from_tip; + /* + * The starting height (optional) + */ + uint64_t start_height; + /* + * The ending height (optional) + */ + uint64_t end_height; +}; +#define TARI__RPC__HEIGHT_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__height_request__descriptor) \ + , 0, 0, 0 } + + +/* + * The return type of the rpc GetBlockTiming + */ +struct _Tari__Rpc__BlockTimingResponse +{ + ProtobufCMessage base; + uint64_t max; + uint64_t min; + double avg; +}; +#define TARI__RPC__BLOCK_TIMING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_timing_response__descriptor) \ + , 0, 0, 0 } + + +/* + * Request that returns a header based by hash + */ +struct _Tari__Rpc__GetHeaderByHashRequest +{ + ProtobufCMessage base; + /* + * The hash of the block header + */ + ProtobufCBinaryData hash; +}; +#define TARI__RPC__GET_HEADER_BY_HASH_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_header_by_hash_request__descriptor) \ + , {0,NULL} } + + +struct _Tari__Rpc__BlockHeaderResponse +{ + ProtobufCMessage base; + /* + * The block header + */ + Tari__Rpc__BlockHeader *header; + /* + * The number of blocks from the tip of this block (a.k.a depth) + */ + uint64_t confirmations; + /* + * The block reward i.e mining reward + fees + */ + uint64_t reward; + /* + * Achieved difficulty + */ + uint64_t difficulty; + /* + * The number of transactions contained in the block + */ + uint32_t num_transactions; +}; +#define TARI__RPC__BLOCK_HEADER_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_header_response__descriptor) \ + , NULL, 0, 0, 0, 0 } + + +/* + * The request used for querying headers from the base node. The parameters `from_height` and `num_headers` can be used + * to page through the current best chain. + */ +struct _Tari__Rpc__ListHeadersRequest +{ + ProtobufCMessage base; + /* + * The height to start at. Depending on sorting, will either default to use the tip or genesis block, for `SORTING_DESC` + * and `SORTING_ASC` respectively, if a value is not provided. The first header returned will be at this height + * followed by `num_headers` - 1 headers in the direction specified by `sorting`. If greater than the current tip, + * the current tip will be used. + */ + uint64_t from_height; + /* + * The number of headers to return. If not specified, it will default to 10 + */ + uint64_t num_headers; + /* + * The ordering to return the headers in. If not specified will default to SORTING_DESC. Note that if `from_height` + * is not specified or is 0, if `sorting` is SORTING_DESC, the tip will be used as `from_height`, otherwise the + * block at height 0 will be used. + */ + Tari__Rpc__Sorting sorting; +}; +#define TARI__RPC__LIST_HEADERS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__list_headers_request__descriptor) \ + , 0, 0, TARI__RPC__SORTING__SORTING_DESC } + + +/* + * The request used for querying blocks in the base node's current best chain. Currently only querying by height is + * available. Multiple blocks may be queried.e.g. [189092,100023,122424]. The order in which they are returned is not + * guaranteed. + */ +struct _Tari__Rpc__GetBlocksRequest +{ + ProtobufCMessage base; + size_t n_heights; + uint64_t *heights; +}; +#define TARI__RPC__GET_BLOCKS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_blocks_request__descriptor) \ + , 0,NULL } + + +/* + * The return type of the rpc GetBlocks. Blocks are not guaranteed to be returned in the order requested. + */ +struct _Tari__Rpc__GetBlocksResponse +{ + ProtobufCMessage base; + size_t n_blocks; + Tari__Rpc__HistoricalBlock **blocks; +}; +#define TARI__RPC__GET_BLOCKS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_blocks_response__descriptor) \ + , 0,NULL } + + +struct _Tari__Rpc__MetaData +{ + ProtobufCMessage base; + /* + * The current chain height, or the block number of the longest valid chain, or `None` if there is no chain + */ + uint64_t height_of_longest_chain; + /* + * The block hash of the current tip of the longest valid chain, or `None` for an empty chain + */ + ProtobufCBinaryData best_block; + /* + * This is the min height this node can provide complete blocks for. A 0 here means this node is archival and can provide complete blocks for every height. + */ + uint64_t pruned_height; + /* + * The current geometric mean of the pow of the chain tip, or `None` if there is no chain + */ + ProtobufCBinaryData accumulated_difficulty; +}; +#define TARI__RPC__META_DATA__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__meta_data__descriptor) \ + , 0, {0,NULL}, 0, {0,NULL} } + + +struct _Tari__Rpc__SyncInfoResponse +{ + ProtobufCMessage base; + uint64_t tip_height; + uint64_t local_height; + size_t n_peer_node_id; + ProtobufCBinaryData *peer_node_id; +}; +#define TARI__RPC__SYNC_INFO_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__sync_info_response__descriptor) \ + , 0, 0, 0,NULL } + + +struct _Tari__Rpc__SyncProgressResponse +{ + ProtobufCMessage base; + uint64_t tip_height; + uint64_t local_height; + Tari__Rpc__SyncState state; +}; +#define TARI__RPC__SYNC_PROGRESS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__sync_progress_response__descriptor) \ + , 0, 0, TARI__RPC__SYNC_STATE__STARTUP } + + +/* + * This is the message that is returned for a miner after it asks for a new block. + */ +struct _Tari__Rpc__GetNewBlockResult +{ + ProtobufCMessage base; + /* + * This is the header hash of the completed block + */ + ProtobufCBinaryData block_hash; + /* + * This is the completed block + */ + Tari__Rpc__Block *block; + ProtobufCBinaryData merge_mining_hash; + ProtobufCBinaryData tari_unique_id; +}; +#define TARI__RPC__GET_NEW_BLOCK_RESULT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_new_block_result__descriptor) \ + , {0,NULL}, NULL, {0,NULL}, {0,NULL} } + + +/* + * This is the message that is returned for a miner after it asks for a new block. + */ +struct _Tari__Rpc__GetNewBlockBlobResult +{ + ProtobufCMessage base; + /* + * This is the header hash of the completed block + */ + ProtobufCBinaryData block_hash; + /* + * This is the completed block's header + */ + ProtobufCBinaryData header; + /* + * This is the completed block's body + */ + ProtobufCBinaryData block_body; + ProtobufCBinaryData merge_mining_hash; + ProtobufCBinaryData utxo_mr; + ProtobufCBinaryData tari_unique_id; +}; +#define TARI__RPC__GET_NEW_BLOCK_BLOB_RESULT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_new_block_blob_result__descriptor) \ + , {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL} } + + +/* + * This is mining data for the miner asking for a new block + */ +struct _Tari__Rpc__MinerData +{ + ProtobufCMessage base; + Tari__Rpc__PowAlgo *algo; + uint64_t target_difficulty; + uint64_t reward; + /* + * bytes merge_mining_hash =4; + */ + uint64_t total_fees; +}; +#define TARI__RPC__MINER_DATA__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__miner_data__descriptor) \ + , NULL, 0, 0, 0 } + + +/* + * This is the request type for the Search Kernels rpc + */ +struct _Tari__Rpc__SearchKernelsRequest +{ + ProtobufCMessage base; + size_t n_signatures; + Tari__Rpc__Signature **signatures; +}; +#define TARI__RPC__SEARCH_KERNELS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__search_kernels_request__descriptor) \ + , 0,NULL } + + +/* + * This is the request type for the Search Utxo rpc + */ +struct _Tari__Rpc__SearchUtxosRequest +{ + ProtobufCMessage base; + size_t n_commitments; + ProtobufCBinaryData *commitments; +}; +#define TARI__RPC__SEARCH_UTXOS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__search_utxos_request__descriptor) \ + , 0,NULL } + + +struct _Tari__Rpc__FetchMatchingUtxosRequest +{ + ProtobufCMessage base; + size_t n_hashes; + ProtobufCBinaryData *hashes; +}; +#define TARI__RPC__FETCH_MATCHING_UTXOS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__fetch_matching_utxos_request__descriptor) \ + , 0,NULL } + + +struct _Tari__Rpc__FetchMatchingUtxosResponse +{ + ProtobufCMessage base; + Tari__Rpc__TransactionOutput *output; +}; +#define TARI__RPC__FETCH_MATCHING_UTXOS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__fetch_matching_utxos_response__descriptor) \ + , NULL } + + +/* + * This is the request type of the get all peers rpc call + */ +struct _Tari__Rpc__GetPeersResponse +{ + ProtobufCMessage base; + Tari__Rpc__Peer *peer; +}; +#define TARI__RPC__GET_PEERS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_peers_response__descriptor) \ + , NULL } + + +struct _Tari__Rpc__GetPeersRequest +{ + ProtobufCMessage base; +}; +#define TARI__RPC__GET_PEERS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_peers_request__descriptor) \ + } + + +struct _Tari__Rpc__SubmitTransactionRequest +{ + ProtobufCMessage base; + Tari__Rpc__Transaction *transaction; +}; +#define TARI__RPC__SUBMIT_TRANSACTION_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__submit_transaction_request__descriptor) \ + , NULL } + + +struct _Tari__Rpc__SubmitTransactionResponse +{ + ProtobufCMessage base; + Tari__Rpc__SubmitTransactionResult result; +}; +#define TARI__RPC__SUBMIT_TRANSACTION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__submit_transaction_response__descriptor) \ + , TARI__RPC__SUBMIT_TRANSACTION_RESULT__NONE } + + +struct _Tari__Rpc__GetMempoolTransactionsRequest +{ + ProtobufCMessage base; +}; +#define TARI__RPC__GET_MEMPOOL_TRANSACTIONS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_mempool_transactions_request__descriptor) \ + } + + +struct _Tari__Rpc__GetMempoolTransactionsResponse +{ + ProtobufCMessage base; + Tari__Rpc__Transaction *transaction; +}; +#define TARI__RPC__GET_MEMPOOL_TRANSACTIONS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_mempool_transactions_response__descriptor) \ + , NULL } + + +struct _Tari__Rpc__TransactionStateRequest +{ + ProtobufCMessage base; + Tari__Rpc__Signature *excess_sig; +}; +#define TARI__RPC__TRANSACTION_STATE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__transaction_state_request__descriptor) \ + , NULL } + + +struct _Tari__Rpc__TransactionStateResponse +{ + ProtobufCMessage base; + Tari__Rpc__TransactionLocation result; +}; +#define TARI__RPC__TRANSACTION_STATE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__transaction_state_response__descriptor) \ + , TARI__RPC__TRANSACTION_LOCATION__UNKNOWN } + + +struct _Tari__Rpc__MempoolStatsResponse +{ + ProtobufCMessage base; + uint64_t unconfirmed_txs; + uint64_t reorg_txs; + uint64_t unconfirmed_weight; +}; +#define TARI__RPC__MEMPOOL_STATS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__mempool_stats_response__descriptor) \ + , 0, 0, 0 } + + +struct _Tari__Rpc__GetActiveValidatorNodesRequest +{ + ProtobufCMessage base; + uint64_t height; +}; +#define TARI__RPC__GET_ACTIVE_VALIDATOR_NODES_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_active_validator_nodes_request__descriptor) \ + , 0 } + + +struct _Tari__Rpc__GetActiveValidatorNodesResponse +{ + ProtobufCMessage base; + ProtobufCBinaryData shard_key; + ProtobufCBinaryData public_key; +}; +#define TARI__RPC__GET_ACTIVE_VALIDATOR_NODES_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_active_validator_nodes_response__descriptor) \ + , {0,NULL}, {0,NULL} } + + +struct _Tari__Rpc__GetShardKeyRequest +{ + ProtobufCMessage base; + uint64_t height; + ProtobufCBinaryData public_key; +}; +#define TARI__RPC__GET_SHARD_KEY_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_shard_key_request__descriptor) \ + , 0, {0,NULL} } + + +struct _Tari__Rpc__GetShardKeyResponse +{ + ProtobufCMessage base; + ProtobufCBinaryData shard_key; + protobuf_c_boolean found; +}; +#define TARI__RPC__GET_SHARD_KEY_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_shard_key_response__descriptor) \ + , {0,NULL}, 0 } + + +struct _Tari__Rpc__GetTemplateRegistrationsRequest +{ + ProtobufCMessage base; + ProtobufCBinaryData start_hash; + uint64_t count; +}; +#define TARI__RPC__GET_TEMPLATE_REGISTRATIONS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_template_registrations_request__descriptor) \ + , {0,NULL}, 0 } + + +struct _Tari__Rpc__GetTemplateRegistrationResponse +{ + ProtobufCMessage base; + ProtobufCBinaryData utxo_hash; + Tari__Rpc__TemplateRegistration *registration; +}; +#define TARI__RPC__GET_TEMPLATE_REGISTRATION_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_template_registration_response__descriptor) \ + , {0,NULL}, NULL } + + +struct _Tari__Rpc__BlockInfo +{ + ProtobufCMessage base; + uint64_t height; + ProtobufCBinaryData hash; + ProtobufCBinaryData next_block_hash; +}; +#define TARI__RPC__BLOCK_INFO__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_info__descriptor) \ + , 0, {0,NULL}, {0,NULL} } + + +struct _Tari__Rpc__GetSideChainUtxosRequest +{ + ProtobufCMessage base; + ProtobufCBinaryData start_hash; + uint64_t count; +}; +#define TARI__RPC__GET_SIDE_CHAIN_UTXOS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_side_chain_utxos_request__descriptor) \ + , {0,NULL}, 0 } + + +struct _Tari__Rpc__GetSideChainUtxosResponse +{ + ProtobufCMessage base; + Tari__Rpc__BlockInfo *block_info; + size_t n_outputs; + Tari__Rpc__TransactionOutput **outputs; +}; +#define TARI__RPC__GET_SIDE_CHAIN_UTXOS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_side_chain_utxos_response__descriptor) \ + , NULL, 0,NULL } + + +/* Tari__Rpc__GetAssetMetadataRequest methods */ +void tari__rpc__get_asset_metadata_request__init + (Tari__Rpc__GetAssetMetadataRequest *message); +size_t tari__rpc__get_asset_metadata_request__get_packed_size + (const Tari__Rpc__GetAssetMetadataRequest *message); +size_t tari__rpc__get_asset_metadata_request__pack + (const Tari__Rpc__GetAssetMetadataRequest *message, + uint8_t *out); +size_t tari__rpc__get_asset_metadata_request__pack_to_buffer + (const Tari__Rpc__GetAssetMetadataRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetAssetMetadataRequest * + tari__rpc__get_asset_metadata_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_asset_metadata_request__free_unpacked + (Tari__Rpc__GetAssetMetadataRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetAssetMetadataResponse methods */ +void tari__rpc__get_asset_metadata_response__init + (Tari__Rpc__GetAssetMetadataResponse *message); +size_t tari__rpc__get_asset_metadata_response__get_packed_size + (const Tari__Rpc__GetAssetMetadataResponse *message); +size_t tari__rpc__get_asset_metadata_response__pack + (const Tari__Rpc__GetAssetMetadataResponse *message, + uint8_t *out); +size_t tari__rpc__get_asset_metadata_response__pack_to_buffer + (const Tari__Rpc__GetAssetMetadataResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetAssetMetadataResponse * + tari__rpc__get_asset_metadata_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_asset_metadata_response__free_unpacked + (Tari__Rpc__GetAssetMetadataResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ListAssetRegistrationsRequest methods */ +void tari__rpc__list_asset_registrations_request__init + (Tari__Rpc__ListAssetRegistrationsRequest *message); +size_t tari__rpc__list_asset_registrations_request__get_packed_size + (const Tari__Rpc__ListAssetRegistrationsRequest *message); +size_t tari__rpc__list_asset_registrations_request__pack + (const Tari__Rpc__ListAssetRegistrationsRequest *message, + uint8_t *out); +size_t tari__rpc__list_asset_registrations_request__pack_to_buffer + (const Tari__Rpc__ListAssetRegistrationsRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ListAssetRegistrationsRequest * + tari__rpc__list_asset_registrations_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__list_asset_registrations_request__free_unpacked + (Tari__Rpc__ListAssetRegistrationsRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ListAssetRegistrationsResponse methods */ +void tari__rpc__list_asset_registrations_response__init + (Tari__Rpc__ListAssetRegistrationsResponse *message); +size_t tari__rpc__list_asset_registrations_response__get_packed_size + (const Tari__Rpc__ListAssetRegistrationsResponse *message); +size_t tari__rpc__list_asset_registrations_response__pack + (const Tari__Rpc__ListAssetRegistrationsResponse *message, + uint8_t *out); +size_t tari__rpc__list_asset_registrations_response__pack_to_buffer + (const Tari__Rpc__ListAssetRegistrationsResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ListAssetRegistrationsResponse * + tari__rpc__list_asset_registrations_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__list_asset_registrations_response__free_unpacked + (Tari__Rpc__ListAssetRegistrationsResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetTokensRequest methods */ +void tari__rpc__get_tokens_request__init + (Tari__Rpc__GetTokensRequest *message); +size_t tari__rpc__get_tokens_request__get_packed_size + (const Tari__Rpc__GetTokensRequest *message); +size_t tari__rpc__get_tokens_request__pack + (const Tari__Rpc__GetTokensRequest *message, + uint8_t *out); +size_t tari__rpc__get_tokens_request__pack_to_buffer + (const Tari__Rpc__GetTokensRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetTokensRequest * + tari__rpc__get_tokens_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_tokens_request__free_unpacked + (Tari__Rpc__GetTokensRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetTokensResponse methods */ +void tari__rpc__get_tokens_response__init + (Tari__Rpc__GetTokensResponse *message); +size_t tari__rpc__get_tokens_response__get_packed_size + (const Tari__Rpc__GetTokensResponse *message); +size_t tari__rpc__get_tokens_response__pack + (const Tari__Rpc__GetTokensResponse *message, + uint8_t *out); +size_t tari__rpc__get_tokens_response__pack_to_buffer + (const Tari__Rpc__GetTokensResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetTokensResponse * + tari__rpc__get_tokens_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_tokens_response__free_unpacked + (Tari__Rpc__GetTokensResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SubmitBlockResponse methods */ +void tari__rpc__submit_block_response__init + (Tari__Rpc__SubmitBlockResponse *message); +size_t tari__rpc__submit_block_response__get_packed_size + (const Tari__Rpc__SubmitBlockResponse *message); +size_t tari__rpc__submit_block_response__pack + (const Tari__Rpc__SubmitBlockResponse *message, + uint8_t *out); +size_t tari__rpc__submit_block_response__pack_to_buffer + (const Tari__Rpc__SubmitBlockResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SubmitBlockResponse * + tari__rpc__submit_block_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__submit_block_response__free_unpacked + (Tari__Rpc__SubmitBlockResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BlockBlobRequest methods */ +void tari__rpc__block_blob_request__init + (Tari__Rpc__BlockBlobRequest *message); +size_t tari__rpc__block_blob_request__get_packed_size + (const Tari__Rpc__BlockBlobRequest *message); +size_t tari__rpc__block_blob_request__pack + (const Tari__Rpc__BlockBlobRequest *message, + uint8_t *out); +size_t tari__rpc__block_blob_request__pack_to_buffer + (const Tari__Rpc__BlockBlobRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockBlobRequest * + tari__rpc__block_blob_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_blob_request__free_unpacked + (Tari__Rpc__BlockBlobRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__TipInfoResponse methods */ +void tari__rpc__tip_info_response__init + (Tari__Rpc__TipInfoResponse *message); +size_t tari__rpc__tip_info_response__get_packed_size + (const Tari__Rpc__TipInfoResponse *message); +size_t tari__rpc__tip_info_response__pack + (const Tari__Rpc__TipInfoResponse *message, + uint8_t *out); +size_t tari__rpc__tip_info_response__pack_to_buffer + (const Tari__Rpc__TipInfoResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TipInfoResponse * + tari__rpc__tip_info_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__tip_info_response__free_unpacked + (Tari__Rpc__TipInfoResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__NewBlockTemplateResponse methods */ +void tari__rpc__new_block_template_response__init + (Tari__Rpc__NewBlockTemplateResponse *message); +size_t tari__rpc__new_block_template_response__get_packed_size + (const Tari__Rpc__NewBlockTemplateResponse *message); +size_t tari__rpc__new_block_template_response__pack + (const Tari__Rpc__NewBlockTemplateResponse *message, + uint8_t *out); +size_t tari__rpc__new_block_template_response__pack_to_buffer + (const Tari__Rpc__NewBlockTemplateResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__NewBlockTemplateResponse * + tari__rpc__new_block_template_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__new_block_template_response__free_unpacked + (Tari__Rpc__NewBlockTemplateResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__NewBlockTemplateRequest methods */ +void tari__rpc__new_block_template_request__init + (Tari__Rpc__NewBlockTemplateRequest *message); +size_t tari__rpc__new_block_template_request__get_packed_size + (const Tari__Rpc__NewBlockTemplateRequest *message); +size_t tari__rpc__new_block_template_request__pack + (const Tari__Rpc__NewBlockTemplateRequest *message, + uint8_t *out); +size_t tari__rpc__new_block_template_request__pack_to_buffer + (const Tari__Rpc__NewBlockTemplateRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__NewBlockTemplateRequest * + tari__rpc__new_block_template_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__new_block_template_request__free_unpacked + (Tari__Rpc__NewBlockTemplateRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__NetworkDifficultyResponse methods */ +void tari__rpc__network_difficulty_response__init + (Tari__Rpc__NetworkDifficultyResponse *message); +size_t tari__rpc__network_difficulty_response__get_packed_size + (const Tari__Rpc__NetworkDifficultyResponse *message); +size_t tari__rpc__network_difficulty_response__pack + (const Tari__Rpc__NetworkDifficultyResponse *message, + uint8_t *out); +size_t tari__rpc__network_difficulty_response__pack_to_buffer + (const Tari__Rpc__NetworkDifficultyResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__NetworkDifficultyResponse * + tari__rpc__network_difficulty_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__network_difficulty_response__free_unpacked + (Tari__Rpc__NetworkDifficultyResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ValueAtHeightResponse methods */ +void tari__rpc__value_at_height_response__init + (Tari__Rpc__ValueAtHeightResponse *message); +size_t tari__rpc__value_at_height_response__get_packed_size + (const Tari__Rpc__ValueAtHeightResponse *message); +size_t tari__rpc__value_at_height_response__pack + (const Tari__Rpc__ValueAtHeightResponse *message, + uint8_t *out); +size_t tari__rpc__value_at_height_response__pack_to_buffer + (const Tari__Rpc__ValueAtHeightResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ValueAtHeightResponse * + tari__rpc__value_at_height_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__value_at_height_response__free_unpacked + (Tari__Rpc__ValueAtHeightResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__IntegerValue methods */ +void tari__rpc__integer_value__init + (Tari__Rpc__IntegerValue *message); +size_t tari__rpc__integer_value__get_packed_size + (const Tari__Rpc__IntegerValue *message); +size_t tari__rpc__integer_value__pack + (const Tari__Rpc__IntegerValue *message, + uint8_t *out); +size_t tari__rpc__integer_value__pack_to_buffer + (const Tari__Rpc__IntegerValue *message, + ProtobufCBuffer *buffer); +Tari__Rpc__IntegerValue * + tari__rpc__integer_value__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__integer_value__free_unpacked + (Tari__Rpc__IntegerValue *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__StringValue methods */ +void tari__rpc__string_value__init + (Tari__Rpc__StringValue *message); +size_t tari__rpc__string_value__get_packed_size + (const Tari__Rpc__StringValue *message); +size_t tari__rpc__string_value__pack + (const Tari__Rpc__StringValue *message, + uint8_t *out); +size_t tari__rpc__string_value__pack_to_buffer + (const Tari__Rpc__StringValue *message, + ProtobufCBuffer *buffer); +Tari__Rpc__StringValue * + tari__rpc__string_value__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__string_value__free_unpacked + (Tari__Rpc__StringValue *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BlockGroupRequest methods */ +void tari__rpc__block_group_request__init + (Tari__Rpc__BlockGroupRequest *message); +size_t tari__rpc__block_group_request__get_packed_size + (const Tari__Rpc__BlockGroupRequest *message); +size_t tari__rpc__block_group_request__pack + (const Tari__Rpc__BlockGroupRequest *message, + uint8_t *out); +size_t tari__rpc__block_group_request__pack_to_buffer + (const Tari__Rpc__BlockGroupRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockGroupRequest * + tari__rpc__block_group_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_group_request__free_unpacked + (Tari__Rpc__BlockGroupRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BlockGroupResponse methods */ +void tari__rpc__block_group_response__init + (Tari__Rpc__BlockGroupResponse *message); +size_t tari__rpc__block_group_response__get_packed_size + (const Tari__Rpc__BlockGroupResponse *message); +size_t tari__rpc__block_group_response__pack + (const Tari__Rpc__BlockGroupResponse *message, + uint8_t *out); +size_t tari__rpc__block_group_response__pack_to_buffer + (const Tari__Rpc__BlockGroupResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockGroupResponse * + tari__rpc__block_group_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_group_response__free_unpacked + (Tari__Rpc__BlockGroupResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__HeightRequest methods */ +void tari__rpc__height_request__init + (Tari__Rpc__HeightRequest *message); +size_t tari__rpc__height_request__get_packed_size + (const Tari__Rpc__HeightRequest *message); +size_t tari__rpc__height_request__pack + (const Tari__Rpc__HeightRequest *message, + uint8_t *out); +size_t tari__rpc__height_request__pack_to_buffer + (const Tari__Rpc__HeightRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__HeightRequest * + tari__rpc__height_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__height_request__free_unpacked + (Tari__Rpc__HeightRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BlockTimingResponse methods */ +void tari__rpc__block_timing_response__init + (Tari__Rpc__BlockTimingResponse *message); +size_t tari__rpc__block_timing_response__get_packed_size + (const Tari__Rpc__BlockTimingResponse *message); +size_t tari__rpc__block_timing_response__pack + (const Tari__Rpc__BlockTimingResponse *message, + uint8_t *out); +size_t tari__rpc__block_timing_response__pack_to_buffer + (const Tari__Rpc__BlockTimingResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockTimingResponse * + tari__rpc__block_timing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_timing_response__free_unpacked + (Tari__Rpc__BlockTimingResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetHeaderByHashRequest methods */ +void tari__rpc__get_header_by_hash_request__init + (Tari__Rpc__GetHeaderByHashRequest *message); +size_t tari__rpc__get_header_by_hash_request__get_packed_size + (const Tari__Rpc__GetHeaderByHashRequest *message); +size_t tari__rpc__get_header_by_hash_request__pack + (const Tari__Rpc__GetHeaderByHashRequest *message, + uint8_t *out); +size_t tari__rpc__get_header_by_hash_request__pack_to_buffer + (const Tari__Rpc__GetHeaderByHashRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetHeaderByHashRequest * + tari__rpc__get_header_by_hash_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_header_by_hash_request__free_unpacked + (Tari__Rpc__GetHeaderByHashRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BlockHeaderResponse methods */ +void tari__rpc__block_header_response__init + (Tari__Rpc__BlockHeaderResponse *message); +size_t tari__rpc__block_header_response__get_packed_size + (const Tari__Rpc__BlockHeaderResponse *message); +size_t tari__rpc__block_header_response__pack + (const Tari__Rpc__BlockHeaderResponse *message, + uint8_t *out); +size_t tari__rpc__block_header_response__pack_to_buffer + (const Tari__Rpc__BlockHeaderResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockHeaderResponse * + tari__rpc__block_header_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_header_response__free_unpacked + (Tari__Rpc__BlockHeaderResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ListHeadersRequest methods */ +void tari__rpc__list_headers_request__init + (Tari__Rpc__ListHeadersRequest *message); +size_t tari__rpc__list_headers_request__get_packed_size + (const Tari__Rpc__ListHeadersRequest *message); +size_t tari__rpc__list_headers_request__pack + (const Tari__Rpc__ListHeadersRequest *message, + uint8_t *out); +size_t tari__rpc__list_headers_request__pack_to_buffer + (const Tari__Rpc__ListHeadersRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ListHeadersRequest * + tari__rpc__list_headers_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__list_headers_request__free_unpacked + (Tari__Rpc__ListHeadersRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetBlocksRequest methods */ +void tari__rpc__get_blocks_request__init + (Tari__Rpc__GetBlocksRequest *message); +size_t tari__rpc__get_blocks_request__get_packed_size + (const Tari__Rpc__GetBlocksRequest *message); +size_t tari__rpc__get_blocks_request__pack + (const Tari__Rpc__GetBlocksRequest *message, + uint8_t *out); +size_t tari__rpc__get_blocks_request__pack_to_buffer + (const Tari__Rpc__GetBlocksRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetBlocksRequest * + tari__rpc__get_blocks_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_blocks_request__free_unpacked + (Tari__Rpc__GetBlocksRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetBlocksResponse methods */ +void tari__rpc__get_blocks_response__init + (Tari__Rpc__GetBlocksResponse *message); +size_t tari__rpc__get_blocks_response__get_packed_size + (const Tari__Rpc__GetBlocksResponse *message); +size_t tari__rpc__get_blocks_response__pack + (const Tari__Rpc__GetBlocksResponse *message, + uint8_t *out); +size_t tari__rpc__get_blocks_response__pack_to_buffer + (const Tari__Rpc__GetBlocksResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetBlocksResponse * + tari__rpc__get_blocks_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_blocks_response__free_unpacked + (Tari__Rpc__GetBlocksResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__MetaData methods */ +void tari__rpc__meta_data__init + (Tari__Rpc__MetaData *message); +size_t tari__rpc__meta_data__get_packed_size + (const Tari__Rpc__MetaData *message); +size_t tari__rpc__meta_data__pack + (const Tari__Rpc__MetaData *message, + uint8_t *out); +size_t tari__rpc__meta_data__pack_to_buffer + (const Tari__Rpc__MetaData *message, + ProtobufCBuffer *buffer); +Tari__Rpc__MetaData * + tari__rpc__meta_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__meta_data__free_unpacked + (Tari__Rpc__MetaData *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SyncInfoResponse methods */ +void tari__rpc__sync_info_response__init + (Tari__Rpc__SyncInfoResponse *message); +size_t tari__rpc__sync_info_response__get_packed_size + (const Tari__Rpc__SyncInfoResponse *message); +size_t tari__rpc__sync_info_response__pack + (const Tari__Rpc__SyncInfoResponse *message, + uint8_t *out); +size_t tari__rpc__sync_info_response__pack_to_buffer + (const Tari__Rpc__SyncInfoResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SyncInfoResponse * + tari__rpc__sync_info_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__sync_info_response__free_unpacked + (Tari__Rpc__SyncInfoResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SyncProgressResponse methods */ +void tari__rpc__sync_progress_response__init + (Tari__Rpc__SyncProgressResponse *message); +size_t tari__rpc__sync_progress_response__get_packed_size + (const Tari__Rpc__SyncProgressResponse *message); +size_t tari__rpc__sync_progress_response__pack + (const Tari__Rpc__SyncProgressResponse *message, + uint8_t *out); +size_t tari__rpc__sync_progress_response__pack_to_buffer + (const Tari__Rpc__SyncProgressResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SyncProgressResponse * + tari__rpc__sync_progress_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__sync_progress_response__free_unpacked + (Tari__Rpc__SyncProgressResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetNewBlockResult methods */ +void tari__rpc__get_new_block_result__init + (Tari__Rpc__GetNewBlockResult *message); +size_t tari__rpc__get_new_block_result__get_packed_size + (const Tari__Rpc__GetNewBlockResult *message); +size_t tari__rpc__get_new_block_result__pack + (const Tari__Rpc__GetNewBlockResult *message, + uint8_t *out); +size_t tari__rpc__get_new_block_result__pack_to_buffer + (const Tari__Rpc__GetNewBlockResult *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetNewBlockResult * + tari__rpc__get_new_block_result__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_new_block_result__free_unpacked + (Tari__Rpc__GetNewBlockResult *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetNewBlockBlobResult methods */ +void tari__rpc__get_new_block_blob_result__init + (Tari__Rpc__GetNewBlockBlobResult *message); +size_t tari__rpc__get_new_block_blob_result__get_packed_size + (const Tari__Rpc__GetNewBlockBlobResult *message); +size_t tari__rpc__get_new_block_blob_result__pack + (const Tari__Rpc__GetNewBlockBlobResult *message, + uint8_t *out); +size_t tari__rpc__get_new_block_blob_result__pack_to_buffer + (const Tari__Rpc__GetNewBlockBlobResult *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetNewBlockBlobResult * + tari__rpc__get_new_block_blob_result__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_new_block_blob_result__free_unpacked + (Tari__Rpc__GetNewBlockBlobResult *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__MinerData methods */ +void tari__rpc__miner_data__init + (Tari__Rpc__MinerData *message); +size_t tari__rpc__miner_data__get_packed_size + (const Tari__Rpc__MinerData *message); +size_t tari__rpc__miner_data__pack + (const Tari__Rpc__MinerData *message, + uint8_t *out); +size_t tari__rpc__miner_data__pack_to_buffer + (const Tari__Rpc__MinerData *message, + ProtobufCBuffer *buffer); +Tari__Rpc__MinerData * + tari__rpc__miner_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__miner_data__free_unpacked + (Tari__Rpc__MinerData *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SearchKernelsRequest methods */ +void tari__rpc__search_kernels_request__init + (Tari__Rpc__SearchKernelsRequest *message); +size_t tari__rpc__search_kernels_request__get_packed_size + (const Tari__Rpc__SearchKernelsRequest *message); +size_t tari__rpc__search_kernels_request__pack + (const Tari__Rpc__SearchKernelsRequest *message, + uint8_t *out); +size_t tari__rpc__search_kernels_request__pack_to_buffer + (const Tari__Rpc__SearchKernelsRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SearchKernelsRequest * + tari__rpc__search_kernels_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__search_kernels_request__free_unpacked + (Tari__Rpc__SearchKernelsRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SearchUtxosRequest methods */ +void tari__rpc__search_utxos_request__init + (Tari__Rpc__SearchUtxosRequest *message); +size_t tari__rpc__search_utxos_request__get_packed_size + (const Tari__Rpc__SearchUtxosRequest *message); +size_t tari__rpc__search_utxos_request__pack + (const Tari__Rpc__SearchUtxosRequest *message, + uint8_t *out); +size_t tari__rpc__search_utxos_request__pack_to_buffer + (const Tari__Rpc__SearchUtxosRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SearchUtxosRequest * + tari__rpc__search_utxos_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__search_utxos_request__free_unpacked + (Tari__Rpc__SearchUtxosRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__FetchMatchingUtxosRequest methods */ +void tari__rpc__fetch_matching_utxos_request__init + (Tari__Rpc__FetchMatchingUtxosRequest *message); +size_t tari__rpc__fetch_matching_utxos_request__get_packed_size + (const Tari__Rpc__FetchMatchingUtxosRequest *message); +size_t tari__rpc__fetch_matching_utxos_request__pack + (const Tari__Rpc__FetchMatchingUtxosRequest *message, + uint8_t *out); +size_t tari__rpc__fetch_matching_utxos_request__pack_to_buffer + (const Tari__Rpc__FetchMatchingUtxosRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__FetchMatchingUtxosRequest * + tari__rpc__fetch_matching_utxos_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__fetch_matching_utxos_request__free_unpacked + (Tari__Rpc__FetchMatchingUtxosRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__FetchMatchingUtxosResponse methods */ +void tari__rpc__fetch_matching_utxos_response__init + (Tari__Rpc__FetchMatchingUtxosResponse *message); +size_t tari__rpc__fetch_matching_utxos_response__get_packed_size + (const Tari__Rpc__FetchMatchingUtxosResponse *message); +size_t tari__rpc__fetch_matching_utxos_response__pack + (const Tari__Rpc__FetchMatchingUtxosResponse *message, + uint8_t *out); +size_t tari__rpc__fetch_matching_utxos_response__pack_to_buffer + (const Tari__Rpc__FetchMatchingUtxosResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__FetchMatchingUtxosResponse * + tari__rpc__fetch_matching_utxos_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__fetch_matching_utxos_response__free_unpacked + (Tari__Rpc__FetchMatchingUtxosResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetPeersResponse methods */ +void tari__rpc__get_peers_response__init + (Tari__Rpc__GetPeersResponse *message); +size_t tari__rpc__get_peers_response__get_packed_size + (const Tari__Rpc__GetPeersResponse *message); +size_t tari__rpc__get_peers_response__pack + (const Tari__Rpc__GetPeersResponse *message, + uint8_t *out); +size_t tari__rpc__get_peers_response__pack_to_buffer + (const Tari__Rpc__GetPeersResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetPeersResponse * + tari__rpc__get_peers_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_peers_response__free_unpacked + (Tari__Rpc__GetPeersResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetPeersRequest methods */ +void tari__rpc__get_peers_request__init + (Tari__Rpc__GetPeersRequest *message); +size_t tari__rpc__get_peers_request__get_packed_size + (const Tari__Rpc__GetPeersRequest *message); +size_t tari__rpc__get_peers_request__pack + (const Tari__Rpc__GetPeersRequest *message, + uint8_t *out); +size_t tari__rpc__get_peers_request__pack_to_buffer + (const Tari__Rpc__GetPeersRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetPeersRequest * + tari__rpc__get_peers_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_peers_request__free_unpacked + (Tari__Rpc__GetPeersRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SubmitTransactionRequest methods */ +void tari__rpc__submit_transaction_request__init + (Tari__Rpc__SubmitTransactionRequest *message); +size_t tari__rpc__submit_transaction_request__get_packed_size + (const Tari__Rpc__SubmitTransactionRequest *message); +size_t tari__rpc__submit_transaction_request__pack + (const Tari__Rpc__SubmitTransactionRequest *message, + uint8_t *out); +size_t tari__rpc__submit_transaction_request__pack_to_buffer + (const Tari__Rpc__SubmitTransactionRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SubmitTransactionRequest * + tari__rpc__submit_transaction_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__submit_transaction_request__free_unpacked + (Tari__Rpc__SubmitTransactionRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SubmitTransactionResponse methods */ +void tari__rpc__submit_transaction_response__init + (Tari__Rpc__SubmitTransactionResponse *message); +size_t tari__rpc__submit_transaction_response__get_packed_size + (const Tari__Rpc__SubmitTransactionResponse *message); +size_t tari__rpc__submit_transaction_response__pack + (const Tari__Rpc__SubmitTransactionResponse *message, + uint8_t *out); +size_t tari__rpc__submit_transaction_response__pack_to_buffer + (const Tari__Rpc__SubmitTransactionResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SubmitTransactionResponse * + tari__rpc__submit_transaction_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__submit_transaction_response__free_unpacked + (Tari__Rpc__SubmitTransactionResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetMempoolTransactionsRequest methods */ +void tari__rpc__get_mempool_transactions_request__init + (Tari__Rpc__GetMempoolTransactionsRequest *message); +size_t tari__rpc__get_mempool_transactions_request__get_packed_size + (const Tari__Rpc__GetMempoolTransactionsRequest *message); +size_t tari__rpc__get_mempool_transactions_request__pack + (const Tari__Rpc__GetMempoolTransactionsRequest *message, + uint8_t *out); +size_t tari__rpc__get_mempool_transactions_request__pack_to_buffer + (const Tari__Rpc__GetMempoolTransactionsRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetMempoolTransactionsRequest * + tari__rpc__get_mempool_transactions_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_mempool_transactions_request__free_unpacked + (Tari__Rpc__GetMempoolTransactionsRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetMempoolTransactionsResponse methods */ +void tari__rpc__get_mempool_transactions_response__init + (Tari__Rpc__GetMempoolTransactionsResponse *message); +size_t tari__rpc__get_mempool_transactions_response__get_packed_size + (const Tari__Rpc__GetMempoolTransactionsResponse *message); +size_t tari__rpc__get_mempool_transactions_response__pack + (const Tari__Rpc__GetMempoolTransactionsResponse *message, + uint8_t *out); +size_t tari__rpc__get_mempool_transactions_response__pack_to_buffer + (const Tari__Rpc__GetMempoolTransactionsResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetMempoolTransactionsResponse * + tari__rpc__get_mempool_transactions_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_mempool_transactions_response__free_unpacked + (Tari__Rpc__GetMempoolTransactionsResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__TransactionStateRequest methods */ +void tari__rpc__transaction_state_request__init + (Tari__Rpc__TransactionStateRequest *message); +size_t tari__rpc__transaction_state_request__get_packed_size + (const Tari__Rpc__TransactionStateRequest *message); +size_t tari__rpc__transaction_state_request__pack + (const Tari__Rpc__TransactionStateRequest *message, + uint8_t *out); +size_t tari__rpc__transaction_state_request__pack_to_buffer + (const Tari__Rpc__TransactionStateRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TransactionStateRequest * + tari__rpc__transaction_state_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__transaction_state_request__free_unpacked + (Tari__Rpc__TransactionStateRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__TransactionStateResponse methods */ +void tari__rpc__transaction_state_response__init + (Tari__Rpc__TransactionStateResponse *message); +size_t tari__rpc__transaction_state_response__get_packed_size + (const Tari__Rpc__TransactionStateResponse *message); +size_t tari__rpc__transaction_state_response__pack + (const Tari__Rpc__TransactionStateResponse *message, + uint8_t *out); +size_t tari__rpc__transaction_state_response__pack_to_buffer + (const Tari__Rpc__TransactionStateResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TransactionStateResponse * + tari__rpc__transaction_state_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__transaction_state_response__free_unpacked + (Tari__Rpc__TransactionStateResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__MempoolStatsResponse methods */ +void tari__rpc__mempool_stats_response__init + (Tari__Rpc__MempoolStatsResponse *message); +size_t tari__rpc__mempool_stats_response__get_packed_size + (const Tari__Rpc__MempoolStatsResponse *message); +size_t tari__rpc__mempool_stats_response__pack + (const Tari__Rpc__MempoolStatsResponse *message, + uint8_t *out); +size_t tari__rpc__mempool_stats_response__pack_to_buffer + (const Tari__Rpc__MempoolStatsResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__MempoolStatsResponse * + tari__rpc__mempool_stats_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__mempool_stats_response__free_unpacked + (Tari__Rpc__MempoolStatsResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetActiveValidatorNodesRequest methods */ +void tari__rpc__get_active_validator_nodes_request__init + (Tari__Rpc__GetActiveValidatorNodesRequest *message); +size_t tari__rpc__get_active_validator_nodes_request__get_packed_size + (const Tari__Rpc__GetActiveValidatorNodesRequest *message); +size_t tari__rpc__get_active_validator_nodes_request__pack + (const Tari__Rpc__GetActiveValidatorNodesRequest *message, + uint8_t *out); +size_t tari__rpc__get_active_validator_nodes_request__pack_to_buffer + (const Tari__Rpc__GetActiveValidatorNodesRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetActiveValidatorNodesRequest * + tari__rpc__get_active_validator_nodes_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_active_validator_nodes_request__free_unpacked + (Tari__Rpc__GetActiveValidatorNodesRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetActiveValidatorNodesResponse methods */ +void tari__rpc__get_active_validator_nodes_response__init + (Tari__Rpc__GetActiveValidatorNodesResponse *message); +size_t tari__rpc__get_active_validator_nodes_response__get_packed_size + (const Tari__Rpc__GetActiveValidatorNodesResponse *message); +size_t tari__rpc__get_active_validator_nodes_response__pack + (const Tari__Rpc__GetActiveValidatorNodesResponse *message, + uint8_t *out); +size_t tari__rpc__get_active_validator_nodes_response__pack_to_buffer + (const Tari__Rpc__GetActiveValidatorNodesResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetActiveValidatorNodesResponse * + tari__rpc__get_active_validator_nodes_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_active_validator_nodes_response__free_unpacked + (Tari__Rpc__GetActiveValidatorNodesResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetShardKeyRequest methods */ +void tari__rpc__get_shard_key_request__init + (Tari__Rpc__GetShardKeyRequest *message); +size_t tari__rpc__get_shard_key_request__get_packed_size + (const Tari__Rpc__GetShardKeyRequest *message); +size_t tari__rpc__get_shard_key_request__pack + (const Tari__Rpc__GetShardKeyRequest *message, + uint8_t *out); +size_t tari__rpc__get_shard_key_request__pack_to_buffer + (const Tari__Rpc__GetShardKeyRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetShardKeyRequest * + tari__rpc__get_shard_key_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_shard_key_request__free_unpacked + (Tari__Rpc__GetShardKeyRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetShardKeyResponse methods */ +void tari__rpc__get_shard_key_response__init + (Tari__Rpc__GetShardKeyResponse *message); +size_t tari__rpc__get_shard_key_response__get_packed_size + (const Tari__Rpc__GetShardKeyResponse *message); +size_t tari__rpc__get_shard_key_response__pack + (const Tari__Rpc__GetShardKeyResponse *message, + uint8_t *out); +size_t tari__rpc__get_shard_key_response__pack_to_buffer + (const Tari__Rpc__GetShardKeyResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetShardKeyResponse * + tari__rpc__get_shard_key_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_shard_key_response__free_unpacked + (Tari__Rpc__GetShardKeyResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetTemplateRegistrationsRequest methods */ +void tari__rpc__get_template_registrations_request__init + (Tari__Rpc__GetTemplateRegistrationsRequest *message); +size_t tari__rpc__get_template_registrations_request__get_packed_size + (const Tari__Rpc__GetTemplateRegistrationsRequest *message); +size_t tari__rpc__get_template_registrations_request__pack + (const Tari__Rpc__GetTemplateRegistrationsRequest *message, + uint8_t *out); +size_t tari__rpc__get_template_registrations_request__pack_to_buffer + (const Tari__Rpc__GetTemplateRegistrationsRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetTemplateRegistrationsRequest * + tari__rpc__get_template_registrations_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_template_registrations_request__free_unpacked + (Tari__Rpc__GetTemplateRegistrationsRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetTemplateRegistrationResponse methods */ +void tari__rpc__get_template_registration_response__init + (Tari__Rpc__GetTemplateRegistrationResponse *message); +size_t tari__rpc__get_template_registration_response__get_packed_size + (const Tari__Rpc__GetTemplateRegistrationResponse *message); +size_t tari__rpc__get_template_registration_response__pack + (const Tari__Rpc__GetTemplateRegistrationResponse *message, + uint8_t *out); +size_t tari__rpc__get_template_registration_response__pack_to_buffer + (const Tari__Rpc__GetTemplateRegistrationResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetTemplateRegistrationResponse * + tari__rpc__get_template_registration_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_template_registration_response__free_unpacked + (Tari__Rpc__GetTemplateRegistrationResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BlockInfo methods */ +void tari__rpc__block_info__init + (Tari__Rpc__BlockInfo *message); +size_t tari__rpc__block_info__get_packed_size + (const Tari__Rpc__BlockInfo *message); +size_t tari__rpc__block_info__pack + (const Tari__Rpc__BlockInfo *message, + uint8_t *out); +size_t tari__rpc__block_info__pack_to_buffer + (const Tari__Rpc__BlockInfo *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockInfo * + tari__rpc__block_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_info__free_unpacked + (Tari__Rpc__BlockInfo *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetSideChainUtxosRequest methods */ +void tari__rpc__get_side_chain_utxos_request__init + (Tari__Rpc__GetSideChainUtxosRequest *message); +size_t tari__rpc__get_side_chain_utxos_request__get_packed_size + (const Tari__Rpc__GetSideChainUtxosRequest *message); +size_t tari__rpc__get_side_chain_utxos_request__pack + (const Tari__Rpc__GetSideChainUtxosRequest *message, + uint8_t *out); +size_t tari__rpc__get_side_chain_utxos_request__pack_to_buffer + (const Tari__Rpc__GetSideChainUtxosRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetSideChainUtxosRequest * + tari__rpc__get_side_chain_utxos_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_side_chain_utxos_request__free_unpacked + (Tari__Rpc__GetSideChainUtxosRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetSideChainUtxosResponse methods */ +void tari__rpc__get_side_chain_utxos_response__init + (Tari__Rpc__GetSideChainUtxosResponse *message); +size_t tari__rpc__get_side_chain_utxos_response__get_packed_size + (const Tari__Rpc__GetSideChainUtxosResponse *message); +size_t tari__rpc__get_side_chain_utxos_response__pack + (const Tari__Rpc__GetSideChainUtxosResponse *message, + uint8_t *out); +size_t tari__rpc__get_side_chain_utxos_response__pack_to_buffer + (const Tari__Rpc__GetSideChainUtxosResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetSideChainUtxosResponse * + tari__rpc__get_side_chain_utxos_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_side_chain_utxos_response__free_unpacked + (Tari__Rpc__GetSideChainUtxosResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tari__Rpc__GetAssetMetadataRequest_Closure) + (const Tari__Rpc__GetAssetMetadataRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetAssetMetadataResponse_Closure) + (const Tari__Rpc__GetAssetMetadataResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__ListAssetRegistrationsRequest_Closure) + (const Tari__Rpc__ListAssetRegistrationsRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__ListAssetRegistrationsResponse_Closure) + (const Tari__Rpc__ListAssetRegistrationsResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetTokensRequest_Closure) + (const Tari__Rpc__GetTokensRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetTokensResponse_Closure) + (const Tari__Rpc__GetTokensResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__SubmitBlockResponse_Closure) + (const Tari__Rpc__SubmitBlockResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__BlockBlobRequest_Closure) + (const Tari__Rpc__BlockBlobRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__TipInfoResponse_Closure) + (const Tari__Rpc__TipInfoResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__NewBlockTemplateResponse_Closure) + (const Tari__Rpc__NewBlockTemplateResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__NewBlockTemplateRequest_Closure) + (const Tari__Rpc__NewBlockTemplateRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__NetworkDifficultyResponse_Closure) + (const Tari__Rpc__NetworkDifficultyResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__ValueAtHeightResponse_Closure) + (const Tari__Rpc__ValueAtHeightResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__IntegerValue_Closure) + (const Tari__Rpc__IntegerValue *message, + void *closure_data); +typedef void (*Tari__Rpc__StringValue_Closure) + (const Tari__Rpc__StringValue *message, + void *closure_data); +typedef void (*Tari__Rpc__BlockGroupRequest_Closure) + (const Tari__Rpc__BlockGroupRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__BlockGroupResponse_Closure) + (const Tari__Rpc__BlockGroupResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__HeightRequest_Closure) + (const Tari__Rpc__HeightRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__BlockTimingResponse_Closure) + (const Tari__Rpc__BlockTimingResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetHeaderByHashRequest_Closure) + (const Tari__Rpc__GetHeaderByHashRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__BlockHeaderResponse_Closure) + (const Tari__Rpc__BlockHeaderResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__ListHeadersRequest_Closure) + (const Tari__Rpc__ListHeadersRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetBlocksRequest_Closure) + (const Tari__Rpc__GetBlocksRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetBlocksResponse_Closure) + (const Tari__Rpc__GetBlocksResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__MetaData_Closure) + (const Tari__Rpc__MetaData *message, + void *closure_data); +typedef void (*Tari__Rpc__SyncInfoResponse_Closure) + (const Tari__Rpc__SyncInfoResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__SyncProgressResponse_Closure) + (const Tari__Rpc__SyncProgressResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetNewBlockResult_Closure) + (const Tari__Rpc__GetNewBlockResult *message, + void *closure_data); +typedef void (*Tari__Rpc__GetNewBlockBlobResult_Closure) + (const Tari__Rpc__GetNewBlockBlobResult *message, + void *closure_data); +typedef void (*Tari__Rpc__MinerData_Closure) + (const Tari__Rpc__MinerData *message, + void *closure_data); +typedef void (*Tari__Rpc__SearchKernelsRequest_Closure) + (const Tari__Rpc__SearchKernelsRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__SearchUtxosRequest_Closure) + (const Tari__Rpc__SearchUtxosRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__FetchMatchingUtxosRequest_Closure) + (const Tari__Rpc__FetchMatchingUtxosRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__FetchMatchingUtxosResponse_Closure) + (const Tari__Rpc__FetchMatchingUtxosResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetPeersResponse_Closure) + (const Tari__Rpc__GetPeersResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetPeersRequest_Closure) + (const Tari__Rpc__GetPeersRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__SubmitTransactionRequest_Closure) + (const Tari__Rpc__SubmitTransactionRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__SubmitTransactionResponse_Closure) + (const Tari__Rpc__SubmitTransactionResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetMempoolTransactionsRequest_Closure) + (const Tari__Rpc__GetMempoolTransactionsRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetMempoolTransactionsResponse_Closure) + (const Tari__Rpc__GetMempoolTransactionsResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__TransactionStateRequest_Closure) + (const Tari__Rpc__TransactionStateRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__TransactionStateResponse_Closure) + (const Tari__Rpc__TransactionStateResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__MempoolStatsResponse_Closure) + (const Tari__Rpc__MempoolStatsResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetActiveValidatorNodesRequest_Closure) + (const Tari__Rpc__GetActiveValidatorNodesRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetActiveValidatorNodesResponse_Closure) + (const Tari__Rpc__GetActiveValidatorNodesResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetShardKeyRequest_Closure) + (const Tari__Rpc__GetShardKeyRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetShardKeyResponse_Closure) + (const Tari__Rpc__GetShardKeyResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__GetTemplateRegistrationsRequest_Closure) + (const Tari__Rpc__GetTemplateRegistrationsRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetTemplateRegistrationResponse_Closure) + (const Tari__Rpc__GetTemplateRegistrationResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__BlockInfo_Closure) + (const Tari__Rpc__BlockInfo *message, + void *closure_data); +typedef void (*Tari__Rpc__GetSideChainUtxosRequest_Closure) + (const Tari__Rpc__GetSideChainUtxosRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetSideChainUtxosResponse_Closure) + (const Tari__Rpc__GetSideChainUtxosResponse *message, + void *closure_data); + +/* --- services --- */ + +typedef struct _Tari__Rpc__BaseNode_Service Tari__Rpc__BaseNode_Service; +struct _Tari__Rpc__BaseNode_Service +{ + ProtobufCService base; + void (*list_headers)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__ListHeadersRequest *input, + Tari__Rpc__BlockHeaderResponse_Closure closure, + void *closure_data); + void (*get_header_by_hash)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetHeaderByHashRequest *input, + Tari__Rpc__BlockHeaderResponse_Closure closure, + void *closure_data); + void (*get_blocks)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetBlocksRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data); + void (*get_block_timing)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__HeightRequest *input, + Tari__Rpc__BlockTimingResponse_Closure closure, + void *closure_data); + void (*get_constants)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__BlockHeight *input, + Tari__Rpc__ConsensusConstants_Closure closure, + void *closure_data); + void (*get_block_size)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__BlockGroupRequest *input, + Tari__Rpc__BlockGroupResponse_Closure closure, + void *closure_data); + void (*get_block_fees)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__BlockGroupRequest *input, + Tari__Rpc__BlockGroupResponse_Closure closure, + void *closure_data); + void (*get_version)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__StringValue_Closure closure, + void *closure_data); + void (*check_for_updates)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SoftwareUpdate_Closure closure, + void *closure_data); + void (*get_tokens_in_circulation)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetBlocksRequest *input, + Tari__Rpc__ValueAtHeightResponse_Closure closure, + void *closure_data); + void (*get_network_difficulty)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__HeightRequest *input, + Tari__Rpc__NetworkDifficultyResponse_Closure closure, + void *closure_data); + void (*get_new_block_template)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__NewBlockTemplateRequest *input, + Tari__Rpc__NewBlockTemplateResponse_Closure closure, + void *closure_data); + void (*get_new_block)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__NewBlockTemplate *input, + Tari__Rpc__GetNewBlockResult_Closure closure, + void *closure_data); + void (*get_new_block_blob)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__NewBlockTemplate *input, + Tari__Rpc__GetNewBlockBlobResult_Closure closure, + void *closure_data); + void (*submit_block)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Block *input, + Tari__Rpc__SubmitBlockResponse_Closure closure, + void *closure_data); + void (*submit_block_blob)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__BlockBlobRequest *input, + Tari__Rpc__SubmitBlockResponse_Closure closure, + void *closure_data); + void (*submit_transaction)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__SubmitTransactionRequest *input, + Tari__Rpc__SubmitTransactionResponse_Closure closure, + void *closure_data); + void (*get_sync_info)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SyncInfoResponse_Closure closure, + void *closure_data); + void (*get_sync_progress)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SyncProgressResponse_Closure closure, + void *closure_data); + void (*get_tip_info)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__TipInfoResponse_Closure closure, + void *closure_data); + void (*search_kernels)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__SearchKernelsRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data); + void (*search_utxos)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__SearchUtxosRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data); + void (*fetch_matching_utxos)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__FetchMatchingUtxosRequest *input, + Tari__Rpc__FetchMatchingUtxosResponse_Closure closure, + void *closure_data); + void (*get_peers)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetPeersRequest *input, + Tari__Rpc__GetPeersResponse_Closure closure, + void *closure_data); + void (*get_mempool_transactions)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetMempoolTransactionsRequest *input, + Tari__Rpc__GetMempoolTransactionsResponse_Closure closure, + void *closure_data); + void (*transaction_state)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__TransactionStateRequest *input, + Tari__Rpc__TransactionStateResponse_Closure closure, + void *closure_data); + void (*identify)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__NodeIdentity_Closure closure, + void *closure_data); + void (*get_network_status)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__NetworkStatusResponse_Closure closure, + void *closure_data); + void (*list_connected_peers)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__ListConnectedPeersResponse_Closure closure, + void *closure_data); + void (*get_mempool_stats)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__MempoolStatsResponse_Closure closure, + void *closure_data); + void (*get_active_validator_nodes)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetActiveValidatorNodesRequest *input, + Tari__Rpc__GetActiveValidatorNodesResponse_Closure closure, + void *closure_data); + void (*get_shard_key)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetShardKeyRequest *input, + Tari__Rpc__GetShardKeyResponse_Closure closure, + void *closure_data); + void (*get_template_registrations)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetTemplateRegistrationsRequest *input, + Tari__Rpc__GetTemplateRegistrationResponse_Closure closure, + void *closure_data); + void (*get_side_chain_utxos)(Tari__Rpc__BaseNode_Service *service, + const Tari__Rpc__GetSideChainUtxosRequest *input, + Tari__Rpc__GetSideChainUtxosResponse_Closure closure, + void *closure_data); +}; +typedef void (*Tari__Rpc__BaseNode_ServiceDestroy)(Tari__Rpc__BaseNode_Service *); +void tari__rpc__base_node__init (Tari__Rpc__BaseNode_Service *service, + Tari__Rpc__BaseNode_ServiceDestroy destroy); +#define TARI__RPC__BASE_NODE__BASE_INIT \ + { &tari__rpc__base_node__descriptor, protobuf_c_service_invoke_internal, NULL } +#define TARI__RPC__BASE_NODE__INIT(function_prefix__) \ + { TARI__RPC__BASE_NODE__BASE_INIT,\ + function_prefix__ ## list_headers,\ + function_prefix__ ## get_header_by_hash,\ + function_prefix__ ## get_blocks,\ + function_prefix__ ## get_block_timing,\ + function_prefix__ ## get_constants,\ + function_prefix__ ## get_block_size,\ + function_prefix__ ## get_block_fees,\ + function_prefix__ ## get_version,\ + function_prefix__ ## check_for_updates,\ + function_prefix__ ## get_tokens_in_circulation,\ + function_prefix__ ## get_network_difficulty,\ + function_prefix__ ## get_new_block_template,\ + function_prefix__ ## get_new_block,\ + function_prefix__ ## get_new_block_blob,\ + function_prefix__ ## submit_block,\ + function_prefix__ ## submit_block_blob,\ + function_prefix__ ## submit_transaction,\ + function_prefix__ ## get_sync_info,\ + function_prefix__ ## get_sync_progress,\ + function_prefix__ ## get_tip_info,\ + function_prefix__ ## search_kernels,\ + function_prefix__ ## search_utxos,\ + function_prefix__ ## fetch_matching_utxos,\ + function_prefix__ ## get_peers,\ + function_prefix__ ## get_mempool_transactions,\ + function_prefix__ ## transaction_state,\ + function_prefix__ ## identify,\ + function_prefix__ ## get_network_status,\ + function_prefix__ ## list_connected_peers,\ + function_prefix__ ## get_mempool_stats,\ + function_prefix__ ## get_active_validator_nodes,\ + function_prefix__ ## get_shard_key,\ + function_prefix__ ## get_template_registrations,\ + function_prefix__ ## get_side_chain_utxos } +void tari__rpc__base_node__list_headers(ProtobufCService *service, + const Tari__Rpc__ListHeadersRequest *input, + Tari__Rpc__BlockHeaderResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_header_by_hash(ProtobufCService *service, + const Tari__Rpc__GetHeaderByHashRequest *input, + Tari__Rpc__BlockHeaderResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_blocks(ProtobufCService *service, + const Tari__Rpc__GetBlocksRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_block_timing(ProtobufCService *service, + const Tari__Rpc__HeightRequest *input, + Tari__Rpc__BlockTimingResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_constants(ProtobufCService *service, + const Tari__Rpc__BlockHeight *input, + Tari__Rpc__ConsensusConstants_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_block_size(ProtobufCService *service, + const Tari__Rpc__BlockGroupRequest *input, + Tari__Rpc__BlockGroupResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_block_fees(ProtobufCService *service, + const Tari__Rpc__BlockGroupRequest *input, + Tari__Rpc__BlockGroupResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_version(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__StringValue_Closure closure, + void *closure_data); +void tari__rpc__base_node__check_for_updates(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SoftwareUpdate_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_tokens_in_circulation(ProtobufCService *service, + const Tari__Rpc__GetBlocksRequest *input, + Tari__Rpc__ValueAtHeightResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_network_difficulty(ProtobufCService *service, + const Tari__Rpc__HeightRequest *input, + Tari__Rpc__NetworkDifficultyResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_new_block_template(ProtobufCService *service, + const Tari__Rpc__NewBlockTemplateRequest *input, + Tari__Rpc__NewBlockTemplateResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_new_block(ProtobufCService *service, + const Tari__Rpc__NewBlockTemplate *input, + Tari__Rpc__GetNewBlockResult_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_new_block_blob(ProtobufCService *service, + const Tari__Rpc__NewBlockTemplate *input, + Tari__Rpc__GetNewBlockBlobResult_Closure closure, + void *closure_data); +void tari__rpc__base_node__submit_block(ProtobufCService *service, + const Tari__Rpc__Block *input, + Tari__Rpc__SubmitBlockResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__submit_block_blob(ProtobufCService *service, + const Tari__Rpc__BlockBlobRequest *input, + Tari__Rpc__SubmitBlockResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__submit_transaction(ProtobufCService *service, + const Tari__Rpc__SubmitTransactionRequest *input, + Tari__Rpc__SubmitTransactionResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_sync_info(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SyncInfoResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_sync_progress(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__SyncProgressResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_tip_info(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__TipInfoResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__search_kernels(ProtobufCService *service, + const Tari__Rpc__SearchKernelsRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data); +void tari__rpc__base_node__search_utxos(ProtobufCService *service, + const Tari__Rpc__SearchUtxosRequest *input, + Tari__Rpc__HistoricalBlock_Closure closure, + void *closure_data); +void tari__rpc__base_node__fetch_matching_utxos(ProtobufCService *service, + const Tari__Rpc__FetchMatchingUtxosRequest *input, + Tari__Rpc__FetchMatchingUtxosResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_peers(ProtobufCService *service, + const Tari__Rpc__GetPeersRequest *input, + Tari__Rpc__GetPeersResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_mempool_transactions(ProtobufCService *service, + const Tari__Rpc__GetMempoolTransactionsRequest *input, + Tari__Rpc__GetMempoolTransactionsResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__transaction_state(ProtobufCService *service, + const Tari__Rpc__TransactionStateRequest *input, + Tari__Rpc__TransactionStateResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__identify(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__NodeIdentity_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_network_status(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__NetworkStatusResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__list_connected_peers(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__ListConnectedPeersResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_mempool_stats(ProtobufCService *service, + const Tari__Rpc__Empty *input, + Tari__Rpc__MempoolStatsResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_active_validator_nodes(ProtobufCService *service, + const Tari__Rpc__GetActiveValidatorNodesRequest *input, + Tari__Rpc__GetActiveValidatorNodesResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_shard_key(ProtobufCService *service, + const Tari__Rpc__GetShardKeyRequest *input, + Tari__Rpc__GetShardKeyResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_template_registrations(ProtobufCService *service, + const Tari__Rpc__GetTemplateRegistrationsRequest *input, + Tari__Rpc__GetTemplateRegistrationResponse_Closure closure, + void *closure_data); +void tari__rpc__base_node__get_side_chain_utxos(ProtobufCService *service, + const Tari__Rpc__GetSideChainUtxosRequest *input, + Tari__Rpc__GetSideChainUtxosResponse_Closure closure, + void *closure_data); + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor tari__rpc__base_node_state__descriptor; +extern const ProtobufCEnumDescriptor tari__rpc__calc_type__descriptor; +extern const ProtobufCEnumDescriptor tari__rpc__sorting__descriptor; +extern const ProtobufCEnumDescriptor tari__rpc__sync_state__descriptor; +extern const ProtobufCEnumDescriptor tari__rpc__submit_transaction_result__descriptor; +extern const ProtobufCEnumDescriptor tari__rpc__transaction_location__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_asset_metadata_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_asset_metadata_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__list_asset_registrations_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__list_asset_registrations_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_tokens_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_tokens_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__submit_block_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block_blob_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__tip_info_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__new_block_template_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__new_block_template_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__network_difficulty_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__value_at_height_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__integer_value__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__string_value__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block_group_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block_group_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__height_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block_timing_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_header_by_hash_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block_header_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__list_headers_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_blocks_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_blocks_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__meta_data__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__sync_info_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__sync_progress_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_new_block_result__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_new_block_blob_result__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__miner_data__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__search_kernels_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__search_utxos_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__fetch_matching_utxos_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__fetch_matching_utxos_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_peers_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_peers_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__submit_transaction_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__submit_transaction_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_mempool_transactions_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_mempool_transactions_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__transaction_state_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__transaction_state_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__mempool_stats_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_active_validator_nodes_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_active_validator_nodes_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_shard_key_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_shard_key_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_template_registrations_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_template_registration_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block_info__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_side_chain_utxos_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_side_chain_utxos_response__descriptor; +extern const ProtobufCServiceDescriptor tari__rpc__base_node__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_base_5fnode_2eproto__INCLUDED */ diff --git a/external/src/Tari/proto/gRPC/base_node.pb.cc b/external/src/Tari/proto/gRPC/base_node.pb.cc deleted file mode 100644 index 40661e17..00000000 --- a/external/src/Tari/proto/gRPC/base_node.pb.cc +++ /dev/null @@ -1,14254 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: base_node.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#include "base_node.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.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" -#include "google/protobuf/generated_message_tctable_impl.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 tari { -namespace rpc { - -inline constexpr ValueAtHeightResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{::uint64_t{0u}}, - height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ValueAtHeightResponse::ValueAtHeightResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ValueAtHeightResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ValueAtHeightResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ValueAtHeightResponseDefaultTypeInternal() {} - union { - ValueAtHeightResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueAtHeightResponseDefaultTypeInternal _ValueAtHeightResponse_default_instance_; - -inline constexpr TransactionStateResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_{static_cast< ::tari::rpc::TransactionLocation >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR TransactionStateResponse::TransactionStateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransactionStateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransactionStateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransactionStateResponseDefaultTypeInternal() {} - union { - TransactionStateResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionStateResponseDefaultTypeInternal _TransactionStateResponse_default_instance_; - -inline constexpr SyncProgressResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : tip_height_{::uint64_t{0u}}, - local_height_{::uint64_t{0u}}, - state_{static_cast< ::tari::rpc::SyncState >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SyncProgressResponse::SyncProgressResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SyncProgressResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SyncProgressResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SyncProgressResponseDefaultTypeInternal() {} - union { - SyncProgressResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncProgressResponseDefaultTypeInternal _SyncProgressResponse_default_instance_; - -inline constexpr SyncInfoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : peer_node_id_{}, - tip_height_{::uint64_t{0u}}, - local_height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SyncInfoResponse::SyncInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SyncInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SyncInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SyncInfoResponseDefaultTypeInternal() {} - union { - SyncInfoResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SyncInfoResponseDefaultTypeInternal _SyncInfoResponse_default_instance_; - -inline constexpr SubmitTransactionResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : result_{static_cast< ::tari::rpc::SubmitTransactionResult >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SubmitTransactionResponse::SubmitTransactionResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SubmitTransactionResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitTransactionResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitTransactionResponseDefaultTypeInternal() {} - union { - SubmitTransactionResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitTransactionResponseDefaultTypeInternal _SubmitTransactionResponse_default_instance_; - -inline constexpr SubmitBlockResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : block_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SubmitBlockResponse::SubmitBlockResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SubmitBlockResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitBlockResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitBlockResponseDefaultTypeInternal() {} - union { - SubmitBlockResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitBlockResponseDefaultTypeInternal _SubmitBlockResponse_default_instance_; - -inline constexpr StringValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR StringValue::StringValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct StringValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR StringValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~StringValueDefaultTypeInternal() {} - union { - StringValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringValueDefaultTypeInternal _StringValue_default_instance_; - -inline constexpr SearchUtxosRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : commitments_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SearchUtxosRequest::SearchUtxosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SearchUtxosRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SearchUtxosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SearchUtxosRequestDefaultTypeInternal() {} - union { - SearchUtxosRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchUtxosRequestDefaultTypeInternal _SearchUtxosRequest_default_instance_; - -inline constexpr NetworkDifficultyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : difficulty_{::uint64_t{0u}}, - estimated_hash_rate_{::uint64_t{0u}}, - height_{::uint64_t{0u}}, - timestamp_{::uint64_t{0u}}, - pow_algo_{::uint64_t{0u}}, - sha3x_estimated_hash_rate_{::uint64_t{0u}}, - randomx_estimated_hash_rate_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NetworkDifficultyResponse::NetworkDifficultyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NetworkDifficultyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetworkDifficultyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NetworkDifficultyResponseDefaultTypeInternal() {} - union { - NetworkDifficultyResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetworkDifficultyResponseDefaultTypeInternal _NetworkDifficultyResponse_default_instance_; - -inline constexpr MetaData::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : best_block_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - accumulated_difficulty_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - height_of_longest_chain_{::uint64_t{0u}}, - pruned_height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MetaData::MetaData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MetaDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR MetaDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MetaDataDefaultTypeInternal() {} - union { - MetaData _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetaDataDefaultTypeInternal _MetaData_default_instance_; - -inline constexpr MempoolStatsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : unconfirmed_txs_{::uint64_t{0u}}, - reorg_txs_{::uint64_t{0u}}, - unconfirmed_weight_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR MempoolStatsResponse::MempoolStatsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MempoolStatsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR MempoolStatsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MempoolStatsResponseDefaultTypeInternal() {} - union { - MempoolStatsResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MempoolStatsResponseDefaultTypeInternal _MempoolStatsResponse_default_instance_; - -inline constexpr ListHeadersRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : from_height_{::uint64_t{0u}}, - num_headers_{::uint64_t{0u}}, - sorting_{static_cast< ::tari::rpc::Sorting >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListHeadersRequest::ListHeadersRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListHeadersRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListHeadersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListHeadersRequestDefaultTypeInternal() {} - union { - ListHeadersRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListHeadersRequestDefaultTypeInternal _ListHeadersRequest_default_instance_; - -inline constexpr ListAssetRegistrationsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : offset_{::uint64_t{0u}}, - count_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListAssetRegistrationsRequest::ListAssetRegistrationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListAssetRegistrationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListAssetRegistrationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListAssetRegistrationsRequestDefaultTypeInternal() {} - union { - ListAssetRegistrationsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListAssetRegistrationsRequestDefaultTypeInternal _ListAssetRegistrationsRequest_default_instance_; - -inline constexpr IntegerValue::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR IntegerValue::IntegerValue(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct IntegerValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR IntegerValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~IntegerValueDefaultTypeInternal() {} - union { - IntegerValue _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntegerValueDefaultTypeInternal _IntegerValue_default_instance_; - -inline constexpr HeightRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : from_tip_{::uint64_t{0u}}, - start_height_{::uint64_t{0u}}, - end_height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR HeightRequest::HeightRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct HeightRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR HeightRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HeightRequestDefaultTypeInternal() {} - union { - HeightRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeightRequestDefaultTypeInternal _HeightRequest_default_instance_; - -inline constexpr GetTokensRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : unique_ids_{}, - asset_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetTokensRequest::GetTokensRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetTokensRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTokensRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTokensRequestDefaultTypeInternal() {} - union { - GetTokensRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTokensRequestDefaultTypeInternal _GetTokensRequest_default_instance_; - -inline constexpr GetTemplateRegistrationsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : start_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - count_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequest::GetTemplateRegistrationsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetTemplateRegistrationsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTemplateRegistrationsRequestDefaultTypeInternal() {} - union { - GetTemplateRegistrationsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTemplateRegistrationsRequestDefaultTypeInternal _GetTemplateRegistrationsRequest_default_instance_; - -inline constexpr GetSideChainUtxosRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : start_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - count_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetSideChainUtxosRequest::GetSideChainUtxosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetSideChainUtxosRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSideChainUtxosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSideChainUtxosRequestDefaultTypeInternal() {} - union { - GetSideChainUtxosRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSideChainUtxosRequestDefaultTypeInternal _GetSideChainUtxosRequest_default_instance_; - -inline constexpr GetShardKeyResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : shard_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - found_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetShardKeyResponse::GetShardKeyResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetShardKeyResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetShardKeyResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetShardKeyResponseDefaultTypeInternal() {} - union { - GetShardKeyResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetShardKeyResponseDefaultTypeInternal _GetShardKeyResponse_default_instance_; - -inline constexpr GetShardKeyRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetShardKeyRequest::GetShardKeyRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetShardKeyRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetShardKeyRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetShardKeyRequestDefaultTypeInternal() {} - union { - GetShardKeyRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetShardKeyRequestDefaultTypeInternal _GetShardKeyRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetPeersRequest::GetPeersRequest(::_pbi::ConstantInitialized) {} -struct GetPeersRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPeersRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPeersRequestDefaultTypeInternal() {} - union { - GetPeersRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPeersRequestDefaultTypeInternal _GetPeersRequest_default_instance_; - -inline constexpr GetNewBlockBlobResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : block_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - header_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - block_body_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - merge_mining_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - utxo_mr_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - tari_unique_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetNewBlockBlobResult::GetNewBlockBlobResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetNewBlockBlobResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetNewBlockBlobResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetNewBlockBlobResultDefaultTypeInternal() {} - union { - GetNewBlockBlobResult _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNewBlockBlobResultDefaultTypeInternal _GetNewBlockBlobResult_default_instance_; - template -PROTOBUF_CONSTEXPR GetMempoolTransactionsRequest::GetMempoolTransactionsRequest(::_pbi::ConstantInitialized) {} -struct GetMempoolTransactionsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMempoolTransactionsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMempoolTransactionsRequestDefaultTypeInternal() {} - union { - GetMempoolTransactionsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMempoolTransactionsRequestDefaultTypeInternal _GetMempoolTransactionsRequest_default_instance_; - -inline constexpr GetHeaderByHashRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetHeaderByHashRequest::GetHeaderByHashRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetHeaderByHashRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetHeaderByHashRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetHeaderByHashRequestDefaultTypeInternal() {} - union { - GetHeaderByHashRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetHeaderByHashRequestDefaultTypeInternal _GetHeaderByHashRequest_default_instance_; - -inline constexpr GetBlocksRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : heights_{}, - _heights_cached_byte_size_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetBlocksRequest::GetBlocksRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetBlocksRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetBlocksRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetBlocksRequestDefaultTypeInternal() {} - union { - GetBlocksRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBlocksRequestDefaultTypeInternal _GetBlocksRequest_default_instance_; - -inline constexpr GetAssetMetadataRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : asset_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetAssetMetadataRequest::GetAssetMetadataRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetAssetMetadataRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAssetMetadataRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAssetMetadataRequestDefaultTypeInternal() {} - union { - GetAssetMetadataRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAssetMetadataRequestDefaultTypeInternal _GetAssetMetadataRequest_default_instance_; - -inline constexpr GetActiveValidatorNodesResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : shard_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponse::GetActiveValidatorNodesResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetActiveValidatorNodesResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetActiveValidatorNodesResponseDefaultTypeInternal() {} - union { - GetActiveValidatorNodesResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetActiveValidatorNodesResponseDefaultTypeInternal _GetActiveValidatorNodesResponse_default_instance_; - -inline constexpr GetActiveValidatorNodesRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetActiveValidatorNodesRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetActiveValidatorNodesRequestDefaultTypeInternal() {} - union { - GetActiveValidatorNodesRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetActiveValidatorNodesRequestDefaultTypeInternal _GetActiveValidatorNodesRequest_default_instance_; - -inline constexpr FetchMatchingUtxosRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : hashes_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR FetchMatchingUtxosRequest::FetchMatchingUtxosRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FetchMatchingUtxosRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR FetchMatchingUtxosRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FetchMatchingUtxosRequestDefaultTypeInternal() {} - union { - FetchMatchingUtxosRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FetchMatchingUtxosRequestDefaultTypeInternal _FetchMatchingUtxosRequest_default_instance_; - -inline constexpr BlockTimingResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : max_{::uint64_t{0u}}, - min_{::uint64_t{0u}}, - avg_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BlockTimingResponse::BlockTimingResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockTimingResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockTimingResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockTimingResponseDefaultTypeInternal() {} - union { - BlockTimingResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockTimingResponseDefaultTypeInternal _BlockTimingResponse_default_instance_; - -inline constexpr BlockInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - next_block_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BlockInfo::BlockInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockInfoDefaultTypeInternal() {} - union { - BlockInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockInfoDefaultTypeInternal _BlockInfo_default_instance_; - -inline constexpr BlockGroupResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : value_{}, - calc_type_{static_cast< ::tari::rpc::CalcType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BlockGroupResponse::BlockGroupResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockGroupResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockGroupResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockGroupResponseDefaultTypeInternal() {} - union { - BlockGroupResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockGroupResponseDefaultTypeInternal _BlockGroupResponse_default_instance_; - -inline constexpr BlockGroupRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : from_tip_{::uint64_t{0u}}, - start_height_{::uint64_t{0u}}, - end_height_{::uint64_t{0u}}, - calc_type_{static_cast< ::tari::rpc::CalcType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BlockGroupRequest::BlockGroupRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockGroupRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockGroupRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockGroupRequestDefaultTypeInternal() {} - union { - BlockGroupRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockGroupRequestDefaultTypeInternal _BlockGroupRequest_default_instance_; - -inline constexpr BlockBlobRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : header_blob_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - body_blob_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BlockBlobRequest::BlockBlobRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockBlobRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockBlobRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockBlobRequestDefaultTypeInternal() {} - union { - BlockBlobRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockBlobRequestDefaultTypeInternal _BlockBlobRequest_default_instance_; - -inline constexpr TransactionStateRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - excess_sig_{nullptr} {} - -template -PROTOBUF_CONSTEXPR TransactionStateRequest::TransactionStateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransactionStateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransactionStateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransactionStateRequestDefaultTypeInternal() {} - union { - TransactionStateRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionStateRequestDefaultTypeInternal _TransactionStateRequest_default_instance_; - -inline constexpr TipInfoResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - metadata_{nullptr}, - initial_sync_achieved_{false}, - base_node_state_{static_cast< ::tari::rpc::BaseNodeState >(0)} {} - -template -PROTOBUF_CONSTEXPR TipInfoResponse::TipInfoResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TipInfoResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR TipInfoResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TipInfoResponseDefaultTypeInternal() {} - union { - TipInfoResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TipInfoResponseDefaultTypeInternal _TipInfoResponse_default_instance_; - -inline constexpr SearchKernelsRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : signatures_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SearchKernelsRequest::SearchKernelsRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SearchKernelsRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SearchKernelsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SearchKernelsRequestDefaultTypeInternal() {} - union { - SearchKernelsRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SearchKernelsRequestDefaultTypeInternal _SearchKernelsRequest_default_instance_; - -inline constexpr NewBlockTemplateRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - algo_{nullptr}, - max_weight_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR NewBlockTemplateRequest::NewBlockTemplateRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewBlockTemplateRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewBlockTemplateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewBlockTemplateRequestDefaultTypeInternal() {} - union { - NewBlockTemplateRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewBlockTemplateRequestDefaultTypeInternal _NewBlockTemplateRequest_default_instance_; - -inline constexpr MinerData::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - algo_{nullptr}, - target_difficulty_{::uint64_t{0u}}, - reward_{::uint64_t{0u}}, - total_fees_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR MinerData::MinerData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct MinerDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR MinerDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~MinerDataDefaultTypeInternal() {} - union { - MinerData _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MinerDataDefaultTypeInternal _MinerData_default_instance_; - -inline constexpr GetPeersResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - peer_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetPeersResponse::GetPeersResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetPeersResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetPeersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetPeersResponseDefaultTypeInternal() {} - union { - GetPeersResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetPeersResponseDefaultTypeInternal _GetPeersResponse_default_instance_; - -inline constexpr BlockHeaderResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - header_{nullptr}, - confirmations_{::uint64_t{0u}}, - reward_{::uint64_t{0u}}, - difficulty_{::uint64_t{0u}}, - num_transactions_{0u} {} - -template -PROTOBUF_CONSTEXPR BlockHeaderResponse::BlockHeaderResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockHeaderResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockHeaderResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockHeaderResponseDefaultTypeInternal() {} - union { - BlockHeaderResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockHeaderResponseDefaultTypeInternal _BlockHeaderResponse_default_instance_; - -inline constexpr GetTemplateRegistrationResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - utxo_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - registration_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetTemplateRegistrationResponse::GetTemplateRegistrationResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetTemplateRegistrationResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTemplateRegistrationResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTemplateRegistrationResponseDefaultTypeInternal() {} - union { - GetTemplateRegistrationResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTemplateRegistrationResponseDefaultTypeInternal _GetTemplateRegistrationResponse_default_instance_; - -inline constexpr ListAssetRegistrationsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - asset_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - unique_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - owner_commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mined_in_block_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - script_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - features_{nullptr}, - mined_height_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR ListAssetRegistrationsResponse::ListAssetRegistrationsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListAssetRegistrationsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListAssetRegistrationsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListAssetRegistrationsResponseDefaultTypeInternal() {} - union { - ListAssetRegistrationsResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListAssetRegistrationsResponseDefaultTypeInternal _ListAssetRegistrationsResponse_default_instance_; - -inline constexpr GetTokensResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - unique_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - asset_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - owner_commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mined_in_block_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - script_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - features_{nullptr}, - mined_height_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR GetTokensResponse::GetTokensResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetTokensResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetTokensResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetTokensResponseDefaultTypeInternal() {} - union { - GetTokensResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetTokensResponseDefaultTypeInternal _GetTokensResponse_default_instance_; - -inline constexpr GetAssetMetadataResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - image_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - owner_commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - mined_in_block_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - features_{nullptr}, - mined_height_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR GetAssetMetadataResponse::GetAssetMetadataResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetAssetMetadataResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetAssetMetadataResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetAssetMetadataResponseDefaultTypeInternal() {} - union { - GetAssetMetadataResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetAssetMetadataResponseDefaultTypeInternal _GetAssetMetadataResponse_default_instance_; - -inline constexpr GetSideChainUtxosResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - outputs_{}, - block_info_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetSideChainUtxosResponse::GetSideChainUtxosResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetSideChainUtxosResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetSideChainUtxosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetSideChainUtxosResponseDefaultTypeInternal() {} - union { - GetSideChainUtxosResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetSideChainUtxosResponseDefaultTypeInternal _GetSideChainUtxosResponse_default_instance_; - -inline constexpr FetchMatchingUtxosResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - output_{nullptr} {} - -template -PROTOBUF_CONSTEXPR FetchMatchingUtxosResponse::FetchMatchingUtxosResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct FetchMatchingUtxosResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR FetchMatchingUtxosResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FetchMatchingUtxosResponseDefaultTypeInternal() {} - union { - FetchMatchingUtxosResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FetchMatchingUtxosResponseDefaultTypeInternal _FetchMatchingUtxosResponse_default_instance_; - -inline constexpr SubmitTransactionRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - transaction_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SubmitTransactionRequest::SubmitTransactionRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SubmitTransactionRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SubmitTransactionRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SubmitTransactionRequestDefaultTypeInternal() {} - union { - SubmitTransactionRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SubmitTransactionRequestDefaultTypeInternal _SubmitTransactionRequest_default_instance_; - -inline constexpr NewBlockTemplateResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - new_block_template_{nullptr}, - miner_data_{nullptr}, - initial_sync_achieved_{false} {} - -template -PROTOBUF_CONSTEXPR NewBlockTemplateResponse::NewBlockTemplateResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewBlockTemplateResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewBlockTemplateResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewBlockTemplateResponseDefaultTypeInternal() {} - union { - NewBlockTemplateResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewBlockTemplateResponseDefaultTypeInternal _NewBlockTemplateResponse_default_instance_; - -inline constexpr GetNewBlockResult::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - block_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - merge_mining_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - tari_unique_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - block_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetNewBlockResult::GetNewBlockResult(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetNewBlockResultDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetNewBlockResultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetNewBlockResultDefaultTypeInternal() {} - union { - GetNewBlockResult _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetNewBlockResultDefaultTypeInternal _GetNewBlockResult_default_instance_; - -inline constexpr GetMempoolTransactionsResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - transaction_{nullptr} {} - -template -PROTOBUF_CONSTEXPR GetMempoolTransactionsResponse::GetMempoolTransactionsResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetMempoolTransactionsResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMempoolTransactionsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMempoolTransactionsResponseDefaultTypeInternal() {} - union { - GetMempoolTransactionsResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMempoolTransactionsResponseDefaultTypeInternal _GetMempoolTransactionsResponse_default_instance_; - -inline constexpr GetBlocksResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : blocks_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetBlocksResponse::GetBlocksResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetBlocksResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetBlocksResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetBlocksResponseDefaultTypeInternal() {} - union { - GetBlocksResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetBlocksResponseDefaultTypeInternal _GetBlocksResponse_default_instance_; -} // namespace rpc -} // namespace tari -static ::_pb::Metadata file_level_metadata_base_5fnode_2eproto[52]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_base_5fnode_2eproto[6]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_base_5fnode_2eproto = nullptr; -const ::uint32_t - TableStruct_base_5fnode_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataRequest, _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(::tari::rpc::GetAssetMetadataRequest, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _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(::tari::rpc::GetAssetMetadataResponse, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.description_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.image_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.owner_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.mined_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetAssetMetadataResponse, _impl_.mined_in_block_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _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(::tari::rpc::ListAssetRegistrationsRequest, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsRequest, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _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(::tari::rpc::ListAssetRegistrationsResponse, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.unique_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.owner_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.mined_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.mined_in_block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListAssetRegistrationsResponse, _impl_.script_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _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(::tari::rpc::GetTokensRequest, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensRequest, _impl_.unique_ids_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _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(::tari::rpc::GetTokensResponse, _impl_.unique_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.asset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.owner_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.mined_in_block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.mined_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTokensResponse, _impl_.script_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitBlockResponse, _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(::tari::rpc::SubmitBlockResponse, _impl_.block_hash_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _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(::tari::rpc::BlockBlobRequest, _impl_.header_blob_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockBlobRequest, _impl_.body_blob_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _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(::tari::rpc::TipInfoResponse, _impl_.metadata_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.initial_sync_achieved_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TipInfoResponse, _impl_.base_node_state_), - 0, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _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(::tari::rpc::NewBlockTemplateResponse, _impl_.new_block_template_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.initial_sync_achieved_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateResponse, _impl_.miner_data_), - 0, - ~0u, - 1, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _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(::tari::rpc::NewBlockTemplateRequest, _impl_.algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplateRequest, _impl_.max_weight_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _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(::tari::rpc::NetworkDifficultyResponse, _impl_.difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.estimated_hash_rate_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.timestamp_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.pow_algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkDifficultyResponse, _impl_.randomx_estimated_hash_rate_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _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(::tari::rpc::ValueAtHeightResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValueAtHeightResponse, _impl_.height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::IntegerValue, _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(::tari::rpc::IntegerValue, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::StringValue, _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(::tari::rpc::StringValue, _impl_.value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _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(::tari::rpc::BlockGroupRequest, _impl_.from_tip_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.start_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.end_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupRequest, _impl_.calc_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _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(::tari::rpc::BlockGroupResponse, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockGroupResponse, _impl_.calc_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _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(::tari::rpc::HeightRequest, _impl_.from_tip_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.start_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HeightRequest, _impl_.end_height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _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(::tari::rpc::BlockTimingResponse, _impl_.max_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.min_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockTimingResponse, _impl_.avg_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetHeaderByHashRequest, _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(::tari::rpc::GetHeaderByHashRequest, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _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(::tari::rpc::BlockHeaderResponse, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.confirmations_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.reward_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeaderResponse, _impl_.num_transactions_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _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(::tari::rpc::ListHeadersRequest, _impl_.from_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.num_headers_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListHeadersRequest, _impl_.sorting_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksRequest, _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(::tari::rpc::GetBlocksRequest, _impl_.heights_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetBlocksResponse, _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(::tari::rpc::GetBlocksResponse, _impl_.blocks_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _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(::tari::rpc::MetaData, _impl_.height_of_longest_chain_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.best_block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.pruned_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MetaData, _impl_.accumulated_difficulty_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _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(::tari::rpc::SyncInfoResponse, _impl_.tip_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.local_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncInfoResponse, _impl_.peer_node_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _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(::tari::rpc::SyncProgressResponse, _impl_.tip_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.local_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SyncProgressResponse, _impl_.state_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _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(::tari::rpc::GetNewBlockResult, _impl_.block_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.block_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.merge_mining_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockResult, _impl_.tari_unique_id_), - ~0u, - 0, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _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(::tari::rpc::GetNewBlockBlobResult, _impl_.block_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.block_body_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.merge_mining_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.utxo_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetNewBlockBlobResult, _impl_.tari_unique_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _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(::tari::rpc::MinerData, _impl_.algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.target_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.reward_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MinerData, _impl_.total_fees_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchKernelsRequest, _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(::tari::rpc::SearchKernelsRequest, _impl_.signatures_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SearchUtxosRequest, _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(::tari::rpc::SearchUtxosRequest, _impl_.commitments_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosRequest, _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(::tari::rpc::FetchMatchingUtxosRequest, _impl_.hashes_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::FetchMatchingUtxosResponse, _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(::tari::rpc::FetchMatchingUtxosResponse, _impl_.output_), - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersResponse, _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(::tari::rpc::GetPeersResponse, _impl_.peer_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetPeersRequest, _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(::tari::rpc::SubmitTransactionRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionRequest, _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(::tari::rpc::SubmitTransactionRequest, _impl_.transaction_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SubmitTransactionResponse, _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(::tari::rpc::SubmitTransactionResponse, _impl_.result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsRequest, _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(::tari::rpc::GetMempoolTransactionsResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetMempoolTransactionsResponse, _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(::tari::rpc::GetMempoolTransactionsResponse, _impl_.transaction_), - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateRequest, _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(::tari::rpc::TransactionStateRequest, _impl_.excess_sig_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionStateResponse, _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(::tari::rpc::TransactionStateResponse, _impl_.result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _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(::tari::rpc::MempoolStatsResponse, _impl_.unconfirmed_txs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.reorg_txs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::MempoolStatsResponse, _impl_.unconfirmed_weight_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesRequest, _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(::tari::rpc::GetActiveValidatorNodesRequest, _impl_.height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _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(::tari::rpc::GetActiveValidatorNodesResponse, _impl_.shard_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetActiveValidatorNodesResponse, _impl_.public_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _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(::tari::rpc::GetShardKeyRequest, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyRequest, _impl_.public_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _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(::tari::rpc::GetShardKeyResponse, _impl_.shard_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetShardKeyResponse, _impl_.found_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _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(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.start_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationsRequest, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _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(::tari::rpc::GetTemplateRegistrationResponse, _impl_.utxo_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetTemplateRegistrationResponse, _impl_.registration_), - ~0u, - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _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(::tari::rpc::BlockInfo, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockInfo, _impl_.next_block_hash_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _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(::tari::rpc::GetSideChainUtxosRequest, _impl_.start_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosRequest, _impl_.count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _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(::tari::rpc::GetSideChainUtxosResponse, _impl_.block_info_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetSideChainUtxosResponse, _impl_.outputs_), - 0, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::tari::rpc::GetAssetMetadataRequest)}, - {9, 24, -1, sizeof(::tari::rpc::GetAssetMetadataResponse)}, - {31, -1, -1, sizeof(::tari::rpc::ListAssetRegistrationsRequest)}, - {41, 56, -1, sizeof(::tari::rpc::ListAssetRegistrationsResponse)}, - {63, -1, -1, sizeof(::tari::rpc::GetTokensRequest)}, - {73, 88, -1, sizeof(::tari::rpc::GetTokensResponse)}, - {95, -1, -1, sizeof(::tari::rpc::SubmitBlockResponse)}, - {104, -1, -1, sizeof(::tari::rpc::BlockBlobRequest)}, - {114, 125, -1, sizeof(::tari::rpc::TipInfoResponse)}, - {128, 139, -1, sizeof(::tari::rpc::NewBlockTemplateResponse)}, - {142, 152, -1, sizeof(::tari::rpc::NewBlockTemplateRequest)}, - {154, -1, -1, sizeof(::tari::rpc::NetworkDifficultyResponse)}, - {169, -1, -1, sizeof(::tari::rpc::ValueAtHeightResponse)}, - {179, -1, -1, sizeof(::tari::rpc::IntegerValue)}, - {188, -1, -1, sizeof(::tari::rpc::StringValue)}, - {197, -1, -1, sizeof(::tari::rpc::BlockGroupRequest)}, - {209, -1, -1, sizeof(::tari::rpc::BlockGroupResponse)}, - {219, -1, -1, sizeof(::tari::rpc::HeightRequest)}, - {230, -1, -1, sizeof(::tari::rpc::BlockTimingResponse)}, - {241, -1, -1, sizeof(::tari::rpc::GetHeaderByHashRequest)}, - {250, 263, -1, sizeof(::tari::rpc::BlockHeaderResponse)}, - {268, -1, -1, sizeof(::tari::rpc::ListHeadersRequest)}, - {279, -1, -1, sizeof(::tari::rpc::GetBlocksRequest)}, - {288, -1, -1, sizeof(::tari::rpc::GetBlocksResponse)}, - {297, -1, -1, sizeof(::tari::rpc::MetaData)}, - {309, -1, -1, sizeof(::tari::rpc::SyncInfoResponse)}, - {320, -1, -1, sizeof(::tari::rpc::SyncProgressResponse)}, - {331, 343, -1, sizeof(::tari::rpc::GetNewBlockResult)}, - {347, -1, -1, sizeof(::tari::rpc::GetNewBlockBlobResult)}, - {361, 373, -1, sizeof(::tari::rpc::MinerData)}, - {377, -1, -1, sizeof(::tari::rpc::SearchKernelsRequest)}, - {386, -1, -1, sizeof(::tari::rpc::SearchUtxosRequest)}, - {395, -1, -1, sizeof(::tari::rpc::FetchMatchingUtxosRequest)}, - {404, 413, -1, sizeof(::tari::rpc::FetchMatchingUtxosResponse)}, - {414, 423, -1, sizeof(::tari::rpc::GetPeersResponse)}, - {424, -1, -1, sizeof(::tari::rpc::GetPeersRequest)}, - {432, 441, -1, sizeof(::tari::rpc::SubmitTransactionRequest)}, - {442, -1, -1, sizeof(::tari::rpc::SubmitTransactionResponse)}, - {451, -1, -1, sizeof(::tari::rpc::GetMempoolTransactionsRequest)}, - {459, 468, -1, sizeof(::tari::rpc::GetMempoolTransactionsResponse)}, - {469, 478, -1, sizeof(::tari::rpc::TransactionStateRequest)}, - {479, -1, -1, sizeof(::tari::rpc::TransactionStateResponse)}, - {488, -1, -1, sizeof(::tari::rpc::MempoolStatsResponse)}, - {499, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesRequest)}, - {508, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesResponse)}, - {518, -1, -1, sizeof(::tari::rpc::GetShardKeyRequest)}, - {528, -1, -1, sizeof(::tari::rpc::GetShardKeyResponse)}, - {538, -1, -1, sizeof(::tari::rpc::GetTemplateRegistrationsRequest)}, - {548, 558, -1, sizeof(::tari::rpc::GetTemplateRegistrationResponse)}, - {560, -1, -1, sizeof(::tari::rpc::BlockInfo)}, - {571, -1, -1, sizeof(::tari::rpc::GetSideChainUtxosRequest)}, - {581, 591, -1, sizeof(::tari::rpc::GetSideChainUtxosResponse)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::tari::rpc::_GetAssetMetadataRequest_default_instance_._instance, - &::tari::rpc::_GetAssetMetadataResponse_default_instance_._instance, - &::tari::rpc::_ListAssetRegistrationsRequest_default_instance_._instance, - &::tari::rpc::_ListAssetRegistrationsResponse_default_instance_._instance, - &::tari::rpc::_GetTokensRequest_default_instance_._instance, - &::tari::rpc::_GetTokensResponse_default_instance_._instance, - &::tari::rpc::_SubmitBlockResponse_default_instance_._instance, - &::tari::rpc::_BlockBlobRequest_default_instance_._instance, - &::tari::rpc::_TipInfoResponse_default_instance_._instance, - &::tari::rpc::_NewBlockTemplateResponse_default_instance_._instance, - &::tari::rpc::_NewBlockTemplateRequest_default_instance_._instance, - &::tari::rpc::_NetworkDifficultyResponse_default_instance_._instance, - &::tari::rpc::_ValueAtHeightResponse_default_instance_._instance, - &::tari::rpc::_IntegerValue_default_instance_._instance, - &::tari::rpc::_StringValue_default_instance_._instance, - &::tari::rpc::_BlockGroupRequest_default_instance_._instance, - &::tari::rpc::_BlockGroupResponse_default_instance_._instance, - &::tari::rpc::_HeightRequest_default_instance_._instance, - &::tari::rpc::_BlockTimingResponse_default_instance_._instance, - &::tari::rpc::_GetHeaderByHashRequest_default_instance_._instance, - &::tari::rpc::_BlockHeaderResponse_default_instance_._instance, - &::tari::rpc::_ListHeadersRequest_default_instance_._instance, - &::tari::rpc::_GetBlocksRequest_default_instance_._instance, - &::tari::rpc::_GetBlocksResponse_default_instance_._instance, - &::tari::rpc::_MetaData_default_instance_._instance, - &::tari::rpc::_SyncInfoResponse_default_instance_._instance, - &::tari::rpc::_SyncProgressResponse_default_instance_._instance, - &::tari::rpc::_GetNewBlockResult_default_instance_._instance, - &::tari::rpc::_GetNewBlockBlobResult_default_instance_._instance, - &::tari::rpc::_MinerData_default_instance_._instance, - &::tari::rpc::_SearchKernelsRequest_default_instance_._instance, - &::tari::rpc::_SearchUtxosRequest_default_instance_._instance, - &::tari::rpc::_FetchMatchingUtxosRequest_default_instance_._instance, - &::tari::rpc::_FetchMatchingUtxosResponse_default_instance_._instance, - &::tari::rpc::_GetPeersResponse_default_instance_._instance, - &::tari::rpc::_GetPeersRequest_default_instance_._instance, - &::tari::rpc::_SubmitTransactionRequest_default_instance_._instance, - &::tari::rpc::_SubmitTransactionResponse_default_instance_._instance, - &::tari::rpc::_GetMempoolTransactionsRequest_default_instance_._instance, - &::tari::rpc::_GetMempoolTransactionsResponse_default_instance_._instance, - &::tari::rpc::_TransactionStateRequest_default_instance_._instance, - &::tari::rpc::_TransactionStateResponse_default_instance_._instance, - &::tari::rpc::_MempoolStatsResponse_default_instance_._instance, - &::tari::rpc::_GetActiveValidatorNodesRequest_default_instance_._instance, - &::tari::rpc::_GetActiveValidatorNodesResponse_default_instance_._instance, - &::tari::rpc::_GetShardKeyRequest_default_instance_._instance, - &::tari::rpc::_GetShardKeyResponse_default_instance_._instance, - &::tari::rpc::_GetTemplateRegistrationsRequest_default_instance_._instance, - &::tari::rpc::_GetTemplateRegistrationResponse_default_instance_._instance, - &::tari::rpc::_BlockInfo_default_instance_._instance, - &::tari::rpc::_GetSideChainUtxosRequest_default_instance_._instance, - &::tari::rpc::_GetSideChainUtxosResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_base_5fnode_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\017base_node.proto\022\010tari.rpc\032\013types.proto" - "\032\021transaction.proto\032\013block.proto\032\rnetwor" - "k.proto\032\025sidechain_types.proto\"3\n\027GetAss" - "etMetadataRequest\022\030\n\020asset_public_key\030\001 " - "\001(\014\"\300\001\n\030GetAssetMetadataResponse\022\014\n\004name" - "\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\r\n\005image\030\004 \001" - "(\t\022\030\n\020owner_commitment\030\005 \001(\014\022*\n\010features" - "\030\006 \001(\0132\030.tari.rpc.OutputFeatures\022\024\n\014mine" - "d_height\030\007 \001(\004\022\026\n\016mined_in_block\030\010 \001(\014\">" - "\n\035ListAssetRegistrationsRequest\022\016\n\006offse" - "t\030\002 \001(\004\022\r\n\005count\030\003 \001(\004\"\321\001\n\036ListAssetRegi" - "strationsResponse\022\030\n\020asset_public_key\030\001 " - "\001(\014\022\021\n\tunique_id\030\002 \001(\014\022\030\n\020owner_commitme" - "nt\030\003 \001(\014\022\024\n\014mined_height\030\004 \001(\004\022\026\n\016mined_" - "in_block\030\005 \001(\014\022*\n\010features\030\006 \001(\0132\030.tari." - "rpc.OutputFeatures\022\016\n\006script\030\007 \001(\014\"@\n\020Ge" - "tTokensRequest\022\030\n\020asset_public_key\030\001 \001(\014" - "\022\022\n\nunique_ids\030\002 \003(\014\"\304\001\n\021GetTokensRespon" - "se\022\021\n\tunique_id\030\001 \001(\014\022\030\n\020asset_public_ke" - "y\030\002 \001(\014\022\030\n\020owner_commitment\030\003 \001(\014\022\026\n\016min" - "ed_in_block\030\004 \001(\014\022\024\n\014mined_height\030\005 \001(\004\022" - "*\n\010features\030\006 \001(\0132\030.tari.rpc.OutputFeatu" - "res\022\016\n\006script\030\007 \001(\014\")\n\023SubmitBlockRespon" - "se\022\022\n\nblock_hash\030\001 \001(\014\":\n\020BlockBlobReque" - "st\022\023\n\013header_blob\030\001 \001(\014\022\021\n\tbody_blob\030\002 \001" - "(\014\"\210\001\n\017TipInfoResponse\022$\n\010metadata\030\001 \001(\013" - "2\022.tari.rpc.MetaData\022\035\n\025initial_sync_ach" - "ieved\030\002 \001(\010\0220\n\017base_node_state\030\003 \001(\0162\027.t" - "ari.rpc.BaseNodeState\"\232\001\n\030NewBlockTempla" - "teResponse\0226\n\022new_block_template\030\001 \001(\0132\032" - ".tari.rpc.NewBlockTemplate\022\035\n\025initial_sy" - "nc_achieved\030\003 \001(\010\022\'\n\nminer_data\030\004 \001(\0132\023." - "tari.rpc.MinerData\"N\n\027NewBlockTemplateRe" - "quest\022\037\n\004algo\030\001 \001(\0132\021.tari.rpc.PowAlgo\022\022" - "\n\nmax_weight\030\002 \001(\004\"\311\001\n\031NetworkDifficulty" - "Response\022\022\n\ndifficulty\030\001 \001(\004\022\033\n\023estimate" - "d_hash_rate\030\002 \001(\004\022\016\n\006height\030\003 \001(\004\022\021\n\ttim" - "estamp\030\004 \001(\004\022\020\n\010pow_algo\030\005 \001(\004\022!\n\031sha3x_" - "estimated_hash_rate\030\006 \001(\004\022#\n\033randomx_est" - "imated_hash_rate\030\007 \001(\004\"6\n\025ValueAtHeightR" - "esponse\022\r\n\005value\030\001 \001(\004\022\016\n\006height\030\002 \001(\004\"\035" - "\n\014IntegerValue\022\r\n\005value\030\001 \001(\004\"\034\n\013StringV" - "alue\022\r\n\005value\030\001 \001(\t\"v\n\021BlockGroupRequest" - "\022\020\n\010from_tip\030\001 \001(\004\022\024\n\014start_height\030\002 \001(\004" - "\022\022\n\nend_height\030\003 \001(\004\022%\n\tcalc_type\030\004 \001(\0162" - "\022.tari.rpc.CalcType\"J\n\022BlockGroupRespons" - "e\022\r\n\005value\030\001 \003(\001\022%\n\tcalc_type\030\002 \001(\0162\022.ta" - "ri.rpc.CalcType\"K\n\rHeightRequest\022\020\n\010from" - "_tip\030\001 \001(\004\022\024\n\014start_height\030\002 \001(\004\022\022\n\nend_" - "height\030\003 \001(\004\"<\n\023BlockTimingResponse\022\013\n\003m" - "ax\030\001 \001(\004\022\013\n\003min\030\002 \001(\004\022\013\n\003avg\030\003 \001(\001\"&\n\026Ge" - "tHeaderByHashRequest\022\014\n\004hash\030\001 \001(\014\"\221\001\n\023B" - "lockHeaderResponse\022%\n\006header\030\001 \001(\0132\025.tar" - "i.rpc.BlockHeader\022\025\n\rconfirmations\030\002 \001(\004" - "\022\016\n\006reward\030\003 \001(\004\022\022\n\ndifficulty\030\004 \001(\004\022\030\n\020" - "num_transactions\030\005 \001(\r\"b\n\022ListHeadersReq" - "uest\022\023\n\013from_height\030\001 \001(\004\022\023\n\013num_headers" - "\030\002 \001(\004\022\"\n\007sorting\030\003 \001(\0162\021.tari.rpc.Sorti" - "ng\"#\n\020GetBlocksRequest\022\017\n\007heights\030\001 \003(\004\"" - ">\n\021GetBlocksResponse\022)\n\006blocks\030\001 \003(\0132\031.t" - "ari.rpc.HistoricalBlock\"v\n\010MetaData\022\037\n\027h" - "eight_of_longest_chain\030\001 \001(\004\022\022\n\nbest_blo" - "ck\030\002 \001(\014\022\025\n\rpruned_height\030\006 \001(\004\022\036\n\026accum" - "ulated_difficulty\030\005 \001(\014\"R\n\020SyncInfoRespo" - "nse\022\022\n\ntip_height\030\001 \001(\004\022\024\n\014local_height\030" - "\002 \001(\004\022\024\n\014peer_node_id\030\003 \003(\014\"d\n\024SyncProgr" - "essResponse\022\022\n\ntip_height\030\001 \001(\004\022\024\n\014local" - "_height\030\002 \001(\004\022\"\n\005state\030\003 \001(\0162\023.tari.rpc." - "SyncState\"z\n\021GetNewBlockResult\022\022\n\nblock_" - "hash\030\001 \001(\014\022\036\n\005block\030\002 \001(\0132\017.tari.rpc.Blo" - "ck\022\031\n\021merge_mining_hash\030\003 \001(\014\022\026\n\016tari_un" - "ique_id\030\004 \001(\014\"\223\001\n\025GetNewBlockBlobResult\022" - "\022\n\nblock_hash\030\001 \001(\014\022\016\n\006header\030\002 \001(\014\022\022\n\nb" - "lock_body\030\003 \001(\014\022\031\n\021merge_mining_hash\030\004 \001" - "(\014\022\017\n\007utxo_mr\030\005 \001(\014\022\026\n\016tari_unique_id\030\006 " - "\001(\014\"k\n\tMinerData\022\037\n\004algo\030\001 \001(\0132\021.tari.rp" - "c.PowAlgo\022\031\n\021target_difficulty\030\002 \001(\004\022\016\n\006" - "reward\030\003 \001(\004\022\022\n\ntotal_fees\030\005 \001(\004\"\?\n\024Sear" - "chKernelsRequest\022\'\n\nsignatures\030\001 \003(\0132\023.t" - "ari.rpc.Signature\")\n\022SearchUtxosRequest\022" - "\023\n\013commitments\030\001 \003(\014\"+\n\031FetchMatchingUtx" - "osRequest\022\016\n\006hashes\030\001 \003(\014\"I\n\032FetchMatchi" - "ngUtxosResponse\022+\n\006output\030\001 \001(\0132\033.tari.r" - "pc.TransactionOutput\"0\n\020GetPeersResponse" - "\022\034\n\004peer\030\001 \001(\0132\016.tari.rpc.Peer\"\021\n\017GetPee" - "rsRequest\"F\n\030SubmitTransactionRequest\022*\n" - "\013transaction\030\001 \001(\0132\025.tari.rpc.Transactio" - "n\"N\n\031SubmitTransactionResponse\0221\n\006result" - "\030\001 \001(\0162!.tari.rpc.SubmitTransactionResul" - "t\"\037\n\035GetMempoolTransactionsRequest\"L\n\036Ge" - "tMempoolTransactionsResponse\022*\n\013transact" - "ion\030\001 \001(\0132\025.tari.rpc.Transaction\"B\n\027Tran" - "sactionStateRequest\022\'\n\nexcess_sig\030\001 \001(\0132" - "\023.tari.rpc.Signature\"I\n\030TransactionState" - "Response\022-\n\006result\030\001 \001(\0162\035.tari.rpc.Tran" - "sactionLocation\"^\n\024MempoolStatsResponse\022" - "\027\n\017unconfirmed_txs\030\002 \001(\004\022\021\n\treorg_txs\030\003 " - "\001(\004\022\032\n\022unconfirmed_weight\030\004 \001(\004\"0\n\036GetAc" - "tiveValidatorNodesRequest\022\016\n\006height\030\001 \001(" - "\004\"H\n\037GetActiveValidatorNodesResponse\022\021\n\t" - "shard_key\030\001 \001(\014\022\022\n\npublic_key\030\002 \001(\014\"8\n\022G" - "etShardKeyRequest\022\016\n\006height\030\001 \001(\004\022\022\n\npub" - "lic_key\030\002 \001(\014\"7\n\023GetShardKeyResponse\022\021\n\t" - "shard_key\030\001 \001(\014\022\r\n\005found\030\002 \001(\010\"D\n\037GetTem" - "plateRegistrationsRequest\022\022\n\nstart_hash\030" - "\001 \001(\014\022\r\n\005count\030\002 \001(\004\"j\n\037GetTemplateRegis" - "trationResponse\022\021\n\tutxo_hash\030\001 \001(\014\0224\n\014re" - "gistration\030\002 \001(\0132\036.tari.rpc.TemplateRegi" - "stration\"B\n\tBlockInfo\022\016\n\006height\030\001 \001(\004\022\014\n" - "\004hash\030\002 \001(\014\022\027\n\017next_block_hash\030\003 \001(\014\"=\n\030" - "GetSideChainUtxosRequest\022\022\n\nstart_hash\030\001" - " \001(\014\022\r\n\005count\030\002 \001(\004\"r\n\031GetSideChainUtxos" - "Response\022\'\n\nblock_info\030\001 \001(\0132\023.tari.rpc." - "BlockInfo\022,\n\007outputs\030\002 \003(\0132\033.tari.rpc.Tr" - "ansactionOutput*\200\001\n\rBaseNodeState\022\014\n\010STA" - "RT_UP\020\000\022\017\n\013HEADER_SYNC\020\001\022\020\n\014HORIZON_SYNC" - "\020\002\022\016\n\nCONNECTING\020\003\022\016\n\nBLOCK_SYNC\020\004\022\r\n\tLI" - "STENING\020\005\022\017\n\013SYNC_FAILED\020\006*<\n\010CalcType\022\010" - "\n\004MEAN\020\000\022\n\n\006MEDIAN\020\001\022\014\n\010QUANTILE\020\002\022\014\n\010QU" - "ARTILE\020\003*,\n\007Sorting\022\020\n\014SORTING_DESC\020\000\022\017\n" - "\013SORTING_ASC\020\001*b\n\tSyncState\022\013\n\007STARTUP\020\000" - "\022\023\n\017HEADER_STARTING\020\001\022\n\n\006HEADER\020\002\022\022\n\016BLO" - "CK_STARTING\020\003\022\t\n\005BLOCK\020\004\022\010\n\004DONE\020\005*t\n\027Su" - "bmitTransactionResult\022\010\n\004NONE\020\000\022\014\n\010ACCEP" - "TED\020\001\022 \n\034NOT_PROCESSABLE_AT_THIS_TIME\020\002\022" - "\021\n\rALREADY_MINED\020\003\022\014\n\010REJECTED\020\004*J\n\023Tran" - "sactionLocation\022\013\n\007UNKNOWN\020\000\022\013\n\007MEMPOOL\020" - "\001\022\t\n\005MINED\020\002\022\016\n\nNOT_STORED\020\0032\377\024\n\010BaseNod" - "e\022L\n\013ListHeaders\022\034.tari.rpc.ListHeadersR" - "equest\032\035.tari.rpc.BlockHeaderResponse0\001\022" - "R\n\017GetHeaderByHash\022 .tari.rpc.GetHeaderB" - "yHashRequest\032\035.tari.rpc.BlockHeaderRespo" - "nse\022D\n\tGetBlocks\022\032.tari.rpc.GetBlocksReq" - "uest\032\031.tari.rpc.HistoricalBlock0\001\022H\n\016Get" - "BlockTiming\022\027.tari.rpc.HeightRequest\032\035.t" - "ari.rpc.BlockTimingResponse\022C\n\014GetConsta" - "nts\022\025.tari.rpc.BlockHeight\032\034.tari.rpc.Co" - "nsensusConstants\022I\n\014GetBlockSize\022\033.tari." - "rpc.BlockGroupRequest\032\034.tari.rpc.BlockGr" - "oupResponse\022I\n\014GetBlockFees\022\033.tari.rpc.B" - "lockGroupRequest\032\034.tari.rpc.BlockGroupRe" - "sponse\0224\n\nGetVersion\022\017.tari.rpc.Empty\032\025." - "tari.rpc.StringValue\022<\n\017CheckForUpdates\022" - "\017.tari.rpc.Empty\032\030.tari.rpc.SoftwareUpda" - "te\022W\n\026GetTokensInCirculation\022\032.tari.rpc." - "GetBlocksRequest\032\037.tari.rpc.ValueAtHeigh" - "tResponse0\001\022V\n\024GetNetworkDifficulty\022\027.ta" - "ri.rpc.HeightRequest\032#.tari.rpc.NetworkD" - "ifficultyResponse0\001\022\\\n\023GetNewBlockTempla" - "te\022!.tari.rpc.NewBlockTemplateRequest\032\"." - "tari.rpc.NewBlockTemplateResponse\022F\n\013Get" - "NewBlock\022\032.tari.rpc.NewBlockTemplate\032\033.t" - "ari.rpc.GetNewBlockResult\022N\n\017GetNewBlock" - "Blob\022\032.tari.rpc.NewBlockTemplate\032\037.tari." - "rpc.GetNewBlockBlobResult\022=\n\013SubmitBlock" - "\022\017.tari.rpc.Block\032\035.tari.rpc.SubmitBlock" - "Response\022L\n\017SubmitBlockBlob\022\032.tari.rpc.B" - "lockBlobRequest\032\035.tari.rpc.SubmitBlockRe" - "sponse\022\\\n\021SubmitTransaction\022\".tari.rpc.S" - "ubmitTransactionRequest\032#.tari.rpc.Submi" - "tTransactionResponse\022:\n\013GetSyncInfo\022\017.ta" - "ri.rpc.Empty\032\032.tari.rpc.SyncInfoResponse" - "\022B\n\017GetSyncProgress\022\017.tari.rpc.Empty\032\036.t" - "ari.rpc.SyncProgressResponse\0228\n\nGetTipIn" - "fo\022\017.tari.rpc.Empty\032\031.tari.rpc.TipInfoRe" - "sponse\022L\n\rSearchKernels\022\036.tari.rpc.Searc" - "hKernelsRequest\032\031.tari.rpc.HistoricalBlo" - "ck0\001\022H\n\013SearchUtxos\022\034.tari.rpc.SearchUtx" - "osRequest\032\031.tari.rpc.HistoricalBlock0\001\022a" - "\n\022FetchMatchingUtxos\022#.tari.rpc.FetchMat" - "chingUtxosRequest\032$.tari.rpc.FetchMatchi" - "ngUtxosResponse0\001\022C\n\010GetPeers\022\031.tari.rpc" - ".GetPeersRequest\032\032.tari.rpc.GetPeersResp" - "onse0\001\022m\n\026GetMempoolTransactions\022\'.tari." - "rpc.GetMempoolTransactionsRequest\032(.tari" - ".rpc.GetMempoolTransactionsResponse0\001\022Y\n" - "\020TransactionState\022!.tari.rpc.Transaction" - "StateRequest\032\".tari.rpc.TransactionState" - "Response\0223\n\010Identify\022\017.tari.rpc.Empty\032\026." - "tari.rpc.NodeIdentity\022D\n\020GetNetworkStatu" - "s\022\017.tari.rpc.Empty\032\037.tari.rpc.NetworkSta" - "tusResponse\022K\n\022ListConnectedPeers\022\017.tari" - ".rpc.Empty\032$.tari.rpc.ListConnectedPeers" - "Response\022B\n\017GetMempoolStats\022\017.tari.rpc.E" - "mpty\032\036.tari.rpc.MempoolStatsResponse\022p\n\027" - "GetActiveValidatorNodes\022(.tari.rpc.GetAc" - "tiveValidatorNodesRequest\032).tari.rpc.Get" - "ActiveValidatorNodesResponse0\001\022J\n\013GetSha" - "rdKey\022\034.tari.rpc.GetShardKeyRequest\032\035.ta" - "ri.rpc.GetShardKeyResponse\022r\n\030GetTemplat" - "eRegistrations\022).tari.rpc.GetTemplateReg" - "istrationsRequest\032).tari.rpc.GetTemplate" - "RegistrationResponse0\001\022^\n\021GetSideChainUt" - "xos\022\".tari.rpc.GetSideChainUtxosRequest\032" - "#.tari.rpc.GetSideChainUtxosResponse0\001b\006" - "proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_base_5fnode_2eproto_deps[5] = - { - &::descriptor_table_block_2eproto, - &::descriptor_table_network_2eproto, - &::descriptor_table_sidechain_5ftypes_2eproto, - &::descriptor_table_transaction_2eproto, - &::descriptor_table_types_2eproto, -}; -static ::absl::once_flag descriptor_table_base_5fnode_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_base_5fnode_2eproto = { - false, - false, - 7806, - descriptor_table_protodef_base_5fnode_2eproto, - "base_node.proto", - &descriptor_table_base_5fnode_2eproto_once, - descriptor_table_base_5fnode_2eproto_deps, - 5, - 52, - schemas, - file_default_instances, - TableStruct_base_5fnode_2eproto::offsets, - file_level_metadata_base_5fnode_2eproto, - file_level_enum_descriptors_base_5fnode_2eproto, - file_level_service_descriptors_base_5fnode_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_base_5fnode_2eproto_getter() { - return &descriptor_table_base_5fnode_2eproto; -} -namespace tari { -namespace rpc { -const ::google::protobuf::EnumDescriptor* BaseNodeState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); - return file_level_enum_descriptors_base_5fnode_2eproto[0]; -} -PROTOBUF_CONSTINIT const uint32_t BaseNodeState_internal_data_[] = { - 458752u, 0u, }; -bool BaseNodeState_IsValid(int value) { - return 0 <= value && value <= 6; -} -const ::google::protobuf::EnumDescriptor* CalcType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); - return file_level_enum_descriptors_base_5fnode_2eproto[1]; -} -PROTOBUF_CONSTINIT const uint32_t CalcType_internal_data_[] = { - 262144u, 0u, }; -bool CalcType_IsValid(int value) { - return 0 <= value && value <= 3; -} -const ::google::protobuf::EnumDescriptor* Sorting_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); - return file_level_enum_descriptors_base_5fnode_2eproto[2]; -} -PROTOBUF_CONSTINIT const uint32_t Sorting_internal_data_[] = { - 131072u, 0u, }; -bool Sorting_IsValid(int value) { - return 0 <= value && value <= 1; -} -const ::google::protobuf::EnumDescriptor* SyncState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); - return file_level_enum_descriptors_base_5fnode_2eproto[3]; -} -PROTOBUF_CONSTINIT const uint32_t SyncState_internal_data_[] = { - 393216u, 0u, }; -bool SyncState_IsValid(int value) { - return 0 <= value && value <= 5; -} -const ::google::protobuf::EnumDescriptor* SubmitTransactionResult_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); - return file_level_enum_descriptors_base_5fnode_2eproto[4]; -} -PROTOBUF_CONSTINIT const uint32_t SubmitTransactionResult_internal_data_[] = { - 327680u, 0u, }; -bool SubmitTransactionResult_IsValid(int value) { - return 0 <= value && value <= 4; -} -const ::google::protobuf::EnumDescriptor* TransactionLocation_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_base_5fnode_2eproto); - return file_level_enum_descriptors_base_5fnode_2eproto[5]; -} -PROTOBUF_CONSTINIT const uint32_t TransactionLocation_internal_data_[] = { - 262144u, 0u, }; -bool TransactionLocation_IsValid(int value) { - return 0 <= value && value <= 3; -} -// =================================================================== - -class GetAssetMetadataRequest::_Internal { - public: -}; - -GetAssetMetadataRequest::GetAssetMetadataRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetAssetMetadataRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : asset_public_key_(arena, from.asset_public_key_), - _cached_size_{0} {} - -GetAssetMetadataRequest::GetAssetMetadataRequest( - ::google::protobuf::Arena* arena, - const GetAssetMetadataRequest& from) - : ::google::protobuf::Message(arena) { - GetAssetMetadataRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetAssetMetadataRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : asset_public_key_(arena), - _cached_size_{0} {} - -inline void GetAssetMetadataRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetAssetMetadataRequest::~GetAssetMetadataRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetAssetMetadataRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetAssetMetadataRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.asset_public_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetAssetMetadataRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_._cached_size_), - false, - }, - &GetAssetMetadataRequest::MergeImpl, - &GetAssetMetadataRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetAssetMetadataRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetAssetMetadataRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.asset_public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAssetMetadataRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetAssetMetadataRequest::_table_ = { - { - 0, // no _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 - &_GetAssetMetadataRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetAssetMetadataRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes asset_public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_.asset_public_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes asset_public_key = 1; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataRequest, _impl_.asset_public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetAssetMetadataRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetAssetMetadataRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetAssetMetadataRequest) - return target; -} - -::size_t GetAssetMetadataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetAssetMetadataRequest) - ::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 asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetAssetMetadataRequest::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:tari.rpc.GetAssetMetadataRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetAssetMetadataRequest::CopyFrom(const GetAssetMetadataRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetAssetMetadataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetAssetMetadataRequest::IsInitialized() const { - return true; -} - -void GetAssetMetadataRequest::InternalSwap(GetAssetMetadataRequest* 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_.asset_public_key_, &other->_impl_.asset_public_key_, arena); -} - -::google::protobuf::Metadata GetAssetMetadataRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[0]); -} -// =================================================================== - -class GetAssetMetadataResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._has_bits_); -}; - -void GetAssetMetadataResponse::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -GetAssetMetadataResponse::GetAssetMetadataResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetAssetMetadataResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - name_(arena, from.name_), - description_(arena, from.description_), - image_(arena, from.image_), - owner_commitment_(arena, from.owner_commitment_), - mined_in_block_(arena, from.mined_in_block_) {} - -GetAssetMetadataResponse::GetAssetMetadataResponse( - ::google::protobuf::Arena* arena, - const GetAssetMetadataResponse& from) - : ::google::protobuf::Message(arena) { - GetAssetMetadataResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; - _impl_.mined_height_ = from._impl_.mined_height_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetAssetMetadataResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetAssetMetadataResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - name_(arena), - description_(arena), - image_(arena), - owner_commitment_(arena), - mined_in_block_(arena) {} - -inline void GetAssetMetadataResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, features_), - 0, - offsetof(Impl_, mined_height_) - - offsetof(Impl_, features_) + - sizeof(Impl_::mined_height_)); -} -GetAssetMetadataResponse::~GetAssetMetadataResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetAssetMetadataResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetAssetMetadataResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.name_.Destroy(); - _impl_.description_.Destroy(); - _impl_.image_.Destroy(); - _impl_.owner_commitment_.Destroy(); - _impl_.mined_in_block_.Destroy(); - delete _impl_.features_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetAssetMetadataResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._cached_size_), - false, - }, - &GetAssetMetadataResponse::MergeImpl, - &GetAssetMetadataResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetAssetMetadataResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetAssetMetadataResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - _impl_.description_.ClearToEmpty(); - _impl_.image_.ClearToEmpty(); - _impl_.owner_commitment_.ClearToEmpty(); - _impl_.mined_in_block_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - _impl_.mined_height_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetAssetMetadataResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 62, 2> GetAssetMetadataResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_._has_bits_), - 0, // no _extensions_ - 8, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967041, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetAssetMetadataResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetAssetMetadataResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes mined_in_block = 8; - {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_in_block_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string name = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.name_)}}, - // string description = 3; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.description_)}}, - // string image = 4; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.image_)}}, - // bytes owner_commitment = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.owner_commitment_)}}, - // .tari.rpc.OutputFeatures features = 6; - {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.features_)}}, - // uint64 mined_height = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetAssetMetadataResponse, _impl_.mined_height_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_height_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 2; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 3; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.description_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string image = 4; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.image_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes owner_commitment = 5; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.owner_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.OutputFeatures features = 6; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 mined_height = 7; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes mined_in_block = 8; - {PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_in_block_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - }}, {{ - "\41\4\13\5\0\0\0\0" - "tari.rpc.GetAssetMetadataResponse" - "name" - "description" - "image" - }}, -}; - -::uint8_t* GetAssetMetadataResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetAssetMetadataResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string name = 2; - 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, "tari.rpc.GetAssetMetadataResponse.name"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // string description = 3; - if (!this->_internal_description().empty()) { - const std::string& _s = this->_internal_description(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.description"); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // string image = 4; - if (!this->_internal_image().empty()) { - const std::string& _s = this->_internal_image(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetAssetMetadataResponse.image"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // bytes owner_commitment = 5; - if (!this->_internal_owner_commitment().empty()) { - const std::string& _s = this->_internal_owner_commitment(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.OutputFeatures features = 6; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - // uint64 mined_height = 7; - if (this->_internal_mined_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_mined_height(), target); - } - - // bytes mined_in_block = 8; - if (!this->_internal_mined_in_block().empty()) { - const std::string& _s = this->_internal_mined_in_block(); - target = stream->WriteBytesMaybeAliased(8, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetAssetMetadataResponse) - return target; -} - -::size_t GetAssetMetadataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetAssetMetadataResponse) - ::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 name = 2; - if (!this->_internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // string description = 3; - if (!this->_internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_description()); - } - - // string image = 4; - if (!this->_internal_image().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_image()); - } - - // bytes owner_commitment = 5; - if (!this->_internal_owner_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_owner_commitment()); - } - - // bytes mined_in_block = 8; - if (!this->_internal_mined_in_block().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_mined_in_block()); - } - - // .tari.rpc.OutputFeatures features = 6; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // uint64 mined_height = 7; - if (this->_internal_mined_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_mined_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetAssetMetadataResponse::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:tari.rpc.GetAssetMetadataResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (!from._internal_description().empty()) { - _this->_internal_set_description(from._internal_description()); - } - if (!from._internal_image().empty()) { - _this->_internal_set_image(from._internal_image()); - } - if (!from._internal_owner_commitment().empty()) { - _this->_internal_set_owner_commitment(from._internal_owner_commitment()); - } - if (!from._internal_mined_in_block().empty()) { - _this->_internal_set_mined_in_block(from._internal_mined_in_block()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.features_ != nullptr); - if (_this->_impl_.features_ == nullptr) { - _this->_impl_.features_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); - } else { - _this->_impl_.features_->MergeFrom(*from._impl_.features_); - } - } - if (from._internal_mined_height() != 0) { - _this->_impl_.mined_height_ = from._impl_.mined_height_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetAssetMetadataResponse::CopyFrom(const GetAssetMetadataResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetAssetMetadataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetAssetMetadataResponse::IsInitialized() const { - return true; -} - -void GetAssetMetadataResponse::InternalSwap(GetAssetMetadataResponse* PROTOBUF_RESTRICT 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_.description_, &other->_impl_.description_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.image_, &other->_impl_.image_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.owner_commitment_, &other->_impl_.owner_commitment_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mined_in_block_, &other->_impl_.mined_in_block_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.mined_height_) - + sizeof(GetAssetMetadataResponse::_impl_.mined_height_) - - PROTOBUF_FIELD_OFFSET(GetAssetMetadataResponse, _impl_.features_)>( - reinterpret_cast(&_impl_.features_), - reinterpret_cast(&other->_impl_.features_)); -} - -::google::protobuf::Metadata GetAssetMetadataResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[1]); -} -// =================================================================== - -class ListAssetRegistrationsRequest::_Internal { - public: -}; - -ListAssetRegistrationsRequest::ListAssetRegistrationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ListAssetRegistrationsRequest) -} -ListAssetRegistrationsRequest::ListAssetRegistrationsRequest( - ::google::protobuf::Arena* arena, const ListAssetRegistrationsRequest& from) - : ListAssetRegistrationsRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ListAssetRegistrationsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, offset_), - 0, - offsetof(Impl_, count_) - - offsetof(Impl_, offset_) + - sizeof(Impl_::count_)); -} -ListAssetRegistrationsRequest::~ListAssetRegistrationsRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.ListAssetRegistrationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListAssetRegistrationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ListAssetRegistrationsRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_._cached_size_), - false, - }, - &ListAssetRegistrationsRequest::MergeImpl, - &ListAssetRegistrationsRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ListAssetRegistrationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ListAssetRegistrationsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.offset_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.count_) - - reinterpret_cast(&_impl_.offset_)) + sizeof(_impl_.count_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListAssetRegistrationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ListAssetRegistrationsRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967289, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ListAssetRegistrationsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ListAssetRegistrationsRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 offset = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsRequest, _impl_.offset_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.offset_)}}, - // uint64 count = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsRequest, _impl_.count_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 offset = 2; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.offset_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 count = 3; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ListAssetRegistrationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListAssetRegistrationsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 offset = 2; - if (this->_internal_offset() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_offset(), target); - } - - // uint64 count = 3; - if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_count(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListAssetRegistrationsRequest) - return target; -} - -::size_t ListAssetRegistrationsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListAssetRegistrationsRequest) - ::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 offset = 2; - if (this->_internal_offset() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_offset()); - } - - // uint64 count = 3; - if (this->_internal_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_count()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ListAssetRegistrationsRequest::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:tari.rpc.ListAssetRegistrationsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_offset() != 0) { - _this->_impl_.offset_ = from._impl_.offset_; - } - if (from._internal_count() != 0) { - _this->_impl_.count_ = from._impl_.count_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ListAssetRegistrationsRequest::CopyFrom(const ListAssetRegistrationsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ListAssetRegistrationsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ListAssetRegistrationsRequest::IsInitialized() const { - return true; -} - -void ListAssetRegistrationsRequest::InternalSwap(ListAssetRegistrationsRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.count_) - + sizeof(ListAssetRegistrationsRequest::_impl_.count_) - - PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsRequest, _impl_.offset_)>( - reinterpret_cast(&_impl_.offset_), - reinterpret_cast(&other->_impl_.offset_)); -} - -::google::protobuf::Metadata ListAssetRegistrationsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[2]); -} -// =================================================================== - -class ListAssetRegistrationsResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._has_bits_); -}; - -void ListAssetRegistrationsResponse::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -ListAssetRegistrationsResponse::ListAssetRegistrationsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ListAssetRegistrationsResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - asset_public_key_(arena, from.asset_public_key_), - unique_id_(arena, from.unique_id_), - owner_commitment_(arena, from.owner_commitment_), - mined_in_block_(arena, from.mined_in_block_), - script_(arena, from.script_) {} - -ListAssetRegistrationsResponse::ListAssetRegistrationsResponse( - ::google::protobuf::Arena* arena, - const ListAssetRegistrationsResponse& from) - : ::google::protobuf::Message(arena) { - ListAssetRegistrationsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; - _impl_.mined_height_ = from._impl_.mined_height_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ListAssetRegistrationsResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListAssetRegistrationsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - asset_public_key_(arena), - unique_id_(arena), - owner_commitment_(arena), - mined_in_block_(arena), - script_(arena) {} - -inline void ListAssetRegistrationsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, features_), - 0, - offsetof(Impl_, mined_height_) - - offsetof(Impl_, features_) + - sizeof(Impl_::mined_height_)); -} -ListAssetRegistrationsResponse::~ListAssetRegistrationsResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.ListAssetRegistrationsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListAssetRegistrationsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.asset_public_key_.Destroy(); - _impl_.unique_id_.Destroy(); - _impl_.owner_commitment_.Destroy(); - _impl_.mined_in_block_.Destroy(); - _impl_.script_.Destroy(); - delete _impl_.features_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ListAssetRegistrationsResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_._cached_size_), - false, - }, - &ListAssetRegistrationsResponse::MergeImpl, - &ListAssetRegistrationsResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ListAssetRegistrationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ListAssetRegistrationsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.asset_public_key_.ClearToEmpty(); - _impl_.unique_id_.ClearToEmpty(); - _impl_.owner_commitment_.ClearToEmpty(); - _impl_.mined_in_block_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - _impl_.mined_height_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListAssetRegistrationsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 0, 2> ListAssetRegistrationsResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _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), - &_ListAssetRegistrationsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ListAssetRegistrationsResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes asset_public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.asset_public_key_)}}, - // bytes unique_id = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.unique_id_)}}, - // bytes owner_commitment = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.owner_commitment_)}}, - // uint64 mined_height = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListAssetRegistrationsResponse, _impl_.mined_height_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_height_)}}, - // bytes mined_in_block = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_in_block_)}}, - // .tari.rpc.OutputFeatures features = 6; - {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.features_)}}, - // bytes script = 7; - {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.script_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes asset_public_key = 1; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.asset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes unique_id = 2; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.unique_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes owner_commitment = 3; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.owner_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 mined_height = 4; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes mined_in_block = 5; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_in_block_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.OutputFeatures features = 6; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes script = 7; - {PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - }}, {{ - }}, -}; - -::uint8_t* ListAssetRegistrationsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListAssetRegistrationsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes unique_id = 2; - if (!this->_internal_unique_id().empty()) { - const std::string& _s = this->_internal_unique_id(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - const std::string& _s = this->_internal_owner_commitment(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // uint64 mined_height = 4; - if (this->_internal_mined_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_mined_height(), target); - } - - // bytes mined_in_block = 5; - if (!this->_internal_mined_in_block().empty()) { - const std::string& _s = this->_internal_mined_in_block(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.OutputFeatures features = 6; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - // bytes script = 7; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListAssetRegistrationsResponse) - return target; -} - -::size_t ListAssetRegistrationsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListAssetRegistrationsResponse) - ::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 asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); - } - - // bytes unique_id = 2; - if (!this->_internal_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_unique_id()); - } - - // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_owner_commitment()); - } - - // bytes mined_in_block = 5; - if (!this->_internal_mined_in_block().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_mined_in_block()); - } - - // bytes script = 7; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // .tari.rpc.OutputFeatures features = 6; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // uint64 mined_height = 4; - if (this->_internal_mined_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_mined_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ListAssetRegistrationsResponse::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:tari.rpc.ListAssetRegistrationsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); - } - if (!from._internal_unique_id().empty()) { - _this->_internal_set_unique_id(from._internal_unique_id()); - } - if (!from._internal_owner_commitment().empty()) { - _this->_internal_set_owner_commitment(from._internal_owner_commitment()); - } - if (!from._internal_mined_in_block().empty()) { - _this->_internal_set_mined_in_block(from._internal_mined_in_block()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.features_ != nullptr); - if (_this->_impl_.features_ == nullptr) { - _this->_impl_.features_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); - } else { - _this->_impl_.features_->MergeFrom(*from._impl_.features_); - } - } - if (from._internal_mined_height() != 0) { - _this->_impl_.mined_height_ = from._impl_.mined_height_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ListAssetRegistrationsResponse::CopyFrom(const ListAssetRegistrationsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ListAssetRegistrationsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ListAssetRegistrationsResponse::IsInitialized() const { - return true; -} - -void ListAssetRegistrationsResponse::InternalSwap(ListAssetRegistrationsResponse* PROTOBUF_RESTRICT 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_.asset_public_key_, &other->_impl_.asset_public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.unique_id_, &other->_impl_.unique_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.owner_commitment_, &other->_impl_.owner_commitment_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mined_in_block_, &other->_impl_.mined_in_block_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.script_, &other->_impl_.script_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.mined_height_) - + sizeof(ListAssetRegistrationsResponse::_impl_.mined_height_) - - PROTOBUF_FIELD_OFFSET(ListAssetRegistrationsResponse, _impl_.features_)>( - reinterpret_cast(&_impl_.features_), - reinterpret_cast(&other->_impl_.features_)); -} - -::google::protobuf::Metadata ListAssetRegistrationsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[3]); -} -// =================================================================== - -class GetTokensRequest::_Internal { - public: -}; - -GetTokensRequest::GetTokensRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTokensRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetTokensRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : unique_ids_{visibility, arena, from.unique_ids_}, - asset_public_key_(arena, from.asset_public_key_), - _cached_size_{0} {} - -GetTokensRequest::GetTokensRequest( - ::google::protobuf::Arena* arena, - const GetTokensRequest& from) - : ::google::protobuf::Message(arena) { - GetTokensRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTokensRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetTokensRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : unique_ids_{visibility, arena}, - asset_public_key_(arena), - _cached_size_{0} {} - -inline void GetTokensRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetTokensRequest::~GetTokensRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetTokensRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetTokensRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.asset_public_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetTokensRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_._cached_size_), - false, - }, - &GetTokensRequest::MergeImpl, - &GetTokensRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetTokensRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTokensRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.unique_ids_.Clear(); - _impl_.asset_public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTokensRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTokensRequest::_table_ = { - { - 0, // no _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 - &_GetTokensRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetTokensRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated bytes unique_ids = 2; - {::_pbi::TcParser::FastBR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.unique_ids_)}}, - // bytes asset_public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.asset_public_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes asset_public_key = 1; - {PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.asset_public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // repeated bytes unique_ids = 2; - {PROTOBUF_FIELD_OFFSET(GetTokensRequest, _impl_.unique_ids_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetTokensRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTokensRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // repeated bytes unique_ids = 2; - for (int i = 0, n = this->_internal_unique_ids_size(); i < n; ++i) { - const auto& s = this->_internal_unique_ids().Get(i); - target = stream->WriteBytes(2, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTokensRequest) - return target; -} - -::size_t GetTokensRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTokensRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated bytes unique_ids = 2; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_unique_ids().size()); - for (int i = 0, n = _internal_unique_ids().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_unique_ids().Get(i)); - } - // bytes asset_public_key = 1; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetTokensRequest::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:tari.rpc.GetTokensRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_unique_ids()->MergeFrom(from._internal_unique_ids()); - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetTokensRequest::CopyFrom(const GetTokensRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetTokensRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetTokensRequest::IsInitialized() const { - return true; -} - -void GetTokensRequest::InternalSwap(GetTokensRequest* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.unique_ids_.InternalSwap(&other->_impl_.unique_ids_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.asset_public_key_, &other->_impl_.asset_public_key_, arena); -} - -::google::protobuf::Metadata GetTokensRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[4]); -} -// =================================================================== - -class GetTokensResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._has_bits_); -}; - -void GetTokensResponse::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -GetTokensResponse::GetTokensResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTokensResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - unique_id_(arena, from.unique_id_), - asset_public_key_(arena, from.asset_public_key_), - owner_commitment_(arena, from.owner_commitment_), - mined_in_block_(arena, from.mined_in_block_), - script_(arena, from.script_) {} - -GetTokensResponse::GetTokensResponse( - ::google::protobuf::Arena* arena, - const GetTokensResponse& from) - : ::google::protobuf::Message(arena) { - GetTokensResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; - _impl_.mined_height_ = from._impl_.mined_height_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTokensResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetTokensResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - unique_id_(arena), - asset_public_key_(arena), - owner_commitment_(arena), - mined_in_block_(arena), - script_(arena) {} - -inline void GetTokensResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, features_), - 0, - offsetof(Impl_, mined_height_) - - offsetof(Impl_, features_) + - sizeof(Impl_::mined_height_)); -} -GetTokensResponse::~GetTokensResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetTokensResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetTokensResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.unique_id_.Destroy(); - _impl_.asset_public_key_.Destroy(); - _impl_.owner_commitment_.Destroy(); - _impl_.mined_in_block_.Destroy(); - _impl_.script_.Destroy(); - delete _impl_.features_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetTokensResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_._cached_size_), - false, - }, - &GetTokensResponse::MergeImpl, - &GetTokensResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetTokensResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTokensResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.unique_id_.ClearToEmpty(); - _impl_.asset_public_key_.ClearToEmpty(); - _impl_.owner_commitment_.ClearToEmpty(); - _impl_.mined_in_block_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - _impl_.mined_height_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTokensResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 1, 0, 2> GetTokensResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetTokensResponse, _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), - &_GetTokensResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetTokensResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes unique_id = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.unique_id_)}}, - // bytes asset_public_key = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.asset_public_key_)}}, - // bytes owner_commitment = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.owner_commitment_)}}, - // bytes mined_in_block = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_in_block_)}}, - // uint64 mined_height = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetTokensResponse, _impl_.mined_height_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_height_)}}, - // .tari.rpc.OutputFeatures features = 6; - {::_pbi::TcParser::FastMtS1, - {50, 0, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.features_)}}, - // bytes script = 7; - {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.script_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes unique_id = 1; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.unique_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes asset_public_key = 2; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.asset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes owner_commitment = 3; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.owner_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes mined_in_block = 4; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_in_block_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 mined_height = 5; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.OutputFeatures features = 6; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes script = 7; - {PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - }}, {{ - }}, -}; - -::uint8_t* GetTokensResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTokensResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes unique_id = 1; - if (!this->_internal_unique_id().empty()) { - const std::string& _s = this->_internal_unique_id(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes asset_public_key = 2; - if (!this->_internal_asset_public_key().empty()) { - const std::string& _s = this->_internal_asset_public_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - const std::string& _s = this->_internal_owner_commitment(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // bytes mined_in_block = 4; - if (!this->_internal_mined_in_block().empty()) { - const std::string& _s = this->_internal_mined_in_block(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // uint64 mined_height = 5; - if (this->_internal_mined_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_mined_height(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.OutputFeatures features = 6; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - // bytes script = 7; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTokensResponse) - return target; -} - -::size_t GetTokensResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTokensResponse) - ::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 unique_id = 1; - if (!this->_internal_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_unique_id()); - } - - // bytes asset_public_key = 2; - if (!this->_internal_asset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_asset_public_key()); - } - - // bytes owner_commitment = 3; - if (!this->_internal_owner_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_owner_commitment()); - } - - // bytes mined_in_block = 4; - if (!this->_internal_mined_in_block().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_mined_in_block()); - } - - // bytes script = 7; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // .tari.rpc.OutputFeatures features = 6; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // uint64 mined_height = 5; - if (this->_internal_mined_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_mined_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetTokensResponse::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:tari.rpc.GetTokensResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_unique_id().empty()) { - _this->_internal_set_unique_id(from._internal_unique_id()); - } - if (!from._internal_asset_public_key().empty()) { - _this->_internal_set_asset_public_key(from._internal_asset_public_key()); - } - if (!from._internal_owner_commitment().empty()) { - _this->_internal_set_owner_commitment(from._internal_owner_commitment()); - } - if (!from._internal_mined_in_block().empty()) { - _this->_internal_set_mined_in_block(from._internal_mined_in_block()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.features_ != nullptr); - if (_this->_impl_.features_ == nullptr) { - _this->_impl_.features_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); - } else { - _this->_impl_.features_->MergeFrom(*from._impl_.features_); - } - } - if (from._internal_mined_height() != 0) { - _this->_impl_.mined_height_ = from._impl_.mined_height_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetTokensResponse::CopyFrom(const GetTokensResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetTokensResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetTokensResponse::IsInitialized() const { - return true; -} - -void GetTokensResponse::InternalSwap(GetTokensResponse* PROTOBUF_RESTRICT 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_.unique_id_, &other->_impl_.unique_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.asset_public_key_, &other->_impl_.asset_public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.owner_commitment_, &other->_impl_.owner_commitment_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.mined_in_block_, &other->_impl_.mined_in_block_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.script_, &other->_impl_.script_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.mined_height_) - + sizeof(GetTokensResponse::_impl_.mined_height_) - - PROTOBUF_FIELD_OFFSET(GetTokensResponse, _impl_.features_)>( - reinterpret_cast(&_impl_.features_), - reinterpret_cast(&other->_impl_.features_)); -} - -::google::protobuf::Metadata GetTokensResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[5]); -} -// =================================================================== - -class SubmitBlockResponse::_Internal { - public: -}; - -SubmitBlockResponse::SubmitBlockResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SubmitBlockResponse) -} -inline PROTOBUF_NDEBUG_INLINE SubmitBlockResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : block_hash_(arena, from.block_hash_), - _cached_size_{0} {} - -SubmitBlockResponse::SubmitBlockResponse( - ::google::protobuf::Arena* arena, - const SubmitBlockResponse& from) - : ::google::protobuf::Message(arena) { - SubmitBlockResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.SubmitBlockResponse) -} -inline PROTOBUF_NDEBUG_INLINE SubmitBlockResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : block_hash_(arena), - _cached_size_{0} {} - -inline void SubmitBlockResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SubmitBlockResponse::~SubmitBlockResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.SubmitBlockResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SubmitBlockResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.block_hash_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SubmitBlockResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_._cached_size_), - false, - }, - &SubmitBlockResponse::MergeImpl, - &SubmitBlockResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SubmitBlockResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitBlockResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_hash_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SubmitBlockResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitBlockResponse::_table_ = { - { - 0, // no _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 - &_SubmitBlockResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SubmitBlockResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes block_hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_.block_hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes block_hash = 1; - {PROTOBUF_FIELD_OFFSET(SubmitBlockResponse, _impl_.block_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SubmitBlockResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SubmitBlockResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - const std::string& _s = this->_internal_block_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SubmitBlockResponse) - return target; -} - -::size_t SubmitBlockResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitBlockResponse) - ::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 block_hash = 1; - if (!this->_internal_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_hash()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SubmitBlockResponse::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:tari.rpc.SubmitBlockResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_block_hash().empty()) { - _this->_internal_set_block_hash(from._internal_block_hash()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SubmitBlockResponse::CopyFrom(const SubmitBlockResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SubmitBlockResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SubmitBlockResponse::IsInitialized() const { - return true; -} - -void SubmitBlockResponse::InternalSwap(SubmitBlockResponse* 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_.block_hash_, &other->_impl_.block_hash_, arena); -} - -::google::protobuf::Metadata SubmitBlockResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[6]); -} -// =================================================================== - -class BlockBlobRequest::_Internal { - public: -}; - -BlockBlobRequest::BlockBlobRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockBlobRequest) -} -inline PROTOBUF_NDEBUG_INLINE BlockBlobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : header_blob_(arena, from.header_blob_), - body_blob_(arena, from.body_blob_), - _cached_size_{0} {} - -BlockBlobRequest::BlockBlobRequest( - ::google::protobuf::Arena* arena, - const BlockBlobRequest& from) - : ::google::protobuf::Message(arena) { - BlockBlobRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockBlobRequest) -} -inline PROTOBUF_NDEBUG_INLINE BlockBlobRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : header_blob_(arena), - body_blob_(arena), - _cached_size_{0} {} - -inline void BlockBlobRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -BlockBlobRequest::~BlockBlobRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockBlobRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockBlobRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.header_blob_.Destroy(); - _impl_.body_blob_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockBlobRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_._cached_size_), - false, - }, - &BlockBlobRequest::MergeImpl, - &BlockBlobRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockBlobRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockBlobRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.header_blob_.ClearToEmpty(); - _impl_.body_blob_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockBlobRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockBlobRequest::_table_ = { - { - 0, // no _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 - &_BlockBlobRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockBlobRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes body_blob = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.body_blob_)}}, - // bytes header_blob = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.header_blob_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes header_blob = 1; - {PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.header_blob_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes body_blob = 2; - {PROTOBUF_FIELD_OFFSET(BlockBlobRequest, _impl_.body_blob_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* BlockBlobRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockBlobRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes header_blob = 1; - if (!this->_internal_header_blob().empty()) { - const std::string& _s = this->_internal_header_blob(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes body_blob = 2; - if (!this->_internal_body_blob().empty()) { - const std::string& _s = this->_internal_body_blob(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockBlobRequest) - return target; -} - -::size_t BlockBlobRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockBlobRequest) - ::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 header_blob = 1; - if (!this->_internal_header_blob().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_header_blob()); - } - - // bytes body_blob = 2; - if (!this->_internal_body_blob().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_body_blob()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockBlobRequest::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:tari.rpc.BlockBlobRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_header_blob().empty()) { - _this->_internal_set_header_blob(from._internal_header_blob()); - } - if (!from._internal_body_blob().empty()) { - _this->_internal_set_body_blob(from._internal_body_blob()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockBlobRequest::CopyFrom(const BlockBlobRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockBlobRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockBlobRequest::IsInitialized() const { - return true; -} - -void BlockBlobRequest::InternalSwap(BlockBlobRequest* 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_.header_blob_, &other->_impl_.header_blob_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_blob_, &other->_impl_.body_blob_, arena); -} - -::google::protobuf::Metadata BlockBlobRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[7]); -} -// =================================================================== - -class TipInfoResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._has_bits_); -}; - -TipInfoResponse::TipInfoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TipInfoResponse) -} -inline PROTOBUF_NDEBUG_INLINE TipInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -TipInfoResponse::TipInfoResponse( - ::google::protobuf::Arena* arena, - const TipInfoResponse& from) - : ::google::protobuf::Message(arena) { - TipInfoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.metadata_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::MetaData>( - arena, *from._impl_.metadata_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, initial_sync_achieved_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, initial_sync_achieved_), - offsetof(Impl_, base_node_state_) - - offsetof(Impl_, initial_sync_achieved_) + - sizeof(Impl_::base_node_state_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.TipInfoResponse) -} -inline PROTOBUF_NDEBUG_INLINE TipInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TipInfoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, metadata_), - 0, - offsetof(Impl_, base_node_state_) - - offsetof(Impl_, metadata_) + - sizeof(Impl_::base_node_state_)); -} -TipInfoResponse::~TipInfoResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.TipInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TipInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.metadata_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TipInfoResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_._cached_size_), - false, - }, - &TipInfoResponse::MergeImpl, - &TipInfoResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TipInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TipInfoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.metadata_ != nullptr); - _impl_.metadata_->Clear(); - } - ::memset(&_impl_.initial_sync_achieved_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.base_node_state_) - - reinterpret_cast(&_impl_.initial_sync_achieved_)) + sizeof(_impl_.base_node_state_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TipInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> TipInfoResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TipInfoResponse, _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), - &_TipInfoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TipInfoResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.MetaData metadata = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.metadata_)}}, - // bool initial_sync_achieved = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.initial_sync_achieved_)}}, - // .tari.rpc.BaseNodeState base_node_state = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TipInfoResponse, _impl_.base_node_state_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.base_node_state_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.MetaData metadata = 1; - {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.metadata_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool initial_sync_achieved = 2; - {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.initial_sync_achieved_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .tari.rpc.BaseNodeState base_node_state = 3; - {PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.base_node_state_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::MetaData>()}, - }}, {{ - }}, -}; - -::uint8_t* TipInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TipInfoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.MetaData metadata = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.metadata_, _impl_.metadata_->GetCachedSize(), target, stream); - } - - // bool initial_sync_achieved = 2; - if (this->_internal_initial_sync_achieved() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_initial_sync_achieved(), target); - } - - // .tari.rpc.BaseNodeState base_node_state = 3; - if (this->_internal_base_node_state() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_base_node_state(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TipInfoResponse) - return target; -} - -::size_t TipInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TipInfoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.MetaData metadata = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_); - } - - // bool initial_sync_achieved = 2; - if (this->_internal_initial_sync_achieved() != 0) { - total_size += 2; - } - - // .tari.rpc.BaseNodeState base_node_state = 3; - if (this->_internal_base_node_state() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_base_node_state()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TipInfoResponse::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:tari.rpc.TipInfoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (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<::tari::rpc::MetaData>(arena, *from._impl_.metadata_); - } else { - _this->_impl_.metadata_->MergeFrom(*from._impl_.metadata_); - } - } - if (from._internal_initial_sync_achieved() != 0) { - _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; - } - if (from._internal_base_node_state() != 0) { - _this->_impl_.base_node_state_ = from._impl_.base_node_state_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TipInfoResponse::CopyFrom(const TipInfoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TipInfoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TipInfoResponse::IsInitialized() const { - return true; -} - -void TipInfoResponse::InternalSwap(TipInfoResponse* PROTOBUF_RESTRICT 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(TipInfoResponse, _impl_.base_node_state_) - + sizeof(TipInfoResponse::_impl_.base_node_state_) - - PROTOBUF_FIELD_OFFSET(TipInfoResponse, _impl_.metadata_)>( - reinterpret_cast(&_impl_.metadata_), - reinterpret_cast(&other->_impl_.metadata_)); -} - -::google::protobuf::Metadata TipInfoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[8]); -} -// =================================================================== - -class NewBlockTemplateResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._has_bits_); -}; - -void NewBlockTemplateResponse::clear_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.new_block_template_ != nullptr) _impl_.new_block_template_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -NewBlockTemplateResponse::NewBlockTemplateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockTemplateResponse) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -NewBlockTemplateResponse::NewBlockTemplateResponse( - ::google::protobuf::Arena* arena, - const NewBlockTemplateResponse& from) - : ::google::protobuf::Message(arena) { - NewBlockTemplateResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.new_block_template_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockTemplate>( - arena, *from._impl_.new_block_template_) - : nullptr; - _impl_.miner_data_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::MinerData>( - arena, *from._impl_.miner_data_) - : nullptr; - _impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplateResponse) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void NewBlockTemplateResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, new_block_template_), - 0, - offsetof(Impl_, initial_sync_achieved_) - - offsetof(Impl_, new_block_template_) + - sizeof(Impl_::initial_sync_achieved_)); -} -NewBlockTemplateResponse::~NewBlockTemplateResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.NewBlockTemplateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void NewBlockTemplateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.new_block_template_; - delete _impl_.miner_data_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -NewBlockTemplateResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._cached_size_), - false, - }, - &NewBlockTemplateResponse::MergeImpl, - &NewBlockTemplateResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void NewBlockTemplateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.new_block_template_ != nullptr); - _impl_.new_block_template_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.miner_data_ != nullptr); - _impl_.miner_data_->Clear(); - } - } - _impl_.initial_sync_achieved_ = false; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NewBlockTemplateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 2, 0, 2> NewBlockTemplateResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967282, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_NewBlockTemplateResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplateResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.MinerData miner_data = 4; - {::_pbi::TcParser::FastMtS1, - {34, 1, 1, PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.miner_data_)}}, - // .tari.rpc.NewBlockTemplate new_block_template = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.new_block_template_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // bool initial_sync_achieved = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.initial_sync_achieved_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.NewBlockTemplate new_block_template = 1; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.new_block_template_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool initial_sync_achieved = 3; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.initial_sync_achieved_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // .tari.rpc.MinerData miner_data = 4; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.miner_data_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::MinerData>()}, - }}, {{ - }}, -}; - -::uint8_t* NewBlockTemplateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.NewBlockTemplate new_block_template = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.new_block_template_, _impl_.new_block_template_->GetCachedSize(), target, stream); - } - - // bool initial_sync_achieved = 3; - if (this->_internal_initial_sync_achieved() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 3, this->_internal_initial_sync_achieved(), target); - } - - // .tari.rpc.MinerData miner_data = 4; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *_impl_.miner_data_, _impl_.miner_data_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplateResponse) - return target; -} - -::size_t NewBlockTemplateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplateResponse) - ::size_t total_size = 0; - - ::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 (cached_has_bits & 0x00000003u) { - // .tari.rpc.NewBlockTemplate new_block_template = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.new_block_template_); - } - - // .tari.rpc.MinerData miner_data = 4; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.miner_data_); - } - - } - // bool initial_sync_achieved = 3; - if (this->_internal_initial_sync_achieved() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void NewBlockTemplateResponse::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:tari.rpc.NewBlockTemplateResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.new_block_template_ != nullptr); - if (_this->_impl_.new_block_template_ == nullptr) { - _this->_impl_.new_block_template_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockTemplate>(arena, *from._impl_.new_block_template_); - } else { - _this->_impl_.new_block_template_->MergeFrom(*from._impl_.new_block_template_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.miner_data_ != nullptr); - if (_this->_impl_.miner_data_ == nullptr) { - _this->_impl_.miner_data_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::MinerData>(arena, *from._impl_.miner_data_); - } else { - _this->_impl_.miner_data_->MergeFrom(*from._impl_.miner_data_); - } - } - } - if (from._internal_initial_sync_achieved() != 0) { - _this->_impl_.initial_sync_achieved_ = from._impl_.initial_sync_achieved_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void NewBlockTemplateResponse::CopyFrom(const NewBlockTemplateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.NewBlockTemplateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool NewBlockTemplateResponse::IsInitialized() const { - return true; -} - -void NewBlockTemplateResponse::InternalSwap(NewBlockTemplateResponse* PROTOBUF_RESTRICT 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(NewBlockTemplateResponse, _impl_.initial_sync_achieved_) - + sizeof(NewBlockTemplateResponse::_impl_.initial_sync_achieved_) - - PROTOBUF_FIELD_OFFSET(NewBlockTemplateResponse, _impl_.new_block_template_)>( - reinterpret_cast(&_impl_.new_block_template_), - reinterpret_cast(&other->_impl_.new_block_template_)); -} - -::google::protobuf::Metadata NewBlockTemplateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[9]); -} -// =================================================================== - -class NewBlockTemplateRequest::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._has_bits_); -}; - -void NewBlockTemplateRequest::clear_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -NewBlockTemplateRequest::NewBlockTemplateRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockTemplateRequest) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -NewBlockTemplateRequest::NewBlockTemplateRequest( - ::google::protobuf::Arena* arena, - const NewBlockTemplateRequest& from) - : ::google::protobuf::Message(arena) { - NewBlockTemplateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.algo_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>( - arena, *from._impl_.algo_) - : nullptr; - _impl_.max_weight_ = from._impl_.max_weight_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplateRequest) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void NewBlockTemplateRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, algo_), - 0, - offsetof(Impl_, max_weight_) - - offsetof(Impl_, algo_) + - sizeof(Impl_::max_weight_)); -} -NewBlockTemplateRequest::~NewBlockTemplateRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.NewBlockTemplateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void NewBlockTemplateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.algo_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -NewBlockTemplateRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_._cached_size_), - false, - }, - &NewBlockTemplateRequest::MergeImpl, - &NewBlockTemplateRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void NewBlockTemplateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplateRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.algo_ != nullptr); - _impl_.algo_->Clear(); - } - _impl_.max_weight_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NewBlockTemplateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> NewBlockTemplateRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _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), - &_NewBlockTemplateRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplateRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 max_weight = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockTemplateRequest, _impl_.max_weight_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.max_weight_)}}, - // .tari.rpc.PowAlgo algo = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.algo_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.PowAlgo algo = 1; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.algo_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 max_weight = 2; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.max_weight_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, - }}, {{ - }}, -}; - -::uint8_t* NewBlockTemplateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplateRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.PowAlgo algo = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.algo_, _impl_.algo_->GetCachedSize(), target, stream); - } - - // uint64 max_weight = 2; - if (this->_internal_max_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_max_weight(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplateRequest) - return target; -} - -::size_t NewBlockTemplateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplateRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.PowAlgo algo = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.algo_); - } - - // uint64 max_weight = 2; - if (this->_internal_max_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max_weight()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void NewBlockTemplateRequest::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:tari.rpc.NewBlockTemplateRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.algo_ != nullptr); - if (_this->_impl_.algo_ == nullptr) { - _this->_impl_.algo_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>(arena, *from._impl_.algo_); - } else { - _this->_impl_.algo_->MergeFrom(*from._impl_.algo_); - } - } - if (from._internal_max_weight() != 0) { - _this->_impl_.max_weight_ = from._impl_.max_weight_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void NewBlockTemplateRequest::CopyFrom(const NewBlockTemplateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.NewBlockTemplateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool NewBlockTemplateRequest::IsInitialized() const { - return true; -} - -void NewBlockTemplateRequest::InternalSwap(NewBlockTemplateRequest* PROTOBUF_RESTRICT 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(NewBlockTemplateRequest, _impl_.max_weight_) - + sizeof(NewBlockTemplateRequest::_impl_.max_weight_) - - PROTOBUF_FIELD_OFFSET(NewBlockTemplateRequest, _impl_.algo_)>( - reinterpret_cast(&_impl_.algo_), - reinterpret_cast(&other->_impl_.algo_)); -} - -::google::protobuf::Metadata NewBlockTemplateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[10]); -} -// =================================================================== - -class NetworkDifficultyResponse::_Internal { - public: -}; - -NetworkDifficultyResponse::NetworkDifficultyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.NetworkDifficultyResponse) -} -NetworkDifficultyResponse::NetworkDifficultyResponse( - ::google::protobuf::Arena* arena, const NetworkDifficultyResponse& from) - : NetworkDifficultyResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE NetworkDifficultyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void NetworkDifficultyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, difficulty_), - 0, - offsetof(Impl_, randomx_estimated_hash_rate_) - - offsetof(Impl_, difficulty_) + - sizeof(Impl_::randomx_estimated_hash_rate_)); -} -NetworkDifficultyResponse::~NetworkDifficultyResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.NetworkDifficultyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void NetworkDifficultyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -NetworkDifficultyResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_._cached_size_), - false, - }, - &NetworkDifficultyResponse::MergeImpl, - &NetworkDifficultyResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void NetworkDifficultyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.NetworkDifficultyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.difficulty_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.randomx_estimated_hash_rate_) - - reinterpret_cast(&_impl_.difficulty_)) + sizeof(_impl_.randomx_estimated_hash_rate_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NetworkDifficultyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 0, 0, 2> NetworkDifficultyResponse::_table_ = { - { - 0, // no _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 - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_NetworkDifficultyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::NetworkDifficultyResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 difficulty = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.difficulty_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.difficulty_)}}, - // uint64 estimated_hash_rate = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.estimated_hash_rate_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.estimated_hash_rate_)}}, - // uint64 height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.height_)}}, - // uint64 timestamp = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.timestamp_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.timestamp_)}}, - // uint64 pow_algo = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.pow_algo_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.pow_algo_)}}, - // uint64 sha3x_estimated_hash_rate = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_)}}, - // uint64 randomx_estimated_hash_rate = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NetworkDifficultyResponse, _impl_.randomx_estimated_hash_rate_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.randomx_estimated_hash_rate_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 difficulty = 1; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 estimated_hash_rate = 2; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.estimated_hash_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 height = 3; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 timestamp = 4; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.timestamp_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 pow_algo = 5; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.pow_algo_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 sha3x_estimated_hash_rate = 6; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.sha3x_estimated_hash_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 randomx_estimated_hash_rate = 7; - {PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.randomx_estimated_hash_rate_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* NetworkDifficultyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NetworkDifficultyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 difficulty = 1; - if (this->_internal_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_difficulty(), target); - } - - // uint64 estimated_hash_rate = 2; - if (this->_internal_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_estimated_hash_rate(), target); - } - - // uint64 height = 3; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_height(), target); - } - - // uint64 timestamp = 4; - if (this->_internal_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_timestamp(), target); - } - - // uint64 pow_algo = 5; - if (this->_internal_pow_algo() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_pow_algo(), target); - } - - // uint64 sha3x_estimated_hash_rate = 6; - if (this->_internal_sha3x_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this->_internal_sha3x_estimated_hash_rate(), target); - } - - // uint64 randomx_estimated_hash_rate = 7; - if (this->_internal_randomx_estimated_hash_rate() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_randomx_estimated_hash_rate(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NetworkDifficultyResponse) - return target; -} - -::size_t NetworkDifficultyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NetworkDifficultyResponse) - ::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 difficulty = 1; - if (this->_internal_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_difficulty()); - } - - // uint64 estimated_hash_rate = 2; - if (this->_internal_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_estimated_hash_rate()); - } - - // uint64 height = 3; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - // uint64 timestamp = 4; - if (this->_internal_timestamp() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_timestamp()); - } - - // uint64 pow_algo = 5; - if (this->_internal_pow_algo() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pow_algo()); - } - - // uint64 sha3x_estimated_hash_rate = 6; - if (this->_internal_sha3x_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_sha3x_estimated_hash_rate()); - } - - // uint64 randomx_estimated_hash_rate = 7; - if (this->_internal_randomx_estimated_hash_rate() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_randomx_estimated_hash_rate()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void NetworkDifficultyResponse::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:tari.rpc.NetworkDifficultyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_difficulty() != 0) { - _this->_impl_.difficulty_ = from._impl_.difficulty_; - } - if (from._internal_estimated_hash_rate() != 0) { - _this->_impl_.estimated_hash_rate_ = from._impl_.estimated_hash_rate_; - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - if (from._internal_timestamp() != 0) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; - } - if (from._internal_pow_algo() != 0) { - _this->_impl_.pow_algo_ = from._impl_.pow_algo_; - } - if (from._internal_sha3x_estimated_hash_rate() != 0) { - _this->_impl_.sha3x_estimated_hash_rate_ = from._impl_.sha3x_estimated_hash_rate_; - } - if (from._internal_randomx_estimated_hash_rate() != 0) { - _this->_impl_.randomx_estimated_hash_rate_ = from._impl_.randomx_estimated_hash_rate_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void NetworkDifficultyResponse::CopyFrom(const NetworkDifficultyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.NetworkDifficultyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool NetworkDifficultyResponse::IsInitialized() const { - return true; -} - -void NetworkDifficultyResponse::InternalSwap(NetworkDifficultyResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.randomx_estimated_hash_rate_) - + sizeof(NetworkDifficultyResponse::_impl_.randomx_estimated_hash_rate_) - - PROTOBUF_FIELD_OFFSET(NetworkDifficultyResponse, _impl_.difficulty_)>( - reinterpret_cast(&_impl_.difficulty_), - reinterpret_cast(&other->_impl_.difficulty_)); -} - -::google::protobuf::Metadata NetworkDifficultyResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[11]); -} -// =================================================================== - -class ValueAtHeightResponse::_Internal { - public: -}; - -ValueAtHeightResponse::ValueAtHeightResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ValueAtHeightResponse) -} -ValueAtHeightResponse::ValueAtHeightResponse( - ::google::protobuf::Arena* arena, const ValueAtHeightResponse& from) - : ValueAtHeightResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE ValueAtHeightResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ValueAtHeightResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - 0, - offsetof(Impl_, height_) - - offsetof(Impl_, value_) + - sizeof(Impl_::height_)); -} -ValueAtHeightResponse::~ValueAtHeightResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.ValueAtHeightResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ValueAtHeightResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ValueAtHeightResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_._cached_size_), - false, - }, - &ValueAtHeightResponse::MergeImpl, - &ValueAtHeightResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ValueAtHeightResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ValueAtHeightResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.height_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.height_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ValueAtHeightResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ValueAtHeightResponse::_table_ = { - { - 0, // no _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 - &_ValueAtHeightResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ValueAtHeightResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_)}}, - // uint64 value = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ValueAtHeightResponse, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 value = 1; - {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 height = 2; - {PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ValueAtHeightResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValueAtHeightResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 value = 1; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_value(), target); - } - - // uint64 height = 2; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_height(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValueAtHeightResponse) - return target; -} - -::size_t ValueAtHeightResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValueAtHeightResponse) - ::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 value = 1; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_value()); - } - - // uint64 height = 2; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ValueAtHeightResponse::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:tari.rpc.ValueAtHeightResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ValueAtHeightResponse::CopyFrom(const ValueAtHeightResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ValueAtHeightResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ValueAtHeightResponse::IsInitialized() const { - return true; -} - -void ValueAtHeightResponse::InternalSwap(ValueAtHeightResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.height_) - + sizeof(ValueAtHeightResponse::_impl_.height_) - - PROTOBUF_FIELD_OFFSET(ValueAtHeightResponse, _impl_.value_)>( - reinterpret_cast(&_impl_.value_), - reinterpret_cast(&other->_impl_.value_)); -} - -::google::protobuf::Metadata ValueAtHeightResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[12]); -} -// =================================================================== - -class IntegerValue::_Internal { - public: -}; - -IntegerValue::IntegerValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.IntegerValue) -} -IntegerValue::IntegerValue( - ::google::protobuf::Arena* arena, const IntegerValue& from) - : IntegerValue(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE IntegerValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void IntegerValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.value_ = {}; -} -IntegerValue::~IntegerValue() { - // @@protoc_insertion_point(destructor:tari.rpc.IntegerValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void IntegerValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -IntegerValue::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_._cached_size_), - false, - }, - &IntegerValue::MergeImpl, - &IntegerValue::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void IntegerValue::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.IntegerValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* IntegerValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> IntegerValue::_table_ = { - { - 0, // no _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 - &_IntegerValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::IntegerValue>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 value = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(IntegerValue, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 value = 1; - {PROTOBUF_FIELD_OFFSET(IntegerValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* IntegerValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.IntegerValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 value = 1; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_value(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.IntegerValue) - return target; -} - -::size_t IntegerValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.IntegerValue) - ::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 value = 1; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_value()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void IntegerValue::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:tari.rpc.IntegerValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void IntegerValue::CopyFrom(const IntegerValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.IntegerValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool IntegerValue::IsInitialized() const { - return true; -} - -void IntegerValue::InternalSwap(IntegerValue* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.value_, other->_impl_.value_); -} - -::google::protobuf::Metadata IntegerValue::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[13]); -} -// =================================================================== - -class StringValue::_Internal { - public: -}; - -StringValue::StringValue(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.StringValue) -} -inline PROTOBUF_NDEBUG_INLINE StringValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : value_(arena, from.value_), - _cached_size_{0} {} - -StringValue::StringValue( - ::google::protobuf::Arena* arena, - const StringValue& from) - : ::google::protobuf::Message(arena) { - StringValue* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.StringValue) -} -inline PROTOBUF_NDEBUG_INLINE StringValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : value_(arena), - _cached_size_{0} {} - -inline void StringValue::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -StringValue::~StringValue() { - // @@protoc_insertion_point(destructor:tari.rpc.StringValue) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void StringValue::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.value_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -StringValue::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(StringValue, _impl_._cached_size_), - false, - }, - &StringValue::MergeImpl, - &StringValue::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void StringValue::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.StringValue) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* StringValue::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 34, 2> StringValue::_table_ = { - { - 0, // no _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 - &_StringValue_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::StringValue>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(StringValue, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string value = 1; - {PROTOBUF_FIELD_OFFSET(StringValue, _impl_.value_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\24\5\0\0\0\0\0\0" - "tari.rpc.StringValue" - "value" - }}, -}; - -::uint8_t* StringValue::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.StringValue) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string value = 1; - if (!this->_internal_value().empty()) { - const std::string& _s = this->_internal_value(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.StringValue.value"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.StringValue) - return target; -} - -::size_t StringValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.StringValue) - ::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 value = 1; - if (!this->_internal_value().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_value()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void StringValue::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:tari.rpc.StringValue) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_value().empty()) { - _this->_internal_set_value(from._internal_value()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void StringValue::CopyFrom(const StringValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.StringValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool StringValue::IsInitialized() const { - return true; -} - -void StringValue::InternalSwap(StringValue* 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_.value_, &other->_impl_.value_, arena); -} - -::google::protobuf::Metadata StringValue::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[14]); -} -// =================================================================== - -class BlockGroupRequest::_Internal { - public: -}; - -BlockGroupRequest::BlockGroupRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockGroupRequest) -} -BlockGroupRequest::BlockGroupRequest( - ::google::protobuf::Arena* arena, const BlockGroupRequest& from) - : BlockGroupRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE BlockGroupRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void BlockGroupRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, from_tip_), - 0, - offsetof(Impl_, calc_type_) - - offsetof(Impl_, from_tip_) + - sizeof(Impl_::calc_type_)); -} -BlockGroupRequest::~BlockGroupRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockGroupRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockGroupRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockGroupRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_._cached_size_), - false, - }, - &BlockGroupRequest::MergeImpl, - &BlockGroupRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockGroupRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockGroupRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.from_tip_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.calc_type_) - - reinterpret_cast(&_impl_.from_tip_)) + sizeof(_impl_.calc_type_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockGroupRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> BlockGroupRequest::_table_ = { - { - 0, // no _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 - &_BlockGroupRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockGroupRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.CalcType calc_type = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockGroupRequest, _impl_.calc_type_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_)}}, - // uint64 from_tip = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.from_tip_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.from_tip_)}}, - // uint64 start_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.start_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.start_height_)}}, - // uint64 end_height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockGroupRequest, _impl_.end_height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.end_height_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 from_tip = 1; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.from_tip_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 start_height = 2; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.start_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 end_height = 3; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.end_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.CalcType calc_type = 4; - {PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* BlockGroupRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockGroupRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 from_tip = 1; - if (this->_internal_from_tip() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_from_tip(), target); - } - - // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_start_height(), target); - } - - // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_end_height(), target); - } - - // .tari.rpc.CalcType calc_type = 4; - if (this->_internal_calc_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 4, this->_internal_calc_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockGroupRequest) - return target; -} - -::size_t BlockGroupRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockGroupRequest) - ::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 from_tip = 1; - if (this->_internal_from_tip() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_from_tip()); - } - - // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_start_height()); - } - - // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_end_height()); - } - - // .tari.rpc.CalcType calc_type = 4; - if (this->_internal_calc_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_calc_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockGroupRequest::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:tari.rpc.BlockGroupRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_from_tip() != 0) { - _this->_impl_.from_tip_ = from._impl_.from_tip_; - } - if (from._internal_start_height() != 0) { - _this->_impl_.start_height_ = from._impl_.start_height_; - } - if (from._internal_end_height() != 0) { - _this->_impl_.end_height_ = from._impl_.end_height_; - } - if (from._internal_calc_type() != 0) { - _this->_impl_.calc_type_ = from._impl_.calc_type_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockGroupRequest::CopyFrom(const BlockGroupRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockGroupRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockGroupRequest::IsInitialized() const { - return true; -} - -void BlockGroupRequest::InternalSwap(BlockGroupRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.calc_type_) - + sizeof(BlockGroupRequest::_impl_.calc_type_) - - PROTOBUF_FIELD_OFFSET(BlockGroupRequest, _impl_.from_tip_)>( - reinterpret_cast(&_impl_.from_tip_), - reinterpret_cast(&other->_impl_.from_tip_)); -} - -::google::protobuf::Metadata BlockGroupRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[15]); -} -// =================================================================== - -class BlockGroupResponse::_Internal { - public: -}; - -BlockGroupResponse::BlockGroupResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockGroupResponse) -} -inline PROTOBUF_NDEBUG_INLINE BlockGroupResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : value_{visibility, arena, from.value_}, - _cached_size_{0} {} - -BlockGroupResponse::BlockGroupResponse( - ::google::protobuf::Arena* arena, - const BlockGroupResponse& from) - : ::google::protobuf::Message(arena) { - BlockGroupResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.calc_type_ = from._impl_.calc_type_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockGroupResponse) -} -inline PROTOBUF_NDEBUG_INLINE BlockGroupResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : value_{visibility, arena}, - _cached_size_{0} {} - -inline void BlockGroupResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.calc_type_ = {}; -} -BlockGroupResponse::~BlockGroupResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockGroupResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockGroupResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockGroupResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_._cached_size_), - false, - }, - &BlockGroupResponse::MergeImpl, - &BlockGroupResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockGroupResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockGroupResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.value_.Clear(); - _impl_.calc_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockGroupResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> BlockGroupResponse::_table_ = { - { - 0, // no _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 - &_BlockGroupResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockGroupResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.CalcType calc_type = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockGroupResponse, _impl_.calc_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.calc_type_)}}, - // repeated double value = 1; - {::_pbi::TcParser::FastF64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated double value = 1; - {PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.value_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedDouble)}, - // .tari.rpc.CalcType calc_type = 2; - {PROTOBUF_FIELD_OFFSET(BlockGroupResponse, _impl_.calc_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* BlockGroupResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockGroupResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated double value = 1; - if (this->_internal_value_size() > 0) { - target = stream->WriteFixedPacked(1, _internal_value(), target); - } - - // .tari.rpc.CalcType calc_type = 2; - if (this->_internal_calc_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_calc_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockGroupResponse) - return target; -} - -::size_t BlockGroupResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockGroupResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated double value = 1; - { - std::size_t data_size = std::size_t{8} * - ::_pbi::FromIntSize(this->_internal_value_size()) - ; - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - // .tari.rpc.CalcType calc_type = 2; - if (this->_internal_calc_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_calc_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockGroupResponse::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:tari.rpc.BlockGroupResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_value()->MergeFrom(from._internal_value()); - if (from._internal_calc_type() != 0) { - _this->_impl_.calc_type_ = from._impl_.calc_type_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockGroupResponse::CopyFrom(const BlockGroupResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockGroupResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockGroupResponse::IsInitialized() const { - return true; -} - -void BlockGroupResponse::InternalSwap(BlockGroupResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.value_.InternalSwap(&other->_impl_.value_); - swap(_impl_.calc_type_, other->_impl_.calc_type_); -} - -::google::protobuf::Metadata BlockGroupResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[16]); -} -// =================================================================== - -class HeightRequest::_Internal { - public: -}; - -HeightRequest::HeightRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.HeightRequest) -} -HeightRequest::HeightRequest( - ::google::protobuf::Arena* arena, const HeightRequest& from) - : HeightRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE HeightRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void HeightRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, from_tip_), - 0, - offsetof(Impl_, end_height_) - - offsetof(Impl_, from_tip_) + - sizeof(Impl_::end_height_)); -} -HeightRequest::~HeightRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.HeightRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void HeightRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -HeightRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_._cached_size_), - false, - }, - &HeightRequest::MergeImpl, - &HeightRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void HeightRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.HeightRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.from_tip_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.end_height_) - - reinterpret_cast(&_impl_.from_tip_)) + sizeof(_impl_.end_height_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HeightRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> HeightRequest::_table_ = { - { - 0, // no _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 - &_HeightRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::HeightRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 from_tip = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.from_tip_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.from_tip_)}}, - // uint64 start_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.start_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.start_height_)}}, - // uint64 end_height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HeightRequest, _impl_.end_height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 from_tip = 1; - {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.from_tip_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 start_height = 2; - {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.start_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 end_height = 3; - {PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* HeightRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.HeightRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 from_tip = 1; - if (this->_internal_from_tip() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_from_tip(), target); - } - - // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_start_height(), target); - } - - // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_end_height(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.HeightRequest) - return target; -} - -::size_t HeightRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.HeightRequest) - ::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 from_tip = 1; - if (this->_internal_from_tip() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_from_tip()); - } - - // uint64 start_height = 2; - if (this->_internal_start_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_start_height()); - } - - // uint64 end_height = 3; - if (this->_internal_end_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_end_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void HeightRequest::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:tari.rpc.HeightRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_from_tip() != 0) { - _this->_impl_.from_tip_ = from._impl_.from_tip_; - } - if (from._internal_start_height() != 0) { - _this->_impl_.start_height_ = from._impl_.start_height_; - } - if (from._internal_end_height() != 0) { - _this->_impl_.end_height_ = from._impl_.end_height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void HeightRequest::CopyFrom(const HeightRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.HeightRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool HeightRequest::IsInitialized() const { - return true; -} - -void HeightRequest::InternalSwap(HeightRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.end_height_) - + sizeof(HeightRequest::_impl_.end_height_) - - PROTOBUF_FIELD_OFFSET(HeightRequest, _impl_.from_tip_)>( - reinterpret_cast(&_impl_.from_tip_), - reinterpret_cast(&other->_impl_.from_tip_)); -} - -::google::protobuf::Metadata HeightRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[17]); -} -// =================================================================== - -class BlockTimingResponse::_Internal { - public: -}; - -BlockTimingResponse::BlockTimingResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockTimingResponse) -} -BlockTimingResponse::BlockTimingResponse( - ::google::protobuf::Arena* arena, const BlockTimingResponse& from) - : BlockTimingResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE BlockTimingResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void BlockTimingResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, max_), - 0, - offsetof(Impl_, avg_) - - offsetof(Impl_, max_) + - sizeof(Impl_::avg_)); -} -BlockTimingResponse::~BlockTimingResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockTimingResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockTimingResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockTimingResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_._cached_size_), - false, - }, - &BlockTimingResponse::MergeImpl, - &BlockTimingResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockTimingResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockTimingResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.max_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.avg_) - - reinterpret_cast(&_impl_.max_)) + sizeof(_impl_.avg_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockTimingResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockTimingResponse::_table_ = { - { - 0, // no _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 - &_BlockTimingResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockTimingResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 max = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockTimingResponse, _impl_.max_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.max_)}}, - // uint64 min = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockTimingResponse, _impl_.min_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.min_)}}, - // double avg = 3; - {::_pbi::TcParser::FastF64S1, - {25, 63, 0, PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 max = 1; - {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.max_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 min = 2; - {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.min_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // double avg = 3; - {PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kDouble)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* BlockTimingResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockTimingResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 max = 1; - if (this->_internal_max() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_max(), target); - } - - // uint64 min = 2; - if (this->_internal_min() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_min(), target); - } - - // double avg = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_avg = this->_internal_avg(); - ::uint64_t raw_avg; - memcpy(&raw_avg, &tmp_avg, sizeof(tmp_avg)); - if (raw_avg != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray( - 3, this->_internal_avg(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockTimingResponse) - return target; -} - -::size_t BlockTimingResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockTimingResponse) - ::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 max = 1; - if (this->_internal_max() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max()); - } - - // uint64 min = 2; - if (this->_internal_min() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min()); - } - - // double avg = 3; - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_avg = this->_internal_avg(); - ::uint64_t raw_avg; - memcpy(&raw_avg, &tmp_avg, sizeof(tmp_avg)); - if (raw_avg != 0) { - total_size += 9; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockTimingResponse::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:tari.rpc.BlockTimingResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_max() != 0) { - _this->_impl_.max_ = from._impl_.max_; - } - if (from._internal_min() != 0) { - _this->_impl_.min_ = from._impl_.min_; - } - static_assert(sizeof(::uint64_t) == sizeof(double), - "Code assumes ::uint64_t and double are the same size."); - double tmp_avg = from._internal_avg(); - ::uint64_t raw_avg; - memcpy(&raw_avg, &tmp_avg, sizeof(tmp_avg)); - if (raw_avg != 0) { - _this->_impl_.avg_ = from._impl_.avg_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockTimingResponse::CopyFrom(const BlockTimingResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockTimingResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockTimingResponse::IsInitialized() const { - return true; -} - -void BlockTimingResponse::InternalSwap(BlockTimingResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.avg_) - + sizeof(BlockTimingResponse::_impl_.avg_) - - PROTOBUF_FIELD_OFFSET(BlockTimingResponse, _impl_.max_)>( - reinterpret_cast(&_impl_.max_), - reinterpret_cast(&other->_impl_.max_)); -} - -::google::protobuf::Metadata BlockTimingResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[18]); -} -// =================================================================== - -class GetHeaderByHashRequest::_Internal { - public: -}; - -GetHeaderByHashRequest::GetHeaderByHashRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetHeaderByHashRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetHeaderByHashRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : hash_(arena, from.hash_), - _cached_size_{0} {} - -GetHeaderByHashRequest::GetHeaderByHashRequest( - ::google::protobuf::Arena* arena, - const GetHeaderByHashRequest& from) - : ::google::protobuf::Message(arena) { - GetHeaderByHashRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetHeaderByHashRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetHeaderByHashRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : hash_(arena), - _cached_size_{0} {} - -inline void GetHeaderByHashRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetHeaderByHashRequest::~GetHeaderByHashRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetHeaderByHashRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetHeaderByHashRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.hash_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetHeaderByHashRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_._cached_size_), - false, - }, - &GetHeaderByHashRequest::MergeImpl, - &GetHeaderByHashRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetHeaderByHashRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetHeaderByHashRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hash_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetHeaderByHashRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetHeaderByHashRequest::_table_ = { - { - 0, // no _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 - &_GetHeaderByHashRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetHeaderByHashRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_.hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes hash = 1; - {PROTOBUF_FIELD_OFFSET(GetHeaderByHashRequest, _impl_.hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetHeaderByHashRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetHeaderByHashRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes hash = 1; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetHeaderByHashRequest) - return target; -} - -::size_t GetHeaderByHashRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetHeaderByHashRequest) - ::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 hash = 1; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetHeaderByHashRequest::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:tari.rpc.GetHeaderByHashRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetHeaderByHashRequest::CopyFrom(const GetHeaderByHashRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetHeaderByHashRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetHeaderByHashRequest::IsInitialized() const { - return true; -} - -void GetHeaderByHashRequest::InternalSwap(GetHeaderByHashRequest* 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_.hash_, &other->_impl_.hash_, arena); -} - -::google::protobuf::Metadata GetHeaderByHashRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[19]); -} -// =================================================================== - -class BlockHeaderResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._has_bits_); -}; - -void BlockHeaderResponse::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.header_ != nullptr) _impl_.header_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -BlockHeaderResponse::BlockHeaderResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockHeaderResponse) -} -inline PROTOBUF_NDEBUG_INLINE BlockHeaderResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -BlockHeaderResponse::BlockHeaderResponse( - ::google::protobuf::Arena* arena, - const BlockHeaderResponse& from) - : ::google::protobuf::Message(arena) { - BlockHeaderResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>( - arena, *from._impl_.header_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, confirmations_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, confirmations_), - offsetof(Impl_, num_transactions_) - - offsetof(Impl_, confirmations_) + - sizeof(Impl_::num_transactions_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockHeaderResponse) -} -inline PROTOBUF_NDEBUG_INLINE BlockHeaderResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void BlockHeaderResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, header_), - 0, - offsetof(Impl_, num_transactions_) - - offsetof(Impl_, header_) + - sizeof(Impl_::num_transactions_)); -} -BlockHeaderResponse::~BlockHeaderResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockHeaderResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockHeaderResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.header_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockHeaderResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_._cached_size_), - false, - }, - &BlockHeaderResponse::MergeImpl, - &BlockHeaderResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockHeaderResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeaderResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.header_ != nullptr); - _impl_.header_->Clear(); - } - ::memset(&_impl_.confirmations_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_transactions_) - - reinterpret_cast(&_impl_.confirmations_)) + sizeof(_impl_.num_transactions_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockHeaderResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 1, 0, 2> BlockHeaderResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _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), - &_BlockHeaderResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeaderResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.BlockHeader header = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.header_)}}, - // uint64 confirmations = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.confirmations_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.confirmations_)}}, - // uint64 reward = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.reward_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.reward_)}}, - // uint64 difficulty = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeaderResponse, _impl_.difficulty_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.difficulty_)}}, - // uint32 num_transactions = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockHeaderResponse, _impl_.num_transactions_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.num_transactions_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.BlockHeader header = 1; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 confirmations = 2; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.confirmations_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 reward = 3; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.reward_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 difficulty = 4; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.difficulty_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint32 num_transactions = 5; - {PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.num_transactions_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>()}, - }}, {{ - }}, -}; - -::uint8_t* BlockHeaderResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockHeaderResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.BlockHeader header = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.header_, _impl_.header_->GetCachedSize(), target, stream); - } - - // uint64 confirmations = 2; - if (this->_internal_confirmations() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_confirmations(), target); - } - - // uint64 reward = 3; - if (this->_internal_reward() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_reward(), target); - } - - // uint64 difficulty = 4; - if (this->_internal_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_difficulty(), target); - } - - // uint32 num_transactions = 5; - if (this->_internal_num_transactions() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_num_transactions(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockHeaderResponse) - return target; -} - -::size_t BlockHeaderResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeaderResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.BlockHeader header = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.header_); - } - - // uint64 confirmations = 2; - if (this->_internal_confirmations() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_confirmations()); - } - - // uint64 reward = 3; - if (this->_internal_reward() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_reward()); - } - - // uint64 difficulty = 4; - if (this->_internal_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_difficulty()); - } - - // uint32 num_transactions = 5; - if (this->_internal_num_transactions() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_num_transactions()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockHeaderResponse::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:tari.rpc.BlockHeaderResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.header_ != nullptr); - if (_this->_impl_.header_ == nullptr) { - _this->_impl_.header_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>(arena, *from._impl_.header_); - } else { - _this->_impl_.header_->MergeFrom(*from._impl_.header_); - } - } - if (from._internal_confirmations() != 0) { - _this->_impl_.confirmations_ = from._impl_.confirmations_; - } - if (from._internal_reward() != 0) { - _this->_impl_.reward_ = from._impl_.reward_; - } - if (from._internal_difficulty() != 0) { - _this->_impl_.difficulty_ = from._impl_.difficulty_; - } - if (from._internal_num_transactions() != 0) { - _this->_impl_.num_transactions_ = from._impl_.num_transactions_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockHeaderResponse::CopyFrom(const BlockHeaderResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockHeaderResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockHeaderResponse::IsInitialized() const { - return true; -} - -void BlockHeaderResponse::InternalSwap(BlockHeaderResponse* PROTOBUF_RESTRICT 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(BlockHeaderResponse, _impl_.num_transactions_) - + sizeof(BlockHeaderResponse::_impl_.num_transactions_) - - PROTOBUF_FIELD_OFFSET(BlockHeaderResponse, _impl_.header_)>( - reinterpret_cast(&_impl_.header_), - reinterpret_cast(&other->_impl_.header_)); -} - -::google::protobuf::Metadata BlockHeaderResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[20]); -} -// =================================================================== - -class ListHeadersRequest::_Internal { - public: -}; - -ListHeadersRequest::ListHeadersRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ListHeadersRequest) -} -ListHeadersRequest::ListHeadersRequest( - ::google::protobuf::Arena* arena, const ListHeadersRequest& from) - : ListHeadersRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE ListHeadersRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void ListHeadersRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, from_height_), - 0, - offsetof(Impl_, sorting_) - - offsetof(Impl_, from_height_) + - sizeof(Impl_::sorting_)); -} -ListHeadersRequest::~ListHeadersRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.ListHeadersRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListHeadersRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ListHeadersRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_._cached_size_), - false, - }, - &ListHeadersRequest::MergeImpl, - &ListHeadersRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ListHeadersRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ListHeadersRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.from_height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.sorting_) - - reinterpret_cast(&_impl_.from_height_)) + sizeof(_impl_.sorting_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListHeadersRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ListHeadersRequest::_table_ = { - { - 0, // no _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 - &_ListHeadersRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ListHeadersRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 from_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListHeadersRequest, _impl_.from_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.from_height_)}}, - // uint64 num_headers = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ListHeadersRequest, _impl_.num_headers_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.num_headers_)}}, - // .tari.rpc.Sorting sorting = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ListHeadersRequest, _impl_.sorting_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 from_height = 1; - {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.from_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 num_headers = 2; - {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.num_headers_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.Sorting sorting = 3; - {PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ListHeadersRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListHeadersRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 from_height = 1; - if (this->_internal_from_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_from_height(), target); - } - - // uint64 num_headers = 2; - if (this->_internal_num_headers() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_num_headers(), target); - } - - // .tari.rpc.Sorting sorting = 3; - if (this->_internal_sorting() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_sorting(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListHeadersRequest) - return target; -} - -::size_t ListHeadersRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListHeadersRequest) - ::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 from_height = 1; - if (this->_internal_from_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_from_height()); - } - - // uint64 num_headers = 2; - if (this->_internal_num_headers() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_num_headers()); - } - - // .tari.rpc.Sorting sorting = 3; - if (this->_internal_sorting() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_sorting()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ListHeadersRequest::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:tari.rpc.ListHeadersRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_from_height() != 0) { - _this->_impl_.from_height_ = from._impl_.from_height_; - } - if (from._internal_num_headers() != 0) { - _this->_impl_.num_headers_ = from._impl_.num_headers_; - } - if (from._internal_sorting() != 0) { - _this->_impl_.sorting_ = from._impl_.sorting_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ListHeadersRequest::CopyFrom(const ListHeadersRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ListHeadersRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ListHeadersRequest::IsInitialized() const { - return true; -} - -void ListHeadersRequest::InternalSwap(ListHeadersRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.sorting_) - + sizeof(ListHeadersRequest::_impl_.sorting_) - - PROTOBUF_FIELD_OFFSET(ListHeadersRequest, _impl_.from_height_)>( - reinterpret_cast(&_impl_.from_height_), - reinterpret_cast(&other->_impl_.from_height_)); -} - -::google::protobuf::Metadata ListHeadersRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[21]); -} -// =================================================================== - -class GetBlocksRequest::_Internal { - public: -}; - -GetBlocksRequest::GetBlocksRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetBlocksRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetBlocksRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : heights_{visibility, arena, from.heights_}, - _heights_cached_byte_size_{0}, - _cached_size_{0} {} - -GetBlocksRequest::GetBlocksRequest( - ::google::protobuf::Arena* arena, - const GetBlocksRequest& from) - : ::google::protobuf::Message(arena) { - GetBlocksRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetBlocksRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetBlocksRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : heights_{visibility, arena}, - _heights_cached_byte_size_{0}, - _cached_size_{0} {} - -inline void GetBlocksRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetBlocksRequest::~GetBlocksRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetBlocksRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetBlocksRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetBlocksRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetBlocksRequest, _impl_._cached_size_), - false, - }, - &GetBlocksRequest::MergeImpl, - &GetBlocksRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetBlocksRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetBlocksRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.heights_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetBlocksRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetBlocksRequest::_table_ = { - { - 0, // no _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 - &_GetBlocksRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetBlocksRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated uint64 heights = 1; - {::_pbi::TcParser::FastV64P1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetBlocksRequest, _impl_.heights_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated uint64 heights = 1; - {PROTOBUF_FIELD_OFFSET(GetBlocksRequest, _impl_.heights_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetBlocksRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetBlocksRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated uint64 heights = 1; - { - int byte_size = _impl_._heights_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteUInt64Packed( - 1, _internal_heights(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetBlocksRequest) - return target; -} - -::size_t GetBlocksRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetBlocksRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated uint64 heights = 1; - { - std::size_t data_size = ::_pbi::WireFormatLite::UInt64Size( - this->_internal_heights()) - ; - _impl_._heights_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetBlocksRequest::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:tari.rpc.GetBlocksRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_heights()->MergeFrom(from._internal_heights()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetBlocksRequest::CopyFrom(const GetBlocksRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetBlocksRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetBlocksRequest::IsInitialized() const { - return true; -} - -void GetBlocksRequest::InternalSwap(GetBlocksRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.heights_.InternalSwap(&other->_impl_.heights_); -} - -::google::protobuf::Metadata GetBlocksRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[22]); -} -// =================================================================== - -class GetBlocksResponse::_Internal { - public: -}; - -void GetBlocksResponse::clear_blocks() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.blocks_.Clear(); -} -GetBlocksResponse::GetBlocksResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetBlocksResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetBlocksResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : blocks_{visibility, arena, from.blocks_}, - _cached_size_{0} {} - -GetBlocksResponse::GetBlocksResponse( - ::google::protobuf::Arena* arena, - const GetBlocksResponse& from) - : ::google::protobuf::Message(arena) { - GetBlocksResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetBlocksResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetBlocksResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : blocks_{visibility, arena}, - _cached_size_{0} {} - -inline void GetBlocksResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetBlocksResponse::~GetBlocksResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetBlocksResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetBlocksResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetBlocksResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetBlocksResponse, _impl_._cached_size_), - false, - }, - &GetBlocksResponse::MergeImpl, - &GetBlocksResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetBlocksResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetBlocksResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.blocks_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetBlocksResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetBlocksResponse::_table_ = { - { - 0, // no _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetBlocksResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetBlocksResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .tari.rpc.HistoricalBlock blocks = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetBlocksResponse, _impl_.blocks_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .tari.rpc.HistoricalBlock blocks = 1; - {PROTOBUF_FIELD_OFFSET(GetBlocksResponse, _impl_.blocks_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::HistoricalBlock>()}, - }}, {{ - }}, -}; - -::uint8_t* GetBlocksResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetBlocksResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .tari.rpc.HistoricalBlock blocks = 1; - for (unsigned i = 0, n = static_cast( - this->_internal_blocks_size()); - i < n; i++) { - const auto& repfield = this->_internal_blocks().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetBlocksResponse) - return target; -} - -::size_t GetBlocksResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetBlocksResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .tari.rpc.HistoricalBlock blocks = 1; - total_size += 1UL * this->_internal_blocks_size(); - for (const auto& msg : this->_internal_blocks()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetBlocksResponse::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:tari.rpc.GetBlocksResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_blocks()->MergeFrom( - from._internal_blocks()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetBlocksResponse::CopyFrom(const GetBlocksResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetBlocksResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetBlocksResponse::IsInitialized() const { - return true; -} - -void GetBlocksResponse::InternalSwap(GetBlocksResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.blocks_.InternalSwap(&other->_impl_.blocks_); -} - -::google::protobuf::Metadata GetBlocksResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[23]); -} -// =================================================================== - -class MetaData::_Internal { - public: -}; - -MetaData::MetaData(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.MetaData) -} -inline PROTOBUF_NDEBUG_INLINE MetaData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : best_block_(arena, from.best_block_), - accumulated_difficulty_(arena, from.accumulated_difficulty_), - _cached_size_{0} {} - -MetaData::MetaData( - ::google::protobuf::Arena* arena, - const MetaData& from) - : ::google::protobuf::Message(arena) { - MetaData* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, height_of_longest_chain_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, height_of_longest_chain_), - offsetof(Impl_, pruned_height_) - - offsetof(Impl_, height_of_longest_chain_) + - sizeof(Impl_::pruned_height_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.MetaData) -} -inline PROTOBUF_NDEBUG_INLINE MetaData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : best_block_(arena), - accumulated_difficulty_(arena), - _cached_size_{0} {} - -inline void MetaData::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, height_of_longest_chain_), - 0, - offsetof(Impl_, pruned_height_) - - offsetof(Impl_, height_of_longest_chain_) + - sizeof(Impl_::pruned_height_)); -} -MetaData::~MetaData() { - // @@protoc_insertion_point(destructor:tari.rpc.MetaData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void MetaData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.best_block_.Destroy(); - _impl_.accumulated_difficulty_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -MetaData::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(MetaData, _impl_._cached_size_), - false, - }, - &MetaData::MergeImpl, - &MetaData::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void MetaData::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.MetaData) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.best_block_.ClearToEmpty(); - _impl_.accumulated_difficulty_.ClearToEmpty(); - ::memset(&_impl_.height_of_longest_chain_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.pruned_height_) - - reinterpret_cast(&_impl_.height_of_longest_chain_)) + sizeof(_impl_.pruned_height_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MetaData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 4, 0, 0, 2> MetaData::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967244, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MetaData_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::MetaData>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 height_of_longest_chain = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.height_of_longest_chain_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.height_of_longest_chain_)}}, - // bytes best_block = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // bytes accumulated_difficulty = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.accumulated_difficulty_)}}, - // uint64 pruned_height = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MetaData, _impl_.pruned_height_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(MetaData, _impl_.pruned_height_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 height_of_longest_chain = 1; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.height_of_longest_chain_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes best_block = 2; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.best_block_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes accumulated_difficulty = 5; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.accumulated_difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 pruned_height = 6; - {PROTOBUF_FIELD_OFFSET(MetaData, _impl_.pruned_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* MetaData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.MetaData) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 height_of_longest_chain = 1; - if (this->_internal_height_of_longest_chain() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_height_of_longest_chain(), target); - } - - // bytes best_block = 2; - if (!this->_internal_best_block().empty()) { - const std::string& _s = this->_internal_best_block(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes accumulated_difficulty = 5; - if (!this->_internal_accumulated_difficulty().empty()) { - const std::string& _s = this->_internal_accumulated_difficulty(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // uint64 pruned_height = 6; - if (this->_internal_pruned_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this->_internal_pruned_height(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.MetaData) - return target; -} - -::size_t MetaData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.MetaData) - ::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 best_block = 2; - if (!this->_internal_best_block().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_best_block()); - } - - // bytes accumulated_difficulty = 5; - if (!this->_internal_accumulated_difficulty().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_accumulated_difficulty()); - } - - // uint64 height_of_longest_chain = 1; - if (this->_internal_height_of_longest_chain() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height_of_longest_chain()); - } - - // uint64 pruned_height = 6; - if (this->_internal_pruned_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pruned_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void MetaData::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:tari.rpc.MetaData) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_best_block().empty()) { - _this->_internal_set_best_block(from._internal_best_block()); - } - if (!from._internal_accumulated_difficulty().empty()) { - _this->_internal_set_accumulated_difficulty(from._internal_accumulated_difficulty()); - } - if (from._internal_height_of_longest_chain() != 0) { - _this->_impl_.height_of_longest_chain_ = from._impl_.height_of_longest_chain_; - } - if (from._internal_pruned_height() != 0) { - _this->_impl_.pruned_height_ = from._impl_.pruned_height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void MetaData::CopyFrom(const MetaData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.MetaData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool MetaData::IsInitialized() const { - return true; -} - -void MetaData::InternalSwap(MetaData* 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_.best_block_, &other->_impl_.best_block_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.accumulated_difficulty_, &other->_impl_.accumulated_difficulty_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MetaData, _impl_.pruned_height_) - + sizeof(MetaData::_impl_.pruned_height_) - - PROTOBUF_FIELD_OFFSET(MetaData, _impl_.height_of_longest_chain_)>( - reinterpret_cast(&_impl_.height_of_longest_chain_), - reinterpret_cast(&other->_impl_.height_of_longest_chain_)); -} - -::google::protobuf::Metadata MetaData::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[24]); -} -// =================================================================== - -class SyncInfoResponse::_Internal { - public: -}; - -SyncInfoResponse::SyncInfoResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SyncInfoResponse) -} -inline PROTOBUF_NDEBUG_INLINE SyncInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : peer_node_id_{visibility, arena, from.peer_node_id_}, - _cached_size_{0} {} - -SyncInfoResponse::SyncInfoResponse( - ::google::protobuf::Arena* arena, - const SyncInfoResponse& from) - : ::google::protobuf::Message(arena) { - SyncInfoResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, tip_height_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, tip_height_), - offsetof(Impl_, local_height_) - - offsetof(Impl_, tip_height_) + - sizeof(Impl_::local_height_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.SyncInfoResponse) -} -inline PROTOBUF_NDEBUG_INLINE SyncInfoResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : peer_node_id_{visibility, arena}, - _cached_size_{0} {} - -inline void SyncInfoResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, tip_height_), - 0, - offsetof(Impl_, local_height_) - - offsetof(Impl_, tip_height_) + - sizeof(Impl_::local_height_)); -} -SyncInfoResponse::~SyncInfoResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.SyncInfoResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SyncInfoResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SyncInfoResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_._cached_size_), - false, - }, - &SyncInfoResponse::MergeImpl, - &SyncInfoResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SyncInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SyncInfoResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.peer_node_id_.Clear(); - ::memset(&_impl_.tip_height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.local_height_) - - reinterpret_cast(&_impl_.tip_height_)) + sizeof(_impl_.local_height_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SyncInfoResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncInfoResponse::_table_ = { - { - 0, // no _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 - &_SyncInfoResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SyncInfoResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 tip_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncInfoResponse, _impl_.tip_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.tip_height_)}}, - // uint64 local_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncInfoResponse, _impl_.local_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_)}}, - // repeated bytes peer_node_id = 3; - {::_pbi::TcParser::FastBR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.peer_node_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 tip_height = 1; - {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.tip_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 local_height = 2; - {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // repeated bytes peer_node_id = 3; - {PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.peer_node_id_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SyncInfoResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SyncInfoResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 tip_height = 1; - if (this->_internal_tip_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_tip_height(), target); - } - - // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_local_height(), target); - } - - // repeated bytes peer_node_id = 3; - for (int i = 0, n = this->_internal_peer_node_id_size(); i < n; ++i) { - const auto& s = this->_internal_peer_node_id().Get(i); - target = stream->WriteBytes(3, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SyncInfoResponse) - return target; -} - -::size_t SyncInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SyncInfoResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated bytes peer_node_id = 3; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_peer_node_id().size()); - for (int i = 0, n = _internal_peer_node_id().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_peer_node_id().Get(i)); - } - // uint64 tip_height = 1; - if (this->_internal_tip_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_tip_height()); - } - - // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_local_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SyncInfoResponse::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:tari.rpc.SyncInfoResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_peer_node_id()->MergeFrom(from._internal_peer_node_id()); - if (from._internal_tip_height() != 0) { - _this->_impl_.tip_height_ = from._impl_.tip_height_; - } - if (from._internal_local_height() != 0) { - _this->_impl_.local_height_ = from._impl_.local_height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SyncInfoResponse::CopyFrom(const SyncInfoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SyncInfoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SyncInfoResponse::IsInitialized() const { - return true; -} - -void SyncInfoResponse::InternalSwap(SyncInfoResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.peer_node_id_.InternalSwap(&other->_impl_.peer_node_id_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.local_height_) - + sizeof(SyncInfoResponse::_impl_.local_height_) - - PROTOBUF_FIELD_OFFSET(SyncInfoResponse, _impl_.tip_height_)>( - reinterpret_cast(&_impl_.tip_height_), - reinterpret_cast(&other->_impl_.tip_height_)); -} - -::google::protobuf::Metadata SyncInfoResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[25]); -} -// =================================================================== - -class SyncProgressResponse::_Internal { - public: -}; - -SyncProgressResponse::SyncProgressResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SyncProgressResponse) -} -SyncProgressResponse::SyncProgressResponse( - ::google::protobuf::Arena* arena, const SyncProgressResponse& from) - : SyncProgressResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE SyncProgressResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SyncProgressResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, tip_height_), - 0, - offsetof(Impl_, state_) - - offsetof(Impl_, tip_height_) + - sizeof(Impl_::state_)); -} -SyncProgressResponse::~SyncProgressResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.SyncProgressResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SyncProgressResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SyncProgressResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_._cached_size_), - false, - }, - &SyncProgressResponse::MergeImpl, - &SyncProgressResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SyncProgressResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SyncProgressResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.tip_height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.state_) - - reinterpret_cast(&_impl_.tip_height_)) + sizeof(_impl_.state_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SyncProgressResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> SyncProgressResponse::_table_ = { - { - 0, // no _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 - &_SyncProgressResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SyncProgressResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 tip_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.tip_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.tip_height_)}}, - // uint64 local_height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(SyncProgressResponse, _impl_.local_height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.local_height_)}}, - // .tari.rpc.SyncState state = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SyncProgressResponse, _impl_.state_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 tip_height = 1; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.tip_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 local_height = 2; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.local_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.SyncState state = 3; - {PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SyncProgressResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SyncProgressResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 tip_height = 1; - if (this->_internal_tip_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_tip_height(), target); - } - - // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_local_height(), target); - } - - // .tari.rpc.SyncState state = 3; - if (this->_internal_state() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_state(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SyncProgressResponse) - return target; -} - -::size_t SyncProgressResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SyncProgressResponse) - ::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 tip_height = 1; - if (this->_internal_tip_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_tip_height()); - } - - // uint64 local_height = 2; - if (this->_internal_local_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_local_height()); - } - - // .tari.rpc.SyncState state = 3; - if (this->_internal_state() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_state()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SyncProgressResponse::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:tari.rpc.SyncProgressResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_tip_height() != 0) { - _this->_impl_.tip_height_ = from._impl_.tip_height_; - } - if (from._internal_local_height() != 0) { - _this->_impl_.local_height_ = from._impl_.local_height_; - } - if (from._internal_state() != 0) { - _this->_impl_.state_ = from._impl_.state_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SyncProgressResponse::CopyFrom(const SyncProgressResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SyncProgressResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SyncProgressResponse::IsInitialized() const { - return true; -} - -void SyncProgressResponse::InternalSwap(SyncProgressResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.state_) - + sizeof(SyncProgressResponse::_impl_.state_) - - PROTOBUF_FIELD_OFFSET(SyncProgressResponse, _impl_.tip_height_)>( - reinterpret_cast(&_impl_.tip_height_), - reinterpret_cast(&other->_impl_.tip_height_)); -} - -::google::protobuf::Metadata SyncProgressResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[26]); -} -// =================================================================== - -class GetNewBlockResult::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._has_bits_); -}; - -void GetNewBlockResult::clear_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.block_ != nullptr) _impl_.block_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -GetNewBlockResult::GetNewBlockResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNewBlockResult) -} -inline PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - block_hash_(arena, from.block_hash_), - merge_mining_hash_(arena, from.merge_mining_hash_), - tari_unique_id_(arena, from.tari_unique_id_) {} - -GetNewBlockResult::GetNewBlockResult( - ::google::protobuf::Arena* arena, - const GetNewBlockResult& from) - : ::google::protobuf::Message(arena) { - GetNewBlockResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>( - arena, *from._impl_.block_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockResult) -} -inline PROTOBUF_NDEBUG_INLINE GetNewBlockResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - block_hash_(arena), - merge_mining_hash_(arena), - tari_unique_id_(arena) {} - -inline void GetNewBlockResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.block_ = {}; -} -GetNewBlockResult::~GetNewBlockResult() { - // @@protoc_insertion_point(destructor:tari.rpc.GetNewBlockResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetNewBlockResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.block_hash_.Destroy(); - _impl_.merge_mining_hash_.Destroy(); - _impl_.tari_unique_id_.Destroy(); - delete _impl_.block_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetNewBlockResult::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_._cached_size_), - false, - }, - &GetNewBlockResult::MergeImpl, - &GetNewBlockResult::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetNewBlockResult::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_hash_.ClearToEmpty(); - _impl_.merge_mining_hash_.ClearToEmpty(); - _impl_.tari_unique_id_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.block_ != nullptr); - _impl_.block_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetNewBlockResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 0, 2> GetNewBlockResult::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetNewBlockResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockResult>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes tari_unique_id = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_)}}, - // bytes block_hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_)}}, - // .tari.rpc.Block block = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_)}}, - // bytes merge_mining_hash = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes block_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.Block block = 2; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.block_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes merge_mining_hash = 3; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.merge_mining_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes tari_unique_id = 4; - {PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _impl_.tari_unique_id_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Block>()}, - }}, {{ - }}, -}; - -::uint8_t* GetNewBlockResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetNewBlockResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - const std::string& _s = this->_internal_block_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Block block = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.block_, _impl_.block_->GetCachedSize(), target, stream); - } - - // bytes merge_mining_hash = 3; - if (!this->_internal_merge_mining_hash().empty()) { - const std::string& _s = this->_internal_merge_mining_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // bytes tari_unique_id = 4; - if (!this->_internal_tari_unique_id().empty()) { - const std::string& _s = this->_internal_tari_unique_id(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetNewBlockResult) - return target; -} - -::size_t GetNewBlockResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockResult) - ::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 block_hash = 1; - if (!this->_internal_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_hash()); - } - - // bytes merge_mining_hash = 3; - if (!this->_internal_merge_mining_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_merge_mining_hash()); - } - - // bytes tari_unique_id = 4; - if (!this->_internal_tari_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_tari_unique_id()); - } - - // .tari.rpc.Block block = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.block_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetNewBlockResult::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:tari.rpc.GetNewBlockResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_block_hash().empty()) { - _this->_internal_set_block_hash(from._internal_block_hash()); - } - if (!from._internal_merge_mining_hash().empty()) { - _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); - } - if (!from._internal_tari_unique_id().empty()) { - _this->_internal_set_tari_unique_id(from._internal_tari_unique_id()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.block_ != nullptr); - if (_this->_impl_.block_ == nullptr) { - _this->_impl_.block_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>(arena, *from._impl_.block_); - } else { - _this->_impl_.block_->MergeFrom(*from._impl_.block_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetNewBlockResult::CopyFrom(const GetNewBlockResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetNewBlockResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetNewBlockResult::IsInitialized() const { - return true; -} - -void GetNewBlockResult::InternalSwap(GetNewBlockResult* PROTOBUF_RESTRICT 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_.block_hash_, &other->_impl_.block_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.merge_mining_hash_, &other->_impl_.merge_mining_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tari_unique_id_, &other->_impl_.tari_unique_id_, arena); - swap(_impl_.block_, other->_impl_.block_); -} - -::google::protobuf::Metadata GetNewBlockResult::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[27]); -} -// =================================================================== - -class GetNewBlockBlobResult::_Internal { - public: -}; - -GetNewBlockBlobResult::GetNewBlockBlobResult(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetNewBlockBlobResult) -} -inline PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : block_hash_(arena, from.block_hash_), - header_(arena, from.header_), - block_body_(arena, from.block_body_), - merge_mining_hash_(arena, from.merge_mining_hash_), - utxo_mr_(arena, from.utxo_mr_), - tari_unique_id_(arena, from.tari_unique_id_), - _cached_size_{0} {} - -GetNewBlockBlobResult::GetNewBlockBlobResult( - ::google::protobuf::Arena* arena, - const GetNewBlockBlobResult& from) - : ::google::protobuf::Message(arena) { - GetNewBlockBlobResult* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetNewBlockBlobResult) -} -inline PROTOBUF_NDEBUG_INLINE GetNewBlockBlobResult::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : block_hash_(arena), - header_(arena), - block_body_(arena), - merge_mining_hash_(arena), - utxo_mr_(arena), - tari_unique_id_(arena), - _cached_size_{0} {} - -inline void GetNewBlockBlobResult::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetNewBlockBlobResult::~GetNewBlockBlobResult() { - // @@protoc_insertion_point(destructor:tari.rpc.GetNewBlockBlobResult) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetNewBlockBlobResult::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.block_hash_.Destroy(); - _impl_.header_.Destroy(); - _impl_.block_body_.Destroy(); - _impl_.merge_mining_hash_.Destroy(); - _impl_.utxo_mr_.Destroy(); - _impl_.tari_unique_id_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetNewBlockBlobResult::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_._cached_size_), - false, - }, - &GetNewBlockBlobResult::MergeImpl, - &GetNewBlockBlobResult::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetNewBlockBlobResult::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetNewBlockBlobResult) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_hash_.ClearToEmpty(); - _impl_.header_.ClearToEmpty(); - _impl_.block_body_.ClearToEmpty(); - _impl_.merge_mining_hash_.ClearToEmpty(); - _impl_.utxo_mr_.ClearToEmpty(); - _impl_.tari_unique_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetNewBlockBlobResult::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 0, 0, 2> GetNewBlockBlobResult::_table_ = { - { - 0, // no _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 - &_GetNewBlockBlobResult_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetNewBlockBlobResult>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes block_hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_hash_)}}, - // bytes header = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.header_)}}, - // bytes block_body = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_body_)}}, - // bytes merge_mining_hash = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.merge_mining_hash_)}}, - // bytes utxo_mr = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_)}}, - // bytes tari_unique_id = 6; - {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes block_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes header = 2; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.header_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes block_body = 3; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.block_body_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes merge_mining_hash = 4; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.merge_mining_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes utxo_mr = 5; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.utxo_mr_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes tari_unique_id = 6; - {PROTOBUF_FIELD_OFFSET(GetNewBlockBlobResult, _impl_.tari_unique_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetNewBlockBlobResult::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetNewBlockBlobResult) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes block_hash = 1; - if (!this->_internal_block_hash().empty()) { - const std::string& _s = this->_internal_block_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes header = 2; - if (!this->_internal_header().empty()) { - const std::string& _s = this->_internal_header(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes block_body = 3; - if (!this->_internal_block_body().empty()) { - const std::string& _s = this->_internal_block_body(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // bytes merge_mining_hash = 4; - if (!this->_internal_merge_mining_hash().empty()) { - const std::string& _s = this->_internal_merge_mining_hash(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // bytes utxo_mr = 5; - if (!this->_internal_utxo_mr().empty()) { - const std::string& _s = this->_internal_utxo_mr(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // bytes tari_unique_id = 6; - if (!this->_internal_tari_unique_id().empty()) { - const std::string& _s = this->_internal_tari_unique_id(); - target = stream->WriteBytesMaybeAliased(6, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetNewBlockBlobResult) - return target; -} - -::size_t GetNewBlockBlobResult::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetNewBlockBlobResult) - ::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 block_hash = 1; - if (!this->_internal_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_hash()); - } - - // bytes header = 2; - if (!this->_internal_header().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_header()); - } - - // bytes block_body = 3; - if (!this->_internal_block_body().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_block_body()); - } - - // bytes merge_mining_hash = 4; - if (!this->_internal_merge_mining_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_merge_mining_hash()); - } - - // bytes utxo_mr = 5; - if (!this->_internal_utxo_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_utxo_mr()); - } - - // bytes tari_unique_id = 6; - if (!this->_internal_tari_unique_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_tari_unique_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetNewBlockBlobResult::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:tari.rpc.GetNewBlockBlobResult) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_block_hash().empty()) { - _this->_internal_set_block_hash(from._internal_block_hash()); - } - if (!from._internal_header().empty()) { - _this->_internal_set_header(from._internal_header()); - } - if (!from._internal_block_body().empty()) { - _this->_internal_set_block_body(from._internal_block_body()); - } - if (!from._internal_merge_mining_hash().empty()) { - _this->_internal_set_merge_mining_hash(from._internal_merge_mining_hash()); - } - if (!from._internal_utxo_mr().empty()) { - _this->_internal_set_utxo_mr(from._internal_utxo_mr()); - } - if (!from._internal_tari_unique_id().empty()) { - _this->_internal_set_tari_unique_id(from._internal_tari_unique_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetNewBlockBlobResult::CopyFrom(const GetNewBlockBlobResult& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetNewBlockBlobResult) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetNewBlockBlobResult::IsInitialized() const { - return true; -} - -void GetNewBlockBlobResult::InternalSwap(GetNewBlockBlobResult* 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_.block_hash_, &other->_impl_.block_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_, &other->_impl_.header_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.block_body_, &other->_impl_.block_body_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.merge_mining_hash_, &other->_impl_.merge_mining_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.utxo_mr_, &other->_impl_.utxo_mr_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.tari_unique_id_, &other->_impl_.tari_unique_id_, arena); -} - -::google::protobuf::Metadata GetNewBlockBlobResult::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[28]); -} -// =================================================================== - -class MinerData::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MinerData, _impl_._has_bits_); -}; - -void MinerData::clear_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.algo_ != nullptr) _impl_.algo_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -MinerData::MinerData(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.MinerData) -} -inline PROTOBUF_NDEBUG_INLINE MinerData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -MinerData::MinerData( - ::google::protobuf::Arena* arena, - const MinerData& from) - : ::google::protobuf::Message(arena) { - MinerData* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.algo_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>( - arena, *from._impl_.algo_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, target_difficulty_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, target_difficulty_), - offsetof(Impl_, total_fees_) - - offsetof(Impl_, target_difficulty_) + - sizeof(Impl_::total_fees_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.MinerData) -} -inline PROTOBUF_NDEBUG_INLINE MinerData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void MinerData::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, algo_), - 0, - offsetof(Impl_, total_fees_) - - offsetof(Impl_, algo_) + - sizeof(Impl_::total_fees_)); -} -MinerData::~MinerData() { - // @@protoc_insertion_point(destructor:tari.rpc.MinerData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void MinerData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.algo_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -MinerData::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(MinerData, _impl_._cached_size_), - false, - }, - &MinerData::MergeImpl, - &MinerData::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void MinerData::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.MinerData) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.algo_ != nullptr); - _impl_.algo_->Clear(); - } - ::memset(&_impl_.target_difficulty_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.total_fees_) - - reinterpret_cast(&_impl_.target_difficulty_)) + sizeof(_impl_.total_fees_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MinerData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 4, 1, 0, 2> MinerData::_table_ = { - { - PROTOBUF_FIELD_OFFSET(MinerData, _impl_._has_bits_), - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967272, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_MinerData_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::MinerData>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.PowAlgo algo = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.algo_)}}, - // uint64 target_difficulty = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.target_difficulty_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.target_difficulty_)}}, - // uint64 reward = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.reward_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.reward_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 total_fees = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MinerData, _impl_.total_fees_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(MinerData, _impl_.total_fees_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.PowAlgo algo = 1; - {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.algo_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 target_difficulty = 2; - {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.target_difficulty_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 reward = 3; - {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.reward_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 total_fees = 5; - {PROTOBUF_FIELD_OFFSET(MinerData, _impl_.total_fees_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>()}, - }}, {{ - }}, -}; - -::uint8_t* MinerData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.MinerData) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.PowAlgo algo = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.algo_, _impl_.algo_->GetCachedSize(), target, stream); - } - - // uint64 target_difficulty = 2; - if (this->_internal_target_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_target_difficulty(), target); - } - - // uint64 reward = 3; - if (this->_internal_reward() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_reward(), target); - } - - // uint64 total_fees = 5; - if (this->_internal_total_fees() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_total_fees(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.MinerData) - return target; -} - -::size_t MinerData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.MinerData) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.PowAlgo algo = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.algo_); - } - - // uint64 target_difficulty = 2; - if (this->_internal_target_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_target_difficulty()); - } - - // uint64 reward = 3; - if (this->_internal_reward() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_reward()); - } - - // uint64 total_fees = 5; - if (this->_internal_total_fees() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_total_fees()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void MinerData::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:tari.rpc.MinerData) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.algo_ != nullptr); - if (_this->_impl_.algo_ == nullptr) { - _this->_impl_.algo_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::PowAlgo>(arena, *from._impl_.algo_); - } else { - _this->_impl_.algo_->MergeFrom(*from._impl_.algo_); - } - } - if (from._internal_target_difficulty() != 0) { - _this->_impl_.target_difficulty_ = from._impl_.target_difficulty_; - } - if (from._internal_reward() != 0) { - _this->_impl_.reward_ = from._impl_.reward_; - } - if (from._internal_total_fees() != 0) { - _this->_impl_.total_fees_ = from._impl_.total_fees_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void MinerData::CopyFrom(const MinerData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.MinerData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool MinerData::IsInitialized() const { - return true; -} - -void MinerData::InternalSwap(MinerData* PROTOBUF_RESTRICT 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(MinerData, _impl_.total_fees_) - + sizeof(MinerData::_impl_.total_fees_) - - PROTOBUF_FIELD_OFFSET(MinerData, _impl_.algo_)>( - reinterpret_cast(&_impl_.algo_), - reinterpret_cast(&other->_impl_.algo_)); -} - -::google::protobuf::Metadata MinerData::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[29]); -} -// =================================================================== - -class SearchKernelsRequest::_Internal { - public: -}; - -void SearchKernelsRequest::clear_signatures() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signatures_.Clear(); -} -SearchKernelsRequest::SearchKernelsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SearchKernelsRequest) -} -inline PROTOBUF_NDEBUG_INLINE SearchKernelsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : signatures_{visibility, arena, from.signatures_}, - _cached_size_{0} {} - -SearchKernelsRequest::SearchKernelsRequest( - ::google::protobuf::Arena* arena, - const SearchKernelsRequest& from) - : ::google::protobuf::Message(arena) { - SearchKernelsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.SearchKernelsRequest) -} -inline PROTOBUF_NDEBUG_INLINE SearchKernelsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : signatures_{visibility, arena}, - _cached_size_{0} {} - -inline void SearchKernelsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SearchKernelsRequest::~SearchKernelsRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.SearchKernelsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SearchKernelsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SearchKernelsRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SearchKernelsRequest, _impl_._cached_size_), - false, - }, - &SearchKernelsRequest::MergeImpl, - &SearchKernelsRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SearchKernelsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SearchKernelsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.signatures_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SearchKernelsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SearchKernelsRequest::_table_ = { - { - 0, // no _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SearchKernelsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SearchKernelsRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .tari.rpc.Signature signatures = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SearchKernelsRequest, _impl_.signatures_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .tari.rpc.Signature signatures = 1; - {PROTOBUF_FIELD_OFFSET(SearchKernelsRequest, _impl_.signatures_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ - }}, -}; - -::uint8_t* SearchKernelsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SearchKernelsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .tari.rpc.Signature signatures = 1; - for (unsigned i = 0, n = static_cast( - this->_internal_signatures_size()); - i < n; i++) { - const auto& repfield = this->_internal_signatures().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SearchKernelsRequest) - return target; -} - -::size_t SearchKernelsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SearchKernelsRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .tari.rpc.Signature signatures = 1; - total_size += 1UL * this->_internal_signatures_size(); - for (const auto& msg : this->_internal_signatures()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SearchKernelsRequest::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:tari.rpc.SearchKernelsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_signatures()->MergeFrom( - from._internal_signatures()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SearchKernelsRequest::CopyFrom(const SearchKernelsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SearchKernelsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SearchKernelsRequest::IsInitialized() const { - return true; -} - -void SearchKernelsRequest::InternalSwap(SearchKernelsRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.signatures_.InternalSwap(&other->_impl_.signatures_); -} - -::google::protobuf::Metadata SearchKernelsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[30]); -} -// =================================================================== - -class SearchUtxosRequest::_Internal { - public: -}; - -SearchUtxosRequest::SearchUtxosRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SearchUtxosRequest) -} -inline PROTOBUF_NDEBUG_INLINE SearchUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : commitments_{visibility, arena, from.commitments_}, - _cached_size_{0} {} - -SearchUtxosRequest::SearchUtxosRequest( - ::google::protobuf::Arena* arena, - const SearchUtxosRequest& from) - : ::google::protobuf::Message(arena) { - SearchUtxosRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.SearchUtxosRequest) -} -inline PROTOBUF_NDEBUG_INLINE SearchUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : commitments_{visibility, arena}, - _cached_size_{0} {} - -inline void SearchUtxosRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SearchUtxosRequest::~SearchUtxosRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.SearchUtxosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SearchUtxosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SearchUtxosRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SearchUtxosRequest, _impl_._cached_size_), - false, - }, - &SearchUtxosRequest::MergeImpl, - &SearchUtxosRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SearchUtxosRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SearchUtxosRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.commitments_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SearchUtxosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SearchUtxosRequest::_table_ = { - { - 0, // no _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 - &_SearchUtxosRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SearchUtxosRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated bytes commitments = 1; - {::_pbi::TcParser::FastBR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(SearchUtxosRequest, _impl_.commitments_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated bytes commitments = 1; - {PROTOBUF_FIELD_OFFSET(SearchUtxosRequest, _impl_.commitments_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SearchUtxosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SearchUtxosRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated bytes commitments = 1; - for (int i = 0, n = this->_internal_commitments_size(); i < n; ++i) { - const auto& s = this->_internal_commitments().Get(i); - target = stream->WriteBytes(1, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SearchUtxosRequest) - return target; -} - -::size_t SearchUtxosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SearchUtxosRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated bytes commitments = 1; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_commitments().size()); - for (int i = 0, n = _internal_commitments().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_commitments().Get(i)); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SearchUtxosRequest::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:tari.rpc.SearchUtxosRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_commitments()->MergeFrom(from._internal_commitments()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SearchUtxosRequest::CopyFrom(const SearchUtxosRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SearchUtxosRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SearchUtxosRequest::IsInitialized() const { - return true; -} - -void SearchUtxosRequest::InternalSwap(SearchUtxosRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.commitments_.InternalSwap(&other->_impl_.commitments_); -} - -::google::protobuf::Metadata SearchUtxosRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[31]); -} -// =================================================================== - -class FetchMatchingUtxosRequest::_Internal { - public: -}; - -FetchMatchingUtxosRequest::FetchMatchingUtxosRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.FetchMatchingUtxosRequest) -} -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : hashes_{visibility, arena, from.hashes_}, - _cached_size_{0} {} - -FetchMatchingUtxosRequest::FetchMatchingUtxosRequest( - ::google::protobuf::Arena* arena, - const FetchMatchingUtxosRequest& from) - : ::google::protobuf::Message(arena) { - FetchMatchingUtxosRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.FetchMatchingUtxosRequest) -} -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : hashes_{visibility, arena}, - _cached_size_{0} {} - -inline void FetchMatchingUtxosRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -FetchMatchingUtxosRequest::~FetchMatchingUtxosRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.FetchMatchingUtxosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FetchMatchingUtxosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -FetchMatchingUtxosRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosRequest, _impl_._cached_size_), - false, - }, - &FetchMatchingUtxosRequest::MergeImpl, - &FetchMatchingUtxosRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void FetchMatchingUtxosRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.FetchMatchingUtxosRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hashes_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FetchMatchingUtxosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> FetchMatchingUtxosRequest::_table_ = { - { - 0, // no _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 - &_FetchMatchingUtxosRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::FetchMatchingUtxosRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated bytes hashes = 1; - {::_pbi::TcParser::FastBR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosRequest, _impl_.hashes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated bytes hashes = 1; - {PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosRequest, _impl_.hashes_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* FetchMatchingUtxosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.FetchMatchingUtxosRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated bytes hashes = 1; - for (int i = 0, n = this->_internal_hashes_size(); i < n; ++i) { - const auto& s = this->_internal_hashes().Get(i); - target = stream->WriteBytes(1, s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.FetchMatchingUtxosRequest) - return target; -} - -::size_t FetchMatchingUtxosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.FetchMatchingUtxosRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated bytes hashes = 1; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_hashes().size()); - for (int i = 0, n = _internal_hashes().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_hashes().Get(i)); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void FetchMatchingUtxosRequest::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:tari.rpc.FetchMatchingUtxosRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_hashes()->MergeFrom(from._internal_hashes()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void FetchMatchingUtxosRequest::CopyFrom(const FetchMatchingUtxosRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.FetchMatchingUtxosRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool FetchMatchingUtxosRequest::IsInitialized() const { - return true; -} - -void FetchMatchingUtxosRequest::InternalSwap(FetchMatchingUtxosRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.hashes_.InternalSwap(&other->_impl_.hashes_); -} - -::google::protobuf::Metadata FetchMatchingUtxosRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[32]); -} -// =================================================================== - -class FetchMatchingUtxosResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._has_bits_); -}; - -void FetchMatchingUtxosResponse::clear_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.output_ != nullptr) _impl_.output_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -FetchMatchingUtxosResponse::FetchMatchingUtxosResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.FetchMatchingUtxosResponse) -} -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -FetchMatchingUtxosResponse::FetchMatchingUtxosResponse( - ::google::protobuf::Arena* arena, - const FetchMatchingUtxosResponse& from) - : ::google::protobuf::Message(arena) { - FetchMatchingUtxosResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.output_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TransactionOutput>( - arena, *from._impl_.output_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.FetchMatchingUtxosResponse) -} -inline PROTOBUF_NDEBUG_INLINE FetchMatchingUtxosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void FetchMatchingUtxosResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.output_ = {}; -} -FetchMatchingUtxosResponse::~FetchMatchingUtxosResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.FetchMatchingUtxosResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void FetchMatchingUtxosResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.output_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -FetchMatchingUtxosResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_._cached_size_), - false, - }, - &FetchMatchingUtxosResponse::MergeImpl, - &FetchMatchingUtxosResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void FetchMatchingUtxosResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.FetchMatchingUtxosResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.output_ != nullptr); - _impl_.output_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* FetchMatchingUtxosResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> FetchMatchingUtxosResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_FetchMatchingUtxosResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::FetchMatchingUtxosResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.TransactionOutput output = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_.output_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.TransactionOutput output = 1; - {PROTOBUF_FIELD_OFFSET(FetchMatchingUtxosResponse, _impl_.output_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, - }}, {{ - }}, -}; - -::uint8_t* FetchMatchingUtxosResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.FetchMatchingUtxosResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.TransactionOutput output = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.output_, _impl_.output_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.FetchMatchingUtxosResponse) - return target; -} - -::size_t FetchMatchingUtxosResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.FetchMatchingUtxosResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.TransactionOutput output = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.output_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void FetchMatchingUtxosResponse::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:tari.rpc.FetchMatchingUtxosResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.output_ != nullptr); - if (_this->_impl_.output_ == nullptr) { - _this->_impl_.output_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::TransactionOutput>(arena, *from._impl_.output_); - } else { - _this->_impl_.output_->MergeFrom(*from._impl_.output_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void FetchMatchingUtxosResponse::CopyFrom(const FetchMatchingUtxosResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.FetchMatchingUtxosResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool FetchMatchingUtxosResponse::IsInitialized() const { - return true; -} - -void FetchMatchingUtxosResponse::InternalSwap(FetchMatchingUtxosResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.output_, other->_impl_.output_); -} - -::google::protobuf::Metadata FetchMatchingUtxosResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[33]); -} -// =================================================================== - -class GetPeersResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._has_bits_); -}; - -void GetPeersResponse::clear_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.peer_ != nullptr) _impl_.peer_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -GetPeersResponse::GetPeersResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetPeersResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetPeersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetPeersResponse::GetPeersResponse( - ::google::protobuf::Arena* arena, - const GetPeersResponse& from) - : ::google::protobuf::Message(arena) { - GetPeersResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.peer_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Peer>( - arena, *from._impl_.peer_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetPeersResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetPeersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetPeersResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.peer_ = {}; -} -GetPeersResponse::~GetPeersResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetPeersResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetPeersResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.peer_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetPeersResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_._cached_size_), - false, - }, - &GetPeersResponse::MergeImpl, - &GetPeersResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetPeersResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetPeersResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.peer_ != nullptr); - _impl_.peer_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetPeersResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetPeersResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetPeersResponse, _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetPeersResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetPeersResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.Peer peer = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_.peer_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.Peer peer = 1; - {PROTOBUF_FIELD_OFFSET(GetPeersResponse, _impl_.peer_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Peer>()}, - }}, {{ - }}, -}; - -::uint8_t* GetPeersResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetPeersResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Peer peer = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.peer_, _impl_.peer_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetPeersResponse) - return target; -} - -::size_t GetPeersResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetPeersResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.Peer peer = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.peer_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetPeersResponse::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:tari.rpc.GetPeersResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.peer_ != nullptr); - if (_this->_impl_.peer_ == nullptr) { - _this->_impl_.peer_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Peer>(arena, *from._impl_.peer_); - } else { - _this->_impl_.peer_->MergeFrom(*from._impl_.peer_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetPeersResponse::CopyFrom(const GetPeersResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetPeersResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetPeersResponse::IsInitialized() const { - return true; -} - -void GetPeersResponse::InternalSwap(GetPeersResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.peer_, other->_impl_.peer_); -} - -::google::protobuf::Metadata GetPeersResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[34]); -} -// =================================================================== - -class GetPeersRequest::_Internal { - public: -}; - -GetPeersRequest::GetPeersRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetPeersRequest) -} -GetPeersRequest::GetPeersRequest( - ::google::protobuf::Arena* arena, - const GetPeersRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetPeersRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetPeersRequest) -} - - - - - - - - - -::google::protobuf::Metadata GetPeersRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[35]); -} -// =================================================================== - -class SubmitTransactionRequest::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._has_bits_); -}; - -void SubmitTransactionRequest::clear_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.transaction_ != nullptr) _impl_.transaction_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -SubmitTransactionRequest::SubmitTransactionRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SubmitTransactionRequest) -} -inline PROTOBUF_NDEBUG_INLINE SubmitTransactionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -SubmitTransactionRequest::SubmitTransactionRequest( - ::google::protobuf::Arena* arena, - const SubmitTransactionRequest& from) - : ::google::protobuf::Message(arena) { - SubmitTransactionRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.transaction_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>( - arena, *from._impl_.transaction_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.SubmitTransactionRequest) -} -inline PROTOBUF_NDEBUG_INLINE SubmitTransactionRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SubmitTransactionRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.transaction_ = {}; -} -SubmitTransactionRequest::~SubmitTransactionRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.SubmitTransactionRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SubmitTransactionRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.transaction_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SubmitTransactionRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_._cached_size_), - false, - }, - &SubmitTransactionRequest::MergeImpl, - &SubmitTransactionRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SubmitTransactionRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitTransactionRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.transaction_ != nullptr); - _impl_.transaction_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SubmitTransactionRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SubmitTransactionRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SubmitTransactionRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SubmitTransactionRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.Transaction transaction = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_.transaction_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.Transaction transaction = 1; - {PROTOBUF_FIELD_OFFSET(SubmitTransactionRequest, _impl_.transaction_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Transaction>()}, - }}, {{ - }}, -}; - -::uint8_t* SubmitTransactionRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SubmitTransactionRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Transaction transaction = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.transaction_, _impl_.transaction_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SubmitTransactionRequest) - return target; -} - -::size_t SubmitTransactionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitTransactionRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.Transaction transaction = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.transaction_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SubmitTransactionRequest::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:tari.rpc.SubmitTransactionRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.transaction_ != nullptr); - if (_this->_impl_.transaction_ == nullptr) { - _this->_impl_.transaction_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>(arena, *from._impl_.transaction_); - } else { - _this->_impl_.transaction_->MergeFrom(*from._impl_.transaction_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SubmitTransactionRequest::CopyFrom(const SubmitTransactionRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SubmitTransactionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SubmitTransactionRequest::IsInitialized() const { - return true; -} - -void SubmitTransactionRequest::InternalSwap(SubmitTransactionRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.transaction_, other->_impl_.transaction_); -} - -::google::protobuf::Metadata SubmitTransactionRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[36]); -} -// =================================================================== - -class SubmitTransactionResponse::_Internal { - public: -}; - -SubmitTransactionResponse::SubmitTransactionResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SubmitTransactionResponse) -} -SubmitTransactionResponse::SubmitTransactionResponse( - ::google::protobuf::Arena* arena, const SubmitTransactionResponse& from) - : SubmitTransactionResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE SubmitTransactionResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SubmitTransactionResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -SubmitTransactionResponse::~SubmitTransactionResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.SubmitTransactionResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SubmitTransactionResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SubmitTransactionResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_._cached_size_), - false, - }, - &SubmitTransactionResponse::MergeImpl, - &SubmitTransactionResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SubmitTransactionResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SubmitTransactionResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SubmitTransactionResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SubmitTransactionResponse::_table_ = { - { - 0, // no _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 - &_SubmitTransactionResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SubmitTransactionResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.SubmitTransactionResult result = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(SubmitTransactionResponse, _impl_.result_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.SubmitTransactionResult result = 1; - {PROTOBUF_FIELD_OFFSET(SubmitTransactionResponse, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SubmitTransactionResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SubmitTransactionResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .tari.rpc.SubmitTransactionResult result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SubmitTransactionResponse) - return target; -} - -::size_t SubmitTransactionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SubmitTransactionResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.SubmitTransactionResult result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SubmitTransactionResponse::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:tari.rpc.SubmitTransactionResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_result() != 0) { - _this->_impl_.result_ = from._impl_.result_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SubmitTransactionResponse::CopyFrom(const SubmitTransactionResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SubmitTransactionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SubmitTransactionResponse::IsInitialized() const { - return true; -} - -void SubmitTransactionResponse::InternalSwap(SubmitTransactionResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.result_, other->_impl_.result_); -} - -::google::protobuf::Metadata SubmitTransactionResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[37]); -} -// =================================================================== - -class GetMempoolTransactionsRequest::_Internal { - public: -}; - -GetMempoolTransactionsRequest::GetMempoolTransactionsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetMempoolTransactionsRequest) -} -GetMempoolTransactionsRequest::GetMempoolTransactionsRequest( - ::google::protobuf::Arena* arena, - const GetMempoolTransactionsRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetMempoolTransactionsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetMempoolTransactionsRequest) -} - - - - - - - - - -::google::protobuf::Metadata GetMempoolTransactionsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[38]); -} -// =================================================================== - -class GetMempoolTransactionsResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._has_bits_); -}; - -void GetMempoolTransactionsResponse::clear_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.transaction_ != nullptr) _impl_.transaction_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -GetMempoolTransactionsResponse::GetMempoolTransactionsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetMempoolTransactionsResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetMempoolTransactionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetMempoolTransactionsResponse::GetMempoolTransactionsResponse( - ::google::protobuf::Arena* arena, - const GetMempoolTransactionsResponse& from) - : ::google::protobuf::Message(arena) { - GetMempoolTransactionsResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.transaction_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>( - arena, *from._impl_.transaction_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetMempoolTransactionsResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetMempoolTransactionsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetMempoolTransactionsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.transaction_ = {}; -} -GetMempoolTransactionsResponse::~GetMempoolTransactionsResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetMempoolTransactionsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetMempoolTransactionsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.transaction_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetMempoolTransactionsResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_._cached_size_), - false, - }, - &GetMempoolTransactionsResponse::MergeImpl, - &GetMempoolTransactionsResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetMempoolTransactionsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetMempoolTransactionsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.transaction_ != nullptr); - _impl_.transaction_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetMempoolTransactionsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> GetMempoolTransactionsResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetMempoolTransactionsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetMempoolTransactionsResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.Transaction transaction = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_.transaction_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.Transaction transaction = 1; - {PROTOBUF_FIELD_OFFSET(GetMempoolTransactionsResponse, _impl_.transaction_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Transaction>()}, - }}, {{ - }}, -}; - -::uint8_t* GetMempoolTransactionsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetMempoolTransactionsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Transaction transaction = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.transaction_, _impl_.transaction_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetMempoolTransactionsResponse) - return target; -} - -::size_t GetMempoolTransactionsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetMempoolTransactionsResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.Transaction transaction = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.transaction_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetMempoolTransactionsResponse::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:tari.rpc.GetMempoolTransactionsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.transaction_ != nullptr); - if (_this->_impl_.transaction_ == nullptr) { - _this->_impl_.transaction_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Transaction>(arena, *from._impl_.transaction_); - } else { - _this->_impl_.transaction_->MergeFrom(*from._impl_.transaction_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetMempoolTransactionsResponse::CopyFrom(const GetMempoolTransactionsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetMempoolTransactionsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetMempoolTransactionsResponse::IsInitialized() const { - return true; -} - -void GetMempoolTransactionsResponse::InternalSwap(GetMempoolTransactionsResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.transaction_, other->_impl_.transaction_); -} - -::google::protobuf::Metadata GetMempoolTransactionsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[39]); -} -// =================================================================== - -class TransactionStateRequest::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._has_bits_); -}; - -void TransactionStateRequest::clear_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.excess_sig_ != nullptr) _impl_.excess_sig_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -TransactionStateRequest::TransactionStateRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionStateRequest) -} -inline PROTOBUF_NDEBUG_INLINE TransactionStateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -TransactionStateRequest::TransactionStateRequest( - ::google::protobuf::Arena* arena, - const TransactionStateRequest& from) - : ::google::protobuf::Message(arena) { - TransactionStateRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( - arena, *from._impl_.excess_sig_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionStateRequest) -} -inline PROTOBUF_NDEBUG_INLINE TransactionStateRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TransactionStateRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.excess_sig_ = {}; -} -TransactionStateRequest::~TransactionStateRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.TransactionStateRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransactionStateRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.excess_sig_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TransactionStateRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_._cached_size_), - false, - }, - &TransactionStateRequest::MergeImpl, - &TransactionStateRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TransactionStateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionStateRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.excess_sig_ != nullptr); - _impl_.excess_sig_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransactionStateRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> TransactionStateRequest::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransactionStateRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TransactionStateRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.Signature excess_sig = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_.excess_sig_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.Signature excess_sig = 1; - {PROTOBUF_FIELD_OFFSET(TransactionStateRequest, _impl_.excess_sig_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ - }}, -}; - -::uint8_t* TransactionStateRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionStateRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Signature excess_sig = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.excess_sig_, _impl_.excess_sig_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionStateRequest) - return target; -} - -::size_t TransactionStateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionStateRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.Signature excess_sig = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.excess_sig_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TransactionStateRequest::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:tari.rpc.TransactionStateRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.excess_sig_ != nullptr); - if (_this->_impl_.excess_sig_ == nullptr) { - _this->_impl_.excess_sig_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.excess_sig_); - } else { - _this->_impl_.excess_sig_->MergeFrom(*from._impl_.excess_sig_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TransactionStateRequest::CopyFrom(const TransactionStateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TransactionStateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TransactionStateRequest::IsInitialized() const { - return true; -} - -void TransactionStateRequest::InternalSwap(TransactionStateRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.excess_sig_, other->_impl_.excess_sig_); -} - -::google::protobuf::Metadata TransactionStateRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[40]); -} -// =================================================================== - -class TransactionStateResponse::_Internal { - public: -}; - -TransactionStateResponse::TransactionStateResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionStateResponse) -} -TransactionStateResponse::TransactionStateResponse( - ::google::protobuf::Arena* arena, const TransactionStateResponse& from) - : TransactionStateResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE TransactionStateResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void TransactionStateResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.result_ = {}; -} -TransactionStateResponse::~TransactionStateResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.TransactionStateResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransactionStateResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TransactionStateResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_._cached_size_), - false, - }, - &TransactionStateResponse::MergeImpl, - &TransactionStateResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TransactionStateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionStateResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.result_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransactionStateResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> TransactionStateResponse::_table_ = { - { - 0, // no _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 - &_TransactionStateResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TransactionStateResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.TransactionLocation result = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionStateResponse, _impl_.result_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_.result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.TransactionLocation result = 1; - {PROTOBUF_FIELD_OFFSET(TransactionStateResponse, _impl_.result_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* TransactionStateResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionStateResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .tari.rpc.TransactionLocation result = 1; - if (this->_internal_result() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_result(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionStateResponse) - return target; -} - -::size_t TransactionStateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionStateResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.TransactionLocation result = 1; - if (this->_internal_result() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_result()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TransactionStateResponse::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:tari.rpc.TransactionStateResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_result() != 0) { - _this->_impl_.result_ = from._impl_.result_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TransactionStateResponse::CopyFrom(const TransactionStateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TransactionStateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TransactionStateResponse::IsInitialized() const { - return true; -} - -void TransactionStateResponse::InternalSwap(TransactionStateResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.result_, other->_impl_.result_); -} - -::google::protobuf::Metadata TransactionStateResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[41]); -} -// =================================================================== - -class MempoolStatsResponse::_Internal { - public: -}; - -MempoolStatsResponse::MempoolStatsResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.MempoolStatsResponse) -} -MempoolStatsResponse::MempoolStatsResponse( - ::google::protobuf::Arena* arena, const MempoolStatsResponse& from) - : MempoolStatsResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE MempoolStatsResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void MempoolStatsResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, unconfirmed_txs_), - 0, - offsetof(Impl_, unconfirmed_weight_) - - offsetof(Impl_, unconfirmed_txs_) + - sizeof(Impl_::unconfirmed_weight_)); -} -MempoolStatsResponse::~MempoolStatsResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.MempoolStatsResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void MempoolStatsResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -MempoolStatsResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_._cached_size_), - false, - }, - &MempoolStatsResponse::MergeImpl, - &MempoolStatsResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void MempoolStatsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.MempoolStatsResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.unconfirmed_txs_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.unconfirmed_weight_) - - reinterpret_cast(&_impl_.unconfirmed_txs_)) + sizeof(_impl_.unconfirmed_weight_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* MempoolStatsResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> MempoolStatsResponse::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967281, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_MempoolStatsResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::MempoolStatsResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 unconfirmed_weight = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.unconfirmed_weight_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 unconfirmed_txs = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.unconfirmed_txs_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_txs_)}}, - // uint64 reorg_txs = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(MempoolStatsResponse, _impl_.reorg_txs_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.reorg_txs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 unconfirmed_txs = 2; - {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_txs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 reorg_txs = 3; - {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.reorg_txs_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 unconfirmed_weight = 4; - {PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* MempoolStatsResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.MempoolStatsResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 unconfirmed_txs = 2; - if (this->_internal_unconfirmed_txs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_unconfirmed_txs(), target); - } - - // uint64 reorg_txs = 3; - if (this->_internal_reorg_txs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_reorg_txs(), target); - } - - // uint64 unconfirmed_weight = 4; - if (this->_internal_unconfirmed_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_unconfirmed_weight(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.MempoolStatsResponse) - return target; -} - -::size_t MempoolStatsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.MempoolStatsResponse) - ::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 unconfirmed_txs = 2; - if (this->_internal_unconfirmed_txs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_unconfirmed_txs()); - } - - // uint64 reorg_txs = 3; - if (this->_internal_reorg_txs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_reorg_txs()); - } - - // uint64 unconfirmed_weight = 4; - if (this->_internal_unconfirmed_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_unconfirmed_weight()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void MempoolStatsResponse::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:tari.rpc.MempoolStatsResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_unconfirmed_txs() != 0) { - _this->_impl_.unconfirmed_txs_ = from._impl_.unconfirmed_txs_; - } - if (from._internal_reorg_txs() != 0) { - _this->_impl_.reorg_txs_ = from._impl_.reorg_txs_; - } - if (from._internal_unconfirmed_weight() != 0) { - _this->_impl_.unconfirmed_weight_ = from._impl_.unconfirmed_weight_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void MempoolStatsResponse::CopyFrom(const MempoolStatsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.MempoolStatsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool MempoolStatsResponse::IsInitialized() const { - return true; -} - -void MempoolStatsResponse::InternalSwap(MempoolStatsResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_weight_) - + sizeof(MempoolStatsResponse::_impl_.unconfirmed_weight_) - - PROTOBUF_FIELD_OFFSET(MempoolStatsResponse, _impl_.unconfirmed_txs_)>( - reinterpret_cast(&_impl_.unconfirmed_txs_), - reinterpret_cast(&other->_impl_.unconfirmed_txs_)); -} - -::google::protobuf::Metadata MempoolStatsResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[42]); -} -// =================================================================== - -class GetActiveValidatorNodesRequest::_Internal { - public: -}; - -GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetActiveValidatorNodesRequest) -} -GetActiveValidatorNodesRequest::GetActiveValidatorNodesRequest( - ::google::protobuf::Arena* arena, const GetActiveValidatorNodesRequest& from) - : GetActiveValidatorNodesRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetActiveValidatorNodesRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.height_ = {}; -} -GetActiveValidatorNodesRequest::~GetActiveValidatorNodesRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetActiveValidatorNodesRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetActiveValidatorNodesRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetActiveValidatorNodesRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_._cached_size_), - false, - }, - &GetActiveValidatorNodesRequest::MergeImpl, - &GetActiveValidatorNodesRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetActiveValidatorNodesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetActiveValidatorNodesRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetActiveValidatorNodesRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> GetActiveValidatorNodesRequest::_table_ = { - { - 0, // no _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 - &_GetActiveValidatorNodesRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetActiveValidatorNodesRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetActiveValidatorNodesRequest, _impl_.height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.height_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 height = 1; - {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesRequest, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetActiveValidatorNodesRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetActiveValidatorNodesRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 height = 1; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_height(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetActiveValidatorNodesRequest) - return target; -} - -::size_t GetActiveValidatorNodesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetActiveValidatorNodesRequest) - ::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 height = 1; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetActiveValidatorNodesRequest::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:tari.rpc.GetActiveValidatorNodesRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetActiveValidatorNodesRequest::CopyFrom(const GetActiveValidatorNodesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetActiveValidatorNodesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetActiveValidatorNodesRequest::IsInitialized() const { - return true; -} - -void GetActiveValidatorNodesRequest::InternalSwap(GetActiveValidatorNodesRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.height_, other->_impl_.height_); -} - -::google::protobuf::Metadata GetActiveValidatorNodesRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[43]); -} -// =================================================================== - -class GetActiveValidatorNodesResponse::_Internal { - public: -}; - -GetActiveValidatorNodesResponse::GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetActiveValidatorNodesResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : shard_key_(arena, from.shard_key_), - public_key_(arena, from.public_key_), - _cached_size_{0} {} - -GetActiveValidatorNodesResponse::GetActiveValidatorNodesResponse( - ::google::protobuf::Arena* arena, - const GetActiveValidatorNodesResponse& from) - : ::google::protobuf::Message(arena) { - GetActiveValidatorNodesResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetActiveValidatorNodesResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetActiveValidatorNodesResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : shard_key_(arena), - public_key_(arena), - _cached_size_{0} {} - -inline void GetActiveValidatorNodesResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetActiveValidatorNodesResponse::~GetActiveValidatorNodesResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetActiveValidatorNodesResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetActiveValidatorNodesResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.shard_key_.Destroy(); - _impl_.public_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetActiveValidatorNodesResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_._cached_size_), - false, - }, - &GetActiveValidatorNodesResponse::MergeImpl, - &GetActiveValidatorNodesResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetActiveValidatorNodesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetActiveValidatorNodesResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.shard_key_.ClearToEmpty(); - _impl_.public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetActiveValidatorNodesResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetActiveValidatorNodesResponse::_table_ = { - { - 0, // no _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 - &_GetActiveValidatorNodesResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetActiveValidatorNodesResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes public_key = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.public_key_)}}, - // bytes shard_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.shard_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes shard_key = 1; - {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.shard_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes public_key = 2; - {PROTOBUF_FIELD_OFFSET(GetActiveValidatorNodesResponse, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetActiveValidatorNodesResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetActiveValidatorNodesResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes shard_key = 1; - if (!this->_internal_shard_key().empty()) { - const std::string& _s = this->_internal_shard_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes public_key = 2; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetActiveValidatorNodesResponse) - return target; -} - -::size_t GetActiveValidatorNodesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetActiveValidatorNodesResponse) - ::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 shard_key = 1; - if (!this->_internal_shard_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_shard_key()); - } - - // bytes public_key = 2; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetActiveValidatorNodesResponse::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:tari.rpc.GetActiveValidatorNodesResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_shard_key().empty()) { - _this->_internal_set_shard_key(from._internal_shard_key()); - } - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetActiveValidatorNodesResponse::CopyFrom(const GetActiveValidatorNodesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetActiveValidatorNodesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetActiveValidatorNodesResponse::IsInitialized() const { - return true; -} - -void GetActiveValidatorNodesResponse::InternalSwap(GetActiveValidatorNodesResponse* 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_.shard_key_, &other->_impl_.shard_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); -} - -::google::protobuf::Metadata GetActiveValidatorNodesResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[44]); -} -// =================================================================== - -class GetShardKeyRequest::_Internal { - public: -}; - -GetShardKeyRequest::GetShardKeyRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetShardKeyRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetShardKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_key_(arena, from.public_key_), - _cached_size_{0} {} - -GetShardKeyRequest::GetShardKeyRequest( - ::google::protobuf::Arena* arena, - const GetShardKeyRequest& from) - : ::google::protobuf::Message(arena) { - GetShardKeyRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.height_ = from._impl_.height_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetShardKeyRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetShardKeyRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_key_(arena), - _cached_size_{0} {} - -inline void GetShardKeyRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.height_ = {}; -} -GetShardKeyRequest::~GetShardKeyRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetShardKeyRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetShardKeyRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetShardKeyRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_._cached_size_), - false, - }, - &GetShardKeyRequest::MergeImpl, - &GetShardKeyRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetShardKeyRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetShardKeyRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_key_.ClearToEmpty(); - _impl_.height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetShardKeyRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyRequest::_table_ = { - { - 0, // no _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 - &_GetShardKeyRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetShardKeyRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes public_key = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.public_key_)}}, - // uint64 height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetShardKeyRequest, _impl_.height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.height_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 height = 1; - {PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes public_key = 2; - {PROTOBUF_FIELD_OFFSET(GetShardKeyRequest, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetShardKeyRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetShardKeyRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 height = 1; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_height(), target); - } - - // bytes public_key = 2; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetShardKeyRequest) - return target; -} - -::size_t GetShardKeyRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetShardKeyRequest) - ::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 public_key = 2; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); - } - - // uint64 height = 1; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetShardKeyRequest::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:tari.rpc.GetShardKeyRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetShardKeyRequest::CopyFrom(const GetShardKeyRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetShardKeyRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetShardKeyRequest::IsInitialized() const { - return true; -} - -void GetShardKeyRequest::InternalSwap(GetShardKeyRequest* 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_.public_key_, &other->_impl_.public_key_, arena); - swap(_impl_.height_, other->_impl_.height_); -} - -::google::protobuf::Metadata GetShardKeyRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[45]); -} -// =================================================================== - -class GetShardKeyResponse::_Internal { - public: -}; - -GetShardKeyResponse::GetShardKeyResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetShardKeyResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetShardKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : shard_key_(arena, from.shard_key_), - _cached_size_{0} {} - -GetShardKeyResponse::GetShardKeyResponse( - ::google::protobuf::Arena* arena, - const GetShardKeyResponse& from) - : ::google::protobuf::Message(arena) { - GetShardKeyResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.found_ = from._impl_.found_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetShardKeyResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetShardKeyResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : shard_key_(arena), - _cached_size_{0} {} - -inline void GetShardKeyResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.found_ = {}; -} -GetShardKeyResponse::~GetShardKeyResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetShardKeyResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetShardKeyResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.shard_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetShardKeyResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_._cached_size_), - false, - }, - &GetShardKeyResponse::MergeImpl, - &GetShardKeyResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetShardKeyResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetShardKeyResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.shard_key_.ClearToEmpty(); - _impl_.found_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetShardKeyResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetShardKeyResponse::_table_ = { - { - 0, // no _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 - &_GetShardKeyResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetShardKeyResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bool found = 2; - {::_pbi::TcParser::SingularVarintNoZag1(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.found_)}}, - // bytes shard_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.shard_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes shard_key = 1; - {PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.shard_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bool found = 2; - {PROTOBUF_FIELD_OFFSET(GetShardKeyResponse, _impl_.found_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetShardKeyResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetShardKeyResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes shard_key = 1; - if (!this->_internal_shard_key().empty()) { - const std::string& _s = this->_internal_shard_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bool found = 2; - if (this->_internal_found() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 2, this->_internal_found(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetShardKeyResponse) - return target; -} - -::size_t GetShardKeyResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetShardKeyResponse) - ::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 shard_key = 1; - if (!this->_internal_shard_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_shard_key()); - } - - // bool found = 2; - if (this->_internal_found() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetShardKeyResponse::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:tari.rpc.GetShardKeyResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_shard_key().empty()) { - _this->_internal_set_shard_key(from._internal_shard_key()); - } - if (from._internal_found() != 0) { - _this->_impl_.found_ = from._impl_.found_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetShardKeyResponse::CopyFrom(const GetShardKeyResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetShardKeyResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetShardKeyResponse::IsInitialized() const { - return true; -} - -void GetShardKeyResponse::InternalSwap(GetShardKeyResponse* 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_.shard_key_, &other->_impl_.shard_key_, arena); - swap(_impl_.found_, other->_impl_.found_); -} - -::google::protobuf::Metadata GetShardKeyResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[46]); -} -// =================================================================== - -class GetTemplateRegistrationsRequest::_Internal { - public: -}; - -GetTemplateRegistrationsRequest::GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTemplateRegistrationsRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : start_hash_(arena, from.start_hash_), - _cached_size_{0} {} - -GetTemplateRegistrationsRequest::GetTemplateRegistrationsRequest( - ::google::protobuf::Arena* arena, - const GetTemplateRegistrationsRequest& from) - : ::google::protobuf::Message(arena) { - GetTemplateRegistrationsRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.count_ = from._impl_.count_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTemplateRegistrationsRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationsRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : start_hash_(arena), - _cached_size_{0} {} - -inline void GetTemplateRegistrationsRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.count_ = {}; -} -GetTemplateRegistrationsRequest::~GetTemplateRegistrationsRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetTemplateRegistrationsRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetTemplateRegistrationsRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.start_hash_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetTemplateRegistrationsRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_._cached_size_), - false, - }, - &GetTemplateRegistrationsRequest::MergeImpl, - &GetTemplateRegistrationsRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetTemplateRegistrationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTemplateRegistrationsRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.start_hash_.ClearToEmpty(); - _impl_.count_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTemplateRegistrationsRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetTemplateRegistrationsRequest::_table_ = { - { - 0, // no _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 - &_GetTemplateRegistrationsRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetTemplateRegistrationsRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 count = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetTemplateRegistrationsRequest, _impl_.count_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.count_)}}, - // bytes start_hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.start_hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes start_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.start_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 count = 2; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationsRequest, _impl_.count_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetTemplateRegistrationsRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTemplateRegistrationsRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes start_hash = 1; - if (!this->_internal_start_hash().empty()) { - const std::string& _s = this->_internal_start_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // uint64 count = 2; - if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_count(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTemplateRegistrationsRequest) - return target; -} - -::size_t GetTemplateRegistrationsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTemplateRegistrationsRequest) - ::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 start_hash = 1; - if (!this->_internal_start_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_start_hash()); - } - - // uint64 count = 2; - if (this->_internal_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_count()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetTemplateRegistrationsRequest::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:tari.rpc.GetTemplateRegistrationsRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_start_hash().empty()) { - _this->_internal_set_start_hash(from._internal_start_hash()); - } - if (from._internal_count() != 0) { - _this->_impl_.count_ = from._impl_.count_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetTemplateRegistrationsRequest::CopyFrom(const GetTemplateRegistrationsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetTemplateRegistrationsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetTemplateRegistrationsRequest::IsInitialized() const { - return true; -} - -void GetTemplateRegistrationsRequest::InternalSwap(GetTemplateRegistrationsRequest* 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_.start_hash_, &other->_impl_.start_hash_, arena); - swap(_impl_.count_, other->_impl_.count_); -} - -::google::protobuf::Metadata GetTemplateRegistrationsRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[47]); -} -// =================================================================== - -class GetTemplateRegistrationResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._has_bits_); -}; - -void GetTemplateRegistrationResponse::clear_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.registration_ != nullptr) _impl_.registration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -GetTemplateRegistrationResponse::GetTemplateRegistrationResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetTemplateRegistrationResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - utxo_hash_(arena, from.utxo_hash_) {} - -GetTemplateRegistrationResponse::GetTemplateRegistrationResponse( - ::google::protobuf::Arena* arena, - const GetTemplateRegistrationResponse& from) - : ::google::protobuf::Message(arena) { - GetTemplateRegistrationResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.registration_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>( - arena, *from._impl_.registration_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetTemplateRegistrationResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetTemplateRegistrationResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - utxo_hash_(arena) {} - -inline void GetTemplateRegistrationResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.registration_ = {}; -} -GetTemplateRegistrationResponse::~GetTemplateRegistrationResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetTemplateRegistrationResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetTemplateRegistrationResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.utxo_hash_.Destroy(); - delete _impl_.registration_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetTemplateRegistrationResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_._cached_size_), - false, - }, - &GetTemplateRegistrationResponse::MergeImpl, - &GetTemplateRegistrationResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetTemplateRegistrationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetTemplateRegistrationResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.utxo_hash_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.registration_ != nullptr); - _impl_.registration_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetTemplateRegistrationResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetTemplateRegistrationResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _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), - &_GetTemplateRegistrationResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetTemplateRegistrationResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.TemplateRegistration registration = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.registration_)}}, - // bytes utxo_hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.utxo_hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes utxo_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.utxo_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.TemplateRegistration registration = 2; - {PROTOBUF_FIELD_OFFSET(GetTemplateRegistrationResponse, _impl_.registration_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>()}, - }}, {{ - }}, -}; - -::uint8_t* GetTemplateRegistrationResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetTemplateRegistrationResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes utxo_hash = 1; - if (!this->_internal_utxo_hash().empty()) { - const std::string& _s = this->_internal_utxo_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.TemplateRegistration registration = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.registration_, _impl_.registration_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetTemplateRegistrationResponse) - return target; -} - -::size_t GetTemplateRegistrationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetTemplateRegistrationResponse) - ::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 utxo_hash = 1; - if (!this->_internal_utxo_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_utxo_hash()); - } - - // .tari.rpc.TemplateRegistration registration = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.registration_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetTemplateRegistrationResponse::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:tari.rpc.GetTemplateRegistrationResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_utxo_hash().empty()) { - _this->_internal_set_utxo_hash(from._internal_utxo_hash()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.registration_ != nullptr); - if (_this->_impl_.registration_ == nullptr) { - _this->_impl_.registration_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>(arena, *from._impl_.registration_); - } else { - _this->_impl_.registration_->MergeFrom(*from._impl_.registration_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetTemplateRegistrationResponse::CopyFrom(const GetTemplateRegistrationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetTemplateRegistrationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetTemplateRegistrationResponse::IsInitialized() const { - return true; -} - -void GetTemplateRegistrationResponse::InternalSwap(GetTemplateRegistrationResponse* PROTOBUF_RESTRICT 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_.utxo_hash_, &other->_impl_.utxo_hash_, arena); - swap(_impl_.registration_, other->_impl_.registration_); -} - -::google::protobuf::Metadata GetTemplateRegistrationResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[48]); -} -// =================================================================== - -class BlockInfo::_Internal { - public: -}; - -BlockInfo::BlockInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockInfo) -} -inline PROTOBUF_NDEBUG_INLINE BlockInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : hash_(arena, from.hash_), - next_block_hash_(arena, from.next_block_hash_), - _cached_size_{0} {} - -BlockInfo::BlockInfo( - ::google::protobuf::Arena* arena, - const BlockInfo& from) - : ::google::protobuf::Message(arena) { - BlockInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.height_ = from._impl_.height_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockInfo) -} -inline PROTOBUF_NDEBUG_INLINE BlockInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : hash_(arena), - next_block_hash_(arena), - _cached_size_{0} {} - -inline void BlockInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.height_ = {}; -} -BlockInfo::~BlockInfo() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.hash_.Destroy(); - _impl_.next_block_hash_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockInfo::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_._cached_size_), - false, - }, - &BlockInfo::MergeImpl, - &BlockInfo::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hash_.ClearToEmpty(); - _impl_.next_block_hash_.ClearToEmpty(); - _impl_.height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> BlockInfo::_table_ = { - { - 0, // no _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 - &_BlockInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockInfo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockInfo, _impl_.height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.height_)}}, - // bytes hash = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.hash_)}}, - // bytes next_block_hash = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.next_block_hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 height = 1; - {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes hash = 2; - {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes next_block_hash = 3; - {PROTOBUF_FIELD_OFFSET(BlockInfo, _impl_.next_block_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* BlockInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 height = 1; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_height(), target); - } - - // bytes hash = 2; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes next_block_hash = 3; - if (!this->_internal_next_block_hash().empty()) { - const std::string& _s = this->_internal_next_block_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockInfo) - return target; -} - -::size_t BlockInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockInfo) - ::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 hash = 2; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes next_block_hash = 3; - if (!this->_internal_next_block_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_next_block_hash()); - } - - // uint64 height = 1; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockInfo::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:tari.rpc.BlockInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_next_block_hash().empty()) { - _this->_internal_set_next_block_hash(from._internal_next_block_hash()); - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockInfo::CopyFrom(const BlockInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockInfo::IsInitialized() const { - return true; -} - -void BlockInfo::InternalSwap(BlockInfo* 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_.hash_, &other->_impl_.hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_block_hash_, &other->_impl_.next_block_hash_, arena); - swap(_impl_.height_, other->_impl_.height_); -} - -::google::protobuf::Metadata BlockInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[49]); -} -// =================================================================== - -class GetSideChainUtxosRequest::_Internal { - public: -}; - -GetSideChainUtxosRequest::GetSideChainUtxosRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetSideChainUtxosRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : start_hash_(arena, from.start_hash_), - _cached_size_{0} {} - -GetSideChainUtxosRequest::GetSideChainUtxosRequest( - ::google::protobuf::Arena* arena, - const GetSideChainUtxosRequest& from) - : ::google::protobuf::Message(arena) { - GetSideChainUtxosRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.count_ = from._impl_.count_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetSideChainUtxosRequest) -} -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : start_hash_(arena), - _cached_size_{0} {} - -inline void GetSideChainUtxosRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.count_ = {}; -} -GetSideChainUtxosRequest::~GetSideChainUtxosRequest() { - // @@protoc_insertion_point(destructor:tari.rpc.GetSideChainUtxosRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetSideChainUtxosRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.start_hash_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetSideChainUtxosRequest::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_._cached_size_), - false, - }, - &GetSideChainUtxosRequest::MergeImpl, - &GetSideChainUtxosRequest::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetSideChainUtxosRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetSideChainUtxosRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.start_hash_.ClearToEmpty(); - _impl_.count_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSideChainUtxosRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> GetSideChainUtxosRequest::_table_ = { - { - 0, // no _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 - &_GetSideChainUtxosRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetSideChainUtxosRequest>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 count = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GetSideChainUtxosRequest, _impl_.count_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.count_)}}, - // bytes start_hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.start_hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes start_hash = 1; - {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.start_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 count = 2; - {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosRequest, _impl_.count_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* GetSideChainUtxosRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetSideChainUtxosRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes start_hash = 1; - if (!this->_internal_start_hash().empty()) { - const std::string& _s = this->_internal_start_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // uint64 count = 2; - if (this->_internal_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_count(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetSideChainUtxosRequest) - return target; -} - -::size_t GetSideChainUtxosRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetSideChainUtxosRequest) - ::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 start_hash = 1; - if (!this->_internal_start_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_start_hash()); - } - - // uint64 count = 2; - if (this->_internal_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_count()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetSideChainUtxosRequest::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:tari.rpc.GetSideChainUtxosRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_start_hash().empty()) { - _this->_internal_set_start_hash(from._internal_start_hash()); - } - if (from._internal_count() != 0) { - _this->_impl_.count_ = from._impl_.count_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetSideChainUtxosRequest::CopyFrom(const GetSideChainUtxosRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetSideChainUtxosRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetSideChainUtxosRequest::IsInitialized() const { - return true; -} - -void GetSideChainUtxosRequest::InternalSwap(GetSideChainUtxosRequest* 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_.start_hash_, &other->_impl_.start_hash_, arena); - swap(_impl_.count_, other->_impl_.count_); -} - -::google::protobuf::Metadata GetSideChainUtxosRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[50]); -} -// =================================================================== - -class GetSideChainUtxosResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._has_bits_); -}; - -void GetSideChainUtxosResponse::clear_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.outputs_.Clear(); -} -GetSideChainUtxosResponse::GetSideChainUtxosResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetSideChainUtxosResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - outputs_{visibility, arena, from.outputs_} {} - -GetSideChainUtxosResponse::GetSideChainUtxosResponse( - ::google::protobuf::Arena* arena, - const GetSideChainUtxosResponse& from) - : ::google::protobuf::Message(arena) { - GetSideChainUtxosResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_info_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockInfo>( - arena, *from._impl_.block_info_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetSideChainUtxosResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetSideChainUtxosResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - outputs_{visibility, arena} {} - -inline void GetSideChainUtxosResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.block_info_ = {}; -} -GetSideChainUtxosResponse::~GetSideChainUtxosResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetSideChainUtxosResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetSideChainUtxosResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.block_info_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetSideChainUtxosResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_._cached_size_), - false, - }, - &GetSideChainUtxosResponse::MergeImpl, - &GetSideChainUtxosResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetSideChainUtxosResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetSideChainUtxosResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.outputs_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.block_info_ != nullptr); - _impl_.block_info_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetSideChainUtxosResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> GetSideChainUtxosResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _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 - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetSideChainUtxosResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetSideChainUtxosResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .tari.rpc.TransactionOutput outputs = 2; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_.outputs_)}}, - // .tari.rpc.BlockInfo block_info = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_.block_info_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.BlockInfo block_info = 1; - {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_.block_info_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .tari.rpc.TransactionOutput outputs = 2; - {PROTOBUF_FIELD_OFFSET(GetSideChainUtxosResponse, _impl_.outputs_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::BlockInfo>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, - }}, {{ - }}, -}; - -::uint8_t* GetSideChainUtxosResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetSideChainUtxosResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.BlockInfo block_info = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.block_info_, _impl_.block_info_->GetCachedSize(), target, stream); - } - - // repeated .tari.rpc.TransactionOutput outputs = 2; - for (unsigned i = 0, n = static_cast( - this->_internal_outputs_size()); - i < n; i++) { - const auto& repfield = this->_internal_outputs().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetSideChainUtxosResponse) - return target; -} - -::size_t GetSideChainUtxosResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetSideChainUtxosResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .tari.rpc.TransactionOutput outputs = 2; - total_size += 1UL * this->_internal_outputs_size(); - for (const auto& msg : this->_internal_outputs()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // .tari.rpc.BlockInfo block_info = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.block_info_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetSideChainUtxosResponse::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:tari.rpc.GetSideChainUtxosResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_outputs()->MergeFrom( - from._internal_outputs()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.block_info_ != nullptr); - if (_this->_impl_.block_info_ == nullptr) { - _this->_impl_.block_info_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockInfo>(arena, *from._impl_.block_info_); - } else { - _this->_impl_.block_info_->MergeFrom(*from._impl_.block_info_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetSideChainUtxosResponse::CopyFrom(const GetSideChainUtxosResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetSideChainUtxosResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetSideChainUtxosResponse::IsInitialized() const { - return true; -} - -void GetSideChainUtxosResponse::InternalSwap(GetSideChainUtxosResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.outputs_.InternalSwap(&other->_impl_.outputs_); - swap(_impl_.block_info_, other->_impl_.block_info_); -} - -::google::protobuf::Metadata GetSideChainUtxosResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_base_5fnode_2eproto_getter, - &descriptor_table_base_5fnode_2eproto_once, - file_level_metadata_base_5fnode_2eproto[51]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_base_5fnode_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/base_node.pb.h b/external/src/Tari/proto/gRPC/base_node.pb.h deleted file mode 100644 index 2fefa80c..00000000 --- a/external/src/Tari/proto/gRPC/base_node.pb.h +++ /dev/null @@ -1,16273 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: base_node.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026000 -#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/port_undef.inc" -#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/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "types.pb.h" -#include "transaction.pb.h" -#include "block.pb.h" -#include "network.pb.h" -#include "sidechain_types.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_base_5fnode_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_base_5fnode_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_base_5fnode_2eproto; -namespace tari { -namespace rpc { -class BlockBlobRequest; -struct BlockBlobRequestDefaultTypeInternal; -extern BlockBlobRequestDefaultTypeInternal _BlockBlobRequest_default_instance_; -class BlockGroupRequest; -struct BlockGroupRequestDefaultTypeInternal; -extern BlockGroupRequestDefaultTypeInternal _BlockGroupRequest_default_instance_; -class BlockGroupResponse; -struct BlockGroupResponseDefaultTypeInternal; -extern BlockGroupResponseDefaultTypeInternal _BlockGroupResponse_default_instance_; -class BlockHeaderResponse; -struct BlockHeaderResponseDefaultTypeInternal; -extern BlockHeaderResponseDefaultTypeInternal _BlockHeaderResponse_default_instance_; -class BlockInfo; -struct BlockInfoDefaultTypeInternal; -extern BlockInfoDefaultTypeInternal _BlockInfo_default_instance_; -class BlockTimingResponse; -struct BlockTimingResponseDefaultTypeInternal; -extern BlockTimingResponseDefaultTypeInternal _BlockTimingResponse_default_instance_; -class FetchMatchingUtxosRequest; -struct FetchMatchingUtxosRequestDefaultTypeInternal; -extern FetchMatchingUtxosRequestDefaultTypeInternal _FetchMatchingUtxosRequest_default_instance_; -class FetchMatchingUtxosResponse; -struct FetchMatchingUtxosResponseDefaultTypeInternal; -extern FetchMatchingUtxosResponseDefaultTypeInternal _FetchMatchingUtxosResponse_default_instance_; -class GetActiveValidatorNodesRequest; -struct GetActiveValidatorNodesRequestDefaultTypeInternal; -extern GetActiveValidatorNodesRequestDefaultTypeInternal _GetActiveValidatorNodesRequest_default_instance_; -class GetActiveValidatorNodesResponse; -struct GetActiveValidatorNodesResponseDefaultTypeInternal; -extern GetActiveValidatorNodesResponseDefaultTypeInternal _GetActiveValidatorNodesResponse_default_instance_; -class GetAssetMetadataRequest; -struct GetAssetMetadataRequestDefaultTypeInternal; -extern GetAssetMetadataRequestDefaultTypeInternal _GetAssetMetadataRequest_default_instance_; -class GetAssetMetadataResponse; -struct GetAssetMetadataResponseDefaultTypeInternal; -extern GetAssetMetadataResponseDefaultTypeInternal _GetAssetMetadataResponse_default_instance_; -class GetBlocksRequest; -struct GetBlocksRequestDefaultTypeInternal; -extern GetBlocksRequestDefaultTypeInternal _GetBlocksRequest_default_instance_; -class GetBlocksResponse; -struct GetBlocksResponseDefaultTypeInternal; -extern GetBlocksResponseDefaultTypeInternal _GetBlocksResponse_default_instance_; -class GetHeaderByHashRequest; -struct GetHeaderByHashRequestDefaultTypeInternal; -extern GetHeaderByHashRequestDefaultTypeInternal _GetHeaderByHashRequest_default_instance_; -class GetMempoolTransactionsRequest; -struct GetMempoolTransactionsRequestDefaultTypeInternal; -extern GetMempoolTransactionsRequestDefaultTypeInternal _GetMempoolTransactionsRequest_default_instance_; -class GetMempoolTransactionsResponse; -struct GetMempoolTransactionsResponseDefaultTypeInternal; -extern GetMempoolTransactionsResponseDefaultTypeInternal _GetMempoolTransactionsResponse_default_instance_; -class GetNewBlockBlobResult; -struct GetNewBlockBlobResultDefaultTypeInternal; -extern GetNewBlockBlobResultDefaultTypeInternal _GetNewBlockBlobResult_default_instance_; -class GetNewBlockResult; -struct GetNewBlockResultDefaultTypeInternal; -extern GetNewBlockResultDefaultTypeInternal _GetNewBlockResult_default_instance_; -class GetPeersRequest; -struct GetPeersRequestDefaultTypeInternal; -extern GetPeersRequestDefaultTypeInternal _GetPeersRequest_default_instance_; -class GetPeersResponse; -struct GetPeersResponseDefaultTypeInternal; -extern GetPeersResponseDefaultTypeInternal _GetPeersResponse_default_instance_; -class GetShardKeyRequest; -struct GetShardKeyRequestDefaultTypeInternal; -extern GetShardKeyRequestDefaultTypeInternal _GetShardKeyRequest_default_instance_; -class GetShardKeyResponse; -struct GetShardKeyResponseDefaultTypeInternal; -extern GetShardKeyResponseDefaultTypeInternal _GetShardKeyResponse_default_instance_; -class GetSideChainUtxosRequest; -struct GetSideChainUtxosRequestDefaultTypeInternal; -extern GetSideChainUtxosRequestDefaultTypeInternal _GetSideChainUtxosRequest_default_instance_; -class GetSideChainUtxosResponse; -struct GetSideChainUtxosResponseDefaultTypeInternal; -extern GetSideChainUtxosResponseDefaultTypeInternal _GetSideChainUtxosResponse_default_instance_; -class GetTemplateRegistrationResponse; -struct GetTemplateRegistrationResponseDefaultTypeInternal; -extern GetTemplateRegistrationResponseDefaultTypeInternal _GetTemplateRegistrationResponse_default_instance_; -class GetTemplateRegistrationsRequest; -struct GetTemplateRegistrationsRequestDefaultTypeInternal; -extern GetTemplateRegistrationsRequestDefaultTypeInternal _GetTemplateRegistrationsRequest_default_instance_; -class GetTokensRequest; -struct GetTokensRequestDefaultTypeInternal; -extern GetTokensRequestDefaultTypeInternal _GetTokensRequest_default_instance_; -class GetTokensResponse; -struct GetTokensResponseDefaultTypeInternal; -extern GetTokensResponseDefaultTypeInternal _GetTokensResponse_default_instance_; -class HeightRequest; -struct HeightRequestDefaultTypeInternal; -extern HeightRequestDefaultTypeInternal _HeightRequest_default_instance_; -class IntegerValue; -struct IntegerValueDefaultTypeInternal; -extern IntegerValueDefaultTypeInternal _IntegerValue_default_instance_; -class ListAssetRegistrationsRequest; -struct ListAssetRegistrationsRequestDefaultTypeInternal; -extern ListAssetRegistrationsRequestDefaultTypeInternal _ListAssetRegistrationsRequest_default_instance_; -class ListAssetRegistrationsResponse; -struct ListAssetRegistrationsResponseDefaultTypeInternal; -extern ListAssetRegistrationsResponseDefaultTypeInternal _ListAssetRegistrationsResponse_default_instance_; -class ListHeadersRequest; -struct ListHeadersRequestDefaultTypeInternal; -extern ListHeadersRequestDefaultTypeInternal _ListHeadersRequest_default_instance_; -class MempoolStatsResponse; -struct MempoolStatsResponseDefaultTypeInternal; -extern MempoolStatsResponseDefaultTypeInternal _MempoolStatsResponse_default_instance_; -class MetaData; -struct MetaDataDefaultTypeInternal; -extern MetaDataDefaultTypeInternal _MetaData_default_instance_; -class MinerData; -struct MinerDataDefaultTypeInternal; -extern MinerDataDefaultTypeInternal _MinerData_default_instance_; -class NetworkDifficultyResponse; -struct NetworkDifficultyResponseDefaultTypeInternal; -extern NetworkDifficultyResponseDefaultTypeInternal _NetworkDifficultyResponse_default_instance_; -class NewBlockTemplateRequest; -struct NewBlockTemplateRequestDefaultTypeInternal; -extern NewBlockTemplateRequestDefaultTypeInternal _NewBlockTemplateRequest_default_instance_; -class NewBlockTemplateResponse; -struct NewBlockTemplateResponseDefaultTypeInternal; -extern NewBlockTemplateResponseDefaultTypeInternal _NewBlockTemplateResponse_default_instance_; -class SearchKernelsRequest; -struct SearchKernelsRequestDefaultTypeInternal; -extern SearchKernelsRequestDefaultTypeInternal _SearchKernelsRequest_default_instance_; -class SearchUtxosRequest; -struct SearchUtxosRequestDefaultTypeInternal; -extern SearchUtxosRequestDefaultTypeInternal _SearchUtxosRequest_default_instance_; -class StringValue; -struct StringValueDefaultTypeInternal; -extern StringValueDefaultTypeInternal _StringValue_default_instance_; -class SubmitBlockResponse; -struct SubmitBlockResponseDefaultTypeInternal; -extern SubmitBlockResponseDefaultTypeInternal _SubmitBlockResponse_default_instance_; -class SubmitTransactionRequest; -struct SubmitTransactionRequestDefaultTypeInternal; -extern SubmitTransactionRequestDefaultTypeInternal _SubmitTransactionRequest_default_instance_; -class SubmitTransactionResponse; -struct SubmitTransactionResponseDefaultTypeInternal; -extern SubmitTransactionResponseDefaultTypeInternal _SubmitTransactionResponse_default_instance_; -class SyncInfoResponse; -struct SyncInfoResponseDefaultTypeInternal; -extern SyncInfoResponseDefaultTypeInternal _SyncInfoResponse_default_instance_; -class SyncProgressResponse; -struct SyncProgressResponseDefaultTypeInternal; -extern SyncProgressResponseDefaultTypeInternal _SyncProgressResponse_default_instance_; -class TipInfoResponse; -struct TipInfoResponseDefaultTypeInternal; -extern TipInfoResponseDefaultTypeInternal _TipInfoResponse_default_instance_; -class TransactionStateRequest; -struct TransactionStateRequestDefaultTypeInternal; -extern TransactionStateRequestDefaultTypeInternal _TransactionStateRequest_default_instance_; -class TransactionStateResponse; -struct TransactionStateResponseDefaultTypeInternal; -extern TransactionStateResponseDefaultTypeInternal _TransactionStateResponse_default_instance_; -class ValueAtHeightResponse; -struct ValueAtHeightResponseDefaultTypeInternal; -extern ValueAtHeightResponseDefaultTypeInternal _ValueAtHeightResponse_default_instance_; -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace tari { -namespace rpc { -enum BaseNodeState : int { - START_UP = 0, - HEADER_SYNC = 1, - HORIZON_SYNC = 2, - CONNECTING = 3, - BLOCK_SYNC = 4, - LISTENING = 5, - SYNC_FAILED = 6, - BaseNodeState_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - BaseNodeState_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool BaseNodeState_IsValid(int value); -extern const uint32_t BaseNodeState_internal_data_[]; -constexpr BaseNodeState BaseNodeState_MIN = static_cast(0); -constexpr BaseNodeState BaseNodeState_MAX = static_cast(6); -constexpr int BaseNodeState_ARRAYSIZE = 6 + 1; -const ::google::protobuf::EnumDescriptor* -BaseNodeState_descriptor(); -template -const std::string& BaseNodeState_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to BaseNodeState_Name()."); - return BaseNodeState_Name(static_cast(value)); -} -template <> -inline const std::string& BaseNodeState_Name(BaseNodeState value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool BaseNodeState_Parse(absl::string_view name, BaseNodeState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - BaseNodeState_descriptor(), name, value); -} -enum CalcType : int { - MEAN = 0, - MEDIAN = 1, - QUANTILE = 2, - QUARTILE = 3, - CalcType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - CalcType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool CalcType_IsValid(int value); -extern const uint32_t CalcType_internal_data_[]; -constexpr CalcType CalcType_MIN = static_cast(0); -constexpr CalcType CalcType_MAX = static_cast(3); -constexpr int CalcType_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -CalcType_descriptor(); -template -const std::string& CalcType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to CalcType_Name()."); - return CalcType_Name(static_cast(value)); -} -template <> -inline const std::string& CalcType_Name(CalcType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool CalcType_Parse(absl::string_view name, CalcType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CalcType_descriptor(), name, value); -} -enum Sorting : int { - SORTING_DESC = 0, - SORTING_ASC = 1, - Sorting_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - Sorting_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool Sorting_IsValid(int value); -extern const uint32_t Sorting_internal_data_[]; -constexpr Sorting Sorting_MIN = static_cast(0); -constexpr Sorting Sorting_MAX = static_cast(1); -constexpr int Sorting_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -Sorting_descriptor(); -template -const std::string& Sorting_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to Sorting_Name()."); - return Sorting_Name(static_cast(value)); -} -template <> -inline const std::string& Sorting_Name(Sorting value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool Sorting_Parse(absl::string_view name, Sorting* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Sorting_descriptor(), name, value); -} -enum SyncState : int { - STARTUP = 0, - HEADER_STARTING = 1, - HEADER = 2, - BLOCK_STARTING = 3, - BLOCK = 4, - DONE = 5, - SyncState_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SyncState_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool SyncState_IsValid(int value); -extern const uint32_t SyncState_internal_data_[]; -constexpr SyncState SyncState_MIN = static_cast(0); -constexpr SyncState SyncState_MAX = static_cast(5); -constexpr int SyncState_ARRAYSIZE = 5 + 1; -const ::google::protobuf::EnumDescriptor* -SyncState_descriptor(); -template -const std::string& SyncState_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to SyncState_Name()."); - return SyncState_Name(static_cast(value)); -} -template <> -inline const std::string& SyncState_Name(SyncState value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SyncState_Parse(absl::string_view name, SyncState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SyncState_descriptor(), name, value); -} -enum SubmitTransactionResult : int { - NONE = 0, - ACCEPTED = 1, - NOT_PROCESSABLE_AT_THIS_TIME = 2, - ALREADY_MINED = 3, - REJECTED = 4, - SubmitTransactionResult_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - SubmitTransactionResult_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool SubmitTransactionResult_IsValid(int value); -extern const uint32_t SubmitTransactionResult_internal_data_[]; -constexpr SubmitTransactionResult SubmitTransactionResult_MIN = static_cast(0); -constexpr SubmitTransactionResult SubmitTransactionResult_MAX = static_cast(4); -constexpr int SubmitTransactionResult_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -SubmitTransactionResult_descriptor(); -template -const std::string& SubmitTransactionResult_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to SubmitTransactionResult_Name()."); - return SubmitTransactionResult_Name(static_cast(value)); -} -template <> -inline const std::string& SubmitTransactionResult_Name(SubmitTransactionResult value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool SubmitTransactionResult_Parse(absl::string_view name, SubmitTransactionResult* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SubmitTransactionResult_descriptor(), name, value); -} -enum TransactionLocation : int { - UNKNOWN = 0, - MEMPOOL = 1, - MINED = 2, - NOT_STORED = 3, - TransactionLocation_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - TransactionLocation_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool TransactionLocation_IsValid(int value); -extern const uint32_t TransactionLocation_internal_data_[]; -constexpr TransactionLocation TransactionLocation_MIN = static_cast(0); -constexpr TransactionLocation TransactionLocation_MAX = static_cast(3); -constexpr int TransactionLocation_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -TransactionLocation_descriptor(); -template -const std::string& TransactionLocation_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to TransactionLocation_Name()."); - return TransactionLocation_Name(static_cast(value)); -} -template <> -inline const std::string& TransactionLocation_Name(TransactionLocation value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool TransactionLocation_Parse(absl::string_view name, TransactionLocation* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TransactionLocation_descriptor(), name, value); -} - -// =================================================================== - - -// ------------------------------------------------------------------- - -class ValueAtHeightResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ValueAtHeightResponse) */ { - public: - inline ValueAtHeightResponse() : ValueAtHeightResponse(nullptr) {} - ~ValueAtHeightResponse() override; - template - explicit PROTOBUF_CONSTEXPR ValueAtHeightResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline ValueAtHeightResponse(const ValueAtHeightResponse& from) : ValueAtHeightResponse(nullptr, from) {} - inline ValueAtHeightResponse(ValueAtHeightResponse&& from) noexcept - : ValueAtHeightResponse(nullptr, std::move(from)) {} - inline ValueAtHeightResponse& operator=(const ValueAtHeightResponse& from) { - CopyFrom(from); - return *this; - } - inline ValueAtHeightResponse& operator=(ValueAtHeightResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ValueAtHeightResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ValueAtHeightResponse* internal_default_instance() { - return reinterpret_cast( - &_ValueAtHeightResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 12; - friend void swap(ValueAtHeightResponse& a, ValueAtHeightResponse& b) { a.Swap(&b); } - inline void Swap(ValueAtHeightResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ValueAtHeightResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ValueAtHeightResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ValueAtHeightResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ValueAtHeightResponse& from) { ValueAtHeightResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ValueAtHeightResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ValueAtHeightResponse"; } - - protected: - explicit ValueAtHeightResponse(::google::protobuf::Arena* arena); - ValueAtHeightResponse(::google::protobuf::Arena* arena, const ValueAtHeightResponse& from); - ValueAtHeightResponse(::google::protobuf::Arena* arena, ValueAtHeightResponse&& from) noexcept - : ValueAtHeightResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValueFieldNumber = 1, - kHeightFieldNumber = 2, - }; - // uint64 value = 1; - void clear_value() ; - ::uint64_t value() const; - void set_value(::uint64_t value); - - private: - ::uint64_t _internal_value() const; - void _internal_set_value(::uint64_t value); - - public: - // uint64 height = 2; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); - - private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ValueAtHeightResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t value_; - ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class TransactionStateResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateResponse) */ { - public: - inline TransactionStateResponse() : TransactionStateResponse(nullptr) {} - ~TransactionStateResponse() override; - template - explicit PROTOBUF_CONSTEXPR TransactionStateResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline TransactionStateResponse(const TransactionStateResponse& from) : TransactionStateResponse(nullptr, from) {} - inline TransactionStateResponse(TransactionStateResponse&& from) noexcept - : TransactionStateResponse(nullptr, std::move(from)) {} - inline TransactionStateResponse& operator=(const TransactionStateResponse& from) { - CopyFrom(from); - return *this; - } - inline TransactionStateResponse& operator=(TransactionStateResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransactionStateResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionStateResponse* internal_default_instance() { - return reinterpret_cast( - &_TransactionStateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 41; - friend void swap(TransactionStateResponse& a, TransactionStateResponse& b) { a.Swap(&b); } - inline void Swap(TransactionStateResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransactionStateResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransactionStateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransactionStateResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TransactionStateResponse& from) { TransactionStateResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionStateResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionStateResponse"; } - - protected: - explicit TransactionStateResponse(::google::protobuf::Arena* arena); - TransactionStateResponse(::google::protobuf::Arena* arena, const TransactionStateResponse& from); - TransactionStateResponse(::google::protobuf::Arena* arena, TransactionStateResponse&& from) noexcept - : TransactionStateResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kResultFieldNumber = 1, - }; - // .tari.rpc.TransactionLocation result = 1; - void clear_result() ; - ::tari::rpc::TransactionLocation result() const; - void set_result(::tari::rpc::TransactionLocation value); - - private: - ::tari::rpc::TransactionLocation _internal_result() const; - void _internal_set_result(::tari::rpc::TransactionLocation value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.TransactionStateResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class SyncProgressResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SyncProgressResponse) */ { - public: - inline SyncProgressResponse() : SyncProgressResponse(nullptr) {} - ~SyncProgressResponse() override; - template - explicit PROTOBUF_CONSTEXPR SyncProgressResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline SyncProgressResponse(const SyncProgressResponse& from) : SyncProgressResponse(nullptr, from) {} - inline SyncProgressResponse(SyncProgressResponse&& from) noexcept - : SyncProgressResponse(nullptr, std::move(from)) {} - inline SyncProgressResponse& operator=(const SyncProgressResponse& from) { - CopyFrom(from); - return *this; - } - inline SyncProgressResponse& operator=(SyncProgressResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SyncProgressResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SyncProgressResponse* internal_default_instance() { - return reinterpret_cast( - &_SyncProgressResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 26; - friend void swap(SyncProgressResponse& a, SyncProgressResponse& b) { a.Swap(&b); } - inline void Swap(SyncProgressResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SyncProgressResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SyncProgressResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SyncProgressResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SyncProgressResponse& from) { SyncProgressResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SyncProgressResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SyncProgressResponse"; } - - protected: - explicit SyncProgressResponse(::google::protobuf::Arena* arena); - SyncProgressResponse(::google::protobuf::Arena* arena, const SyncProgressResponse& from); - SyncProgressResponse(::google::protobuf::Arena* arena, SyncProgressResponse&& from) noexcept - : SyncProgressResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTipHeightFieldNumber = 1, - kLocalHeightFieldNumber = 2, - kStateFieldNumber = 3, - }; - // uint64 tip_height = 1; - void clear_tip_height() ; - ::uint64_t tip_height() const; - void set_tip_height(::uint64_t value); - - private: - ::uint64_t _internal_tip_height() const; - void _internal_set_tip_height(::uint64_t value); - - public: - // uint64 local_height = 2; - void clear_local_height() ; - ::uint64_t local_height() const; - void set_local_height(::uint64_t value); - - private: - ::uint64_t _internal_local_height() const; - void _internal_set_local_height(::uint64_t value); - - public: - // .tari.rpc.SyncState state = 3; - void clear_state() ; - ::tari::rpc::SyncState state() const; - void set_state(::tari::rpc::SyncState value); - - private: - ::tari::rpc::SyncState _internal_state() const; - void _internal_set_state(::tari::rpc::SyncState value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.SyncProgressResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t tip_height_; - ::uint64_t local_height_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class SyncInfoResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SyncInfoResponse) */ { - public: - inline SyncInfoResponse() : SyncInfoResponse(nullptr) {} - ~SyncInfoResponse() override; - template - explicit PROTOBUF_CONSTEXPR SyncInfoResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline SyncInfoResponse(const SyncInfoResponse& from) : SyncInfoResponse(nullptr, from) {} - inline SyncInfoResponse(SyncInfoResponse&& from) noexcept - : SyncInfoResponse(nullptr, std::move(from)) {} - inline SyncInfoResponse& operator=(const SyncInfoResponse& from) { - CopyFrom(from); - return *this; - } - inline SyncInfoResponse& operator=(SyncInfoResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SyncInfoResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SyncInfoResponse* internal_default_instance() { - return reinterpret_cast( - &_SyncInfoResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 25; - friend void swap(SyncInfoResponse& a, SyncInfoResponse& b) { a.Swap(&b); } - inline void Swap(SyncInfoResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SyncInfoResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SyncInfoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SyncInfoResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SyncInfoResponse& from) { SyncInfoResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SyncInfoResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SyncInfoResponse"; } - - protected: - explicit SyncInfoResponse(::google::protobuf::Arena* arena); - SyncInfoResponse(::google::protobuf::Arena* arena, const SyncInfoResponse& from); - SyncInfoResponse(::google::protobuf::Arena* arena, SyncInfoResponse&& from) noexcept - : SyncInfoResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPeerNodeIdFieldNumber = 3, - kTipHeightFieldNumber = 1, - kLocalHeightFieldNumber = 2, - }; - // repeated bytes peer_node_id = 3; - int peer_node_id_size() const; - private: - int _internal_peer_node_id_size() const; - - public: - void clear_peer_node_id() ; - const std::string& peer_node_id(int index) const; - std::string* mutable_peer_node_id(int index); - void set_peer_node_id(int index, const std::string& value); - void set_peer_node_id(int index, std::string&& value); - void set_peer_node_id(int index, const char* value); - void set_peer_node_id(int index, const void* value, std::size_t size); - void set_peer_node_id(int index, absl::string_view value); - std::string* add_peer_node_id(); - void add_peer_node_id(const std::string& value); - void add_peer_node_id(std::string&& value); - void add_peer_node_id(const char* value); - void add_peer_node_id(const void* value, std::size_t size); - void add_peer_node_id(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& peer_node_id() const; - ::google::protobuf::RepeatedPtrField* mutable_peer_node_id(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_peer_node_id() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_peer_node_id(); - - public: - // uint64 tip_height = 1; - void clear_tip_height() ; - ::uint64_t tip_height() const; - void set_tip_height(::uint64_t value); - - private: - ::uint64_t _internal_tip_height() const; - void _internal_set_tip_height(::uint64_t value); - - public: - // uint64 local_height = 2; - void clear_local_height() ; - ::uint64_t local_height() const; - void set_local_height(::uint64_t value); - - private: - ::uint64_t _internal_local_height() const; - void _internal_set_local_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.SyncInfoResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField peer_node_id_; - ::uint64_t tip_height_; - ::uint64_t local_height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class SubmitTransactionResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionResponse) */ { - public: - inline SubmitTransactionResponse() : SubmitTransactionResponse(nullptr) {} - ~SubmitTransactionResponse() override; - template - explicit PROTOBUF_CONSTEXPR SubmitTransactionResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline SubmitTransactionResponse(const SubmitTransactionResponse& from) : SubmitTransactionResponse(nullptr, from) {} - inline SubmitTransactionResponse(SubmitTransactionResponse&& from) noexcept - : SubmitTransactionResponse(nullptr, std::move(from)) {} - inline SubmitTransactionResponse& operator=(const SubmitTransactionResponse& from) { - CopyFrom(from); - return *this; - } - inline SubmitTransactionResponse& operator=(SubmitTransactionResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubmitTransactionResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitTransactionResponse* internal_default_instance() { - return reinterpret_cast( - &_SubmitTransactionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 37; - friend void swap(SubmitTransactionResponse& a, SubmitTransactionResponse& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubmitTransactionResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubmitTransactionResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SubmitTransactionResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SubmitTransactionResponse& from) { SubmitTransactionResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitTransactionResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitTransactionResponse"; } - - protected: - explicit SubmitTransactionResponse(::google::protobuf::Arena* arena); - SubmitTransactionResponse(::google::protobuf::Arena* arena, const SubmitTransactionResponse& from); - SubmitTransactionResponse(::google::protobuf::Arena* arena, SubmitTransactionResponse&& from) noexcept - : SubmitTransactionResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kResultFieldNumber = 1, - }; - // .tari.rpc.SubmitTransactionResult result = 1; - void clear_result() ; - ::tari::rpc::SubmitTransactionResult result() const; - void set_result(::tari::rpc::SubmitTransactionResult value); - - private: - ::tari::rpc::SubmitTransactionResult _internal_result() const; - void _internal_set_result(::tari::rpc::SubmitTransactionResult value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.SubmitTransactionResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class SubmitBlockResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SubmitBlockResponse) */ { - public: - inline SubmitBlockResponse() : SubmitBlockResponse(nullptr) {} - ~SubmitBlockResponse() override; - template - explicit PROTOBUF_CONSTEXPR SubmitBlockResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline SubmitBlockResponse(const SubmitBlockResponse& from) : SubmitBlockResponse(nullptr, from) {} - inline SubmitBlockResponse(SubmitBlockResponse&& from) noexcept - : SubmitBlockResponse(nullptr, std::move(from)) {} - inline SubmitBlockResponse& operator=(const SubmitBlockResponse& from) { - CopyFrom(from); - return *this; - } - inline SubmitBlockResponse& operator=(SubmitBlockResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubmitBlockResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitBlockResponse* internal_default_instance() { - return reinterpret_cast( - &_SubmitBlockResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(SubmitBlockResponse& a, SubmitBlockResponse& b) { a.Swap(&b); } - inline void Swap(SubmitBlockResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubmitBlockResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubmitBlockResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SubmitBlockResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SubmitBlockResponse& from) { SubmitBlockResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitBlockResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitBlockResponse"; } - - protected: - explicit SubmitBlockResponse(::google::protobuf::Arena* arena); - SubmitBlockResponse(::google::protobuf::Arena* arena, const SubmitBlockResponse& from); - SubmitBlockResponse(::google::protobuf::Arena* arena, SubmitBlockResponse&& from) noexcept - : SubmitBlockResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBlockHashFieldNumber = 1, - }; - // bytes block_hash = 1; - void clear_block_hash() ; - const std::string& block_hash() const; - template - void set_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_block_hash(); - PROTOBUF_NODISCARD std::string* release_block_hash(); - void set_allocated_block_hash(std::string* value); - - private: - const std::string& _internal_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash( - const std::string& value); - std::string* _internal_mutable_block_hash(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.SubmitBlockResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr block_hash_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class StringValue final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.StringValue) */ { - public: - inline StringValue() : StringValue(nullptr) {} - ~StringValue() override; - template - explicit PROTOBUF_CONSTEXPR StringValue( - ::google::protobuf::internal::ConstantInitialized); - - inline StringValue(const StringValue& from) : StringValue(nullptr, from) {} - inline StringValue(StringValue&& from) noexcept - : StringValue(nullptr, std::move(from)) {} - inline StringValue& operator=(const StringValue& from) { - CopyFrom(from); - return *this; - } - inline StringValue& operator=(StringValue&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const StringValue& default_instance() { - return *internal_default_instance(); - } - static inline const StringValue* internal_default_instance() { - return reinterpret_cast( - &_StringValue_default_instance_); - } - static constexpr int kIndexInFileMessages = 14; - friend void swap(StringValue& a, StringValue& b) { a.Swap(&b); } - inline void Swap(StringValue* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(StringValue* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - StringValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const StringValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const StringValue& from) { StringValue::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(StringValue* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.StringValue"; } - - protected: - explicit StringValue(::google::protobuf::Arena* arena); - StringValue(::google::protobuf::Arena* arena, const StringValue& from); - StringValue(::google::protobuf::Arena* arena, StringValue&& from) noexcept - : StringValue(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValueFieldNumber = 1, - }; - // string value = 1; - void clear_value() ; - const std::string& value() const; - template - void set_value(Arg_&& arg, Args_... args); - std::string* mutable_value(); - PROTOBUF_NODISCARD std::string* release_value(); - void set_allocated_value(std::string* value); - - private: - const std::string& _internal_value() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_value( - const std::string& value); - std::string* _internal_mutable_value(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.StringValue) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchUtxosRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SearchUtxosRequest) */ { - public: - inline SearchUtxosRequest() : SearchUtxosRequest(nullptr) {} - ~SearchUtxosRequest() override; - template - explicit PROTOBUF_CONSTEXPR SearchUtxosRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SearchUtxosRequest(const SearchUtxosRequest& from) : SearchUtxosRequest(nullptr, from) {} - inline SearchUtxosRequest(SearchUtxosRequest&& from) noexcept - : SearchUtxosRequest(nullptr, std::move(from)) {} - inline SearchUtxosRequest& operator=(const SearchUtxosRequest& from) { - CopyFrom(from); - return *this; - } - inline SearchUtxosRequest& operator=(SearchUtxosRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SearchUtxosRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SearchUtxosRequest* internal_default_instance() { - return reinterpret_cast( - &_SearchUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 31; - friend void swap(SearchUtxosRequest& a, SearchUtxosRequest& b) { a.Swap(&b); } - inline void Swap(SearchUtxosRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SearchUtxosRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SearchUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SearchUtxosRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SearchUtxosRequest& from) { SearchUtxosRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SearchUtxosRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SearchUtxosRequest"; } - - protected: - explicit SearchUtxosRequest(::google::protobuf::Arena* arena); - SearchUtxosRequest(::google::protobuf::Arena* arena, const SearchUtxosRequest& from); - SearchUtxosRequest(::google::protobuf::Arena* arena, SearchUtxosRequest&& from) noexcept - : SearchUtxosRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kCommitmentsFieldNumber = 1, - }; - // repeated bytes commitments = 1; - int commitments_size() const; - private: - int _internal_commitments_size() const; - - public: - void clear_commitments() ; - const std::string& commitments(int index) const; - std::string* mutable_commitments(int index); - void set_commitments(int index, const std::string& value); - void set_commitments(int index, std::string&& value); - void set_commitments(int index, const char* value); - void set_commitments(int index, const void* value, std::size_t size); - void set_commitments(int index, absl::string_view value); - std::string* add_commitments(); - void add_commitments(const std::string& value); - void add_commitments(std::string&& value); - void add_commitments(const char* value); - void add_commitments(const void* value, std::size_t size); - void add_commitments(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& commitments() const; - ::google::protobuf::RepeatedPtrField* mutable_commitments(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_commitments() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_commitments(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.SearchUtxosRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField commitments_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class NetworkDifficultyResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NetworkDifficultyResponse) */ { - public: - inline NetworkDifficultyResponse() : NetworkDifficultyResponse(nullptr) {} - ~NetworkDifficultyResponse() override; - template - explicit PROTOBUF_CONSTEXPR NetworkDifficultyResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline NetworkDifficultyResponse(const NetworkDifficultyResponse& from) : NetworkDifficultyResponse(nullptr, from) {} - inline NetworkDifficultyResponse(NetworkDifficultyResponse&& from) noexcept - : NetworkDifficultyResponse(nullptr, std::move(from)) {} - inline NetworkDifficultyResponse& operator=(const NetworkDifficultyResponse& from) { - CopyFrom(from); - return *this; - } - inline NetworkDifficultyResponse& operator=(NetworkDifficultyResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NetworkDifficultyResponse& default_instance() { - return *internal_default_instance(); - } - static inline const NetworkDifficultyResponse* internal_default_instance() { - return reinterpret_cast( - &_NetworkDifficultyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 11; - friend void swap(NetworkDifficultyResponse& a, NetworkDifficultyResponse& b) { a.Swap(&b); } - inline void Swap(NetworkDifficultyResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NetworkDifficultyResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NetworkDifficultyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NetworkDifficultyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const NetworkDifficultyResponse& from) { NetworkDifficultyResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NetworkDifficultyResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.NetworkDifficultyResponse"; } - - protected: - explicit NetworkDifficultyResponse(::google::protobuf::Arena* arena); - NetworkDifficultyResponse(::google::protobuf::Arena* arena, const NetworkDifficultyResponse& from); - NetworkDifficultyResponse(::google::protobuf::Arena* arena, NetworkDifficultyResponse&& from) noexcept - : NetworkDifficultyResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kDifficultyFieldNumber = 1, - kEstimatedHashRateFieldNumber = 2, - kHeightFieldNumber = 3, - kTimestampFieldNumber = 4, - kPowAlgoFieldNumber = 5, - kSha3XEstimatedHashRateFieldNumber = 6, - kRandomxEstimatedHashRateFieldNumber = 7, - }; - // uint64 difficulty = 1; - void clear_difficulty() ; - ::uint64_t difficulty() const; - void set_difficulty(::uint64_t value); - - private: - ::uint64_t _internal_difficulty() const; - void _internal_set_difficulty(::uint64_t value); - - public: - // uint64 estimated_hash_rate = 2; - void clear_estimated_hash_rate() ; - ::uint64_t estimated_hash_rate() const; - void set_estimated_hash_rate(::uint64_t value); - - private: - ::uint64_t _internal_estimated_hash_rate() const; - void _internal_set_estimated_hash_rate(::uint64_t value); - - public: - // uint64 height = 3; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); - - private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); - - public: - // uint64 timestamp = 4; - void clear_timestamp() ; - ::uint64_t timestamp() const; - void set_timestamp(::uint64_t value); - - private: - ::uint64_t _internal_timestamp() const; - void _internal_set_timestamp(::uint64_t value); - - public: - // uint64 pow_algo = 5; - void clear_pow_algo() ; - ::uint64_t pow_algo() const; - void set_pow_algo(::uint64_t value); - - private: - ::uint64_t _internal_pow_algo() const; - void _internal_set_pow_algo(::uint64_t value); - - public: - // uint64 sha3x_estimated_hash_rate = 6; - void clear_sha3x_estimated_hash_rate() ; - ::uint64_t sha3x_estimated_hash_rate() const; - void set_sha3x_estimated_hash_rate(::uint64_t value); - - private: - ::uint64_t _internal_sha3x_estimated_hash_rate() const; - void _internal_set_sha3x_estimated_hash_rate(::uint64_t value); - - public: - // uint64 randomx_estimated_hash_rate = 7; - void clear_randomx_estimated_hash_rate() ; - ::uint64_t randomx_estimated_hash_rate() const; - void set_randomx_estimated_hash_rate(::uint64_t value); - - private: - ::uint64_t _internal_randomx_estimated_hash_rate() const; - void _internal_set_randomx_estimated_hash_rate(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.NetworkDifficultyResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t difficulty_; - ::uint64_t estimated_hash_rate_; - ::uint64_t height_; - ::uint64_t timestamp_; - ::uint64_t pow_algo_; - ::uint64_t sha3x_estimated_hash_rate_; - ::uint64_t randomx_estimated_hash_rate_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class MetaData final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.MetaData) */ { - public: - inline MetaData() : MetaData(nullptr) {} - ~MetaData() override; - template - explicit PROTOBUF_CONSTEXPR MetaData( - ::google::protobuf::internal::ConstantInitialized); - - inline MetaData(const MetaData& from) : MetaData(nullptr, from) {} - inline MetaData(MetaData&& from) noexcept - : MetaData(nullptr, std::move(from)) {} - inline MetaData& operator=(const MetaData& from) { - CopyFrom(from); - return *this; - } - inline MetaData& operator=(MetaData&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MetaData& default_instance() { - return *internal_default_instance(); - } - static inline const MetaData* internal_default_instance() { - return reinterpret_cast( - &_MetaData_default_instance_); - } - static constexpr int kIndexInFileMessages = 24; - friend void swap(MetaData& a, MetaData& b) { a.Swap(&b); } - inline void Swap(MetaData* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MetaData* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MetaData* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MetaData& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MetaData& from) { MetaData::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MetaData* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.MetaData"; } - - protected: - explicit MetaData(::google::protobuf::Arena* arena); - MetaData(::google::protobuf::Arena* arena, const MetaData& from); - MetaData(::google::protobuf::Arena* arena, MetaData&& from) noexcept - : MetaData(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBestBlockFieldNumber = 2, - kAccumulatedDifficultyFieldNumber = 5, - kHeightOfLongestChainFieldNumber = 1, - kPrunedHeightFieldNumber = 6, - }; - // bytes best_block = 2; - void clear_best_block() ; - const std::string& best_block() const; - template - void set_best_block(Arg_&& arg, Args_... args); - std::string* mutable_best_block(); - PROTOBUF_NODISCARD std::string* release_best_block(); - void set_allocated_best_block(std::string* value); - - private: - const std::string& _internal_best_block() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_best_block( - const std::string& value); - std::string* _internal_mutable_best_block(); - - public: - // bytes accumulated_difficulty = 5; - void clear_accumulated_difficulty() ; - const std::string& accumulated_difficulty() const; - template - void set_accumulated_difficulty(Arg_&& arg, Args_... args); - std::string* mutable_accumulated_difficulty(); - PROTOBUF_NODISCARD std::string* release_accumulated_difficulty(); - void set_allocated_accumulated_difficulty(std::string* value); - - private: - const std::string& _internal_accumulated_difficulty() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_accumulated_difficulty( - const std::string& value); - std::string* _internal_mutable_accumulated_difficulty(); - - public: - // uint64 height_of_longest_chain = 1; - void clear_height_of_longest_chain() ; - ::uint64_t height_of_longest_chain() const; - void set_height_of_longest_chain(::uint64_t value); - - private: - ::uint64_t _internal_height_of_longest_chain() const; - void _internal_set_height_of_longest_chain(::uint64_t value); - - public: - // uint64 pruned_height = 6; - void clear_pruned_height() ; - ::uint64_t pruned_height() const; - void set_pruned_height(::uint64_t value); - - private: - ::uint64_t _internal_pruned_height() const; - void _internal_set_pruned_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.MetaData) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr best_block_; - ::google::protobuf::internal::ArenaStringPtr accumulated_difficulty_; - ::uint64_t height_of_longest_chain_; - ::uint64_t pruned_height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class MempoolStatsResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.MempoolStatsResponse) */ { - public: - inline MempoolStatsResponse() : MempoolStatsResponse(nullptr) {} - ~MempoolStatsResponse() override; - template - explicit PROTOBUF_CONSTEXPR MempoolStatsResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline MempoolStatsResponse(const MempoolStatsResponse& from) : MempoolStatsResponse(nullptr, from) {} - inline MempoolStatsResponse(MempoolStatsResponse&& from) noexcept - : MempoolStatsResponse(nullptr, std::move(from)) {} - inline MempoolStatsResponse& operator=(const MempoolStatsResponse& from) { - CopyFrom(from); - return *this; - } - inline MempoolStatsResponse& operator=(MempoolStatsResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MempoolStatsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const MempoolStatsResponse* internal_default_instance() { - return reinterpret_cast( - &_MempoolStatsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 42; - friend void swap(MempoolStatsResponse& a, MempoolStatsResponse& b) { a.Swap(&b); } - inline void Swap(MempoolStatsResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MempoolStatsResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MempoolStatsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MempoolStatsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MempoolStatsResponse& from) { MempoolStatsResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MempoolStatsResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.MempoolStatsResponse"; } - - protected: - explicit MempoolStatsResponse(::google::protobuf::Arena* arena); - MempoolStatsResponse(::google::protobuf::Arena* arena, const MempoolStatsResponse& from); - MempoolStatsResponse(::google::protobuf::Arena* arena, MempoolStatsResponse&& from) noexcept - : MempoolStatsResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kUnconfirmedTxsFieldNumber = 2, - kReorgTxsFieldNumber = 3, - kUnconfirmedWeightFieldNumber = 4, - }; - // uint64 unconfirmed_txs = 2; - void clear_unconfirmed_txs() ; - ::uint64_t unconfirmed_txs() const; - void set_unconfirmed_txs(::uint64_t value); - - private: - ::uint64_t _internal_unconfirmed_txs() const; - void _internal_set_unconfirmed_txs(::uint64_t value); - - public: - // uint64 reorg_txs = 3; - void clear_reorg_txs() ; - ::uint64_t reorg_txs() const; - void set_reorg_txs(::uint64_t value); - - private: - ::uint64_t _internal_reorg_txs() const; - void _internal_set_reorg_txs(::uint64_t value); - - public: - // uint64 unconfirmed_weight = 4; - void clear_unconfirmed_weight() ; - ::uint64_t unconfirmed_weight() const; - void set_unconfirmed_weight(::uint64_t value); - - private: - ::uint64_t _internal_unconfirmed_weight() const; - void _internal_set_unconfirmed_weight(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.MempoolStatsResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t unconfirmed_txs_; - ::uint64_t reorg_txs_; - ::uint64_t unconfirmed_weight_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class ListHeadersRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ListHeadersRequest) */ { - public: - inline ListHeadersRequest() : ListHeadersRequest(nullptr) {} - ~ListHeadersRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListHeadersRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline ListHeadersRequest(const ListHeadersRequest& from) : ListHeadersRequest(nullptr, from) {} - inline ListHeadersRequest(ListHeadersRequest&& from) noexcept - : ListHeadersRequest(nullptr, std::move(from)) {} - inline ListHeadersRequest& operator=(const ListHeadersRequest& from) { - CopyFrom(from); - return *this; - } - inline ListHeadersRequest& operator=(ListHeadersRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ListHeadersRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ListHeadersRequest* internal_default_instance() { - return reinterpret_cast( - &_ListHeadersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 21; - friend void swap(ListHeadersRequest& a, ListHeadersRequest& b) { a.Swap(&b); } - inline void Swap(ListHeadersRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ListHeadersRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ListHeadersRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListHeadersRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ListHeadersRequest& from) { ListHeadersRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListHeadersRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ListHeadersRequest"; } - - protected: - explicit ListHeadersRequest(::google::protobuf::Arena* arena); - ListHeadersRequest(::google::protobuf::Arena* arena, const ListHeadersRequest& from); - ListHeadersRequest(::google::protobuf::Arena* arena, ListHeadersRequest&& from) noexcept - : ListHeadersRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFromHeightFieldNumber = 1, - kNumHeadersFieldNumber = 2, - kSortingFieldNumber = 3, - }; - // uint64 from_height = 1; - void clear_from_height() ; - ::uint64_t from_height() const; - void set_from_height(::uint64_t value); - - private: - ::uint64_t _internal_from_height() const; - void _internal_set_from_height(::uint64_t value); - - public: - // uint64 num_headers = 2; - void clear_num_headers() ; - ::uint64_t num_headers() const; - void set_num_headers(::uint64_t value); - - private: - ::uint64_t _internal_num_headers() const; - void _internal_set_num_headers(::uint64_t value); - - public: - // .tari.rpc.Sorting sorting = 3; - void clear_sorting() ; - ::tari::rpc::Sorting sorting() const; - void set_sorting(::tari::rpc::Sorting value); - - private: - ::tari::rpc::Sorting _internal_sorting() const; - void _internal_set_sorting(::tari::rpc::Sorting value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ListHeadersRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t from_height_; - ::uint64_t num_headers_; - int sorting_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class ListAssetRegistrationsRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsRequest) */ { - public: - inline ListAssetRegistrationsRequest() : ListAssetRegistrationsRequest(nullptr) {} - ~ListAssetRegistrationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline ListAssetRegistrationsRequest(const ListAssetRegistrationsRequest& from) : ListAssetRegistrationsRequest(nullptr, from) {} - inline ListAssetRegistrationsRequest(ListAssetRegistrationsRequest&& from) noexcept - : ListAssetRegistrationsRequest(nullptr, std::move(from)) {} - inline ListAssetRegistrationsRequest& operator=(const ListAssetRegistrationsRequest& from) { - CopyFrom(from); - return *this; - } - inline ListAssetRegistrationsRequest& operator=(ListAssetRegistrationsRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ListAssetRegistrationsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const ListAssetRegistrationsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListAssetRegistrationsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(ListAssetRegistrationsRequest& a, ListAssetRegistrationsRequest& b) { a.Swap(&b); } - inline void Swap(ListAssetRegistrationsRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ListAssetRegistrationsRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ListAssetRegistrationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListAssetRegistrationsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ListAssetRegistrationsRequest& from) { ListAssetRegistrationsRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListAssetRegistrationsRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ListAssetRegistrationsRequest"; } - - protected: - explicit ListAssetRegistrationsRequest(::google::protobuf::Arena* arena); - ListAssetRegistrationsRequest(::google::protobuf::Arena* arena, const ListAssetRegistrationsRequest& from); - ListAssetRegistrationsRequest(::google::protobuf::Arena* arena, ListAssetRegistrationsRequest&& from) noexcept - : ListAssetRegistrationsRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kOffsetFieldNumber = 2, - kCountFieldNumber = 3, - }; - // uint64 offset = 2; - void clear_offset() ; - ::uint64_t offset() const; - void set_offset(::uint64_t value); - - private: - ::uint64_t _internal_offset() const; - void _internal_set_offset(::uint64_t value); - - public: - // uint64 count = 3; - void clear_count() ; - ::uint64_t count() const; - void set_count(::uint64_t value); - - private: - ::uint64_t _internal_count() const; - void _internal_set_count(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ListAssetRegistrationsRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t offset_; - ::uint64_t count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class IntegerValue final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.IntegerValue) */ { - public: - inline IntegerValue() : IntegerValue(nullptr) {} - ~IntegerValue() override; - template - explicit PROTOBUF_CONSTEXPR IntegerValue( - ::google::protobuf::internal::ConstantInitialized); - - inline IntegerValue(const IntegerValue& from) : IntegerValue(nullptr, from) {} - inline IntegerValue(IntegerValue&& from) noexcept - : IntegerValue(nullptr, std::move(from)) {} - inline IntegerValue& operator=(const IntegerValue& from) { - CopyFrom(from); - return *this; - } - inline IntegerValue& operator=(IntegerValue&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const IntegerValue& default_instance() { - return *internal_default_instance(); - } - static inline const IntegerValue* internal_default_instance() { - return reinterpret_cast( - &_IntegerValue_default_instance_); - } - static constexpr int kIndexInFileMessages = 13; - friend void swap(IntegerValue& a, IntegerValue& b) { a.Swap(&b); } - inline void Swap(IntegerValue* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IntegerValue* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IntegerValue* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const IntegerValue& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const IntegerValue& from) { IntegerValue::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(IntegerValue* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.IntegerValue"; } - - protected: - explicit IntegerValue(::google::protobuf::Arena* arena); - IntegerValue(::google::protobuf::Arena* arena, const IntegerValue& from); - IntegerValue(::google::protobuf::Arena* arena, IntegerValue&& from) noexcept - : IntegerValue(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValueFieldNumber = 1, - }; - // uint64 value = 1; - void clear_value() ; - ::uint64_t value() const; - void set_value(::uint64_t value); - - private: - ::uint64_t _internal_value() const; - void _internal_set_value(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.IntegerValue) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class HeightRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.HeightRequest) */ { - public: - inline HeightRequest() : HeightRequest(nullptr) {} - ~HeightRequest() override; - template - explicit PROTOBUF_CONSTEXPR HeightRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline HeightRequest(const HeightRequest& from) : HeightRequest(nullptr, from) {} - inline HeightRequest(HeightRequest&& from) noexcept - : HeightRequest(nullptr, std::move(from)) {} - inline HeightRequest& operator=(const HeightRequest& from) { - CopyFrom(from); - return *this; - } - inline HeightRequest& operator=(HeightRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const HeightRequest& default_instance() { - return *internal_default_instance(); - } - static inline const HeightRequest* internal_default_instance() { - return reinterpret_cast( - &_HeightRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 17; - friend void swap(HeightRequest& a, HeightRequest& b) { a.Swap(&b); } - inline void Swap(HeightRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HeightRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HeightRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const HeightRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const HeightRequest& from) { HeightRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(HeightRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.HeightRequest"; } - - protected: - explicit HeightRequest(::google::protobuf::Arena* arena); - HeightRequest(::google::protobuf::Arena* arena, const HeightRequest& from); - HeightRequest(::google::protobuf::Arena* arena, HeightRequest&& from) noexcept - : HeightRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFromTipFieldNumber = 1, - kStartHeightFieldNumber = 2, - kEndHeightFieldNumber = 3, - }; - // uint64 from_tip = 1; - void clear_from_tip() ; - ::uint64_t from_tip() const; - void set_from_tip(::uint64_t value); - - private: - ::uint64_t _internal_from_tip() const; - void _internal_set_from_tip(::uint64_t value); - - public: - // uint64 start_height = 2; - void clear_start_height() ; - ::uint64_t start_height() const; - void set_start_height(::uint64_t value); - - private: - ::uint64_t _internal_start_height() const; - void _internal_set_start_height(::uint64_t value); - - public: - // uint64 end_height = 3; - void clear_end_height() ; - ::uint64_t end_height() const; - void set_end_height(::uint64_t value); - - private: - ::uint64_t _internal_end_height() const; - void _internal_set_end_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.HeightRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t from_tip_; - ::uint64_t start_height_; - ::uint64_t end_height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetTokensRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensRequest) */ { - public: - inline GetTokensRequest() : GetTokensRequest(nullptr) {} - ~GetTokensRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetTokensRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetTokensRequest(const GetTokensRequest& from) : GetTokensRequest(nullptr, from) {} - inline GetTokensRequest(GetTokensRequest&& from) noexcept - : GetTokensRequest(nullptr, std::move(from)) {} - inline GetTokensRequest& operator=(const GetTokensRequest& from) { - CopyFrom(from); - return *this; - } - inline GetTokensRequest& operator=(GetTokensRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTokensRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetTokensRequest* internal_default_instance() { - return reinterpret_cast( - &_GetTokensRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(GetTokensRequest& a, GetTokensRequest& b) { a.Swap(&b); } - inline void Swap(GetTokensRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTokensRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTokensRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTokensRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetTokensRequest& from) { GetTokensRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTokensRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetTokensRequest"; } - - protected: - explicit GetTokensRequest(::google::protobuf::Arena* arena); - GetTokensRequest(::google::protobuf::Arena* arena, const GetTokensRequest& from); - GetTokensRequest(::google::protobuf::Arena* arena, GetTokensRequest&& from) noexcept - : GetTokensRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kUniqueIdsFieldNumber = 2, - kAssetPublicKeyFieldNumber = 1, - }; - // repeated bytes unique_ids = 2; - int unique_ids_size() const; - private: - int _internal_unique_ids_size() const; - - public: - void clear_unique_ids() ; - const std::string& unique_ids(int index) const; - std::string* mutable_unique_ids(int index); - void set_unique_ids(int index, const std::string& value); - void set_unique_ids(int index, std::string&& value); - void set_unique_ids(int index, const char* value); - void set_unique_ids(int index, const void* value, std::size_t size); - void set_unique_ids(int index, absl::string_view value); - std::string* add_unique_ids(); - void add_unique_ids(const std::string& value); - void add_unique_ids(std::string&& value); - void add_unique_ids(const char* value); - void add_unique_ids(const void* value, std::size_t size); - void add_unique_ids(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& unique_ids() const; - ::google::protobuf::RepeatedPtrField* mutable_unique_ids(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_unique_ids() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_unique_ids(); - - public: - // bytes asset_public_key = 1; - void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template - void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); - - private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetTokensRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField unique_ids_; - ::google::protobuf::internal::ArenaStringPtr asset_public_key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetTemplateRegistrationsRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationsRequest) */ { - public: - inline GetTemplateRegistrationsRequest() : GetTemplateRegistrationsRequest(nullptr) {} - ~GetTemplateRegistrationsRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationsRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetTemplateRegistrationsRequest(const GetTemplateRegistrationsRequest& from) : GetTemplateRegistrationsRequest(nullptr, from) {} - inline GetTemplateRegistrationsRequest(GetTemplateRegistrationsRequest&& from) noexcept - : GetTemplateRegistrationsRequest(nullptr, std::move(from)) {} - inline GetTemplateRegistrationsRequest& operator=(const GetTemplateRegistrationsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetTemplateRegistrationsRequest& operator=(GetTemplateRegistrationsRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTemplateRegistrationsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetTemplateRegistrationsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetTemplateRegistrationsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 47; - friend void swap(GetTemplateRegistrationsRequest& a, GetTemplateRegistrationsRequest& b) { a.Swap(&b); } - inline void Swap(GetTemplateRegistrationsRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTemplateRegistrationsRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTemplateRegistrationsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTemplateRegistrationsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetTemplateRegistrationsRequest& from) { GetTemplateRegistrationsRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTemplateRegistrationsRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetTemplateRegistrationsRequest"; } - - protected: - explicit GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena); - GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena, const GetTemplateRegistrationsRequest& from); - GetTemplateRegistrationsRequest(::google::protobuf::Arena* arena, GetTemplateRegistrationsRequest&& from) noexcept - : GetTemplateRegistrationsRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kStartHashFieldNumber = 1, - kCountFieldNumber = 2, - }; - // bytes start_hash = 1; - void clear_start_hash() ; - const std::string& start_hash() const; - template - void set_start_hash(Arg_&& arg, Args_... args); - std::string* mutable_start_hash(); - PROTOBUF_NODISCARD std::string* release_start_hash(); - void set_allocated_start_hash(std::string* value); - - private: - const std::string& _internal_start_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_start_hash( - const std::string& value); - std::string* _internal_mutable_start_hash(); - - public: - // uint64 count = 2; - void clear_count() ; - ::uint64_t count() const; - void set_count(::uint64_t value); - - private: - ::uint64_t _internal_count() const; - void _internal_set_count(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetTemplateRegistrationsRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr start_hash_; - ::uint64_t count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetSideChainUtxosRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosRequest) */ { - public: - inline GetSideChainUtxosRequest() : GetSideChainUtxosRequest(nullptr) {} - ~GetSideChainUtxosRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetSideChainUtxosRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetSideChainUtxosRequest(const GetSideChainUtxosRequest& from) : GetSideChainUtxosRequest(nullptr, from) {} - inline GetSideChainUtxosRequest(GetSideChainUtxosRequest&& from) noexcept - : GetSideChainUtxosRequest(nullptr, std::move(from)) {} - inline GetSideChainUtxosRequest& operator=(const GetSideChainUtxosRequest& from) { - CopyFrom(from); - return *this; - } - inline GetSideChainUtxosRequest& operator=(GetSideChainUtxosRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetSideChainUtxosRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetSideChainUtxosRequest* internal_default_instance() { - return reinterpret_cast( - &_GetSideChainUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 50; - friend void swap(GetSideChainUtxosRequest& a, GetSideChainUtxosRequest& b) { a.Swap(&b); } - inline void Swap(GetSideChainUtxosRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetSideChainUtxosRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetSideChainUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetSideChainUtxosRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetSideChainUtxosRequest& from) { GetSideChainUtxosRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetSideChainUtxosRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetSideChainUtxosRequest"; } - - protected: - explicit GetSideChainUtxosRequest(::google::protobuf::Arena* arena); - GetSideChainUtxosRequest(::google::protobuf::Arena* arena, const GetSideChainUtxosRequest& from); - GetSideChainUtxosRequest(::google::protobuf::Arena* arena, GetSideChainUtxosRequest&& from) noexcept - : GetSideChainUtxosRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kStartHashFieldNumber = 1, - kCountFieldNumber = 2, - }; - // bytes start_hash = 1; - void clear_start_hash() ; - const std::string& start_hash() const; - template - void set_start_hash(Arg_&& arg, Args_... args); - std::string* mutable_start_hash(); - PROTOBUF_NODISCARD std::string* release_start_hash(); - void set_allocated_start_hash(std::string* value); - - private: - const std::string& _internal_start_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_start_hash( - const std::string& value); - std::string* _internal_mutable_start_hash(); - - public: - // uint64 count = 2; - void clear_count() ; - ::uint64_t count() const; - void set_count(::uint64_t value); - - private: - ::uint64_t _internal_count() const; - void _internal_set_count(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetSideChainUtxosRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr start_hash_; - ::uint64_t count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetShardKeyResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyResponse) */ { - public: - inline GetShardKeyResponse() : GetShardKeyResponse(nullptr) {} - ~GetShardKeyResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetShardKeyResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetShardKeyResponse(const GetShardKeyResponse& from) : GetShardKeyResponse(nullptr, from) {} - inline GetShardKeyResponse(GetShardKeyResponse&& from) noexcept - : GetShardKeyResponse(nullptr, std::move(from)) {} - inline GetShardKeyResponse& operator=(const GetShardKeyResponse& from) { - CopyFrom(from); - return *this; - } - inline GetShardKeyResponse& operator=(GetShardKeyResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetShardKeyResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetShardKeyResponse* internal_default_instance() { - return reinterpret_cast( - &_GetShardKeyResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 46; - friend void swap(GetShardKeyResponse& a, GetShardKeyResponse& b) { a.Swap(&b); } - inline void Swap(GetShardKeyResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetShardKeyResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetShardKeyResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetShardKeyResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetShardKeyResponse& from) { GetShardKeyResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetShardKeyResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetShardKeyResponse"; } - - protected: - explicit GetShardKeyResponse(::google::protobuf::Arena* arena); - GetShardKeyResponse(::google::protobuf::Arena* arena, const GetShardKeyResponse& from); - GetShardKeyResponse(::google::protobuf::Arena* arena, GetShardKeyResponse&& from) noexcept - : GetShardKeyResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kShardKeyFieldNumber = 1, - kFoundFieldNumber = 2, - }; - // bytes shard_key = 1; - void clear_shard_key() ; - const std::string& shard_key() const; - template - void set_shard_key(Arg_&& arg, Args_... args); - std::string* mutable_shard_key(); - PROTOBUF_NODISCARD std::string* release_shard_key(); - void set_allocated_shard_key(std::string* value); - - private: - const std::string& _internal_shard_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_shard_key( - const std::string& value); - std::string* _internal_mutable_shard_key(); - - public: - // bool found = 2; - void clear_found() ; - bool found() const; - void set_found(bool value); - - private: - bool _internal_found() const; - void _internal_set_found(bool value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetShardKeyResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr shard_key_; - bool found_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetShardKeyRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetShardKeyRequest) */ { - public: - inline GetShardKeyRequest() : GetShardKeyRequest(nullptr) {} - ~GetShardKeyRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetShardKeyRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetShardKeyRequest(const GetShardKeyRequest& from) : GetShardKeyRequest(nullptr, from) {} - inline GetShardKeyRequest(GetShardKeyRequest&& from) noexcept - : GetShardKeyRequest(nullptr, std::move(from)) {} - inline GetShardKeyRequest& operator=(const GetShardKeyRequest& from) { - CopyFrom(from); - return *this; - } - inline GetShardKeyRequest& operator=(GetShardKeyRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetShardKeyRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetShardKeyRequest* internal_default_instance() { - return reinterpret_cast( - &_GetShardKeyRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 45; - friend void swap(GetShardKeyRequest& a, GetShardKeyRequest& b) { a.Swap(&b); } - inline void Swap(GetShardKeyRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetShardKeyRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetShardKeyRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetShardKeyRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetShardKeyRequest& from) { GetShardKeyRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetShardKeyRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetShardKeyRequest"; } - - protected: - explicit GetShardKeyRequest(::google::protobuf::Arena* arena); - GetShardKeyRequest(::google::protobuf::Arena* arena, const GetShardKeyRequest& from); - GetShardKeyRequest(::google::protobuf::Arena* arena, GetShardKeyRequest&& from) noexcept - : GetShardKeyRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 2, - kHeightFieldNumber = 1, - }; - // bytes public_key = 2; - void clear_public_key() ; - const std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); - - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); - - public: - // uint64 height = 1; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); - - private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetShardKeyRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr public_key_; - ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetPeersRequest final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersRequest) */ { - public: - inline GetPeersRequest() : GetPeersRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetPeersRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetPeersRequest(const GetPeersRequest& from) : GetPeersRequest(nullptr, from) {} - inline GetPeersRequest(GetPeersRequest&& from) noexcept - : GetPeersRequest(nullptr, std::move(from)) {} - inline GetPeersRequest& operator=(const GetPeersRequest& from) { - CopyFrom(from); - return *this; - } - inline GetPeersRequest& operator=(GetPeersRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetPeersRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetPeersRequest* internal_default_instance() { - return reinterpret_cast( - &_GetPeersRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 35; - friend void swap(GetPeersRequest& a, GetPeersRequest& b) { a.Swap(&b); } - inline void Swap(GetPeersRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetPeersRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetPeersRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetPeersRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetPeersRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetPeersRequest"; } - - protected: - explicit GetPeersRequest(::google::protobuf::Arena* arena); - GetPeersRequest(::google::protobuf::Arena* arena, const GetPeersRequest& from); - GetPeersRequest(::google::protobuf::Arena* arena, GetPeersRequest&& from) noexcept - : GetPeersRequest(arena) { - *this = ::std::move(from); - } - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.GetPeersRequest) - private: - class _Internal; - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNewBlockBlobResult final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockBlobResult) */ { - public: - inline GetNewBlockBlobResult() : GetNewBlockBlobResult(nullptr) {} - ~GetNewBlockBlobResult() override; - template - explicit PROTOBUF_CONSTEXPR GetNewBlockBlobResult( - ::google::protobuf::internal::ConstantInitialized); - - inline GetNewBlockBlobResult(const GetNewBlockBlobResult& from) : GetNewBlockBlobResult(nullptr, from) {} - inline GetNewBlockBlobResult(GetNewBlockBlobResult&& from) noexcept - : GetNewBlockBlobResult(nullptr, std::move(from)) {} - inline GetNewBlockBlobResult& operator=(const GetNewBlockBlobResult& from) { - CopyFrom(from); - return *this; - } - inline GetNewBlockBlobResult& operator=(GetNewBlockBlobResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetNewBlockBlobResult& default_instance() { - return *internal_default_instance(); - } - static inline const GetNewBlockBlobResult* internal_default_instance() { - return reinterpret_cast( - &_GetNewBlockBlobResult_default_instance_); - } - static constexpr int kIndexInFileMessages = 28; - friend void swap(GetNewBlockBlobResult& a, GetNewBlockBlobResult& b) { a.Swap(&b); } - inline void Swap(GetNewBlockBlobResult* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNewBlockBlobResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetNewBlockBlobResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetNewBlockBlobResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetNewBlockBlobResult& from) { GetNewBlockBlobResult::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetNewBlockBlobResult* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockBlobResult"; } - - protected: - explicit GetNewBlockBlobResult(::google::protobuf::Arena* arena); - GetNewBlockBlobResult(::google::protobuf::Arena* arena, const GetNewBlockBlobResult& from); - GetNewBlockBlobResult(::google::protobuf::Arena* arena, GetNewBlockBlobResult&& from) noexcept - : GetNewBlockBlobResult(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBlockHashFieldNumber = 1, - kHeaderFieldNumber = 2, - kBlockBodyFieldNumber = 3, - kMergeMiningHashFieldNumber = 4, - kUtxoMrFieldNumber = 5, - kTariUniqueIdFieldNumber = 6, - }; - // bytes block_hash = 1; - void clear_block_hash() ; - const std::string& block_hash() const; - template - void set_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_block_hash(); - PROTOBUF_NODISCARD std::string* release_block_hash(); - void set_allocated_block_hash(std::string* value); - - private: - const std::string& _internal_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash( - const std::string& value); - std::string* _internal_mutable_block_hash(); - - public: - // bytes header = 2; - void clear_header() ; - const std::string& header() const; - template - void set_header(Arg_&& arg, Args_... args); - std::string* mutable_header(); - PROTOBUF_NODISCARD std::string* release_header(); - void set_allocated_header(std::string* value); - - private: - const std::string& _internal_header() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_header( - const std::string& value); - std::string* _internal_mutable_header(); - - public: - // bytes block_body = 3; - void clear_block_body() ; - const std::string& block_body() const; - template - void set_block_body(Arg_&& arg, Args_... args); - std::string* mutable_block_body(); - PROTOBUF_NODISCARD std::string* release_block_body(); - void set_allocated_block_body(std::string* value); - - private: - const std::string& _internal_block_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_body( - const std::string& value); - std::string* _internal_mutable_block_body(); - - public: - // bytes merge_mining_hash = 4; - void clear_merge_mining_hash() ; - const std::string& merge_mining_hash() const; - template - void set_merge_mining_hash(Arg_&& arg, Args_... args); - std::string* mutable_merge_mining_hash(); - PROTOBUF_NODISCARD std::string* release_merge_mining_hash(); - void set_allocated_merge_mining_hash(std::string* value); - - private: - const std::string& _internal_merge_mining_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_merge_mining_hash( - const std::string& value); - std::string* _internal_mutable_merge_mining_hash(); - - public: - // bytes utxo_mr = 5; - void clear_utxo_mr() ; - const std::string& utxo_mr() const; - template - void set_utxo_mr(Arg_&& arg, Args_... args); - std::string* mutable_utxo_mr(); - PROTOBUF_NODISCARD std::string* release_utxo_mr(); - void set_allocated_utxo_mr(std::string* value); - - private: - const std::string& _internal_utxo_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_utxo_mr( - const std::string& value); - std::string* _internal_mutable_utxo_mr(); - - public: - // bytes tari_unique_id = 6; - void clear_tari_unique_id() ; - const std::string& tari_unique_id() const; - template - void set_tari_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_tari_unique_id(); - PROTOBUF_NODISCARD std::string* release_tari_unique_id(); - void set_allocated_tari_unique_id(std::string* value); - - private: - const std::string& _internal_tari_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id( - const std::string& value); - std::string* _internal_mutable_tari_unique_id(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockBlobResult) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr block_hash_; - ::google::protobuf::internal::ArenaStringPtr header_; - ::google::protobuf::internal::ArenaStringPtr block_body_; - ::google::protobuf::internal::ArenaStringPtr merge_mining_hash_; - ::google::protobuf::internal::ArenaStringPtr utxo_mr_; - ::google::protobuf::internal::ArenaStringPtr tari_unique_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetMempoolTransactionsRequest final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsRequest) */ { - public: - inline GetMempoolTransactionsRequest() : GetMempoolTransactionsRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetMempoolTransactionsRequest(const GetMempoolTransactionsRequest& from) : GetMempoolTransactionsRequest(nullptr, from) {} - inline GetMempoolTransactionsRequest(GetMempoolTransactionsRequest&& from) noexcept - : GetMempoolTransactionsRequest(nullptr, std::move(from)) {} - inline GetMempoolTransactionsRequest& operator=(const GetMempoolTransactionsRequest& from) { - CopyFrom(from); - return *this; - } - inline GetMempoolTransactionsRequest& operator=(GetMempoolTransactionsRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetMempoolTransactionsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetMempoolTransactionsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetMempoolTransactionsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 38; - friend void swap(GetMempoolTransactionsRequest& a, GetMempoolTransactionsRequest& b) { a.Swap(&b); } - inline void Swap(GetMempoolTransactionsRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetMempoolTransactionsRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetMempoolTransactionsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetMempoolTransactionsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetMempoolTransactionsRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetMempoolTransactionsRequest"; } - - protected: - explicit GetMempoolTransactionsRequest(::google::protobuf::Arena* arena); - GetMempoolTransactionsRequest(::google::protobuf::Arena* arena, const GetMempoolTransactionsRequest& from); - GetMempoolTransactionsRequest(::google::protobuf::Arena* arena, GetMempoolTransactionsRequest&& from) noexcept - : GetMempoolTransactionsRequest(arena) { - *this = ::std::move(from); - } - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.GetMempoolTransactionsRequest) - private: - class _Internal; - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetHeaderByHashRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetHeaderByHashRequest) */ { - public: - inline GetHeaderByHashRequest() : GetHeaderByHashRequest(nullptr) {} - ~GetHeaderByHashRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetHeaderByHashRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetHeaderByHashRequest(const GetHeaderByHashRequest& from) : GetHeaderByHashRequest(nullptr, from) {} - inline GetHeaderByHashRequest(GetHeaderByHashRequest&& from) noexcept - : GetHeaderByHashRequest(nullptr, std::move(from)) {} - inline GetHeaderByHashRequest& operator=(const GetHeaderByHashRequest& from) { - CopyFrom(from); - return *this; - } - inline GetHeaderByHashRequest& operator=(GetHeaderByHashRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetHeaderByHashRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetHeaderByHashRequest* internal_default_instance() { - return reinterpret_cast( - &_GetHeaderByHashRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 19; - friend void swap(GetHeaderByHashRequest& a, GetHeaderByHashRequest& b) { a.Swap(&b); } - inline void Swap(GetHeaderByHashRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetHeaderByHashRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetHeaderByHashRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetHeaderByHashRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetHeaderByHashRequest& from) { GetHeaderByHashRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetHeaderByHashRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetHeaderByHashRequest"; } - - protected: - explicit GetHeaderByHashRequest(::google::protobuf::Arena* arena); - GetHeaderByHashRequest(::google::protobuf::Arena* arena, const GetHeaderByHashRequest& from); - GetHeaderByHashRequest(::google::protobuf::Arena* arena, GetHeaderByHashRequest&& from) noexcept - : GetHeaderByHashRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHashFieldNumber = 1, - }; - // bytes hash = 1; - void clear_hash() ; - const std::string& hash() const; - template - void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); - - private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetHeaderByHashRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr hash_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetBlocksRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksRequest) */ { - public: - inline GetBlocksRequest() : GetBlocksRequest(nullptr) {} - ~GetBlocksRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetBlocksRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetBlocksRequest(const GetBlocksRequest& from) : GetBlocksRequest(nullptr, from) {} - inline GetBlocksRequest(GetBlocksRequest&& from) noexcept - : GetBlocksRequest(nullptr, std::move(from)) {} - inline GetBlocksRequest& operator=(const GetBlocksRequest& from) { - CopyFrom(from); - return *this; - } - inline GetBlocksRequest& operator=(GetBlocksRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetBlocksRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetBlocksRequest* internal_default_instance() { - return reinterpret_cast( - &_GetBlocksRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 22; - friend void swap(GetBlocksRequest& a, GetBlocksRequest& b) { a.Swap(&b); } - inline void Swap(GetBlocksRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetBlocksRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetBlocksRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetBlocksRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetBlocksRequest& from) { GetBlocksRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetBlocksRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetBlocksRequest"; } - - protected: - explicit GetBlocksRequest(::google::protobuf::Arena* arena); - GetBlocksRequest(::google::protobuf::Arena* arena, const GetBlocksRequest& from); - GetBlocksRequest(::google::protobuf::Arena* arena, GetBlocksRequest&& from) noexcept - : GetBlocksRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeightsFieldNumber = 1, - }; - // repeated uint64 heights = 1; - int heights_size() const; - private: - int _internal_heights_size() const; - - public: - void clear_heights() ; - ::uint64_t heights(int index) const; - void set_heights(int index, ::uint64_t value); - void add_heights(::uint64_t value); - const ::google::protobuf::RepeatedField<::uint64_t>& heights() const; - ::google::protobuf::RepeatedField<::uint64_t>* mutable_heights(); - - private: - const ::google::protobuf::RepeatedField<::uint64_t>& _internal_heights() const; - ::google::protobuf::RepeatedField<::uint64_t>* _internal_mutable_heights(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetBlocksRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField<::uint64_t> heights_; - mutable ::google::protobuf::internal::CachedSize _heights_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetAssetMetadataRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataRequest) */ { - public: - inline GetAssetMetadataRequest() : GetAssetMetadataRequest(nullptr) {} - ~GetAssetMetadataRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetAssetMetadataRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetAssetMetadataRequest(const GetAssetMetadataRequest& from) : GetAssetMetadataRequest(nullptr, from) {} - inline GetAssetMetadataRequest(GetAssetMetadataRequest&& from) noexcept - : GetAssetMetadataRequest(nullptr, std::move(from)) {} - inline GetAssetMetadataRequest& operator=(const GetAssetMetadataRequest& from) { - CopyFrom(from); - return *this; - } - inline GetAssetMetadataRequest& operator=(GetAssetMetadataRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetAssetMetadataRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetAssetMetadataRequest* internal_default_instance() { - return reinterpret_cast( - &_GetAssetMetadataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(GetAssetMetadataRequest& a, GetAssetMetadataRequest& b) { a.Swap(&b); } - inline void Swap(GetAssetMetadataRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetAssetMetadataRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetAssetMetadataRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAssetMetadataRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetAssetMetadataRequest& from) { GetAssetMetadataRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetAssetMetadataRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetAssetMetadataRequest"; } - - protected: - explicit GetAssetMetadataRequest(::google::protobuf::Arena* arena); - GetAssetMetadataRequest(::google::protobuf::Arena* arena, const GetAssetMetadataRequest& from); - GetAssetMetadataRequest(::google::protobuf::Arena* arena, GetAssetMetadataRequest&& from) noexcept - : GetAssetMetadataRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAssetPublicKeyFieldNumber = 1, - }; - // bytes asset_public_key = 1; - void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template - void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); - - private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetAssetMetadataRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr asset_public_key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetActiveValidatorNodesResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesResponse) */ { - public: - inline GetActiveValidatorNodesResponse() : GetActiveValidatorNodesResponse(nullptr) {} - ~GetActiveValidatorNodesResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetActiveValidatorNodesResponse(const GetActiveValidatorNodesResponse& from) : GetActiveValidatorNodesResponse(nullptr, from) {} - inline GetActiveValidatorNodesResponse(GetActiveValidatorNodesResponse&& from) noexcept - : GetActiveValidatorNodesResponse(nullptr, std::move(from)) {} - inline GetActiveValidatorNodesResponse& operator=(const GetActiveValidatorNodesResponse& from) { - CopyFrom(from); - return *this; - } - inline GetActiveValidatorNodesResponse& operator=(GetActiveValidatorNodesResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetActiveValidatorNodesResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetActiveValidatorNodesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetActiveValidatorNodesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 44; - friend void swap(GetActiveValidatorNodesResponse& a, GetActiveValidatorNodesResponse& b) { a.Swap(&b); } - inline void Swap(GetActiveValidatorNodesResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetActiveValidatorNodesResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetActiveValidatorNodesResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetActiveValidatorNodesResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetActiveValidatorNodesResponse& from) { GetActiveValidatorNodesResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetActiveValidatorNodesResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetActiveValidatorNodesResponse"; } - - protected: - explicit GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena); - GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena, const GetActiveValidatorNodesResponse& from); - GetActiveValidatorNodesResponse(::google::protobuf::Arena* arena, GetActiveValidatorNodesResponse&& from) noexcept - : GetActiveValidatorNodesResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kShardKeyFieldNumber = 1, - kPublicKeyFieldNumber = 2, - }; - // bytes shard_key = 1; - void clear_shard_key() ; - const std::string& shard_key() const; - template - void set_shard_key(Arg_&& arg, Args_... args); - std::string* mutable_shard_key(); - PROTOBUF_NODISCARD std::string* release_shard_key(); - void set_allocated_shard_key(std::string* value); - - private: - const std::string& _internal_shard_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_shard_key( - const std::string& value); - std::string* _internal_mutable_shard_key(); - - public: - // bytes public_key = 2; - void clear_public_key() ; - const std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); - - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetActiveValidatorNodesResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr shard_key_; - ::google::protobuf::internal::ArenaStringPtr public_key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetActiveValidatorNodesRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetActiveValidatorNodesRequest) */ { - public: - inline GetActiveValidatorNodesRequest() : GetActiveValidatorNodesRequest(nullptr) {} - ~GetActiveValidatorNodesRequest() override; - template - explicit PROTOBUF_CONSTEXPR GetActiveValidatorNodesRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetActiveValidatorNodesRequest(const GetActiveValidatorNodesRequest& from) : GetActiveValidatorNodesRequest(nullptr, from) {} - inline GetActiveValidatorNodesRequest(GetActiveValidatorNodesRequest&& from) noexcept - : GetActiveValidatorNodesRequest(nullptr, std::move(from)) {} - inline GetActiveValidatorNodesRequest& operator=(const GetActiveValidatorNodesRequest& from) { - CopyFrom(from); - return *this; - } - inline GetActiveValidatorNodesRequest& operator=(GetActiveValidatorNodesRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetActiveValidatorNodesRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetActiveValidatorNodesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetActiveValidatorNodesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 43; - friend void swap(GetActiveValidatorNodesRequest& a, GetActiveValidatorNodesRequest& b) { a.Swap(&b); } - inline void Swap(GetActiveValidatorNodesRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetActiveValidatorNodesRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetActiveValidatorNodesRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetActiveValidatorNodesRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetActiveValidatorNodesRequest& from) { GetActiveValidatorNodesRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetActiveValidatorNodesRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetActiveValidatorNodesRequest"; } - - protected: - explicit GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena); - GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena, const GetActiveValidatorNodesRequest& from); - GetActiveValidatorNodesRequest(::google::protobuf::Arena* arena, GetActiveValidatorNodesRequest&& from) noexcept - : GetActiveValidatorNodesRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeightFieldNumber = 1, - }; - // uint64 height = 1; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); - - private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetActiveValidatorNodesRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class FetchMatchingUtxosRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosRequest) */ { - public: - inline FetchMatchingUtxosRequest() : FetchMatchingUtxosRequest(nullptr) {} - ~FetchMatchingUtxosRequest() override; - template - explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline FetchMatchingUtxosRequest(const FetchMatchingUtxosRequest& from) : FetchMatchingUtxosRequest(nullptr, from) {} - inline FetchMatchingUtxosRequest(FetchMatchingUtxosRequest&& from) noexcept - : FetchMatchingUtxosRequest(nullptr, std::move(from)) {} - inline FetchMatchingUtxosRequest& operator=(const FetchMatchingUtxosRequest& from) { - CopyFrom(from); - return *this; - } - inline FetchMatchingUtxosRequest& operator=(FetchMatchingUtxosRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FetchMatchingUtxosRequest& default_instance() { - return *internal_default_instance(); - } - static inline const FetchMatchingUtxosRequest* internal_default_instance() { - return reinterpret_cast( - &_FetchMatchingUtxosRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 32; - friend void swap(FetchMatchingUtxosRequest& a, FetchMatchingUtxosRequest& b) { a.Swap(&b); } - inline void Swap(FetchMatchingUtxosRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FetchMatchingUtxosRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FetchMatchingUtxosRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FetchMatchingUtxosRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const FetchMatchingUtxosRequest& from) { FetchMatchingUtxosRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(FetchMatchingUtxosRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.FetchMatchingUtxosRequest"; } - - protected: - explicit FetchMatchingUtxosRequest(::google::protobuf::Arena* arena); - FetchMatchingUtxosRequest(::google::protobuf::Arena* arena, const FetchMatchingUtxosRequest& from); - FetchMatchingUtxosRequest(::google::protobuf::Arena* arena, FetchMatchingUtxosRequest&& from) noexcept - : FetchMatchingUtxosRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHashesFieldNumber = 1, - }; - // repeated bytes hashes = 1; - int hashes_size() const; - private: - int _internal_hashes_size() const; - - public: - void clear_hashes() ; - const std::string& hashes(int index) const; - std::string* mutable_hashes(int index); - void set_hashes(int index, const std::string& value); - void set_hashes(int index, std::string&& value); - void set_hashes(int index, const char* value); - void set_hashes(int index, const void* value, std::size_t size); - void set_hashes(int index, absl::string_view value); - std::string* add_hashes(); - void add_hashes(const std::string& value); - void add_hashes(std::string&& value); - void add_hashes(const char* value); - void add_hashes(const void* value, std::size_t size); - void add_hashes(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& hashes() const; - ::google::protobuf::RepeatedPtrField* mutable_hashes(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_hashes() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_hashes(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.FetchMatchingUtxosRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField hashes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockTimingResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockTimingResponse) */ { - public: - inline BlockTimingResponse() : BlockTimingResponse(nullptr) {} - ~BlockTimingResponse() override; - template - explicit PROTOBUF_CONSTEXPR BlockTimingResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockTimingResponse(const BlockTimingResponse& from) : BlockTimingResponse(nullptr, from) {} - inline BlockTimingResponse(BlockTimingResponse&& from) noexcept - : BlockTimingResponse(nullptr, std::move(from)) {} - inline BlockTimingResponse& operator=(const BlockTimingResponse& from) { - CopyFrom(from); - return *this; - } - inline BlockTimingResponse& operator=(BlockTimingResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockTimingResponse& default_instance() { - return *internal_default_instance(); - } - static inline const BlockTimingResponse* internal_default_instance() { - return reinterpret_cast( - &_BlockTimingResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 18; - friend void swap(BlockTimingResponse& a, BlockTimingResponse& b) { a.Swap(&b); } - inline void Swap(BlockTimingResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockTimingResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockTimingResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockTimingResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockTimingResponse& from) { BlockTimingResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockTimingResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockTimingResponse"; } - - protected: - explicit BlockTimingResponse(::google::protobuf::Arena* arena); - BlockTimingResponse(::google::protobuf::Arena* arena, const BlockTimingResponse& from); - BlockTimingResponse(::google::protobuf::Arena* arena, BlockTimingResponse&& from) noexcept - : BlockTimingResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMaxFieldNumber = 1, - kMinFieldNumber = 2, - kAvgFieldNumber = 3, - }; - // uint64 max = 1; - void clear_max() ; - ::uint64_t max() const; - void set_max(::uint64_t value); - - private: - ::uint64_t _internal_max() const; - void _internal_set_max(::uint64_t value); - - public: - // uint64 min = 2; - void clear_min() ; - ::uint64_t min() const; - void set_min(::uint64_t value); - - private: - ::uint64_t _internal_min() const; - void _internal_set_min(::uint64_t value); - - public: - // double avg = 3; - void clear_avg() ; - double avg() const; - void set_avg(double value); - - private: - double _internal_avg() const; - void _internal_set_avg(double value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockTimingResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t max_; - ::uint64_t min_; - double avg_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockInfo final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockInfo) */ { - public: - inline BlockInfo() : BlockInfo(nullptr) {} - ~BlockInfo() override; - template - explicit PROTOBUF_CONSTEXPR BlockInfo( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockInfo(const BlockInfo& from) : BlockInfo(nullptr, from) {} - inline BlockInfo(BlockInfo&& from) noexcept - : BlockInfo(nullptr, std::move(from)) {} - inline BlockInfo& operator=(const BlockInfo& from) { - CopyFrom(from); - return *this; - } - inline BlockInfo& operator=(BlockInfo&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockInfo& default_instance() { - return *internal_default_instance(); - } - static inline const BlockInfo* internal_default_instance() { - return reinterpret_cast( - &_BlockInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 49; - friend void swap(BlockInfo& a, BlockInfo& b) { a.Swap(&b); } - inline void Swap(BlockInfo* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockInfo& from) { BlockInfo::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockInfo* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockInfo"; } - - protected: - explicit BlockInfo(::google::protobuf::Arena* arena); - BlockInfo(::google::protobuf::Arena* arena, const BlockInfo& from); - BlockInfo(::google::protobuf::Arena* arena, BlockInfo&& from) noexcept - : BlockInfo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHashFieldNumber = 2, - kNextBlockHashFieldNumber = 3, - kHeightFieldNumber = 1, - }; - // bytes hash = 2; - void clear_hash() ; - const std::string& hash() const; - template - void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); - - private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); - - public: - // bytes next_block_hash = 3; - void clear_next_block_hash() ; - const std::string& next_block_hash() const; - template - void set_next_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_next_block_hash(); - PROTOBUF_NODISCARD std::string* release_next_block_hash(); - void set_allocated_next_block_hash(std::string* value); - - private: - const std::string& _internal_next_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_block_hash( - const std::string& value); - std::string* _internal_mutable_next_block_hash(); - - public: - // uint64 height = 1; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); - - private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockInfo) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr hash_; - ::google::protobuf::internal::ArenaStringPtr next_block_hash_; - ::uint64_t height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockGroupResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupResponse) */ { - public: - inline BlockGroupResponse() : BlockGroupResponse(nullptr) {} - ~BlockGroupResponse() override; - template - explicit PROTOBUF_CONSTEXPR BlockGroupResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockGroupResponse(const BlockGroupResponse& from) : BlockGroupResponse(nullptr, from) {} - inline BlockGroupResponse(BlockGroupResponse&& from) noexcept - : BlockGroupResponse(nullptr, std::move(from)) {} - inline BlockGroupResponse& operator=(const BlockGroupResponse& from) { - CopyFrom(from); - return *this; - } - inline BlockGroupResponse& operator=(BlockGroupResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockGroupResponse& default_instance() { - return *internal_default_instance(); - } - static inline const BlockGroupResponse* internal_default_instance() { - return reinterpret_cast( - &_BlockGroupResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 16; - friend void swap(BlockGroupResponse& a, BlockGroupResponse& b) { a.Swap(&b); } - inline void Swap(BlockGroupResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockGroupResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockGroupResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockGroupResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockGroupResponse& from) { BlockGroupResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockGroupResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockGroupResponse"; } - - protected: - explicit BlockGroupResponse(::google::protobuf::Arena* arena); - BlockGroupResponse(::google::protobuf::Arena* arena, const BlockGroupResponse& from); - BlockGroupResponse(::google::protobuf::Arena* arena, BlockGroupResponse&& from) noexcept - : BlockGroupResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValueFieldNumber = 1, - kCalcTypeFieldNumber = 2, - }; - // repeated double value = 1; - int value_size() const; - private: - int _internal_value_size() const; - - public: - void clear_value() ; - double value(int index) const; - void set_value(int index, double value); - void add_value(double value); - const ::google::protobuf::RepeatedField& value() const; - ::google::protobuf::RepeatedField* mutable_value(); - - private: - const ::google::protobuf::RepeatedField& _internal_value() const; - ::google::protobuf::RepeatedField* _internal_mutable_value(); - - public: - // .tari.rpc.CalcType calc_type = 2; - void clear_calc_type() ; - ::tari::rpc::CalcType calc_type() const; - void set_calc_type(::tari::rpc::CalcType value); - - private: - ::tari::rpc::CalcType _internal_calc_type() const; - void _internal_set_calc_type(::tari::rpc::CalcType value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockGroupResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField value_; - int calc_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockGroupRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockGroupRequest) */ { - public: - inline BlockGroupRequest() : BlockGroupRequest(nullptr) {} - ~BlockGroupRequest() override; - template - explicit PROTOBUF_CONSTEXPR BlockGroupRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockGroupRequest(const BlockGroupRequest& from) : BlockGroupRequest(nullptr, from) {} - inline BlockGroupRequest(BlockGroupRequest&& from) noexcept - : BlockGroupRequest(nullptr, std::move(from)) {} - inline BlockGroupRequest& operator=(const BlockGroupRequest& from) { - CopyFrom(from); - return *this; - } - inline BlockGroupRequest& operator=(BlockGroupRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockGroupRequest& default_instance() { - return *internal_default_instance(); - } - static inline const BlockGroupRequest* internal_default_instance() { - return reinterpret_cast( - &_BlockGroupRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 15; - friend void swap(BlockGroupRequest& a, BlockGroupRequest& b) { a.Swap(&b); } - inline void Swap(BlockGroupRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockGroupRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockGroupRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockGroupRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockGroupRequest& from) { BlockGroupRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockGroupRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockGroupRequest"; } - - protected: - explicit BlockGroupRequest(::google::protobuf::Arena* arena); - BlockGroupRequest(::google::protobuf::Arena* arena, const BlockGroupRequest& from); - BlockGroupRequest(::google::protobuf::Arena* arena, BlockGroupRequest&& from) noexcept - : BlockGroupRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kFromTipFieldNumber = 1, - kStartHeightFieldNumber = 2, - kEndHeightFieldNumber = 3, - kCalcTypeFieldNumber = 4, - }; - // uint64 from_tip = 1; - void clear_from_tip() ; - ::uint64_t from_tip() const; - void set_from_tip(::uint64_t value); - - private: - ::uint64_t _internal_from_tip() const; - void _internal_set_from_tip(::uint64_t value); - - public: - // uint64 start_height = 2; - void clear_start_height() ; - ::uint64_t start_height() const; - void set_start_height(::uint64_t value); - - private: - ::uint64_t _internal_start_height() const; - void _internal_set_start_height(::uint64_t value); - - public: - // uint64 end_height = 3; - void clear_end_height() ; - ::uint64_t end_height() const; - void set_end_height(::uint64_t value); - - private: - ::uint64_t _internal_end_height() const; - void _internal_set_end_height(::uint64_t value); - - public: - // .tari.rpc.CalcType calc_type = 4; - void clear_calc_type() ; - ::tari::rpc::CalcType calc_type() const; - void set_calc_type(::tari::rpc::CalcType value); - - private: - ::tari::rpc::CalcType _internal_calc_type() const; - void _internal_set_calc_type(::tari::rpc::CalcType value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockGroupRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t from_tip_; - ::uint64_t start_height_; - ::uint64_t end_height_; - int calc_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockBlobRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockBlobRequest) */ { - public: - inline BlockBlobRequest() : BlockBlobRequest(nullptr) {} - ~BlockBlobRequest() override; - template - explicit PROTOBUF_CONSTEXPR BlockBlobRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockBlobRequest(const BlockBlobRequest& from) : BlockBlobRequest(nullptr, from) {} - inline BlockBlobRequest(BlockBlobRequest&& from) noexcept - : BlockBlobRequest(nullptr, std::move(from)) {} - inline BlockBlobRequest& operator=(const BlockBlobRequest& from) { - CopyFrom(from); - return *this; - } - inline BlockBlobRequest& operator=(BlockBlobRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockBlobRequest& default_instance() { - return *internal_default_instance(); - } - static inline const BlockBlobRequest* internal_default_instance() { - return reinterpret_cast( - &_BlockBlobRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(BlockBlobRequest& a, BlockBlobRequest& b) { a.Swap(&b); } - inline void Swap(BlockBlobRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockBlobRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockBlobRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockBlobRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockBlobRequest& from) { BlockBlobRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockBlobRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockBlobRequest"; } - - protected: - explicit BlockBlobRequest(::google::protobuf::Arena* arena); - BlockBlobRequest(::google::protobuf::Arena* arena, const BlockBlobRequest& from); - BlockBlobRequest(::google::protobuf::Arena* arena, BlockBlobRequest&& from) noexcept - : BlockBlobRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeaderBlobFieldNumber = 1, - kBodyBlobFieldNumber = 2, - }; - // bytes header_blob = 1; - void clear_header_blob() ; - const std::string& header_blob() const; - template - void set_header_blob(Arg_&& arg, Args_... args); - std::string* mutable_header_blob(); - PROTOBUF_NODISCARD std::string* release_header_blob(); - void set_allocated_header_blob(std::string* value); - - private: - const std::string& _internal_header_blob() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_header_blob( - const std::string& value); - std::string* _internal_mutable_header_blob(); - - public: - // bytes body_blob = 2; - void clear_body_blob() ; - const std::string& body_blob() const; - template - void set_body_blob(Arg_&& arg, Args_... args); - std::string* mutable_body_blob(); - PROTOBUF_NODISCARD std::string* release_body_blob(); - void set_allocated_body_blob(std::string* value); - - private: - const std::string& _internal_body_blob() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_body_blob( - const std::string& value); - std::string* _internal_mutable_body_blob(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockBlobRequest) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr header_blob_; - ::google::protobuf::internal::ArenaStringPtr body_blob_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class TransactionStateRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionStateRequest) */ { - public: - inline TransactionStateRequest() : TransactionStateRequest(nullptr) {} - ~TransactionStateRequest() override; - template - explicit PROTOBUF_CONSTEXPR TransactionStateRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline TransactionStateRequest(const TransactionStateRequest& from) : TransactionStateRequest(nullptr, from) {} - inline TransactionStateRequest(TransactionStateRequest&& from) noexcept - : TransactionStateRequest(nullptr, std::move(from)) {} - inline TransactionStateRequest& operator=(const TransactionStateRequest& from) { - CopyFrom(from); - return *this; - } - inline TransactionStateRequest& operator=(TransactionStateRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransactionStateRequest& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionStateRequest* internal_default_instance() { - return reinterpret_cast( - &_TransactionStateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 40; - friend void swap(TransactionStateRequest& a, TransactionStateRequest& b) { a.Swap(&b); } - inline void Swap(TransactionStateRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransactionStateRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransactionStateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransactionStateRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TransactionStateRequest& from) { TransactionStateRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionStateRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionStateRequest"; } - - protected: - explicit TransactionStateRequest(::google::protobuf::Arena* arena); - TransactionStateRequest(::google::protobuf::Arena* arena, const TransactionStateRequest& from); - TransactionStateRequest(::google::protobuf::Arena* arena, TransactionStateRequest&& from) noexcept - : TransactionStateRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kExcessSigFieldNumber = 1, - }; - // .tari.rpc.Signature excess_sig = 1; - bool has_excess_sig() const; - void clear_excess_sig() ; - const ::tari::rpc::Signature& excess_sig() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_excess_sig(); - ::tari::rpc::Signature* mutable_excess_sig(); - void set_allocated_excess_sig(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_excess_sig(); - - private: - const ::tari::rpc::Signature& _internal_excess_sig() const; - ::tari::rpc::Signature* _internal_mutable_excess_sig(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.TransactionStateRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Signature* excess_sig_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class TipInfoResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TipInfoResponse) */ { - public: - inline TipInfoResponse() : TipInfoResponse(nullptr) {} - ~TipInfoResponse() override; - template - explicit PROTOBUF_CONSTEXPR TipInfoResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline TipInfoResponse(const TipInfoResponse& from) : TipInfoResponse(nullptr, from) {} - inline TipInfoResponse(TipInfoResponse&& from) noexcept - : TipInfoResponse(nullptr, std::move(from)) {} - inline TipInfoResponse& operator=(const TipInfoResponse& from) { - CopyFrom(from); - return *this; - } - inline TipInfoResponse& operator=(TipInfoResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TipInfoResponse& default_instance() { - return *internal_default_instance(); - } - static inline const TipInfoResponse* internal_default_instance() { - return reinterpret_cast( - &_TipInfoResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 8; - friend void swap(TipInfoResponse& a, TipInfoResponse& b) { a.Swap(&b); } - inline void Swap(TipInfoResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TipInfoResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TipInfoResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TipInfoResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TipInfoResponse& from) { TipInfoResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TipInfoResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TipInfoResponse"; } - - protected: - explicit TipInfoResponse(::google::protobuf::Arena* arena); - TipInfoResponse(::google::protobuf::Arena* arena, const TipInfoResponse& from); - TipInfoResponse(::google::protobuf::Arena* arena, TipInfoResponse&& from) noexcept - : TipInfoResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMetadataFieldNumber = 1, - kInitialSyncAchievedFieldNumber = 2, - kBaseNodeStateFieldNumber = 3, - }; - // .tari.rpc.MetaData metadata = 1; - bool has_metadata() const; - void clear_metadata() ; - const ::tari::rpc::MetaData& metadata() const; - PROTOBUF_NODISCARD ::tari::rpc::MetaData* release_metadata(); - ::tari::rpc::MetaData* mutable_metadata(); - void set_allocated_metadata(::tari::rpc::MetaData* value); - void unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* value); - ::tari::rpc::MetaData* unsafe_arena_release_metadata(); - - private: - const ::tari::rpc::MetaData& _internal_metadata() const; - ::tari::rpc::MetaData* _internal_mutable_metadata(); - - public: - // bool initial_sync_achieved = 2; - void clear_initial_sync_achieved() ; - bool initial_sync_achieved() const; - void set_initial_sync_achieved(bool value); - - private: - bool _internal_initial_sync_achieved() const; - void _internal_set_initial_sync_achieved(bool value); - - public: - // .tari.rpc.BaseNodeState base_node_state = 3; - void clear_base_node_state() ; - ::tari::rpc::BaseNodeState base_node_state() const; - void set_base_node_state(::tari::rpc::BaseNodeState value); - - private: - ::tari::rpc::BaseNodeState _internal_base_node_state() const; - void _internal_set_base_node_state(::tari::rpc::BaseNodeState value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.TipInfoResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::MetaData* metadata_; - bool initial_sync_achieved_; - int base_node_state_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchKernelsRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SearchKernelsRequest) */ { - public: - inline SearchKernelsRequest() : SearchKernelsRequest(nullptr) {} - ~SearchKernelsRequest() override; - template - explicit PROTOBUF_CONSTEXPR SearchKernelsRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SearchKernelsRequest(const SearchKernelsRequest& from) : SearchKernelsRequest(nullptr, from) {} - inline SearchKernelsRequest(SearchKernelsRequest&& from) noexcept - : SearchKernelsRequest(nullptr, std::move(from)) {} - inline SearchKernelsRequest& operator=(const SearchKernelsRequest& from) { - CopyFrom(from); - return *this; - } - inline SearchKernelsRequest& operator=(SearchKernelsRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SearchKernelsRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SearchKernelsRequest* internal_default_instance() { - return reinterpret_cast( - &_SearchKernelsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 30; - friend void swap(SearchKernelsRequest& a, SearchKernelsRequest& b) { a.Swap(&b); } - inline void Swap(SearchKernelsRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SearchKernelsRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SearchKernelsRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SearchKernelsRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SearchKernelsRequest& from) { SearchKernelsRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SearchKernelsRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SearchKernelsRequest"; } - - protected: - explicit SearchKernelsRequest(::google::protobuf::Arena* arena); - SearchKernelsRequest(::google::protobuf::Arena* arena, const SearchKernelsRequest& from); - SearchKernelsRequest(::google::protobuf::Arena* arena, SearchKernelsRequest&& from) noexcept - : SearchKernelsRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSignaturesFieldNumber = 1, - }; - // repeated .tari.rpc.Signature signatures = 1; - int signatures_size() const; - private: - int _internal_signatures_size() const; - - public: - void clear_signatures() ; - ::tari::rpc::Signature* mutable_signatures(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* mutable_signatures(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& _internal_signatures() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* _internal_mutable_signatures(); - public: - const ::tari::rpc::Signature& signatures(int index) const; - ::tari::rpc::Signature* add_signatures(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& signatures() const; - // @@protoc_insertion_point(class_scope:tari.rpc.SearchKernelsRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::Signature > signatures_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class NewBlockTemplateRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateRequest) */ { - public: - inline NewBlockTemplateRequest() : NewBlockTemplateRequest(nullptr) {} - ~NewBlockTemplateRequest() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockTemplateRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline NewBlockTemplateRequest(const NewBlockTemplateRequest& from) : NewBlockTemplateRequest(nullptr, from) {} - inline NewBlockTemplateRequest(NewBlockTemplateRequest&& from) noexcept - : NewBlockTemplateRequest(nullptr, std::move(from)) {} - inline NewBlockTemplateRequest& operator=(const NewBlockTemplateRequest& from) { - CopyFrom(from); - return *this; - } - inline NewBlockTemplateRequest& operator=(NewBlockTemplateRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NewBlockTemplateRequest& default_instance() { - return *internal_default_instance(); - } - static inline const NewBlockTemplateRequest* internal_default_instance() { - return reinterpret_cast( - &_NewBlockTemplateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 10; - friend void swap(NewBlockTemplateRequest& a, NewBlockTemplateRequest& b) { a.Swap(&b); } - inline void Swap(NewBlockTemplateRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NewBlockTemplateRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NewBlockTemplateRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewBlockTemplateRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const NewBlockTemplateRequest& from) { NewBlockTemplateRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockTemplateRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplateRequest"; } - - protected: - explicit NewBlockTemplateRequest(::google::protobuf::Arena* arena); - NewBlockTemplateRequest(::google::protobuf::Arena* arena, const NewBlockTemplateRequest& from); - NewBlockTemplateRequest(::google::protobuf::Arena* arena, NewBlockTemplateRequest&& from) noexcept - : NewBlockTemplateRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAlgoFieldNumber = 1, - kMaxWeightFieldNumber = 2, - }; - // .tari.rpc.PowAlgo algo = 1; - bool has_algo() const; - void clear_algo() ; - const ::tari::rpc::PowAlgo& algo() const; - PROTOBUF_NODISCARD ::tari::rpc::PowAlgo* release_algo(); - ::tari::rpc::PowAlgo* mutable_algo(); - void set_allocated_algo(::tari::rpc::PowAlgo* value); - void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value); - ::tari::rpc::PowAlgo* unsafe_arena_release_algo(); - - private: - const ::tari::rpc::PowAlgo& _internal_algo() const; - ::tari::rpc::PowAlgo* _internal_mutable_algo(); - - public: - // uint64 max_weight = 2; - void clear_max_weight() ; - ::uint64_t max_weight() const; - void set_max_weight(::uint64_t value); - - private: - ::uint64_t _internal_max_weight() const; - void _internal_set_max_weight(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockTemplateRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::PowAlgo* algo_; - ::uint64_t max_weight_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class MinerData final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.MinerData) */ { - public: - inline MinerData() : MinerData(nullptr) {} - ~MinerData() override; - template - explicit PROTOBUF_CONSTEXPR MinerData( - ::google::protobuf::internal::ConstantInitialized); - - inline MinerData(const MinerData& from) : MinerData(nullptr, from) {} - inline MinerData(MinerData&& from) noexcept - : MinerData(nullptr, std::move(from)) {} - inline MinerData& operator=(const MinerData& from) { - CopyFrom(from); - return *this; - } - inline MinerData& operator=(MinerData&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MinerData& default_instance() { - return *internal_default_instance(); - } - static inline const MinerData* internal_default_instance() { - return reinterpret_cast( - &_MinerData_default_instance_); - } - static constexpr int kIndexInFileMessages = 29; - friend void swap(MinerData& a, MinerData& b) { a.Swap(&b); } - inline void Swap(MinerData* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MinerData* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MinerData* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const MinerData& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const MinerData& from) { MinerData::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(MinerData* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.MinerData"; } - - protected: - explicit MinerData(::google::protobuf::Arena* arena); - MinerData(::google::protobuf::Arena* arena, const MinerData& from); - MinerData(::google::protobuf::Arena* arena, MinerData&& from) noexcept - : MinerData(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAlgoFieldNumber = 1, - kTargetDifficultyFieldNumber = 2, - kRewardFieldNumber = 3, - kTotalFeesFieldNumber = 5, - }; - // .tari.rpc.PowAlgo algo = 1; - bool has_algo() const; - void clear_algo() ; - const ::tari::rpc::PowAlgo& algo() const; - PROTOBUF_NODISCARD ::tari::rpc::PowAlgo* release_algo(); - ::tari::rpc::PowAlgo* mutable_algo(); - void set_allocated_algo(::tari::rpc::PowAlgo* value); - void unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value); - ::tari::rpc::PowAlgo* unsafe_arena_release_algo(); - - private: - const ::tari::rpc::PowAlgo& _internal_algo() const; - ::tari::rpc::PowAlgo* _internal_mutable_algo(); - - public: - // uint64 target_difficulty = 2; - void clear_target_difficulty() ; - ::uint64_t target_difficulty() const; - void set_target_difficulty(::uint64_t value); - - private: - ::uint64_t _internal_target_difficulty() const; - void _internal_set_target_difficulty(::uint64_t value); - - public: - // uint64 reward = 3; - void clear_reward() ; - ::uint64_t reward() const; - void set_reward(::uint64_t value); - - private: - ::uint64_t _internal_reward() const; - void _internal_set_reward(::uint64_t value); - - public: - // uint64 total_fees = 5; - void clear_total_fees() ; - ::uint64_t total_fees() const; - void set_total_fees(::uint64_t value); - - private: - ::uint64_t _internal_total_fees() const; - void _internal_set_total_fees(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.MinerData) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 4, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::PowAlgo* algo_; - ::uint64_t target_difficulty_; - ::uint64_t reward_; - ::uint64_t total_fees_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetPeersResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetPeersResponse) */ { - public: - inline GetPeersResponse() : GetPeersResponse(nullptr) {} - ~GetPeersResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetPeersResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetPeersResponse(const GetPeersResponse& from) : GetPeersResponse(nullptr, from) {} - inline GetPeersResponse(GetPeersResponse&& from) noexcept - : GetPeersResponse(nullptr, std::move(from)) {} - inline GetPeersResponse& operator=(const GetPeersResponse& from) { - CopyFrom(from); - return *this; - } - inline GetPeersResponse& operator=(GetPeersResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetPeersResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetPeersResponse* internal_default_instance() { - return reinterpret_cast( - &_GetPeersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 34; - friend void swap(GetPeersResponse& a, GetPeersResponse& b) { a.Swap(&b); } - inline void Swap(GetPeersResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetPeersResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetPeersResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetPeersResponse& from) { GetPeersResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetPeersResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetPeersResponse"; } - - protected: - explicit GetPeersResponse(::google::protobuf::Arena* arena); - GetPeersResponse(::google::protobuf::Arena* arena, const GetPeersResponse& from); - GetPeersResponse(::google::protobuf::Arena* arena, GetPeersResponse&& from) noexcept - : GetPeersResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPeerFieldNumber = 1, - }; - // .tari.rpc.Peer peer = 1; - bool has_peer() const; - void clear_peer() ; - const ::tari::rpc::Peer& peer() const; - PROTOBUF_NODISCARD ::tari::rpc::Peer* release_peer(); - ::tari::rpc::Peer* mutable_peer(); - void set_allocated_peer(::tari::rpc::Peer* value); - void unsafe_arena_set_allocated_peer(::tari::rpc::Peer* value); - ::tari::rpc::Peer* unsafe_arena_release_peer(); - - private: - const ::tari::rpc::Peer& _internal_peer() const; - ::tari::rpc::Peer* _internal_mutable_peer(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetPeersResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Peer* peer_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockHeaderResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeaderResponse) */ { - public: - inline BlockHeaderResponse() : BlockHeaderResponse(nullptr) {} - ~BlockHeaderResponse() override; - template - explicit PROTOBUF_CONSTEXPR BlockHeaderResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockHeaderResponse(const BlockHeaderResponse& from) : BlockHeaderResponse(nullptr, from) {} - inline BlockHeaderResponse(BlockHeaderResponse&& from) noexcept - : BlockHeaderResponse(nullptr, std::move(from)) {} - inline BlockHeaderResponse& operator=(const BlockHeaderResponse& from) { - CopyFrom(from); - return *this; - } - inline BlockHeaderResponse& operator=(BlockHeaderResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockHeaderResponse& default_instance() { - return *internal_default_instance(); - } - static inline const BlockHeaderResponse* internal_default_instance() { - return reinterpret_cast( - &_BlockHeaderResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 20; - friend void swap(BlockHeaderResponse& a, BlockHeaderResponse& b) { a.Swap(&b); } - inline void Swap(BlockHeaderResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockHeaderResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockHeaderResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockHeaderResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockHeaderResponse& from) { BlockHeaderResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockHeaderResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeaderResponse"; } - - protected: - explicit BlockHeaderResponse(::google::protobuf::Arena* arena); - BlockHeaderResponse(::google::protobuf::Arena* arena, const BlockHeaderResponse& from); - BlockHeaderResponse(::google::protobuf::Arena* arena, BlockHeaderResponse&& from) noexcept - : BlockHeaderResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeaderFieldNumber = 1, - kConfirmationsFieldNumber = 2, - kRewardFieldNumber = 3, - kDifficultyFieldNumber = 4, - kNumTransactionsFieldNumber = 5, - }; - // .tari.rpc.BlockHeader header = 1; - bool has_header() const; - void clear_header() ; - const ::tari::rpc::BlockHeader& header() const; - PROTOBUF_NODISCARD ::tari::rpc::BlockHeader* release_header(); - ::tari::rpc::BlockHeader* mutable_header(); - void set_allocated_header(::tari::rpc::BlockHeader* value); - void unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value); - ::tari::rpc::BlockHeader* unsafe_arena_release_header(); - - private: - const ::tari::rpc::BlockHeader& _internal_header() const; - ::tari::rpc::BlockHeader* _internal_mutable_header(); - - public: - // uint64 confirmations = 2; - void clear_confirmations() ; - ::uint64_t confirmations() const; - void set_confirmations(::uint64_t value); - - private: - ::uint64_t _internal_confirmations() const; - void _internal_set_confirmations(::uint64_t value); - - public: - // uint64 reward = 3; - void clear_reward() ; - ::uint64_t reward() const; - void set_reward(::uint64_t value); - - private: - ::uint64_t _internal_reward() const; - void _internal_set_reward(::uint64_t value); - - public: - // uint64 difficulty = 4; - void clear_difficulty() ; - ::uint64_t difficulty() const; - void set_difficulty(::uint64_t value); - - private: - ::uint64_t _internal_difficulty() const; - void _internal_set_difficulty(::uint64_t value); - - public: - // uint32 num_transactions = 5; - void clear_num_transactions() ; - ::uint32_t num_transactions() const; - void set_num_transactions(::uint32_t value); - - private: - ::uint32_t _internal_num_transactions() const; - void _internal_set_num_transactions(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockHeaderResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::BlockHeader* header_; - ::uint64_t confirmations_; - ::uint64_t reward_; - ::uint64_t difficulty_; - ::uint32_t num_transactions_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetTemplateRegistrationResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetTemplateRegistrationResponse) */ { - public: - inline GetTemplateRegistrationResponse() : GetTemplateRegistrationResponse(nullptr) {} - ~GetTemplateRegistrationResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTemplateRegistrationResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetTemplateRegistrationResponse(const GetTemplateRegistrationResponse& from) : GetTemplateRegistrationResponse(nullptr, from) {} - inline GetTemplateRegistrationResponse(GetTemplateRegistrationResponse&& from) noexcept - : GetTemplateRegistrationResponse(nullptr, std::move(from)) {} - inline GetTemplateRegistrationResponse& operator=(const GetTemplateRegistrationResponse& from) { - CopyFrom(from); - return *this; - } - inline GetTemplateRegistrationResponse& operator=(GetTemplateRegistrationResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTemplateRegistrationResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetTemplateRegistrationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTemplateRegistrationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 48; - friend void swap(GetTemplateRegistrationResponse& a, GetTemplateRegistrationResponse& b) { a.Swap(&b); } - inline void Swap(GetTemplateRegistrationResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTemplateRegistrationResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTemplateRegistrationResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTemplateRegistrationResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetTemplateRegistrationResponse& from) { GetTemplateRegistrationResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTemplateRegistrationResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetTemplateRegistrationResponse"; } - - protected: - explicit GetTemplateRegistrationResponse(::google::protobuf::Arena* arena); - GetTemplateRegistrationResponse(::google::protobuf::Arena* arena, const GetTemplateRegistrationResponse& from); - GetTemplateRegistrationResponse(::google::protobuf::Arena* arena, GetTemplateRegistrationResponse&& from) noexcept - : GetTemplateRegistrationResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kUtxoHashFieldNumber = 1, - kRegistrationFieldNumber = 2, - }; - // bytes utxo_hash = 1; - void clear_utxo_hash() ; - const std::string& utxo_hash() const; - template - void set_utxo_hash(Arg_&& arg, Args_... args); - std::string* mutable_utxo_hash(); - PROTOBUF_NODISCARD std::string* release_utxo_hash(); - void set_allocated_utxo_hash(std::string* value); - - private: - const std::string& _internal_utxo_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_utxo_hash( - const std::string& value); - std::string* _internal_mutable_utxo_hash(); - - public: - // .tari.rpc.TemplateRegistration registration = 2; - bool has_registration() const; - void clear_registration() ; - const ::tari::rpc::TemplateRegistration& registration() const; - PROTOBUF_NODISCARD ::tari::rpc::TemplateRegistration* release_registration(); - ::tari::rpc::TemplateRegistration* mutable_registration(); - void set_allocated_registration(::tari::rpc::TemplateRegistration* value); - void unsafe_arena_set_allocated_registration(::tari::rpc::TemplateRegistration* value); - ::tari::rpc::TemplateRegistration* unsafe_arena_release_registration(); - - private: - const ::tari::rpc::TemplateRegistration& _internal_registration() const; - ::tari::rpc::TemplateRegistration* _internal_mutable_registration(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetTemplateRegistrationResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr utxo_hash_; - ::tari::rpc::TemplateRegistration* registration_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class ListAssetRegistrationsResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ListAssetRegistrationsResponse) */ { - public: - inline ListAssetRegistrationsResponse() : ListAssetRegistrationsResponse(nullptr) {} - ~ListAssetRegistrationsResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListAssetRegistrationsResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline ListAssetRegistrationsResponse(const ListAssetRegistrationsResponse& from) : ListAssetRegistrationsResponse(nullptr, from) {} - inline ListAssetRegistrationsResponse(ListAssetRegistrationsResponse&& from) noexcept - : ListAssetRegistrationsResponse(nullptr, std::move(from)) {} - inline ListAssetRegistrationsResponse& operator=(const ListAssetRegistrationsResponse& from) { - CopyFrom(from); - return *this; - } - inline ListAssetRegistrationsResponse& operator=(ListAssetRegistrationsResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ListAssetRegistrationsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ListAssetRegistrationsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListAssetRegistrationsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(ListAssetRegistrationsResponse& a, ListAssetRegistrationsResponse& b) { a.Swap(&b); } - inline void Swap(ListAssetRegistrationsResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ListAssetRegistrationsResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ListAssetRegistrationsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListAssetRegistrationsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ListAssetRegistrationsResponse& from) { ListAssetRegistrationsResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListAssetRegistrationsResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ListAssetRegistrationsResponse"; } - - protected: - explicit ListAssetRegistrationsResponse(::google::protobuf::Arena* arena); - ListAssetRegistrationsResponse(::google::protobuf::Arena* arena, const ListAssetRegistrationsResponse& from); - ListAssetRegistrationsResponse(::google::protobuf::Arena* arena, ListAssetRegistrationsResponse&& from) noexcept - : ListAssetRegistrationsResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAssetPublicKeyFieldNumber = 1, - kUniqueIdFieldNumber = 2, - kOwnerCommitmentFieldNumber = 3, - kMinedInBlockFieldNumber = 5, - kScriptFieldNumber = 7, - kFeaturesFieldNumber = 6, - kMinedHeightFieldNumber = 4, - }; - // bytes asset_public_key = 1; - void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template - void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); - - private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); - - public: - // bytes unique_id = 2; - void clear_unique_id() ; - const std::string& unique_id() const; - template - void set_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_unique_id(); - PROTOBUF_NODISCARD std::string* release_unique_id(); - void set_allocated_unique_id(std::string* value); - - private: - const std::string& _internal_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_unique_id( - const std::string& value); - std::string* _internal_mutable_unique_id(); - - public: - // bytes owner_commitment = 3; - void clear_owner_commitment() ; - const std::string& owner_commitment() const; - template - void set_owner_commitment(Arg_&& arg, Args_... args); - std::string* mutable_owner_commitment(); - PROTOBUF_NODISCARD std::string* release_owner_commitment(); - void set_allocated_owner_commitment(std::string* value); - - private: - const std::string& _internal_owner_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment( - const std::string& value); - std::string* _internal_mutable_owner_commitment(); - - public: - // bytes mined_in_block = 5; - void clear_mined_in_block() ; - const std::string& mined_in_block() const; - template - void set_mined_in_block(Arg_&& arg, Args_... args); - std::string* mutable_mined_in_block(); - PROTOBUF_NODISCARD std::string* release_mined_in_block(); - void set_allocated_mined_in_block(std::string* value); - - private: - const std::string& _internal_mined_in_block() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block( - const std::string& value); - std::string* _internal_mutable_mined_in_block(); - - public: - // bytes script = 7; - void clear_script() ; - const std::string& script() const; - template - void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); - - private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); - - public: - // .tari.rpc.OutputFeatures features = 6; - bool has_features() const; - void clear_features() ; - const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); - - private: - const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); - - public: - // uint64 mined_height = 4; - void clear_mined_height() ; - ::uint64_t mined_height() const; - void set_mined_height(::uint64_t value); - - private: - ::uint64_t _internal_mined_height() const; - void _internal_set_mined_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ListAssetRegistrationsResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr asset_public_key_; - ::google::protobuf::internal::ArenaStringPtr unique_id_; - ::google::protobuf::internal::ArenaStringPtr owner_commitment_; - ::google::protobuf::internal::ArenaStringPtr mined_in_block_; - ::google::protobuf::internal::ArenaStringPtr script_; - ::tari::rpc::OutputFeatures* features_; - ::uint64_t mined_height_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetTokensResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetTokensResponse) */ { - public: - inline GetTokensResponse() : GetTokensResponse(nullptr) {} - ~GetTokensResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetTokensResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetTokensResponse(const GetTokensResponse& from) : GetTokensResponse(nullptr, from) {} - inline GetTokensResponse(GetTokensResponse&& from) noexcept - : GetTokensResponse(nullptr, std::move(from)) {} - inline GetTokensResponse& operator=(const GetTokensResponse& from) { - CopyFrom(from); - return *this; - } - inline GetTokensResponse& operator=(GetTokensResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetTokensResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetTokensResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTokensResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(GetTokensResponse& a, GetTokensResponse& b) { a.Swap(&b); } - inline void Swap(GetTokensResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetTokensResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetTokensResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetTokensResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetTokensResponse& from) { GetTokensResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetTokensResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetTokensResponse"; } - - protected: - explicit GetTokensResponse(::google::protobuf::Arena* arena); - GetTokensResponse(::google::protobuf::Arena* arena, const GetTokensResponse& from); - GetTokensResponse(::google::protobuf::Arena* arena, GetTokensResponse&& from) noexcept - : GetTokensResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kUniqueIdFieldNumber = 1, - kAssetPublicKeyFieldNumber = 2, - kOwnerCommitmentFieldNumber = 3, - kMinedInBlockFieldNumber = 4, - kScriptFieldNumber = 7, - kFeaturesFieldNumber = 6, - kMinedHeightFieldNumber = 5, - }; - // bytes unique_id = 1; - void clear_unique_id() ; - const std::string& unique_id() const; - template - void set_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_unique_id(); - PROTOBUF_NODISCARD std::string* release_unique_id(); - void set_allocated_unique_id(std::string* value); - - private: - const std::string& _internal_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_unique_id( - const std::string& value); - std::string* _internal_mutable_unique_id(); - - public: - // bytes asset_public_key = 2; - void clear_asset_public_key() ; - const std::string& asset_public_key() const; - template - void set_asset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_asset_public_key(); - PROTOBUF_NODISCARD std::string* release_asset_public_key(); - void set_allocated_asset_public_key(std::string* value); - - private: - const std::string& _internal_asset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_asset_public_key( - const std::string& value); - std::string* _internal_mutable_asset_public_key(); - - public: - // bytes owner_commitment = 3; - void clear_owner_commitment() ; - const std::string& owner_commitment() const; - template - void set_owner_commitment(Arg_&& arg, Args_... args); - std::string* mutable_owner_commitment(); - PROTOBUF_NODISCARD std::string* release_owner_commitment(); - void set_allocated_owner_commitment(std::string* value); - - private: - const std::string& _internal_owner_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment( - const std::string& value); - std::string* _internal_mutable_owner_commitment(); - - public: - // bytes mined_in_block = 4; - void clear_mined_in_block() ; - const std::string& mined_in_block() const; - template - void set_mined_in_block(Arg_&& arg, Args_... args); - std::string* mutable_mined_in_block(); - PROTOBUF_NODISCARD std::string* release_mined_in_block(); - void set_allocated_mined_in_block(std::string* value); - - private: - const std::string& _internal_mined_in_block() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block( - const std::string& value); - std::string* _internal_mutable_mined_in_block(); - - public: - // bytes script = 7; - void clear_script() ; - const std::string& script() const; - template - void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); - - private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); - - public: - // .tari.rpc.OutputFeatures features = 6; - bool has_features() const; - void clear_features() ; - const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); - - private: - const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); - - public: - // uint64 mined_height = 5; - void clear_mined_height() ; - ::uint64_t mined_height() const; - void set_mined_height(::uint64_t value); - - private: - ::uint64_t _internal_mined_height() const; - void _internal_set_mined_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetTokensResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr unique_id_; - ::google::protobuf::internal::ArenaStringPtr asset_public_key_; - ::google::protobuf::internal::ArenaStringPtr owner_commitment_; - ::google::protobuf::internal::ArenaStringPtr mined_in_block_; - ::google::protobuf::internal::ArenaStringPtr script_; - ::tari::rpc::OutputFeatures* features_; - ::uint64_t mined_height_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetAssetMetadataResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetAssetMetadataResponse) */ { - public: - inline GetAssetMetadataResponse() : GetAssetMetadataResponse(nullptr) {} - ~GetAssetMetadataResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetAssetMetadataResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetAssetMetadataResponse(const GetAssetMetadataResponse& from) : GetAssetMetadataResponse(nullptr, from) {} - inline GetAssetMetadataResponse(GetAssetMetadataResponse&& from) noexcept - : GetAssetMetadataResponse(nullptr, std::move(from)) {} - inline GetAssetMetadataResponse& operator=(const GetAssetMetadataResponse& from) { - CopyFrom(from); - return *this; - } - inline GetAssetMetadataResponse& operator=(GetAssetMetadataResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetAssetMetadataResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetAssetMetadataResponse* internal_default_instance() { - return reinterpret_cast( - &_GetAssetMetadataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(GetAssetMetadataResponse& a, GetAssetMetadataResponse& b) { a.Swap(&b); } - inline void Swap(GetAssetMetadataResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetAssetMetadataResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetAssetMetadataResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetAssetMetadataResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetAssetMetadataResponse& from) { GetAssetMetadataResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetAssetMetadataResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetAssetMetadataResponse"; } - - protected: - explicit GetAssetMetadataResponse(::google::protobuf::Arena* arena); - GetAssetMetadataResponse(::google::protobuf::Arena* arena, const GetAssetMetadataResponse& from); - GetAssetMetadataResponse(::google::protobuf::Arena* arena, GetAssetMetadataResponse&& from) noexcept - : GetAssetMetadataResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNameFieldNumber = 2, - kDescriptionFieldNumber = 3, - kImageFieldNumber = 4, - kOwnerCommitmentFieldNumber = 5, - kMinedInBlockFieldNumber = 8, - kFeaturesFieldNumber = 6, - kMinedHeightFieldNumber = 7, - }; - // string name = 2; - void clear_name() ; - 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); - - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name( - const std::string& value); - std::string* _internal_mutable_name(); - - public: - // string description = 3; - void clear_description() ; - const std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - std::string* mutable_description(); - PROTOBUF_NODISCARD std::string* release_description(); - void set_allocated_description(std::string* value); - - private: - const std::string& _internal_description() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_description( - const std::string& value); - std::string* _internal_mutable_description(); - - public: - // string image = 4; - void clear_image() ; - const std::string& image() const; - template - void set_image(Arg_&& arg, Args_... args); - std::string* mutable_image(); - PROTOBUF_NODISCARD std::string* release_image(); - void set_allocated_image(std::string* value); - - private: - const std::string& _internal_image() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_image( - const std::string& value); - std::string* _internal_mutable_image(); - - public: - // bytes owner_commitment = 5; - void clear_owner_commitment() ; - const std::string& owner_commitment() const; - template - void set_owner_commitment(Arg_&& arg, Args_... args); - std::string* mutable_owner_commitment(); - PROTOBUF_NODISCARD std::string* release_owner_commitment(); - void set_allocated_owner_commitment(std::string* value); - - private: - const std::string& _internal_owner_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_owner_commitment( - const std::string& value); - std::string* _internal_mutable_owner_commitment(); - - public: - // bytes mined_in_block = 8; - void clear_mined_in_block() ; - const std::string& mined_in_block() const; - template - void set_mined_in_block(Arg_&& arg, Args_... args); - std::string* mutable_mined_in_block(); - PROTOBUF_NODISCARD std::string* release_mined_in_block(); - void set_allocated_mined_in_block(std::string* value); - - private: - const std::string& _internal_mined_in_block() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mined_in_block( - const std::string& value); - std::string* _internal_mutable_mined_in_block(); - - public: - // .tari.rpc.OutputFeatures features = 6; - bool has_features() const; - void clear_features() ; - const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); - - private: - const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); - - public: - // uint64 mined_height = 7; - void clear_mined_height() ; - ::uint64_t mined_height() const; - void set_mined_height(::uint64_t value); - - private: - ::uint64_t _internal_mined_height() const; - void _internal_set_mined_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetAssetMetadataResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 7, 1, - 62, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::google::protobuf::internal::ArenaStringPtr owner_commitment_; - ::google::protobuf::internal::ArenaStringPtr mined_in_block_; - ::tari::rpc::OutputFeatures* features_; - ::uint64_t mined_height_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetSideChainUtxosResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetSideChainUtxosResponse) */ { - public: - inline GetSideChainUtxosResponse() : GetSideChainUtxosResponse(nullptr) {} - ~GetSideChainUtxosResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetSideChainUtxosResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetSideChainUtxosResponse(const GetSideChainUtxosResponse& from) : GetSideChainUtxosResponse(nullptr, from) {} - inline GetSideChainUtxosResponse(GetSideChainUtxosResponse&& from) noexcept - : GetSideChainUtxosResponse(nullptr, std::move(from)) {} - inline GetSideChainUtxosResponse& operator=(const GetSideChainUtxosResponse& from) { - CopyFrom(from); - return *this; - } - inline GetSideChainUtxosResponse& operator=(GetSideChainUtxosResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetSideChainUtxosResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetSideChainUtxosResponse* internal_default_instance() { - return reinterpret_cast( - &_GetSideChainUtxosResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 51; - friend void swap(GetSideChainUtxosResponse& a, GetSideChainUtxosResponse& b) { a.Swap(&b); } - inline void Swap(GetSideChainUtxosResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetSideChainUtxosResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetSideChainUtxosResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetSideChainUtxosResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetSideChainUtxosResponse& from) { GetSideChainUtxosResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetSideChainUtxosResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetSideChainUtxosResponse"; } - - protected: - explicit GetSideChainUtxosResponse(::google::protobuf::Arena* arena); - GetSideChainUtxosResponse(::google::protobuf::Arena* arena, const GetSideChainUtxosResponse& from); - GetSideChainUtxosResponse(::google::protobuf::Arena* arena, GetSideChainUtxosResponse&& from) noexcept - : GetSideChainUtxosResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kOutputsFieldNumber = 2, - kBlockInfoFieldNumber = 1, - }; - // repeated .tari.rpc.TransactionOutput outputs = 2; - int outputs_size() const; - private: - int _internal_outputs_size() const; - - public: - void clear_outputs() ; - ::tari::rpc::TransactionOutput* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* mutable_outputs(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& _internal_outputs() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* _internal_mutable_outputs(); - public: - const ::tari::rpc::TransactionOutput& outputs(int index) const; - ::tari::rpc::TransactionOutput* add_outputs(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& outputs() const; - // .tari.rpc.BlockInfo block_info = 1; - bool has_block_info() const; - void clear_block_info() ; - const ::tari::rpc::BlockInfo& block_info() const; - PROTOBUF_NODISCARD ::tari::rpc::BlockInfo* release_block_info(); - ::tari::rpc::BlockInfo* mutable_block_info(); - void set_allocated_block_info(::tari::rpc::BlockInfo* value); - void unsafe_arena_set_allocated_block_info(::tari::rpc::BlockInfo* value); - ::tari::rpc::BlockInfo* unsafe_arena_release_block_info(); - - private: - const ::tari::rpc::BlockInfo& _internal_block_info() const; - ::tari::rpc::BlockInfo* _internal_mutable_block_info(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetSideChainUtxosResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput > outputs_; - ::tari::rpc::BlockInfo* block_info_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class FetchMatchingUtxosResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.FetchMatchingUtxosResponse) */ { - public: - inline FetchMatchingUtxosResponse() : FetchMatchingUtxosResponse(nullptr) {} - ~FetchMatchingUtxosResponse() override; - template - explicit PROTOBUF_CONSTEXPR FetchMatchingUtxosResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline FetchMatchingUtxosResponse(const FetchMatchingUtxosResponse& from) : FetchMatchingUtxosResponse(nullptr, from) {} - inline FetchMatchingUtxosResponse(FetchMatchingUtxosResponse&& from) noexcept - : FetchMatchingUtxosResponse(nullptr, std::move(from)) {} - inline FetchMatchingUtxosResponse& operator=(const FetchMatchingUtxosResponse& from) { - CopyFrom(from); - return *this; - } - inline FetchMatchingUtxosResponse& operator=(FetchMatchingUtxosResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FetchMatchingUtxosResponse& default_instance() { - return *internal_default_instance(); - } - static inline const FetchMatchingUtxosResponse* internal_default_instance() { - return reinterpret_cast( - &_FetchMatchingUtxosResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 33; - friend void swap(FetchMatchingUtxosResponse& a, FetchMatchingUtxosResponse& b) { a.Swap(&b); } - inline void Swap(FetchMatchingUtxosResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FetchMatchingUtxosResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FetchMatchingUtxosResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const FetchMatchingUtxosResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const FetchMatchingUtxosResponse& from) { FetchMatchingUtxosResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(FetchMatchingUtxosResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.FetchMatchingUtxosResponse"; } - - protected: - explicit FetchMatchingUtxosResponse(::google::protobuf::Arena* arena); - FetchMatchingUtxosResponse(::google::protobuf::Arena* arena, const FetchMatchingUtxosResponse& from); - FetchMatchingUtxosResponse(::google::protobuf::Arena* arena, FetchMatchingUtxosResponse&& from) noexcept - : FetchMatchingUtxosResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kOutputFieldNumber = 1, - }; - // .tari.rpc.TransactionOutput output = 1; - bool has_output() const; - void clear_output() ; - const ::tari::rpc::TransactionOutput& output() const; - PROTOBUF_NODISCARD ::tari::rpc::TransactionOutput* release_output(); - ::tari::rpc::TransactionOutput* mutable_output(); - void set_allocated_output(::tari::rpc::TransactionOutput* value); - void unsafe_arena_set_allocated_output(::tari::rpc::TransactionOutput* value); - ::tari::rpc::TransactionOutput* unsafe_arena_release_output(); - - private: - const ::tari::rpc::TransactionOutput& _internal_output() const; - ::tari::rpc::TransactionOutput* _internal_mutable_output(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.FetchMatchingUtxosResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::TransactionOutput* output_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class SubmitTransactionRequest final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SubmitTransactionRequest) */ { - public: - inline SubmitTransactionRequest() : SubmitTransactionRequest(nullptr) {} - ~SubmitTransactionRequest() override; - template - explicit PROTOBUF_CONSTEXPR SubmitTransactionRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline SubmitTransactionRequest(const SubmitTransactionRequest& from) : SubmitTransactionRequest(nullptr, from) {} - inline SubmitTransactionRequest(SubmitTransactionRequest&& from) noexcept - : SubmitTransactionRequest(nullptr, std::move(from)) {} - inline SubmitTransactionRequest& operator=(const SubmitTransactionRequest& from) { - CopyFrom(from); - return *this; - } - inline SubmitTransactionRequest& operator=(SubmitTransactionRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SubmitTransactionRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SubmitTransactionRequest* internal_default_instance() { - return reinterpret_cast( - &_SubmitTransactionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 36; - friend void swap(SubmitTransactionRequest& a, SubmitTransactionRequest& b) { a.Swap(&b); } - inline void Swap(SubmitTransactionRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SubmitTransactionRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SubmitTransactionRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SubmitTransactionRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SubmitTransactionRequest& from) { SubmitTransactionRequest::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SubmitTransactionRequest* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SubmitTransactionRequest"; } - - protected: - explicit SubmitTransactionRequest(::google::protobuf::Arena* arena); - SubmitTransactionRequest(::google::protobuf::Arena* arena, const SubmitTransactionRequest& from); - SubmitTransactionRequest(::google::protobuf::Arena* arena, SubmitTransactionRequest&& from) noexcept - : SubmitTransactionRequest(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTransactionFieldNumber = 1, - }; - // .tari.rpc.Transaction transaction = 1; - bool has_transaction() const; - void clear_transaction() ; - const ::tari::rpc::Transaction& transaction() const; - PROTOBUF_NODISCARD ::tari::rpc::Transaction* release_transaction(); - ::tari::rpc::Transaction* mutable_transaction(); - void set_allocated_transaction(::tari::rpc::Transaction* value); - void unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value); - ::tari::rpc::Transaction* unsafe_arena_release_transaction(); - - private: - const ::tari::rpc::Transaction& _internal_transaction() const; - ::tari::rpc::Transaction* _internal_mutable_transaction(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.SubmitTransactionRequest) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Transaction* transaction_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class NewBlockTemplateResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplateResponse) */ { - public: - inline NewBlockTemplateResponse() : NewBlockTemplateResponse(nullptr) {} - ~NewBlockTemplateResponse() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockTemplateResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline NewBlockTemplateResponse(const NewBlockTemplateResponse& from) : NewBlockTemplateResponse(nullptr, from) {} - inline NewBlockTemplateResponse(NewBlockTemplateResponse&& from) noexcept - : NewBlockTemplateResponse(nullptr, std::move(from)) {} - inline NewBlockTemplateResponse& operator=(const NewBlockTemplateResponse& from) { - CopyFrom(from); - return *this; - } - inline NewBlockTemplateResponse& operator=(NewBlockTemplateResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NewBlockTemplateResponse& default_instance() { - return *internal_default_instance(); - } - static inline const NewBlockTemplateResponse* internal_default_instance() { - return reinterpret_cast( - &_NewBlockTemplateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 9; - friend void swap(NewBlockTemplateResponse& a, NewBlockTemplateResponse& b) { a.Swap(&b); } - inline void Swap(NewBlockTemplateResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NewBlockTemplateResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NewBlockTemplateResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewBlockTemplateResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const NewBlockTemplateResponse& from) { NewBlockTemplateResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockTemplateResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplateResponse"; } - - protected: - explicit NewBlockTemplateResponse(::google::protobuf::Arena* arena); - NewBlockTemplateResponse(::google::protobuf::Arena* arena, const NewBlockTemplateResponse& from); - NewBlockTemplateResponse(::google::protobuf::Arena* arena, NewBlockTemplateResponse&& from) noexcept - : NewBlockTemplateResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNewBlockTemplateFieldNumber = 1, - kMinerDataFieldNumber = 4, - kInitialSyncAchievedFieldNumber = 3, - }; - // .tari.rpc.NewBlockTemplate new_block_template = 1; - bool has_new_block_template() const; - void clear_new_block_template() ; - const ::tari::rpc::NewBlockTemplate& new_block_template() const; - PROTOBUF_NODISCARD ::tari::rpc::NewBlockTemplate* release_new_block_template(); - ::tari::rpc::NewBlockTemplate* mutable_new_block_template(); - void set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value); - void unsafe_arena_set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value); - ::tari::rpc::NewBlockTemplate* unsafe_arena_release_new_block_template(); - - private: - const ::tari::rpc::NewBlockTemplate& _internal_new_block_template() const; - ::tari::rpc::NewBlockTemplate* _internal_mutable_new_block_template(); - - public: - // .tari.rpc.MinerData miner_data = 4; - bool has_miner_data() const; - void clear_miner_data() ; - const ::tari::rpc::MinerData& miner_data() const; - PROTOBUF_NODISCARD ::tari::rpc::MinerData* release_miner_data(); - ::tari::rpc::MinerData* mutable_miner_data(); - void set_allocated_miner_data(::tari::rpc::MinerData* value); - void unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* value); - ::tari::rpc::MinerData* unsafe_arena_release_miner_data(); - - private: - const ::tari::rpc::MinerData& _internal_miner_data() const; - ::tari::rpc::MinerData* _internal_mutable_miner_data(); - - public: - // bool initial_sync_achieved = 3; - void clear_initial_sync_achieved() ; - bool initial_sync_achieved() const; - void set_initial_sync_achieved(bool value); - - private: - bool _internal_initial_sync_achieved() const; - void _internal_set_initial_sync_achieved(bool value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockTemplateResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::NewBlockTemplate* new_block_template_; - ::tari::rpc::MinerData* miner_data_; - bool initial_sync_achieved_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetNewBlockResult final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetNewBlockResult) */ { - public: - inline GetNewBlockResult() : GetNewBlockResult(nullptr) {} - ~GetNewBlockResult() override; - template - explicit PROTOBUF_CONSTEXPR GetNewBlockResult( - ::google::protobuf::internal::ConstantInitialized); - - inline GetNewBlockResult(const GetNewBlockResult& from) : GetNewBlockResult(nullptr, from) {} - inline GetNewBlockResult(GetNewBlockResult&& from) noexcept - : GetNewBlockResult(nullptr, std::move(from)) {} - inline GetNewBlockResult& operator=(const GetNewBlockResult& from) { - CopyFrom(from); - return *this; - } - inline GetNewBlockResult& operator=(GetNewBlockResult&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetNewBlockResult& default_instance() { - return *internal_default_instance(); - } - static inline const GetNewBlockResult* internal_default_instance() { - return reinterpret_cast( - &_GetNewBlockResult_default_instance_); - } - static constexpr int kIndexInFileMessages = 27; - friend void swap(GetNewBlockResult& a, GetNewBlockResult& b) { a.Swap(&b); } - inline void Swap(GetNewBlockResult* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetNewBlockResult* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetNewBlockResult* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetNewBlockResult& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetNewBlockResult& from) { GetNewBlockResult::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetNewBlockResult* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetNewBlockResult"; } - - protected: - explicit GetNewBlockResult(::google::protobuf::Arena* arena); - GetNewBlockResult(::google::protobuf::Arena* arena, const GetNewBlockResult& from); - GetNewBlockResult(::google::protobuf::Arena* arena, GetNewBlockResult&& from) noexcept - : GetNewBlockResult(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBlockHashFieldNumber = 1, - kMergeMiningHashFieldNumber = 3, - kTariUniqueIdFieldNumber = 4, - kBlockFieldNumber = 2, - }; - // bytes block_hash = 1; - void clear_block_hash() ; - const std::string& block_hash() const; - template - void set_block_hash(Arg_&& arg, Args_... args); - std::string* mutable_block_hash(); - PROTOBUF_NODISCARD std::string* release_block_hash(); - void set_allocated_block_hash(std::string* value); - - private: - const std::string& _internal_block_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_block_hash( - const std::string& value); - std::string* _internal_mutable_block_hash(); - - public: - // bytes merge_mining_hash = 3; - void clear_merge_mining_hash() ; - const std::string& merge_mining_hash() const; - template - void set_merge_mining_hash(Arg_&& arg, Args_... args); - std::string* mutable_merge_mining_hash(); - PROTOBUF_NODISCARD std::string* release_merge_mining_hash(); - void set_allocated_merge_mining_hash(std::string* value); - - private: - const std::string& _internal_merge_mining_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_merge_mining_hash( - const std::string& value); - std::string* _internal_mutable_merge_mining_hash(); - - public: - // bytes tari_unique_id = 4; - void clear_tari_unique_id() ; - const std::string& tari_unique_id() const; - template - void set_tari_unique_id(Arg_&& arg, Args_... args); - std::string* mutable_tari_unique_id(); - PROTOBUF_NODISCARD std::string* release_tari_unique_id(); - void set_allocated_tari_unique_id(std::string* value); - - private: - const std::string& _internal_tari_unique_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_tari_unique_id( - const std::string& value); - std::string* _internal_mutable_tari_unique_id(); - - public: - // .tari.rpc.Block block = 2; - bool has_block() const; - void clear_block() ; - const ::tari::rpc::Block& block() const; - PROTOBUF_NODISCARD ::tari::rpc::Block* release_block(); - ::tari::rpc::Block* mutable_block(); - void set_allocated_block(::tari::rpc::Block* value); - void unsafe_arena_set_allocated_block(::tari::rpc::Block* value); - ::tari::rpc::Block* unsafe_arena_release_block(); - - private: - const ::tari::rpc::Block& _internal_block() const; - ::tari::rpc::Block* _internal_mutable_block(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockResult) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr block_hash_; - ::google::protobuf::internal::ArenaStringPtr merge_mining_hash_; - ::google::protobuf::internal::ArenaStringPtr tari_unique_id_; - ::tari::rpc::Block* block_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetMempoolTransactionsResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetMempoolTransactionsResponse) */ { - public: - inline GetMempoolTransactionsResponse() : GetMempoolTransactionsResponse(nullptr) {} - ~GetMempoolTransactionsResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetMempoolTransactionsResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetMempoolTransactionsResponse(const GetMempoolTransactionsResponse& from) : GetMempoolTransactionsResponse(nullptr, from) {} - inline GetMempoolTransactionsResponse(GetMempoolTransactionsResponse&& from) noexcept - : GetMempoolTransactionsResponse(nullptr, std::move(from)) {} - inline GetMempoolTransactionsResponse& operator=(const GetMempoolTransactionsResponse& from) { - CopyFrom(from); - return *this; - } - inline GetMempoolTransactionsResponse& operator=(GetMempoolTransactionsResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetMempoolTransactionsResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetMempoolTransactionsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetMempoolTransactionsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 39; - friend void swap(GetMempoolTransactionsResponse& a, GetMempoolTransactionsResponse& b) { a.Swap(&b); } - inline void Swap(GetMempoolTransactionsResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetMempoolTransactionsResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetMempoolTransactionsResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetMempoolTransactionsResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetMempoolTransactionsResponse& from) { GetMempoolTransactionsResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetMempoolTransactionsResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetMempoolTransactionsResponse"; } - - protected: - explicit GetMempoolTransactionsResponse(::google::protobuf::Arena* arena); - GetMempoolTransactionsResponse(::google::protobuf::Arena* arena, const GetMempoolTransactionsResponse& from); - GetMempoolTransactionsResponse(::google::protobuf::Arena* arena, GetMempoolTransactionsResponse&& from) noexcept - : GetMempoolTransactionsResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTransactionFieldNumber = 1, - }; - // .tari.rpc.Transaction transaction = 1; - bool has_transaction() const; - void clear_transaction() ; - const ::tari::rpc::Transaction& transaction() const; - PROTOBUF_NODISCARD ::tari::rpc::Transaction* release_transaction(); - ::tari::rpc::Transaction* mutable_transaction(); - void set_allocated_transaction(::tari::rpc::Transaction* value); - void unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value); - ::tari::rpc::Transaction* unsafe_arena_release_transaction(); - - private: - const ::tari::rpc::Transaction& _internal_transaction() const; - ::tari::rpc::Transaction* _internal_mutable_transaction(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetMempoolTransactionsResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Transaction* transaction_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; -// ------------------------------------------------------------------- - -class GetBlocksResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetBlocksResponse) */ { - public: - inline GetBlocksResponse() : GetBlocksResponse(nullptr) {} - ~GetBlocksResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetBlocksResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetBlocksResponse(const GetBlocksResponse& from) : GetBlocksResponse(nullptr, from) {} - inline GetBlocksResponse(GetBlocksResponse&& from) noexcept - : GetBlocksResponse(nullptr, std::move(from)) {} - inline GetBlocksResponse& operator=(const GetBlocksResponse& from) { - CopyFrom(from); - return *this; - } - inline GetBlocksResponse& operator=(GetBlocksResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetBlocksResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetBlocksResponse* internal_default_instance() { - return reinterpret_cast( - &_GetBlocksResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 23; - friend void swap(GetBlocksResponse& a, GetBlocksResponse& b) { a.Swap(&b); } - inline void Swap(GetBlocksResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetBlocksResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetBlocksResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetBlocksResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetBlocksResponse& from) { GetBlocksResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetBlocksResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetBlocksResponse"; } - - protected: - explicit GetBlocksResponse(::google::protobuf::Arena* arena); - GetBlocksResponse(::google::protobuf::Arena* arena, const GetBlocksResponse& from); - GetBlocksResponse(::google::protobuf::Arena* arena, GetBlocksResponse&& from) noexcept - : GetBlocksResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBlocksFieldNumber = 1, - }; - // repeated .tari.rpc.HistoricalBlock blocks = 1; - int blocks_size() const; - private: - int _internal_blocks_size() const; - - public: - void clear_blocks() ; - ::tari::rpc::HistoricalBlock* mutable_blocks(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* mutable_blocks(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& _internal_blocks() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* _internal_mutable_blocks(); - public: - const ::tari::rpc::HistoricalBlock& blocks(int index) const; - ::tari::rpc::HistoricalBlock* add_blocks(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& blocks() const; - // @@protoc_insertion_point(class_scope:tari.rpc.GetBlocksResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::HistoricalBlock > blocks_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_base_5fnode_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// GetAssetMetadataRequest - -// bytes asset_public_key = 1; -inline void GetAssetMetadataRequest::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.ClearToEmpty(); -} -inline const std::string& GetAssetMetadataRequest::asset_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataRequest.asset_public_key) - return _internal_asset_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataRequest::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataRequest.asset_public_key) -} -inline std::string* GetAssetMetadataRequest::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataRequest.asset_public_key) - return _s; -} -inline const std::string& GetAssetMetadataRequest::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Get(); -} -inline void GetAssetMetadataRequest::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.Set(value, GetArena()); -} -inline std::string* GetAssetMetadataRequest::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Mutable( GetArena()); -} -inline std::string* GetAssetMetadataRequest::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataRequest.asset_public_key) - return _impl_.asset_public_key_.Release(); -} -inline void GetAssetMetadataRequest::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataRequest.asset_public_key) -} - -// ------------------------------------------------------------------- - -// GetAssetMetadataResponse - -// string name = 2; -inline void GetAssetMetadataResponse::clear_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.ClearToEmpty(); -} -inline const std::string& GetAssetMetadataResponse::name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.name) -} -inline std::string* GetAssetMetadataResponse::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.name) - return _s; -} -inline const std::string& GetAssetMetadataResponse::_internal_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.name_.Get(); -} -inline void GetAssetMetadataResponse::_internal_set_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.Set(value, GetArena()); -} -inline std::string* GetAssetMetadataResponse::_internal_mutable_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.name_.Mutable( GetArena()); -} -inline std::string* GetAssetMetadataResponse::release_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.name) - return _impl_.name_.Release(); -} -inline void GetAssetMetadataResponse::set_allocated_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.name) -} - -// string description = 3; -inline void GetAssetMetadataResponse::clear_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.ClearToEmpty(); -} -inline const std::string& GetAssetMetadataResponse::description() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.description) - return _internal_description(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_description(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.description) -} -inline std::string* GetAssetMetadataResponse::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_description(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.description) - return _s; -} -inline const std::string& GetAssetMetadataResponse::_internal_description() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.description_.Get(); -} -inline void GetAssetMetadataResponse::_internal_set_description(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.Set(value, GetArena()); -} -inline std::string* GetAssetMetadataResponse::_internal_mutable_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.description_.Mutable( GetArena()); -} -inline std::string* GetAssetMetadataResponse::release_description() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.description) - return _impl_.description_.Release(); -} -inline void GetAssetMetadataResponse::set_allocated_description(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.description_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.description_.IsDefault()) { - _impl_.description_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.description) -} - -// string image = 4; -inline void GetAssetMetadataResponse::clear_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.ClearToEmpty(); -} -inline const std::string& GetAssetMetadataResponse::image() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.image) - return _internal_image(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_image(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.image) -} -inline std::string* GetAssetMetadataResponse::mutable_image() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_image(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.image) - return _s; -} -inline const std::string& GetAssetMetadataResponse::_internal_image() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.image_.Get(); -} -inline void GetAssetMetadataResponse::_internal_set_image(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.Set(value, GetArena()); -} -inline std::string* GetAssetMetadataResponse::_internal_mutable_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.image_.Mutable( GetArena()); -} -inline std::string* GetAssetMetadataResponse::release_image() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.image) - return _impl_.image_.Release(); -} -inline void GetAssetMetadataResponse::set_allocated_image(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.image_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.image_.IsDefault()) { - _impl_.image_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.image) -} - -// bytes owner_commitment = 5; -inline void GetAssetMetadataResponse::clear_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.ClearToEmpty(); -} -inline const std::string& GetAssetMetadataResponse::owner_commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.owner_commitment) - return _internal_owner_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_owner_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.owner_commitment) -} -inline std::string* GetAssetMetadataResponse::mutable_owner_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_owner_commitment(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.owner_commitment) - return _s; -} -inline const std::string& GetAssetMetadataResponse::_internal_owner_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.owner_commitment_.Get(); -} -inline void GetAssetMetadataResponse::_internal_set_owner_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.Set(value, GetArena()); -} -inline std::string* GetAssetMetadataResponse::_internal_mutable_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.owner_commitment_.Mutable( GetArena()); -} -inline std::string* GetAssetMetadataResponse::release_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.owner_commitment) - return _impl_.owner_commitment_.Release(); -} -inline void GetAssetMetadataResponse::set_allocated_owner_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.owner_commitment_.IsDefault()) { - _impl_.owner_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.owner_commitment) -} - -// .tari.rpc.OutputFeatures features = 6; -inline bool GetAssetMetadataResponse::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); - return value; -} -inline const ::tari::rpc::OutputFeatures& GetAssetMetadataResponse::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::OutputFeatures* p = _impl_.features_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); -} -inline const ::tari::rpc::OutputFeatures& GetAssetMetadataResponse::features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.features) - return _internal_features(); -} -inline void GetAssetMetadataResponse::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetAssetMetadataResponse.features) -} -inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* released = _impl_.features_; - _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.features) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* temp = _impl_.features_; - _impl_.features_ = nullptr; - return temp; -} -inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); - } - return _impl_.features_; -} -inline ::tari::rpc::OutputFeatures* GetAssetMetadataResponse::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.features) - return _msg; -} -inline void GetAssetMetadataResponse::set_allocated_features(::tari::rpc::OutputFeatures* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.features) -} - -// uint64 mined_height = 7; -inline void GetAssetMetadataResponse::clear_mined_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_height_ = ::uint64_t{0u}; -} -inline ::uint64_t GetAssetMetadataResponse::mined_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.mined_height) - return _internal_mined_height(); -} -inline void GetAssetMetadataResponse::set_mined_height(::uint64_t value) { - _internal_set_mined_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.mined_height) -} -inline ::uint64_t GetAssetMetadataResponse::_internal_mined_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mined_height_; -} -inline void GetAssetMetadataResponse::_internal_set_mined_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_height_ = value; -} - -// bytes mined_in_block = 8; -inline void GetAssetMetadataResponse::clear_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.ClearToEmpty(); -} -inline const std::string& GetAssetMetadataResponse::mined_in_block() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetAssetMetadataResponse.mined_in_block) - return _internal_mined_in_block(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetAssetMetadataResponse::set_mined_in_block(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetAssetMetadataResponse.mined_in_block) -} -inline std::string* GetAssetMetadataResponse::mutable_mined_in_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mined_in_block(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetAssetMetadataResponse.mined_in_block) - return _s; -} -inline const std::string& GetAssetMetadataResponse::_internal_mined_in_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mined_in_block_.Get(); -} -inline void GetAssetMetadataResponse::_internal_set_mined_in_block(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.Set(value, GetArena()); -} -inline std::string* GetAssetMetadataResponse::_internal_mutable_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.mined_in_block_.Mutable( GetArena()); -} -inline std::string* GetAssetMetadataResponse::release_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetAssetMetadataResponse.mined_in_block) - return _impl_.mined_in_block_.Release(); -} -inline void GetAssetMetadataResponse::set_allocated_mined_in_block(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mined_in_block_.IsDefault()) { - _impl_.mined_in_block_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetAssetMetadataResponse.mined_in_block) -} - -// ------------------------------------------------------------------- - -// ListAssetRegistrationsRequest - -// uint64 offset = 2; -inline void ListAssetRegistrationsRequest::clear_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_ = ::uint64_t{0u}; -} -inline ::uint64_t ListAssetRegistrationsRequest::offset() const { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsRequest.offset) - return _internal_offset(); -} -inline void ListAssetRegistrationsRequest::set_offset(::uint64_t value) { - _internal_set_offset(value); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsRequest.offset) -} -inline ::uint64_t ListAssetRegistrationsRequest::_internal_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.offset_; -} -inline void ListAssetRegistrationsRequest::_internal_set_offset(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_ = value; -} - -// uint64 count = 3; -inline void ListAssetRegistrationsRequest::clear_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.count_ = ::uint64_t{0u}; -} -inline ::uint64_t ListAssetRegistrationsRequest::count() const { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsRequest.count) - return _internal_count(); -} -inline void ListAssetRegistrationsRequest::set_count(::uint64_t value) { - _internal_set_count(value); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsRequest.count) -} -inline ::uint64_t ListAssetRegistrationsRequest::_internal_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.count_; -} -inline void ListAssetRegistrationsRequest::_internal_set_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.count_ = value; -} - -// ------------------------------------------------------------------- - -// ListAssetRegistrationsResponse - -// bytes asset_public_key = 1; -inline void ListAssetRegistrationsResponse::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.ClearToEmpty(); -} -inline const std::string& ListAssetRegistrationsResponse::asset_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) - return _internal_asset_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) -} -inline std::string* ListAssetRegistrationsResponse::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) - return _s; -} -inline const std::string& ListAssetRegistrationsResponse::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Get(); -} -inline void ListAssetRegistrationsResponse::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.Set(value, GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Mutable( GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) - return _impl_.asset_public_key_.Release(); -} -inline void ListAssetRegistrationsResponse::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.asset_public_key) -} - -// bytes unique_id = 2; -inline void ListAssetRegistrationsResponse::clear_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.ClearToEmpty(); -} -inline const std::string& ListAssetRegistrationsResponse::unique_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.unique_id) - return _internal_unique_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.unique_id) -} -inline std::string* ListAssetRegistrationsResponse::mutable_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_unique_id(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.unique_id) - return _s; -} -inline const std::string& ListAssetRegistrationsResponse::_internal_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unique_id_.Get(); -} -inline void ListAssetRegistrationsResponse::_internal_set_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.Set(value, GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.unique_id_.Mutable( GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::release_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.unique_id) - return _impl_.unique_id_.Release(); -} -inline void ListAssetRegistrationsResponse::set_allocated_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.unique_id_.IsDefault()) { - _impl_.unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.unique_id) -} - -// bytes owner_commitment = 3; -inline void ListAssetRegistrationsResponse::clear_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.ClearToEmpty(); -} -inline const std::string& ListAssetRegistrationsResponse::owner_commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) - return _internal_owner_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_owner_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) -} -inline std::string* ListAssetRegistrationsResponse::mutable_owner_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_owner_commitment(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) - return _s; -} -inline const std::string& ListAssetRegistrationsResponse::_internal_owner_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.owner_commitment_.Get(); -} -inline void ListAssetRegistrationsResponse::_internal_set_owner_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.Set(value, GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.owner_commitment_.Mutable( GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::release_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) - return _impl_.owner_commitment_.Release(); -} -inline void ListAssetRegistrationsResponse::set_allocated_owner_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.owner_commitment_.IsDefault()) { - _impl_.owner_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.owner_commitment) -} - -// uint64 mined_height = 4; -inline void ListAssetRegistrationsResponse::clear_mined_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_height_ = ::uint64_t{0u}; -} -inline ::uint64_t ListAssetRegistrationsResponse::mined_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.mined_height) - return _internal_mined_height(); -} -inline void ListAssetRegistrationsResponse::set_mined_height(::uint64_t value) { - _internal_set_mined_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.mined_height) -} -inline ::uint64_t ListAssetRegistrationsResponse::_internal_mined_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mined_height_; -} -inline void ListAssetRegistrationsResponse::_internal_set_mined_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_height_ = value; -} - -// bytes mined_in_block = 5; -inline void ListAssetRegistrationsResponse::clear_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.ClearToEmpty(); -} -inline const std::string& ListAssetRegistrationsResponse::mined_in_block() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) - return _internal_mined_in_block(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_mined_in_block(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) -} -inline std::string* ListAssetRegistrationsResponse::mutable_mined_in_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mined_in_block(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) - return _s; -} -inline const std::string& ListAssetRegistrationsResponse::_internal_mined_in_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mined_in_block_.Get(); -} -inline void ListAssetRegistrationsResponse::_internal_set_mined_in_block(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.Set(value, GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.mined_in_block_.Mutable( GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::release_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) - return _impl_.mined_in_block_.Release(); -} -inline void ListAssetRegistrationsResponse::set_allocated_mined_in_block(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mined_in_block_.IsDefault()) { - _impl_.mined_in_block_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.mined_in_block) -} - -// .tari.rpc.OutputFeatures features = 6; -inline bool ListAssetRegistrationsResponse::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); - return value; -} -inline const ::tari::rpc::OutputFeatures& ListAssetRegistrationsResponse::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::OutputFeatures* p = _impl_.features_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); -} -inline const ::tari::rpc::OutputFeatures& ListAssetRegistrationsResponse::features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.features) - return _internal_features(); -} -inline void ListAssetRegistrationsResponse::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ListAssetRegistrationsResponse.features) -} -inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* released = _impl_.features_; - _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.features) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* temp = _impl_.features_; - _impl_.features_ = nullptr; - return temp; -} -inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); - } - return _impl_.features_; -} -inline ::tari::rpc::OutputFeatures* ListAssetRegistrationsResponse::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.features) - return _msg; -} -inline void ListAssetRegistrationsResponse::set_allocated_features(::tari::rpc::OutputFeatures* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.features) -} - -// bytes script = 7; -inline void ListAssetRegistrationsResponse::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.ClearToEmpty(); -} -inline const std::string& ListAssetRegistrationsResponse::script() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ListAssetRegistrationsResponse.script) - return _internal_script(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ListAssetRegistrationsResponse::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ListAssetRegistrationsResponse.script) -} -inline std::string* ListAssetRegistrationsResponse::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ListAssetRegistrationsResponse.script) - return _s; -} -inline const std::string& ListAssetRegistrationsResponse::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_.Get(); -} -inline void ListAssetRegistrationsResponse::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.Set(value, GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.script_.Mutable( GetArena()); -} -inline std::string* ListAssetRegistrationsResponse::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ListAssetRegistrationsResponse.script) - return _impl_.script_.Release(); -} -inline void ListAssetRegistrationsResponse::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ListAssetRegistrationsResponse.script) -} - -// ------------------------------------------------------------------- - -// GetTokensRequest - -// bytes asset_public_key = 1; -inline void GetTokensRequest::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.ClearToEmpty(); -} -inline const std::string& GetTokensRequest::asset_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensRequest.asset_public_key) - return _internal_asset_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTokensRequest::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensRequest.asset_public_key) -} -inline std::string* GetTokensRequest::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensRequest.asset_public_key) - return _s; -} -inline const std::string& GetTokensRequest::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Get(); -} -inline void GetTokensRequest::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.Set(value, GetArena()); -} -inline std::string* GetTokensRequest::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Mutable( GetArena()); -} -inline std::string* GetTokensRequest::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTokensRequest.asset_public_key) - return _impl_.asset_public_key_.Release(); -} -inline void GetTokensRequest::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensRequest.asset_public_key) -} - -// repeated bytes unique_ids = 2; -inline int GetTokensRequest::_internal_unique_ids_size() const { - return _internal_unique_ids().size(); -} -inline int GetTokensRequest::unique_ids_size() const { - return _internal_unique_ids_size(); -} -inline void GetTokensRequest::clear_unique_ids() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_ids_.Clear(); -} -inline std::string* GetTokensRequest::add_unique_ids() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_unique_ids()->Add(); - // @@protoc_insertion_point(field_add_mutable:tari.rpc.GetTokensRequest.unique_ids) - return _s; -} -inline const std::string& GetTokensRequest::unique_ids(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensRequest.unique_ids) - return _internal_unique_ids().Get(index); -} -inline std::string* GetTokensRequest::mutable_unique_ids(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensRequest.unique_ids) - return _internal_mutable_unique_ids()->Mutable(index); -} -inline void GetTokensRequest::set_unique_ids(int index, const std::string& value) { - _internal_mutable_unique_ids()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::set_unique_ids(int index, std::string&& value) { - _internal_mutable_unique_ids()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::set_unique_ids(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_unique_ids()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::set_unique_ids(int index, const void* value, - std::size_t size) { - _internal_mutable_unique_ids()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::set_unique_ids(int index, absl::string_view value) { - _internal_mutable_unique_ids()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign(value); - // @@protoc_insertion_point(field_add:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.GetTokensRequest.unique_ids) -} -inline void GetTokensRequest::add_unique_ids(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_unique_ids()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.GetTokensRequest.unique_ids) -} -inline const ::google::protobuf::RepeatedPtrField& -GetTokensRequest::unique_ids() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.GetTokensRequest.unique_ids) - return _internal_unique_ids(); -} -inline ::google::protobuf::RepeatedPtrField* -GetTokensRequest::mutable_unique_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetTokensRequest.unique_ids) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_unique_ids(); -} -inline const ::google::protobuf::RepeatedPtrField& -GetTokensRequest::_internal_unique_ids() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unique_ids_; -} -inline ::google::protobuf::RepeatedPtrField* -GetTokensRequest::_internal_mutable_unique_ids() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.unique_ids_; -} - -// ------------------------------------------------------------------- - -// GetTokensResponse - -// bytes unique_id = 1; -inline void GetTokensResponse::clear_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.ClearToEmpty(); -} -inline const std::string& GetTokensResponse::unique_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.unique_id) - return _internal_unique_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.unique_id) -} -inline std::string* GetTokensResponse::mutable_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_unique_id(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.unique_id) - return _s; -} -inline const std::string& GetTokensResponse::_internal_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unique_id_.Get(); -} -inline void GetTokensResponse::_internal_set_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.Set(value, GetArena()); -} -inline std::string* GetTokensResponse::_internal_mutable_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.unique_id_.Mutable( GetArena()); -} -inline std::string* GetTokensResponse::release_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.unique_id) - return _impl_.unique_id_.Release(); -} -inline void GetTokensResponse::set_allocated_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.unique_id_.IsDefault()) { - _impl_.unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.unique_id) -} - -// bytes asset_public_key = 2; -inline void GetTokensResponse::clear_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.ClearToEmpty(); -} -inline const std::string& GetTokensResponse::asset_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.asset_public_key) - return _internal_asset_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_asset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.asset_public_key) -} -inline std::string* GetTokensResponse::mutable_asset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_asset_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.asset_public_key) - return _s; -} -inline const std::string& GetTokensResponse::_internal_asset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Get(); -} -inline void GetTokensResponse::_internal_set_asset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.Set(value, GetArena()); -} -inline std::string* GetTokensResponse::_internal_mutable_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.asset_public_key_.Mutable( GetArena()); -} -inline std::string* GetTokensResponse::release_asset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.asset_public_key) - return _impl_.asset_public_key_.Release(); -} -inline void GetTokensResponse::set_allocated_asset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.asset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.asset_public_key_.IsDefault()) { - _impl_.asset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.asset_public_key) -} - -// bytes owner_commitment = 3; -inline void GetTokensResponse::clear_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.ClearToEmpty(); -} -inline const std::string& GetTokensResponse::owner_commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.owner_commitment) - return _internal_owner_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_owner_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.owner_commitment) -} -inline std::string* GetTokensResponse::mutable_owner_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_owner_commitment(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.owner_commitment) - return _s; -} -inline const std::string& GetTokensResponse::_internal_owner_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.owner_commitment_.Get(); -} -inline void GetTokensResponse::_internal_set_owner_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.Set(value, GetArena()); -} -inline std::string* GetTokensResponse::_internal_mutable_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.owner_commitment_.Mutable( GetArena()); -} -inline std::string* GetTokensResponse::release_owner_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.owner_commitment) - return _impl_.owner_commitment_.Release(); -} -inline void GetTokensResponse::set_allocated_owner_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.owner_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.owner_commitment_.IsDefault()) { - _impl_.owner_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.owner_commitment) -} - -// bytes mined_in_block = 4; -inline void GetTokensResponse::clear_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.ClearToEmpty(); -} -inline const std::string& GetTokensResponse::mined_in_block() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.mined_in_block) - return _internal_mined_in_block(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_mined_in_block(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.mined_in_block) -} -inline std::string* GetTokensResponse::mutable_mined_in_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_mined_in_block(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.mined_in_block) - return _s; -} -inline const std::string& GetTokensResponse::_internal_mined_in_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mined_in_block_.Get(); -} -inline void GetTokensResponse::_internal_set_mined_in_block(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.Set(value, GetArena()); -} -inline std::string* GetTokensResponse::_internal_mutable_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.mined_in_block_.Mutable( GetArena()); -} -inline std::string* GetTokensResponse::release_mined_in_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.mined_in_block) - return _impl_.mined_in_block_.Release(); -} -inline void GetTokensResponse::set_allocated_mined_in_block(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_in_block_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.mined_in_block_.IsDefault()) { - _impl_.mined_in_block_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.mined_in_block) -} - -// uint64 mined_height = 5; -inline void GetTokensResponse::clear_mined_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_height_ = ::uint64_t{0u}; -} -inline ::uint64_t GetTokensResponse::mined_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.mined_height) - return _internal_mined_height(); -} -inline void GetTokensResponse::set_mined_height(::uint64_t value) { - _internal_set_mined_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.mined_height) -} -inline ::uint64_t GetTokensResponse::_internal_mined_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.mined_height_; -} -inline void GetTokensResponse::_internal_set_mined_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.mined_height_ = value; -} - -// .tari.rpc.OutputFeatures features = 6; -inline bool GetTokensResponse::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); - return value; -} -inline const ::tari::rpc::OutputFeatures& GetTokensResponse::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::OutputFeatures* p = _impl_.features_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); -} -inline const ::tari::rpc::OutputFeatures& GetTokensResponse::features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.features) - return _internal_features(); -} -inline void GetTokensResponse::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetTokensResponse.features) -} -inline ::tari::rpc::OutputFeatures* GetTokensResponse::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* released = _impl_.features_; - _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::OutputFeatures* GetTokensResponse::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.features) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* temp = _impl_.features_; - _impl_.features_ = nullptr; - return temp; -} -inline ::tari::rpc::OutputFeatures* GetTokensResponse::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); - } - return _impl_.features_; -} -inline ::tari::rpc::OutputFeatures* GetTokensResponse::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.features) - return _msg; -} -inline void GetTokensResponse::set_allocated_features(::tari::rpc::OutputFeatures* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.features) -} - -// bytes script = 7; -inline void GetTokensResponse::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.ClearToEmpty(); -} -inline const std::string& GetTokensResponse::script() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTokensResponse.script) - return _internal_script(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTokensResponse::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTokensResponse.script) -} -inline std::string* GetTokensResponse::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTokensResponse.script) - return _s; -} -inline const std::string& GetTokensResponse::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_.Get(); -} -inline void GetTokensResponse::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.Set(value, GetArena()); -} -inline std::string* GetTokensResponse::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.script_.Mutable( GetArena()); -} -inline std::string* GetTokensResponse::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTokensResponse.script) - return _impl_.script_.Release(); -} -inline void GetTokensResponse::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTokensResponse.script) -} - -// ------------------------------------------------------------------- - -// SubmitBlockResponse - -// bytes block_hash = 1; -inline void SubmitBlockResponse::clear_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.ClearToEmpty(); -} -inline const std::string& SubmitBlockResponse::block_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SubmitBlockResponse.block_hash) - return _internal_block_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SubmitBlockResponse::set_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.SubmitBlockResponse.block_hash) -} -inline std::string* SubmitBlockResponse::mutable_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SubmitBlockResponse.block_hash) - return _s; -} -inline const std::string& SubmitBlockResponse::_internal_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_hash_.Get(); -} -inline void SubmitBlockResponse::_internal_set_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.Set(value, GetArena()); -} -inline std::string* SubmitBlockResponse::_internal_mutable_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.block_hash_.Mutable( GetArena()); -} -inline std::string* SubmitBlockResponse::release_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.SubmitBlockResponse.block_hash) - return _impl_.block_hash_.Release(); -} -inline void SubmitBlockResponse::set_allocated_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_hash_.IsDefault()) { - _impl_.block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SubmitBlockResponse.block_hash) -} - -// ------------------------------------------------------------------- - -// BlockBlobRequest - -// bytes header_blob = 1; -inline void BlockBlobRequest::clear_header_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_blob_.ClearToEmpty(); -} -inline const std::string& BlockBlobRequest::header_blob() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockBlobRequest.header_blob) - return _internal_header_blob(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_header_blob(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_blob_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockBlobRequest.header_blob) -} -inline std::string* BlockBlobRequest::mutable_header_blob() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_header_blob(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockBlobRequest.header_blob) - return _s; -} -inline const std::string& BlockBlobRequest::_internal_header_blob() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.header_blob_.Get(); -} -inline void BlockBlobRequest::_internal_set_header_blob(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_blob_.Set(value, GetArena()); -} -inline std::string* BlockBlobRequest::_internal_mutable_header_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.header_blob_.Mutable( GetArena()); -} -inline std::string* BlockBlobRequest::release_header_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockBlobRequest.header_blob) - return _impl_.header_blob_.Release(); -} -inline void BlockBlobRequest::set_allocated_header_blob(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_blob_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.header_blob_.IsDefault()) { - _impl_.header_blob_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockBlobRequest.header_blob) -} - -// bytes body_blob = 2; -inline void BlockBlobRequest::clear_body_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_blob_.ClearToEmpty(); -} -inline const std::string& BlockBlobRequest::body_blob() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockBlobRequest.body_blob) - return _internal_body_blob(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockBlobRequest::set_body_blob(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_blob_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockBlobRequest.body_blob) -} -inline std::string* BlockBlobRequest::mutable_body_blob() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_body_blob(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockBlobRequest.body_blob) - return _s; -} -inline const std::string& BlockBlobRequest::_internal_body_blob() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.body_blob_.Get(); -} -inline void BlockBlobRequest::_internal_set_body_blob(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_blob_.Set(value, GetArena()); -} -inline std::string* BlockBlobRequest::_internal_mutable_body_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.body_blob_.Mutable( GetArena()); -} -inline std::string* BlockBlobRequest::release_body_blob() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockBlobRequest.body_blob) - return _impl_.body_blob_.Release(); -} -inline void BlockBlobRequest::set_allocated_body_blob(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.body_blob_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.body_blob_.IsDefault()) { - _impl_.body_blob_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockBlobRequest.body_blob) -} - -// ------------------------------------------------------------------- - -// TipInfoResponse - -// .tari.rpc.MetaData metadata = 1; -inline bool TipInfoResponse::has_metadata() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_ != nullptr); - return value; -} -inline void TipInfoResponse::clear_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ != nullptr) _impl_.metadata_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::MetaData& TipInfoResponse::_internal_metadata() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::MetaData* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_MetaData_default_instance_); -} -inline const ::tari::rpc::MetaData& TipInfoResponse::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TipInfoResponse.metadata) - return _internal_metadata(); -} -inline void TipInfoResponse::unsafe_arena_set_allocated_metadata(::tari::rpc::MetaData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_); - } - _impl_.metadata_ = reinterpret_cast<::tari::rpc::MetaData*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TipInfoResponse.metadata) -} -inline ::tari::rpc::MetaData* TipInfoResponse::release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::MetaData* released = _impl_.metadata_; - _impl_.metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::MetaData* TipInfoResponse::unsafe_arena_release_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TipInfoResponse.metadata) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::MetaData* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; - return temp; -} -inline ::tari::rpc::MetaData* TipInfoResponse::_internal_mutable_metadata() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::MetaData>(GetArena()); - _impl_.metadata_ = reinterpret_cast<::tari::rpc::MetaData*>(p); - } - return _impl_.metadata_; -} -inline ::tari::rpc::MetaData* TipInfoResponse::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::MetaData* _msg = _internal_mutable_metadata(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TipInfoResponse.metadata) - return _msg; -} -inline void TipInfoResponse::set_allocated_metadata(::tari::rpc::MetaData* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.metadata_ = reinterpret_cast<::tari::rpc::MetaData*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TipInfoResponse.metadata) -} - -// bool initial_sync_achieved = 2; -inline void TipInfoResponse::clear_initial_sync_achieved() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.initial_sync_achieved_ = false; -} -inline bool TipInfoResponse::initial_sync_achieved() const { - // @@protoc_insertion_point(field_get:tari.rpc.TipInfoResponse.initial_sync_achieved) - return _internal_initial_sync_achieved(); -} -inline void TipInfoResponse::set_initial_sync_achieved(bool value) { - _internal_set_initial_sync_achieved(value); - // @@protoc_insertion_point(field_set:tari.rpc.TipInfoResponse.initial_sync_achieved) -} -inline bool TipInfoResponse::_internal_initial_sync_achieved() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.initial_sync_achieved_; -} -inline void TipInfoResponse::_internal_set_initial_sync_achieved(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.initial_sync_achieved_ = value; -} - -// .tari.rpc.BaseNodeState base_node_state = 3; -inline void TipInfoResponse::clear_base_node_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.base_node_state_ = 0; -} -inline ::tari::rpc::BaseNodeState TipInfoResponse::base_node_state() const { - // @@protoc_insertion_point(field_get:tari.rpc.TipInfoResponse.base_node_state) - return _internal_base_node_state(); -} -inline void TipInfoResponse::set_base_node_state(::tari::rpc::BaseNodeState value) { - _internal_set_base_node_state(value); - // @@protoc_insertion_point(field_set:tari.rpc.TipInfoResponse.base_node_state) -} -inline ::tari::rpc::BaseNodeState TipInfoResponse::_internal_base_node_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::BaseNodeState>(_impl_.base_node_state_); -} -inline void TipInfoResponse::_internal_set_base_node_state(::tari::rpc::BaseNodeState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.base_node_state_ = value; -} - -// ------------------------------------------------------------------- - -// NewBlockTemplateResponse - -// .tari.rpc.NewBlockTemplate new_block_template = 1; -inline bool NewBlockTemplateResponse::has_new_block_template() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.new_block_template_ != nullptr); - return value; -} -inline const ::tari::rpc::NewBlockTemplate& NewBlockTemplateResponse::_internal_new_block_template() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::NewBlockTemplate* p = _impl_.new_block_template_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_NewBlockTemplate_default_instance_); -} -inline const ::tari::rpc::NewBlockTemplate& NewBlockTemplateResponse::new_block_template() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateResponse.new_block_template) - return _internal_new_block_template(); -} -inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.new_block_template_); - } - _impl_.new_block_template_ = reinterpret_cast<::tari::rpc::NewBlockTemplate*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplateResponse.new_block_template) -} -inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::release_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::NewBlockTemplate* released = _impl_.new_block_template_; - _impl_.new_block_template_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::unsafe_arena_release_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplateResponse.new_block_template) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::NewBlockTemplate* temp = _impl_.new_block_template_; - _impl_.new_block_template_ = nullptr; - return temp; -} -inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::_internal_mutable_new_block_template() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.new_block_template_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::NewBlockTemplate>(GetArena()); - _impl_.new_block_template_ = reinterpret_cast<::tari::rpc::NewBlockTemplate*>(p); - } - return _impl_.new_block_template_; -} -inline ::tari::rpc::NewBlockTemplate* NewBlockTemplateResponse::mutable_new_block_template() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::NewBlockTemplate* _msg = _internal_mutable_new_block_template(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplateResponse.new_block_template) - return _msg; -} -inline void NewBlockTemplateResponse::set_allocated_new_block_template(::tari::rpc::NewBlockTemplate* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.new_block_template_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.new_block_template_ = reinterpret_cast<::tari::rpc::NewBlockTemplate*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockTemplateResponse.new_block_template) -} - -// bool initial_sync_achieved = 3; -inline void NewBlockTemplateResponse::clear_initial_sync_achieved() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.initial_sync_achieved_ = false; -} -inline bool NewBlockTemplateResponse::initial_sync_achieved() const { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateResponse.initial_sync_achieved) - return _internal_initial_sync_achieved(); -} -inline void NewBlockTemplateResponse::set_initial_sync_achieved(bool value) { - _internal_set_initial_sync_achieved(value); - // @@protoc_insertion_point(field_set:tari.rpc.NewBlockTemplateResponse.initial_sync_achieved) -} -inline bool NewBlockTemplateResponse::_internal_initial_sync_achieved() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.initial_sync_achieved_; -} -inline void NewBlockTemplateResponse::_internal_set_initial_sync_achieved(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.initial_sync_achieved_ = value; -} - -// .tari.rpc.MinerData miner_data = 4; -inline bool NewBlockTemplateResponse::has_miner_data() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.miner_data_ != nullptr); - return value; -} -inline void NewBlockTemplateResponse::clear_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.miner_data_ != nullptr) _impl_.miner_data_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::tari::rpc::MinerData& NewBlockTemplateResponse::_internal_miner_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::MinerData* p = _impl_.miner_data_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_MinerData_default_instance_); -} -inline const ::tari::rpc::MinerData& NewBlockTemplateResponse::miner_data() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateResponse.miner_data) - return _internal_miner_data(); -} -inline void NewBlockTemplateResponse::unsafe_arena_set_allocated_miner_data(::tari::rpc::MinerData* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.miner_data_); - } - _impl_.miner_data_ = reinterpret_cast<::tari::rpc::MinerData*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplateResponse.miner_data) -} -inline ::tari::rpc::MinerData* NewBlockTemplateResponse::release_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::MinerData* released = _impl_.miner_data_; - _impl_.miner_data_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::MinerData* NewBlockTemplateResponse::unsafe_arena_release_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplateResponse.miner_data) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::MinerData* temp = _impl_.miner_data_; - _impl_.miner_data_ = nullptr; - return temp; -} -inline ::tari::rpc::MinerData* NewBlockTemplateResponse::_internal_mutable_miner_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.miner_data_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::MinerData>(GetArena()); - _impl_.miner_data_ = reinterpret_cast<::tari::rpc::MinerData*>(p); - } - return _impl_.miner_data_; -} -inline ::tari::rpc::MinerData* NewBlockTemplateResponse::mutable_miner_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::MinerData* _msg = _internal_mutable_miner_data(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplateResponse.miner_data) - return _msg; -} -inline void NewBlockTemplateResponse::set_allocated_miner_data(::tari::rpc::MinerData* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.miner_data_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.miner_data_ = reinterpret_cast<::tari::rpc::MinerData*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockTemplateResponse.miner_data) -} - -// ------------------------------------------------------------------- - -// NewBlockTemplateRequest - -// .tari.rpc.PowAlgo algo = 1; -inline bool NewBlockTemplateRequest::has_algo() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.algo_ != nullptr); - return value; -} -inline const ::tari::rpc::PowAlgo& NewBlockTemplateRequest::_internal_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::PowAlgo* p = _impl_.algo_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_PowAlgo_default_instance_); -} -inline const ::tari::rpc::PowAlgo& NewBlockTemplateRequest::algo() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateRequest.algo) - return _internal_algo(); -} -inline void NewBlockTemplateRequest::unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); - } - _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplateRequest.algo) -} -inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::PowAlgo* released = _impl_.algo_; - _impl_.algo_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::unsafe_arena_release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplateRequest.algo) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::PowAlgo* temp = _impl_.algo_; - _impl_.algo_ = nullptr; - return temp; -} -inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::_internal_mutable_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.algo_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::PowAlgo>(GetArena()); - _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(p); - } - return _impl_.algo_; -} -inline ::tari::rpc::PowAlgo* NewBlockTemplateRequest::mutable_algo() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::PowAlgo* _msg = _internal_mutable_algo(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplateRequest.algo) - return _msg; -} -inline void NewBlockTemplateRequest::set_allocated_algo(::tari::rpc::PowAlgo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockTemplateRequest.algo) -} - -// uint64 max_weight = 2; -inline void NewBlockTemplateRequest::clear_max_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_weight_ = ::uint64_t{0u}; -} -inline ::uint64_t NewBlockTemplateRequest::max_weight() const { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplateRequest.max_weight) - return _internal_max_weight(); -} -inline void NewBlockTemplateRequest::set_max_weight(::uint64_t value) { - _internal_set_max_weight(value); - // @@protoc_insertion_point(field_set:tari.rpc.NewBlockTemplateRequest.max_weight) -} -inline ::uint64_t NewBlockTemplateRequest::_internal_max_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_weight_; -} -inline void NewBlockTemplateRequest::_internal_set_max_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_weight_ = value; -} - -// ------------------------------------------------------------------- - -// NetworkDifficultyResponse - -// uint64 difficulty = 1; -inline void NetworkDifficultyResponse::clear_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.difficulty_ = ::uint64_t{0u}; -} -inline ::uint64_t NetworkDifficultyResponse::difficulty() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.difficulty) - return _internal_difficulty(); -} -inline void NetworkDifficultyResponse::set_difficulty(::uint64_t value) { - _internal_set_difficulty(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.difficulty) -} -inline ::uint64_t NetworkDifficultyResponse::_internal_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.difficulty_; -} -inline void NetworkDifficultyResponse::_internal_set_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.difficulty_ = value; -} - -// uint64 estimated_hash_rate = 2; -inline void NetworkDifficultyResponse::clear_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.estimated_hash_rate_ = ::uint64_t{0u}; -} -inline ::uint64_t NetworkDifficultyResponse::estimated_hash_rate() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.estimated_hash_rate) - return _internal_estimated_hash_rate(); -} -inline void NetworkDifficultyResponse::set_estimated_hash_rate(::uint64_t value) { - _internal_set_estimated_hash_rate(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.estimated_hash_rate) -} -inline ::uint64_t NetworkDifficultyResponse::_internal_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.estimated_hash_rate_; -} -inline void NetworkDifficultyResponse::_internal_set_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.estimated_hash_rate_ = value; -} - -// uint64 height = 3; -inline void NetworkDifficultyResponse::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; -} -inline ::uint64_t NetworkDifficultyResponse::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.height) - return _internal_height(); -} -inline void NetworkDifficultyResponse::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.height) -} -inline ::uint64_t NetworkDifficultyResponse::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void NetworkDifficultyResponse::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; -} - -// uint64 timestamp = 4; -inline void NetworkDifficultyResponse::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.timestamp_ = ::uint64_t{0u}; -} -inline ::uint64_t NetworkDifficultyResponse::timestamp() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.timestamp) - return _internal_timestamp(); -} -inline void NetworkDifficultyResponse::set_timestamp(::uint64_t value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.timestamp) -} -inline ::uint64_t NetworkDifficultyResponse::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.timestamp_; -} -inline void NetworkDifficultyResponse::_internal_set_timestamp(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.timestamp_ = value; -} - -// uint64 pow_algo = 5; -inline void NetworkDifficultyResponse::clear_pow_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_ = ::uint64_t{0u}; -} -inline ::uint64_t NetworkDifficultyResponse::pow_algo() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.pow_algo) - return _internal_pow_algo(); -} -inline void NetworkDifficultyResponse::set_pow_algo(::uint64_t value) { - _internal_set_pow_algo(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.pow_algo) -} -inline ::uint64_t NetworkDifficultyResponse::_internal_pow_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pow_algo_; -} -inline void NetworkDifficultyResponse::_internal_set_pow_algo(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_ = value; -} - -// uint64 sha3x_estimated_hash_rate = 6; -inline void NetworkDifficultyResponse::clear_sha3x_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sha3x_estimated_hash_rate_ = ::uint64_t{0u}; -} -inline ::uint64_t NetworkDifficultyResponse::sha3x_estimated_hash_rate() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.sha3x_estimated_hash_rate) - return _internal_sha3x_estimated_hash_rate(); -} -inline void NetworkDifficultyResponse::set_sha3x_estimated_hash_rate(::uint64_t value) { - _internal_set_sha3x_estimated_hash_rate(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.sha3x_estimated_hash_rate) -} -inline ::uint64_t NetworkDifficultyResponse::_internal_sha3x_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sha3x_estimated_hash_rate_; -} -inline void NetworkDifficultyResponse::_internal_set_sha3x_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sha3x_estimated_hash_rate_ = value; -} - -// uint64 randomx_estimated_hash_rate = 7; -inline void NetworkDifficultyResponse::clear_randomx_estimated_hash_rate() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.randomx_estimated_hash_rate_ = ::uint64_t{0u}; -} -inline ::uint64_t NetworkDifficultyResponse::randomx_estimated_hash_rate() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkDifficultyResponse.randomx_estimated_hash_rate) - return _internal_randomx_estimated_hash_rate(); -} -inline void NetworkDifficultyResponse::set_randomx_estimated_hash_rate(::uint64_t value) { - _internal_set_randomx_estimated_hash_rate(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkDifficultyResponse.randomx_estimated_hash_rate) -} -inline ::uint64_t NetworkDifficultyResponse::_internal_randomx_estimated_hash_rate() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.randomx_estimated_hash_rate_; -} -inline void NetworkDifficultyResponse::_internal_set_randomx_estimated_hash_rate(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.randomx_estimated_hash_rate_ = value; -} - -// ------------------------------------------------------------------- - -// ValueAtHeightResponse - -// uint64 value = 1; -inline void ValueAtHeightResponse::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = ::uint64_t{0u}; -} -inline ::uint64_t ValueAtHeightResponse::value() const { - // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.value) - return _internal_value(); -} -inline void ValueAtHeightResponse::set_value(::uint64_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.value) -} -inline ::uint64_t ValueAtHeightResponse::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void ValueAtHeightResponse::_internal_set_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = value; -} - -// uint64 height = 2; -inline void ValueAtHeightResponse::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; -} -inline ::uint64_t ValueAtHeightResponse::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.ValueAtHeightResponse.height) - return _internal_height(); -} -inline void ValueAtHeightResponse::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.ValueAtHeightResponse.height) -} -inline ::uint64_t ValueAtHeightResponse::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void ValueAtHeightResponse::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; -} - -// ------------------------------------------------------------------- - -// IntegerValue - -// uint64 value = 1; -inline void IntegerValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = ::uint64_t{0u}; -} -inline ::uint64_t IntegerValue::value() const { - // @@protoc_insertion_point(field_get:tari.rpc.IntegerValue.value) - return _internal_value(); -} -inline void IntegerValue::set_value(::uint64_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:tari.rpc.IntegerValue.value) -} -inline ::uint64_t IntegerValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void IntegerValue::_internal_set_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = value; -} - -// ------------------------------------------------------------------- - -// StringValue - -// string value = 1; -inline void StringValue::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.ClearToEmpty(); -} -inline const std::string& StringValue::value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.StringValue.value) - return _internal_value(); -} -template -inline PROTOBUF_ALWAYS_INLINE void StringValue::set_value(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.StringValue.value) -} -inline std::string* StringValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:tari.rpc.StringValue.value) - return _s; -} -inline const std::string& StringValue::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_.Get(); -} -inline void StringValue::_internal_set_value(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Set(value, GetArena()); -} -inline std::string* StringValue::_internal_mutable_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.value_.Mutable( GetArena()); -} -inline std::string* StringValue::release_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.StringValue.value) - return _impl_.value_.Release(); -} -inline void StringValue::set_allocated_value(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.value_.IsDefault()) { - _impl_.value_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.StringValue.value) -} - -// ------------------------------------------------------------------- - -// BlockGroupRequest - -// uint64 from_tip = 1; -inline void BlockGroupRequest::clear_from_tip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.from_tip_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockGroupRequest::from_tip() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.from_tip) - return _internal_from_tip(); -} -inline void BlockGroupRequest::set_from_tip(::uint64_t value) { - _internal_set_from_tip(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.from_tip) -} -inline ::uint64_t BlockGroupRequest::_internal_from_tip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.from_tip_; -} -inline void BlockGroupRequest::_internal_set_from_tip(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.from_tip_ = value; -} - -// uint64 start_height = 2; -inline void BlockGroupRequest::clear_start_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_height_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockGroupRequest::start_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.start_height) - return _internal_start_height(); -} -inline void BlockGroupRequest::set_start_height(::uint64_t value) { - _internal_set_start_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.start_height) -} -inline ::uint64_t BlockGroupRequest::_internal_start_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.start_height_; -} -inline void BlockGroupRequest::_internal_set_start_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_height_ = value; -} - -// uint64 end_height = 3; -inline void BlockGroupRequest::clear_end_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.end_height_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockGroupRequest::end_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.end_height) - return _internal_end_height(); -} -inline void BlockGroupRequest::set_end_height(::uint64_t value) { - _internal_set_end_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.end_height) -} -inline ::uint64_t BlockGroupRequest::_internal_end_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.end_height_; -} -inline void BlockGroupRequest::_internal_set_end_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.end_height_ = value; -} - -// .tari.rpc.CalcType calc_type = 4; -inline void BlockGroupRequest::clear_calc_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.calc_type_ = 0; -} -inline ::tari::rpc::CalcType BlockGroupRequest::calc_type() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupRequest.calc_type) - return _internal_calc_type(); -} -inline void BlockGroupRequest::set_calc_type(::tari::rpc::CalcType value) { - _internal_set_calc_type(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupRequest.calc_type) -} -inline ::tari::rpc::CalcType BlockGroupRequest::_internal_calc_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::CalcType>(_impl_.calc_type_); -} -inline void BlockGroupRequest::_internal_set_calc_type(::tari::rpc::CalcType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.calc_type_ = value; -} - -// ------------------------------------------------------------------- - -// BlockGroupResponse - -// repeated double value = 1; -inline int BlockGroupResponse::_internal_value_size() const { - return _internal_value().size(); -} -inline int BlockGroupResponse::value_size() const { - return _internal_value_size(); -} -inline void BlockGroupResponse::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_.Clear(); -} -inline double BlockGroupResponse::value(int index) const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupResponse.value) - return _internal_value().Get(index); -} -inline void BlockGroupResponse::set_value(int index, double value) { - _internal_mutable_value()->Set(index, value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupResponse.value) -} -inline void BlockGroupResponse::add_value(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_value()->Add(value); - // @@protoc_insertion_point(field_add:tari.rpc.BlockGroupResponse.value) -} -inline const ::google::protobuf::RepeatedField& BlockGroupResponse::value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.BlockGroupResponse.value) - return _internal_value(); -} -inline ::google::protobuf::RepeatedField* BlockGroupResponse::mutable_value() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.BlockGroupResponse.value) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_value(); -} -inline const ::google::protobuf::RepeatedField& -BlockGroupResponse::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline ::google::protobuf::RepeatedField* BlockGroupResponse::_internal_mutable_value() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.value_; -} - -// .tari.rpc.CalcType calc_type = 2; -inline void BlockGroupResponse::clear_calc_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.calc_type_ = 0; -} -inline ::tari::rpc::CalcType BlockGroupResponse::calc_type() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockGroupResponse.calc_type) - return _internal_calc_type(); -} -inline void BlockGroupResponse::set_calc_type(::tari::rpc::CalcType value) { - _internal_set_calc_type(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockGroupResponse.calc_type) -} -inline ::tari::rpc::CalcType BlockGroupResponse::_internal_calc_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::CalcType>(_impl_.calc_type_); -} -inline void BlockGroupResponse::_internal_set_calc_type(::tari::rpc::CalcType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.calc_type_ = value; -} - -// ------------------------------------------------------------------- - -// HeightRequest - -// uint64 from_tip = 1; -inline void HeightRequest::clear_from_tip() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.from_tip_ = ::uint64_t{0u}; -} -inline ::uint64_t HeightRequest::from_tip() const { - // @@protoc_insertion_point(field_get:tari.rpc.HeightRequest.from_tip) - return _internal_from_tip(); -} -inline void HeightRequest::set_from_tip(::uint64_t value) { - _internal_set_from_tip(value); - // @@protoc_insertion_point(field_set:tari.rpc.HeightRequest.from_tip) -} -inline ::uint64_t HeightRequest::_internal_from_tip() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.from_tip_; -} -inline void HeightRequest::_internal_set_from_tip(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.from_tip_ = value; -} - -// uint64 start_height = 2; -inline void HeightRequest::clear_start_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_height_ = ::uint64_t{0u}; -} -inline ::uint64_t HeightRequest::start_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.HeightRequest.start_height) - return _internal_start_height(); -} -inline void HeightRequest::set_start_height(::uint64_t value) { - _internal_set_start_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.HeightRequest.start_height) -} -inline ::uint64_t HeightRequest::_internal_start_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.start_height_; -} -inline void HeightRequest::_internal_set_start_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_height_ = value; -} - -// uint64 end_height = 3; -inline void HeightRequest::clear_end_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.end_height_ = ::uint64_t{0u}; -} -inline ::uint64_t HeightRequest::end_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.HeightRequest.end_height) - return _internal_end_height(); -} -inline void HeightRequest::set_end_height(::uint64_t value) { - _internal_set_end_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.HeightRequest.end_height) -} -inline ::uint64_t HeightRequest::_internal_end_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.end_height_; -} -inline void HeightRequest::_internal_set_end_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.end_height_ = value; -} - -// ------------------------------------------------------------------- - -// BlockTimingResponse - -// uint64 max = 1; -inline void BlockTimingResponse::clear_max() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockTimingResponse::max() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockTimingResponse.max) - return _internal_max(); -} -inline void BlockTimingResponse::set_max(::uint64_t value) { - _internal_set_max(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockTimingResponse.max) -} -inline ::uint64_t BlockTimingResponse::_internal_max() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_; -} -inline void BlockTimingResponse::_internal_set_max(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_ = value; -} - -// uint64 min = 2; -inline void BlockTimingResponse::clear_min() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockTimingResponse::min() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockTimingResponse.min) - return _internal_min(); -} -inline void BlockTimingResponse::set_min(::uint64_t value) { - _internal_set_min(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockTimingResponse.min) -} -inline ::uint64_t BlockTimingResponse::_internal_min() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.min_; -} -inline void BlockTimingResponse::_internal_set_min(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_ = value; -} - -// double avg = 3; -inline void BlockTimingResponse::clear_avg() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.avg_ = 0; -} -inline double BlockTimingResponse::avg() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockTimingResponse.avg) - return _internal_avg(); -} -inline void BlockTimingResponse::set_avg(double value) { - _internal_set_avg(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockTimingResponse.avg) -} -inline double BlockTimingResponse::_internal_avg() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.avg_; -} -inline void BlockTimingResponse::_internal_set_avg(double value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.avg_ = value; -} - -// ------------------------------------------------------------------- - -// GetHeaderByHashRequest - -// bytes hash = 1; -inline void GetHeaderByHashRequest::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.ClearToEmpty(); -} -inline const std::string& GetHeaderByHashRequest::hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetHeaderByHashRequest.hash) - return _internal_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetHeaderByHashRequest::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetHeaderByHashRequest.hash) -} -inline std::string* GetHeaderByHashRequest::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetHeaderByHashRequest.hash) - return _s; -} -inline const std::string& GetHeaderByHashRequest::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hash_.Get(); -} -inline void GetHeaderByHashRequest::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.Set(value, GetArena()); -} -inline std::string* GetHeaderByHashRequest::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.hash_.Mutable( GetArena()); -} -inline std::string* GetHeaderByHashRequest::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetHeaderByHashRequest.hash) - return _impl_.hash_.Release(); -} -inline void GetHeaderByHashRequest::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetHeaderByHashRequest.hash) -} - -// ------------------------------------------------------------------- - -// BlockHeaderResponse - -// .tari.rpc.BlockHeader header = 1; -inline bool BlockHeaderResponse::has_header() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); - return value; -} -inline const ::tari::rpc::BlockHeader& BlockHeaderResponse::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::BlockHeader* p = _impl_.header_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BlockHeader_default_instance_); -} -inline const ::tari::rpc::BlockHeader& BlockHeaderResponse::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.header) - return _internal_header(); -} -inline void BlockHeaderResponse::unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); - } - _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.BlockHeaderResponse.header) -} -inline ::tari::rpc::BlockHeader* BlockHeaderResponse::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::BlockHeader* released = _impl_.header_; - _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::BlockHeader* BlockHeaderResponse::unsafe_arena_release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeaderResponse.header) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::BlockHeader* temp = _impl_.header_; - _impl_.header_ = nullptr; - return temp; -} -inline ::tari::rpc::BlockHeader* BlockHeaderResponse::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.header_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BlockHeader>(GetArena()); - _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(p); - } - return _impl_.header_; -} -inline ::tari::rpc::BlockHeader* BlockHeaderResponse::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::BlockHeader* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeaderResponse.header) - return _msg; -} -inline void BlockHeaderResponse::set_allocated_header(::tari::rpc::BlockHeader* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeaderResponse.header) -} - -// uint64 confirmations = 2; -inline void BlockHeaderResponse::clear_confirmations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.confirmations_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeaderResponse::confirmations() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.confirmations) - return _internal_confirmations(); -} -inline void BlockHeaderResponse::set_confirmations(::uint64_t value) { - _internal_set_confirmations(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.confirmations) -} -inline ::uint64_t BlockHeaderResponse::_internal_confirmations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.confirmations_; -} -inline void BlockHeaderResponse::_internal_set_confirmations(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.confirmations_ = value; -} - -// uint64 reward = 3; -inline void BlockHeaderResponse::clear_reward() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reward_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeaderResponse::reward() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.reward) - return _internal_reward(); -} -inline void BlockHeaderResponse::set_reward(::uint64_t value) { - _internal_set_reward(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.reward) -} -inline ::uint64_t BlockHeaderResponse::_internal_reward() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reward_; -} -inline void BlockHeaderResponse::_internal_set_reward(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reward_ = value; -} - -// uint64 difficulty = 4; -inline void BlockHeaderResponse::clear_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.difficulty_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeaderResponse::difficulty() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.difficulty) - return _internal_difficulty(); -} -inline void BlockHeaderResponse::set_difficulty(::uint64_t value) { - _internal_set_difficulty(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.difficulty) -} -inline ::uint64_t BlockHeaderResponse::_internal_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.difficulty_; -} -inline void BlockHeaderResponse::_internal_set_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.difficulty_ = value; -} - -// uint32 num_transactions = 5; -inline void BlockHeaderResponse::clear_num_transactions() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.num_transactions_ = 0u; -} -inline ::uint32_t BlockHeaderResponse::num_transactions() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeaderResponse.num_transactions) - return _internal_num_transactions(); -} -inline void BlockHeaderResponse::set_num_transactions(::uint32_t value) { - _internal_set_num_transactions(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeaderResponse.num_transactions) -} -inline ::uint32_t BlockHeaderResponse::_internal_num_transactions() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.num_transactions_; -} -inline void BlockHeaderResponse::_internal_set_num_transactions(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.num_transactions_ = value; -} - -// ------------------------------------------------------------------- - -// ListHeadersRequest - -// uint64 from_height = 1; -inline void ListHeadersRequest::clear_from_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.from_height_ = ::uint64_t{0u}; -} -inline ::uint64_t ListHeadersRequest::from_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.ListHeadersRequest.from_height) - return _internal_from_height(); -} -inline void ListHeadersRequest::set_from_height(::uint64_t value) { - _internal_set_from_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.ListHeadersRequest.from_height) -} -inline ::uint64_t ListHeadersRequest::_internal_from_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.from_height_; -} -inline void ListHeadersRequest::_internal_set_from_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.from_height_ = value; -} - -// uint64 num_headers = 2; -inline void ListHeadersRequest::clear_num_headers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.num_headers_ = ::uint64_t{0u}; -} -inline ::uint64_t ListHeadersRequest::num_headers() const { - // @@protoc_insertion_point(field_get:tari.rpc.ListHeadersRequest.num_headers) - return _internal_num_headers(); -} -inline void ListHeadersRequest::set_num_headers(::uint64_t value) { - _internal_set_num_headers(value); - // @@protoc_insertion_point(field_set:tari.rpc.ListHeadersRequest.num_headers) -} -inline ::uint64_t ListHeadersRequest::_internal_num_headers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.num_headers_; -} -inline void ListHeadersRequest::_internal_set_num_headers(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.num_headers_ = value; -} - -// .tari.rpc.Sorting sorting = 3; -inline void ListHeadersRequest::clear_sorting() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sorting_ = 0; -} -inline ::tari::rpc::Sorting ListHeadersRequest::sorting() const { - // @@protoc_insertion_point(field_get:tari.rpc.ListHeadersRequest.sorting) - return _internal_sorting(); -} -inline void ListHeadersRequest::set_sorting(::tari::rpc::Sorting value) { - _internal_set_sorting(value); - // @@protoc_insertion_point(field_set:tari.rpc.ListHeadersRequest.sorting) -} -inline ::tari::rpc::Sorting ListHeadersRequest::_internal_sorting() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::Sorting>(_impl_.sorting_); -} -inline void ListHeadersRequest::_internal_set_sorting(::tari::rpc::Sorting value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sorting_ = value; -} - -// ------------------------------------------------------------------- - -// GetBlocksRequest - -// repeated uint64 heights = 1; -inline int GetBlocksRequest::_internal_heights_size() const { - return _internal_heights().size(); -} -inline int GetBlocksRequest::heights_size() const { - return _internal_heights_size(); -} -inline void GetBlocksRequest::clear_heights() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.heights_.Clear(); -} -inline ::uint64_t GetBlocksRequest::heights(int index) const { - // @@protoc_insertion_point(field_get:tari.rpc.GetBlocksRequest.heights) - return _internal_heights().Get(index); -} -inline void GetBlocksRequest::set_heights(int index, ::uint64_t value) { - _internal_mutable_heights()->Set(index, value); - // @@protoc_insertion_point(field_set:tari.rpc.GetBlocksRequest.heights) -} -inline void GetBlocksRequest::add_heights(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_heights()->Add(value); - // @@protoc_insertion_point(field_add:tari.rpc.GetBlocksRequest.heights) -} -inline const ::google::protobuf::RepeatedField<::uint64_t>& GetBlocksRequest::heights() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.GetBlocksRequest.heights) - return _internal_heights(); -} -inline ::google::protobuf::RepeatedField<::uint64_t>* GetBlocksRequest::mutable_heights() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetBlocksRequest.heights) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_heights(); -} -inline const ::google::protobuf::RepeatedField<::uint64_t>& -GetBlocksRequest::_internal_heights() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.heights_; -} -inline ::google::protobuf::RepeatedField<::uint64_t>* GetBlocksRequest::_internal_mutable_heights() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.heights_; -} - -// ------------------------------------------------------------------- - -// GetBlocksResponse - -// repeated .tari.rpc.HistoricalBlock blocks = 1; -inline int GetBlocksResponse::_internal_blocks_size() const { - return _internal_blocks().size(); -} -inline int GetBlocksResponse::blocks_size() const { - return _internal_blocks_size(); -} -inline ::tari::rpc::HistoricalBlock* GetBlocksResponse::mutable_blocks(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.GetBlocksResponse.blocks) - return _internal_mutable_blocks()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* GetBlocksResponse::mutable_blocks() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetBlocksResponse.blocks) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_blocks(); -} -inline const ::tari::rpc::HistoricalBlock& GetBlocksResponse::blocks(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetBlocksResponse.blocks) - return _internal_blocks().Get(index); -} -inline ::tari::rpc::HistoricalBlock* GetBlocksResponse::add_blocks() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::HistoricalBlock* _add = _internal_mutable_blocks()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.GetBlocksResponse.blocks) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& GetBlocksResponse::blocks() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.GetBlocksResponse.blocks) - return _internal_blocks(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>& -GetBlocksResponse::_internal_blocks() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.blocks_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::HistoricalBlock>* -GetBlocksResponse::_internal_mutable_blocks() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.blocks_; -} - -// ------------------------------------------------------------------- - -// MetaData - -// uint64 height_of_longest_chain = 1; -inline void MetaData::clear_height_of_longest_chain() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_of_longest_chain_ = ::uint64_t{0u}; -} -inline ::uint64_t MetaData::height_of_longest_chain() const { - // @@protoc_insertion_point(field_get:tari.rpc.MetaData.height_of_longest_chain) - return _internal_height_of_longest_chain(); -} -inline void MetaData::set_height_of_longest_chain(::uint64_t value) { - _internal_set_height_of_longest_chain(value); - // @@protoc_insertion_point(field_set:tari.rpc.MetaData.height_of_longest_chain) -} -inline ::uint64_t MetaData::_internal_height_of_longest_chain() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_of_longest_chain_; -} -inline void MetaData::_internal_set_height_of_longest_chain(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_of_longest_chain_ = value; -} - -// bytes best_block = 2; -inline void MetaData::clear_best_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.best_block_.ClearToEmpty(); -} -inline const std::string& MetaData::best_block() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.MetaData.best_block) - return _internal_best_block(); -} -template -inline PROTOBUF_ALWAYS_INLINE void MetaData::set_best_block(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.best_block_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.MetaData.best_block) -} -inline std::string* MetaData::mutable_best_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_best_block(); - // @@protoc_insertion_point(field_mutable:tari.rpc.MetaData.best_block) - return _s; -} -inline const std::string& MetaData::_internal_best_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.best_block_.Get(); -} -inline void MetaData::_internal_set_best_block(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.best_block_.Set(value, GetArena()); -} -inline std::string* MetaData::_internal_mutable_best_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.best_block_.Mutable( GetArena()); -} -inline std::string* MetaData::release_best_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.MetaData.best_block) - return _impl_.best_block_.Release(); -} -inline void MetaData::set_allocated_best_block(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.best_block_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.best_block_.IsDefault()) { - _impl_.best_block_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.MetaData.best_block) -} - -// uint64 pruned_height = 6; -inline void MetaData::clear_pruned_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pruned_height_ = ::uint64_t{0u}; -} -inline ::uint64_t MetaData::pruned_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.MetaData.pruned_height) - return _internal_pruned_height(); -} -inline void MetaData::set_pruned_height(::uint64_t value) { - _internal_set_pruned_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.MetaData.pruned_height) -} -inline ::uint64_t MetaData::_internal_pruned_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pruned_height_; -} -inline void MetaData::_internal_set_pruned_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pruned_height_ = value; -} - -// bytes accumulated_difficulty = 5; -inline void MetaData::clear_accumulated_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accumulated_difficulty_.ClearToEmpty(); -} -inline const std::string& MetaData::accumulated_difficulty() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.MetaData.accumulated_difficulty) - return _internal_accumulated_difficulty(); -} -template -inline PROTOBUF_ALWAYS_INLINE void MetaData::set_accumulated_difficulty(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accumulated_difficulty_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.MetaData.accumulated_difficulty) -} -inline std::string* MetaData::mutable_accumulated_difficulty() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_accumulated_difficulty(); - // @@protoc_insertion_point(field_mutable:tari.rpc.MetaData.accumulated_difficulty) - return _s; -} -inline const std::string& MetaData::_internal_accumulated_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.accumulated_difficulty_.Get(); -} -inline void MetaData::_internal_set_accumulated_difficulty(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accumulated_difficulty_.Set(value, GetArena()); -} -inline std::string* MetaData::_internal_mutable_accumulated_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.accumulated_difficulty_.Mutable( GetArena()); -} -inline std::string* MetaData::release_accumulated_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.MetaData.accumulated_difficulty) - return _impl_.accumulated_difficulty_.Release(); -} -inline void MetaData::set_allocated_accumulated_difficulty(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.accumulated_difficulty_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.accumulated_difficulty_.IsDefault()) { - _impl_.accumulated_difficulty_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.MetaData.accumulated_difficulty) -} - -// ------------------------------------------------------------------- - -// SyncInfoResponse - -// uint64 tip_height = 1; -inline void SyncInfoResponse::clear_tip_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tip_height_ = ::uint64_t{0u}; -} -inline ::uint64_t SyncInfoResponse::tip_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.SyncInfoResponse.tip_height) - return _internal_tip_height(); -} -inline void SyncInfoResponse::set_tip_height(::uint64_t value) { - _internal_set_tip_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.tip_height) -} -inline ::uint64_t SyncInfoResponse::_internal_tip_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tip_height_; -} -inline void SyncInfoResponse::_internal_set_tip_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tip_height_ = value; -} - -// uint64 local_height = 2; -inline void SyncInfoResponse::clear_local_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_height_ = ::uint64_t{0u}; -} -inline ::uint64_t SyncInfoResponse::local_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.SyncInfoResponse.local_height) - return _internal_local_height(); -} -inline void SyncInfoResponse::set_local_height(::uint64_t value) { - _internal_set_local_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.local_height) -} -inline ::uint64_t SyncInfoResponse::_internal_local_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.local_height_; -} -inline void SyncInfoResponse::_internal_set_local_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_height_ = value; -} - -// repeated bytes peer_node_id = 3; -inline int SyncInfoResponse::_internal_peer_node_id_size() const { - return _internal_peer_node_id().size(); -} -inline int SyncInfoResponse::peer_node_id_size() const { - return _internal_peer_node_id_size(); -} -inline void SyncInfoResponse::clear_peer_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.peer_node_id_.Clear(); -} -inline std::string* SyncInfoResponse::add_peer_node_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_peer_node_id()->Add(); - // @@protoc_insertion_point(field_add_mutable:tari.rpc.SyncInfoResponse.peer_node_id) - return _s; -} -inline const std::string& SyncInfoResponse::peer_node_id(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SyncInfoResponse.peer_node_id) - return _internal_peer_node_id().Get(index); -} -inline std::string* SyncInfoResponse::mutable_peer_node_id(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.SyncInfoResponse.peer_node_id) - return _internal_mutable_peer_node_id()->Mutable(index); -} -inline void SyncInfoResponse::set_peer_node_id(int index, const std::string& value) { - _internal_mutable_peer_node_id()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::set_peer_node_id(int index, std::string&& value) { - _internal_mutable_peer_node_id()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::set_peer_node_id(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_peer_node_id()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::set_peer_node_id(int index, const void* value, - std::size_t size) { - _internal_mutable_peer_node_id()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::set_peer_node_id(int index, absl::string_view value) { - _internal_mutable_peer_node_id()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign(value); - // @@protoc_insertion_point(field_add:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline void SyncInfoResponse::add_peer_node_id(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_peer_node_id()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.SyncInfoResponse.peer_node_id) -} -inline const ::google::protobuf::RepeatedPtrField& -SyncInfoResponse::peer_node_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.SyncInfoResponse.peer_node_id) - return _internal_peer_node_id(); -} -inline ::google::protobuf::RepeatedPtrField* -SyncInfoResponse::mutable_peer_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.SyncInfoResponse.peer_node_id) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_peer_node_id(); -} -inline const ::google::protobuf::RepeatedPtrField& -SyncInfoResponse::_internal_peer_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.peer_node_id_; -} -inline ::google::protobuf::RepeatedPtrField* -SyncInfoResponse::_internal_mutable_peer_node_id() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.peer_node_id_; -} - -// ------------------------------------------------------------------- - -// SyncProgressResponse - -// uint64 tip_height = 1; -inline void SyncProgressResponse::clear_tip_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tip_height_ = ::uint64_t{0u}; -} -inline ::uint64_t SyncProgressResponse::tip_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.tip_height) - return _internal_tip_height(); -} -inline void SyncProgressResponse::set_tip_height(::uint64_t value) { - _internal_set_tip_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.tip_height) -} -inline ::uint64_t SyncProgressResponse::_internal_tip_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tip_height_; -} -inline void SyncProgressResponse::_internal_set_tip_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tip_height_ = value; -} - -// uint64 local_height = 2; -inline void SyncProgressResponse::clear_local_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_height_ = ::uint64_t{0u}; -} -inline ::uint64_t SyncProgressResponse::local_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.local_height) - return _internal_local_height(); -} -inline void SyncProgressResponse::set_local_height(::uint64_t value) { - _internal_set_local_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.local_height) -} -inline ::uint64_t SyncProgressResponse::_internal_local_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.local_height_; -} -inline void SyncProgressResponse::_internal_set_local_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.local_height_ = value; -} - -// .tari.rpc.SyncState state = 3; -inline void SyncProgressResponse::clear_state() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.state_ = 0; -} -inline ::tari::rpc::SyncState SyncProgressResponse::state() const { - // @@protoc_insertion_point(field_get:tari.rpc.SyncProgressResponse.state) - return _internal_state(); -} -inline void SyncProgressResponse::set_state(::tari::rpc::SyncState value) { - _internal_set_state(value); - // @@protoc_insertion_point(field_set:tari.rpc.SyncProgressResponse.state) -} -inline ::tari::rpc::SyncState SyncProgressResponse::_internal_state() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::SyncState>(_impl_.state_); -} -inline void SyncProgressResponse::_internal_set_state(::tari::rpc::SyncState value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.state_ = value; -} - -// ------------------------------------------------------------------- - -// GetNewBlockResult - -// bytes block_hash = 1; -inline void GetNewBlockResult::clear_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.ClearToEmpty(); -} -inline const std::string& GetNewBlockResult::block_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.block_hash) - return _internal_block_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.block_hash) -} -inline std::string* GetNewBlockResult::mutable_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.block_hash) - return _s; -} -inline const std::string& GetNewBlockResult::_internal_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_hash_.Get(); -} -inline void GetNewBlockResult::_internal_set_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.Set(value, GetArena()); -} -inline std::string* GetNewBlockResult::_internal_mutable_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.block_hash_.Mutable( GetArena()); -} -inline std::string* GetNewBlockResult::release_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.block_hash) - return _impl_.block_hash_.Release(); -} -inline void GetNewBlockResult::set_allocated_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_hash_.IsDefault()) { - _impl_.block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.block_hash) -} - -// .tari.rpc.Block block = 2; -inline bool GetNewBlockResult::has_block() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.block_ != nullptr); - return value; -} -inline const ::tari::rpc::Block& GetNewBlockResult::_internal_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Block* p = _impl_.block_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Block_default_instance_); -} -inline const ::tari::rpc::Block& GetNewBlockResult::block() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.block) - return _internal_block(); -} -inline void GetNewBlockResult::unsafe_arena_set_allocated_block(::tari::rpc::Block* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_); - } - _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetNewBlockResult.block) -} -inline ::tari::rpc::Block* GetNewBlockResult::release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Block* released = _impl_.block_; - _impl_.block_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Block* GetNewBlockResult::unsafe_arena_release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.block) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Block* temp = _impl_.block_; - _impl_.block_ = nullptr; - return temp; -} -inline ::tari::rpc::Block* GetNewBlockResult::_internal_mutable_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.block_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Block>(GetArena()); - _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(p); - } - return _impl_.block_; -} -inline ::tari::rpc::Block* GetNewBlockResult::mutable_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Block* _msg = _internal_mutable_block(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.block) - return _msg; -} -inline void GetNewBlockResult::set_allocated_block(::tari::rpc::Block* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.block) -} - -// bytes merge_mining_hash = 3; -inline void GetNewBlockResult::clear_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.ClearToEmpty(); -} -inline const std::string& GetNewBlockResult::merge_mining_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.merge_mining_hash) - return _internal_merge_mining_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_merge_mining_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.merge_mining_hash) -} -inline std::string* GetNewBlockResult::mutable_merge_mining_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_merge_mining_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.merge_mining_hash) - return _s; -} -inline const std::string& GetNewBlockResult::_internal_merge_mining_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.merge_mining_hash_.Get(); -} -inline void GetNewBlockResult::_internal_set_merge_mining_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.Set(value, GetArena()); -} -inline std::string* GetNewBlockResult::_internal_mutable_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.merge_mining_hash_.Mutable( GetArena()); -} -inline std::string* GetNewBlockResult::release_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.merge_mining_hash) - return _impl_.merge_mining_hash_.Release(); -} -inline void GetNewBlockResult::set_allocated_merge_mining_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.merge_mining_hash_.IsDefault()) { - _impl_.merge_mining_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.merge_mining_hash) -} - -// bytes tari_unique_id = 4; -inline void GetNewBlockResult::clear_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.ClearToEmpty(); -} -inline const std::string& GetNewBlockResult::tari_unique_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockResult.tari_unique_id) - return _internal_tari_unique_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockResult::set_tari_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockResult.tari_unique_id) -} -inline std::string* GetNewBlockResult::mutable_tari_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_tari_unique_id(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockResult.tari_unique_id) - return _s; -} -inline const std::string& GetNewBlockResult::_internal_tari_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tari_unique_id_.Get(); -} -inline void GetNewBlockResult::_internal_set_tari_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.Set(value, GetArena()); -} -inline std::string* GetNewBlockResult::_internal_mutable_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.tari_unique_id_.Mutable( GetArena()); -} -inline std::string* GetNewBlockResult::release_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockResult.tari_unique_id) - return _impl_.tari_unique_id_.Release(); -} -inline void GetNewBlockResult::set_allocated_tari_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tari_unique_id_.IsDefault()) { - _impl_.tari_unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockResult.tari_unique_id) -} - -// ------------------------------------------------------------------- - -// GetNewBlockBlobResult - -// bytes block_hash = 1; -inline void GetNewBlockBlobResult::clear_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.ClearToEmpty(); -} -inline const std::string& GetNewBlockBlobResult::block_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.block_hash) - return _internal_block_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.block_hash) -} -inline std::string* GetNewBlockBlobResult::mutable_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.block_hash) - return _s; -} -inline const std::string& GetNewBlockBlobResult::_internal_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_hash_.Get(); -} -inline void GetNewBlockBlobResult::_internal_set_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.Set(value, GetArena()); -} -inline std::string* GetNewBlockBlobResult::_internal_mutable_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.block_hash_.Mutable( GetArena()); -} -inline std::string* GetNewBlockBlobResult::release_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.block_hash) - return _impl_.block_hash_.Release(); -} -inline void GetNewBlockBlobResult::set_allocated_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_hash_.IsDefault()) { - _impl_.block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.block_hash) -} - -// bytes header = 2; -inline void GetNewBlockBlobResult::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_.ClearToEmpty(); -} -inline const std::string& GetNewBlockBlobResult::header() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.header) - return _internal_header(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_header(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.header) -} -inline std::string* GetNewBlockBlobResult::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.header) - return _s; -} -inline const std::string& GetNewBlockBlobResult::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.header_.Get(); -} -inline void GetNewBlockBlobResult::_internal_set_header(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_.Set(value, GetArena()); -} -inline std::string* GetNewBlockBlobResult::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.header_.Mutable( GetArena()); -} -inline std::string* GetNewBlockBlobResult::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.header) - return _impl_.header_.Release(); -} -inline void GetNewBlockBlobResult::set_allocated_header(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.header_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.header_.IsDefault()) { - _impl_.header_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.header) -} - -// bytes block_body = 3; -inline void GetNewBlockBlobResult::clear_block_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_body_.ClearToEmpty(); -} -inline const std::string& GetNewBlockBlobResult::block_body() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.block_body) - return _internal_block_body(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_block_body(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_body_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.block_body) -} -inline std::string* GetNewBlockBlobResult::mutable_block_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_block_body(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.block_body) - return _s; -} -inline const std::string& GetNewBlockBlobResult::_internal_block_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_body_.Get(); -} -inline void GetNewBlockBlobResult::_internal_set_block_body(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_body_.Set(value, GetArena()); -} -inline std::string* GetNewBlockBlobResult::_internal_mutable_block_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.block_body_.Mutable( GetArena()); -} -inline std::string* GetNewBlockBlobResult::release_block_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.block_body) - return _impl_.block_body_.Release(); -} -inline void GetNewBlockBlobResult::set_allocated_block_body(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_body_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.block_body_.IsDefault()) { - _impl_.block_body_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.block_body) -} - -// bytes merge_mining_hash = 4; -inline void GetNewBlockBlobResult::clear_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.ClearToEmpty(); -} -inline const std::string& GetNewBlockBlobResult::merge_mining_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) - return _internal_merge_mining_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_merge_mining_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) -} -inline std::string* GetNewBlockBlobResult::mutable_merge_mining_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_merge_mining_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) - return _s; -} -inline const std::string& GetNewBlockBlobResult::_internal_merge_mining_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.merge_mining_hash_.Get(); -} -inline void GetNewBlockBlobResult::_internal_set_merge_mining_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.Set(value, GetArena()); -} -inline std::string* GetNewBlockBlobResult::_internal_mutable_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.merge_mining_hash_.Mutable( GetArena()); -} -inline std::string* GetNewBlockBlobResult::release_merge_mining_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) - return _impl_.merge_mining_hash_.Release(); -} -inline void GetNewBlockBlobResult::set_allocated_merge_mining_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.merge_mining_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.merge_mining_hash_.IsDefault()) { - _impl_.merge_mining_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.merge_mining_hash) -} - -// bytes utxo_mr = 5; -inline void GetNewBlockBlobResult::clear_utxo_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_mr_.ClearToEmpty(); -} -inline const std::string& GetNewBlockBlobResult::utxo_mr() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.utxo_mr) - return _internal_utxo_mr(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_utxo_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_mr_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.utxo_mr) -} -inline std::string* GetNewBlockBlobResult::mutable_utxo_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_utxo_mr(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.utxo_mr) - return _s; -} -inline const std::string& GetNewBlockBlobResult::_internal_utxo_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.utxo_mr_.Get(); -} -inline void GetNewBlockBlobResult::_internal_set_utxo_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_mr_.Set(value, GetArena()); -} -inline std::string* GetNewBlockBlobResult::_internal_mutable_utxo_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.utxo_mr_.Mutable( GetArena()); -} -inline std::string* GetNewBlockBlobResult::release_utxo_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.utxo_mr) - return _impl_.utxo_mr_.Release(); -} -inline void GetNewBlockBlobResult::set_allocated_utxo_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.utxo_mr_.IsDefault()) { - _impl_.utxo_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.utxo_mr) -} - -// bytes tari_unique_id = 6; -inline void GetNewBlockBlobResult::clear_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.ClearToEmpty(); -} -inline const std::string& GetNewBlockBlobResult::tari_unique_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetNewBlockBlobResult.tari_unique_id) - return _internal_tari_unique_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetNewBlockBlobResult::set_tari_unique_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetNewBlockBlobResult.tari_unique_id) -} -inline std::string* GetNewBlockBlobResult::mutable_tari_unique_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_tari_unique_id(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetNewBlockBlobResult.tari_unique_id) - return _s; -} -inline const std::string& GetNewBlockBlobResult::_internal_tari_unique_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.tari_unique_id_.Get(); -} -inline void GetNewBlockBlobResult::_internal_set_tari_unique_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.Set(value, GetArena()); -} -inline std::string* GetNewBlockBlobResult::_internal_mutable_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.tari_unique_id_.Mutable( GetArena()); -} -inline std::string* GetNewBlockBlobResult::release_tari_unique_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetNewBlockBlobResult.tari_unique_id) - return _impl_.tari_unique_id_.Release(); -} -inline void GetNewBlockBlobResult::set_allocated_tari_unique_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.tari_unique_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.tari_unique_id_.IsDefault()) { - _impl_.tari_unique_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetNewBlockBlobResult.tari_unique_id) -} - -// ------------------------------------------------------------------- - -// MinerData - -// .tari.rpc.PowAlgo algo = 1; -inline bool MinerData::has_algo() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.algo_ != nullptr); - return value; -} -inline const ::tari::rpc::PowAlgo& MinerData::_internal_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::PowAlgo* p = _impl_.algo_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_PowAlgo_default_instance_); -} -inline const ::tari::rpc::PowAlgo& MinerData::algo() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.MinerData.algo) - return _internal_algo(); -} -inline void MinerData::unsafe_arena_set_allocated_algo(::tari::rpc::PowAlgo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); - } - _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.MinerData.algo) -} -inline ::tari::rpc::PowAlgo* MinerData::release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::PowAlgo* released = _impl_.algo_; - _impl_.algo_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::PowAlgo* MinerData::unsafe_arena_release_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.MinerData.algo) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::PowAlgo* temp = _impl_.algo_; - _impl_.algo_ = nullptr; - return temp; -} -inline ::tari::rpc::PowAlgo* MinerData::_internal_mutable_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.algo_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::PowAlgo>(GetArena()); - _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(p); - } - return _impl_.algo_; -} -inline ::tari::rpc::PowAlgo* MinerData::mutable_algo() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::PowAlgo* _msg = _internal_mutable_algo(); - // @@protoc_insertion_point(field_mutable:tari.rpc.MinerData.algo) - return _msg; -} -inline void MinerData::set_allocated_algo(::tari::rpc::PowAlgo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.algo_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.algo_ = reinterpret_cast<::tari::rpc::PowAlgo*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.MinerData.algo) -} - -// uint64 target_difficulty = 2; -inline void MinerData::clear_target_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_difficulty_ = ::uint64_t{0u}; -} -inline ::uint64_t MinerData::target_difficulty() const { - // @@protoc_insertion_point(field_get:tari.rpc.MinerData.target_difficulty) - return _internal_target_difficulty(); -} -inline void MinerData::set_target_difficulty(::uint64_t value) { - _internal_set_target_difficulty(value); - // @@protoc_insertion_point(field_set:tari.rpc.MinerData.target_difficulty) -} -inline ::uint64_t MinerData::_internal_target_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.target_difficulty_; -} -inline void MinerData::_internal_set_target_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_difficulty_ = value; -} - -// uint64 reward = 3; -inline void MinerData::clear_reward() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reward_ = ::uint64_t{0u}; -} -inline ::uint64_t MinerData::reward() const { - // @@protoc_insertion_point(field_get:tari.rpc.MinerData.reward) - return _internal_reward(); -} -inline void MinerData::set_reward(::uint64_t value) { - _internal_set_reward(value); - // @@protoc_insertion_point(field_set:tari.rpc.MinerData.reward) -} -inline ::uint64_t MinerData::_internal_reward() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reward_; -} -inline void MinerData::_internal_set_reward(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reward_ = value; -} - -// uint64 total_fees = 5; -inline void MinerData::clear_total_fees() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_fees_ = ::uint64_t{0u}; -} -inline ::uint64_t MinerData::total_fees() const { - // @@protoc_insertion_point(field_get:tari.rpc.MinerData.total_fees) - return _internal_total_fees(); -} -inline void MinerData::set_total_fees(::uint64_t value) { - _internal_set_total_fees(value); - // @@protoc_insertion_point(field_set:tari.rpc.MinerData.total_fees) -} -inline ::uint64_t MinerData::_internal_total_fees() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_fees_; -} -inline void MinerData::_internal_set_total_fees(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_fees_ = value; -} - -// ------------------------------------------------------------------- - -// SearchKernelsRequest - -// repeated .tari.rpc.Signature signatures = 1; -inline int SearchKernelsRequest::_internal_signatures_size() const { - return _internal_signatures().size(); -} -inline int SearchKernelsRequest::signatures_size() const { - return _internal_signatures_size(); -} -inline ::tari::rpc::Signature* SearchKernelsRequest::mutable_signatures(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.SearchKernelsRequest.signatures) - return _internal_mutable_signatures()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* SearchKernelsRequest::mutable_signatures() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.SearchKernelsRequest.signatures) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_signatures(); -} -inline const ::tari::rpc::Signature& SearchKernelsRequest::signatures(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SearchKernelsRequest.signatures) - return _internal_signatures().Get(index); -} -inline ::tari::rpc::Signature* SearchKernelsRequest::add_signatures() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::Signature* _add = _internal_mutable_signatures()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.SearchKernelsRequest.signatures) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& SearchKernelsRequest::signatures() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.SearchKernelsRequest.signatures) - return _internal_signatures(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>& -SearchKernelsRequest::_internal_signatures() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.signatures_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Signature>* -SearchKernelsRequest::_internal_mutable_signatures() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.signatures_; -} - -// ------------------------------------------------------------------- - -// SearchUtxosRequest - -// repeated bytes commitments = 1; -inline int SearchUtxosRequest::_internal_commitments_size() const { - return _internal_commitments().size(); -} -inline int SearchUtxosRequest::commitments_size() const { - return _internal_commitments_size(); -} -inline void SearchUtxosRequest::clear_commitments() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitments_.Clear(); -} -inline std::string* SearchUtxosRequest::add_commitments() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_commitments()->Add(); - // @@protoc_insertion_point(field_add_mutable:tari.rpc.SearchUtxosRequest.commitments) - return _s; -} -inline const std::string& SearchUtxosRequest::commitments(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SearchUtxosRequest.commitments) - return _internal_commitments().Get(index); -} -inline std::string* SearchUtxosRequest::mutable_commitments(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.SearchUtxosRequest.commitments) - return _internal_mutable_commitments()->Mutable(index); -} -inline void SearchUtxosRequest::set_commitments(int index, const std::string& value) { - _internal_mutable_commitments()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::set_commitments(int index, std::string&& value) { - _internal_mutable_commitments()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::set_commitments(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_commitments()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::set_commitments(int index, const void* value, - std::size_t size) { - _internal_mutable_commitments()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::set_commitments(int index, absl::string_view value) { - _internal_mutable_commitments()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign(value); - // @@protoc_insertion_point(field_add:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.SearchUtxosRequest.commitments) -} -inline void SearchUtxosRequest::add_commitments(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_commitments()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.SearchUtxosRequest.commitments) -} -inline const ::google::protobuf::RepeatedPtrField& -SearchUtxosRequest::commitments() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.SearchUtxosRequest.commitments) - return _internal_commitments(); -} -inline ::google::protobuf::RepeatedPtrField* -SearchUtxosRequest::mutable_commitments() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.SearchUtxosRequest.commitments) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_commitments(); -} -inline const ::google::protobuf::RepeatedPtrField& -SearchUtxosRequest::_internal_commitments() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.commitments_; -} -inline ::google::protobuf::RepeatedPtrField* -SearchUtxosRequest::_internal_mutable_commitments() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.commitments_; -} - -// ------------------------------------------------------------------- - -// FetchMatchingUtxosRequest - -// repeated bytes hashes = 1; -inline int FetchMatchingUtxosRequest::_internal_hashes_size() const { - return _internal_hashes().size(); -} -inline int FetchMatchingUtxosRequest::hashes_size() const { - return _internal_hashes_size(); -} -inline void FetchMatchingUtxosRequest::clear_hashes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hashes_.Clear(); -} -inline std::string* FetchMatchingUtxosRequest::add_hashes() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_hashes()->Add(); - // @@protoc_insertion_point(field_add_mutable:tari.rpc.FetchMatchingUtxosRequest.hashes) - return _s; -} -inline const std::string& FetchMatchingUtxosRequest::hashes(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.FetchMatchingUtxosRequest.hashes) - return _internal_hashes().Get(index); -} -inline std::string* FetchMatchingUtxosRequest::mutable_hashes(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.FetchMatchingUtxosRequest.hashes) - return _internal_mutable_hashes()->Mutable(index); -} -inline void FetchMatchingUtxosRequest::set_hashes(int index, const std::string& value) { - _internal_mutable_hashes()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::set_hashes(int index, std::string&& value) { - _internal_mutable_hashes()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::set_hashes(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_hashes()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::set_hashes(int index, const void* value, - std::size_t size) { - _internal_mutable_hashes()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::set_hashes(int index, absl::string_view value) { - _internal_mutable_hashes()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign(value); - // @@protoc_insertion_point(field_add:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline void FetchMatchingUtxosRequest::add_hashes(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_hashes()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.FetchMatchingUtxosRequest.hashes) -} -inline const ::google::protobuf::RepeatedPtrField& -FetchMatchingUtxosRequest::hashes() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.FetchMatchingUtxosRequest.hashes) - return _internal_hashes(); -} -inline ::google::protobuf::RepeatedPtrField* -FetchMatchingUtxosRequest::mutable_hashes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.FetchMatchingUtxosRequest.hashes) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_hashes(); -} -inline const ::google::protobuf::RepeatedPtrField& -FetchMatchingUtxosRequest::_internal_hashes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hashes_; -} -inline ::google::protobuf::RepeatedPtrField* -FetchMatchingUtxosRequest::_internal_mutable_hashes() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.hashes_; -} - -// ------------------------------------------------------------------- - -// FetchMatchingUtxosResponse - -// .tari.rpc.TransactionOutput output = 1; -inline bool FetchMatchingUtxosResponse::has_output() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.output_ != nullptr); - return value; -} -inline const ::tari::rpc::TransactionOutput& FetchMatchingUtxosResponse::_internal_output() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::TransactionOutput* p = _impl_.output_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_TransactionOutput_default_instance_); -} -inline const ::tari::rpc::TransactionOutput& FetchMatchingUtxosResponse::output() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.FetchMatchingUtxosResponse.output) - return _internal_output(); -} -inline void FetchMatchingUtxosResponse::unsafe_arena_set_allocated_output(::tari::rpc::TransactionOutput* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_); - } - _impl_.output_ = reinterpret_cast<::tari::rpc::TransactionOutput*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.FetchMatchingUtxosResponse.output) -} -inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::release_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::TransactionOutput* released = _impl_.output_; - _impl_.output_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::unsafe_arena_release_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.FetchMatchingUtxosResponse.output) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::TransactionOutput* temp = _impl_.output_; - _impl_.output_ = nullptr; - return temp; -} -inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::_internal_mutable_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.output_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TransactionOutput>(GetArena()); - _impl_.output_ = reinterpret_cast<::tari::rpc::TransactionOutput*>(p); - } - return _impl_.output_; -} -inline ::tari::rpc::TransactionOutput* FetchMatchingUtxosResponse::mutable_output() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::TransactionOutput* _msg = _internal_mutable_output(); - // @@protoc_insertion_point(field_mutable:tari.rpc.FetchMatchingUtxosResponse.output) - return _msg; -} -inline void FetchMatchingUtxosResponse::set_allocated_output(::tari::rpc::TransactionOutput* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.output_ = reinterpret_cast<::tari::rpc::TransactionOutput*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.FetchMatchingUtxosResponse.output) -} - -// ------------------------------------------------------------------- - -// GetPeersResponse - -// .tari.rpc.Peer peer = 1; -inline bool GetPeersResponse::has_peer() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.peer_ != nullptr); - return value; -} -inline const ::tari::rpc::Peer& GetPeersResponse::_internal_peer() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Peer* p = _impl_.peer_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Peer_default_instance_); -} -inline const ::tari::rpc::Peer& GetPeersResponse::peer() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetPeersResponse.peer) - return _internal_peer(); -} -inline void GetPeersResponse::unsafe_arena_set_allocated_peer(::tari::rpc::Peer* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.peer_); - } - _impl_.peer_ = reinterpret_cast<::tari::rpc::Peer*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetPeersResponse.peer) -} -inline ::tari::rpc::Peer* GetPeersResponse::release_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Peer* released = _impl_.peer_; - _impl_.peer_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Peer* GetPeersResponse::unsafe_arena_release_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetPeersResponse.peer) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Peer* temp = _impl_.peer_; - _impl_.peer_ = nullptr; - return temp; -} -inline ::tari::rpc::Peer* GetPeersResponse::_internal_mutable_peer() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.peer_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Peer>(GetArena()); - _impl_.peer_ = reinterpret_cast<::tari::rpc::Peer*>(p); - } - return _impl_.peer_; -} -inline ::tari::rpc::Peer* GetPeersResponse::mutable_peer() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Peer* _msg = _internal_mutable_peer(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetPeersResponse.peer) - return _msg; -} -inline void GetPeersResponse::set_allocated_peer(::tari::rpc::Peer* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.peer_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.peer_ = reinterpret_cast<::tari::rpc::Peer*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetPeersResponse.peer) -} - -// ------------------------------------------------------------------- - -// GetPeersRequest - -// ------------------------------------------------------------------- - -// SubmitTransactionRequest - -// .tari.rpc.Transaction transaction = 1; -inline bool SubmitTransactionRequest::has_transaction() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.transaction_ != nullptr); - return value; -} -inline const ::tari::rpc::Transaction& SubmitTransactionRequest::_internal_transaction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Transaction* p = _impl_.transaction_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Transaction_default_instance_); -} -inline const ::tari::rpc::Transaction& SubmitTransactionRequest::transaction() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SubmitTransactionRequest.transaction) - return _internal_transaction(); -} -inline void SubmitTransactionRequest::unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); - } - _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SubmitTransactionRequest.transaction) -} -inline ::tari::rpc::Transaction* SubmitTransactionRequest::release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Transaction* released = _impl_.transaction_; - _impl_.transaction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Transaction* SubmitTransactionRequest::unsafe_arena_release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.SubmitTransactionRequest.transaction) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Transaction* temp = _impl_.transaction_; - _impl_.transaction_ = nullptr; - return temp; -} -inline ::tari::rpc::Transaction* SubmitTransactionRequest::_internal_mutable_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.transaction_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Transaction>(GetArena()); - _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(p); - } - return _impl_.transaction_; -} -inline ::tari::rpc::Transaction* SubmitTransactionRequest::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Transaction* _msg = _internal_mutable_transaction(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SubmitTransactionRequest.transaction) - return _msg; -} -inline void SubmitTransactionRequest::set_allocated_transaction(::tari::rpc::Transaction* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SubmitTransactionRequest.transaction) -} - -// ------------------------------------------------------------------- - -// SubmitTransactionResponse - -// .tari.rpc.SubmitTransactionResult result = 1; -inline void SubmitTransactionResponse::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = 0; -} -inline ::tari::rpc::SubmitTransactionResult SubmitTransactionResponse::result() const { - // @@protoc_insertion_point(field_get:tari.rpc.SubmitTransactionResponse.result) - return _internal_result(); -} -inline void SubmitTransactionResponse::set_result(::tari::rpc::SubmitTransactionResult value) { - _internal_set_result(value); - // @@protoc_insertion_point(field_set:tari.rpc.SubmitTransactionResponse.result) -} -inline ::tari::rpc::SubmitTransactionResult SubmitTransactionResponse::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::SubmitTransactionResult>(_impl_.result_); -} -inline void SubmitTransactionResponse::_internal_set_result(::tari::rpc::SubmitTransactionResult value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = value; -} - -// ------------------------------------------------------------------- - -// GetMempoolTransactionsRequest - -// ------------------------------------------------------------------- - -// GetMempoolTransactionsResponse - -// .tari.rpc.Transaction transaction = 1; -inline bool GetMempoolTransactionsResponse::has_transaction() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.transaction_ != nullptr); - return value; -} -inline const ::tari::rpc::Transaction& GetMempoolTransactionsResponse::_internal_transaction() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Transaction* p = _impl_.transaction_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Transaction_default_instance_); -} -inline const ::tari::rpc::Transaction& GetMempoolTransactionsResponse::transaction() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetMempoolTransactionsResponse.transaction) - return _internal_transaction(); -} -inline void GetMempoolTransactionsResponse::unsafe_arena_set_allocated_transaction(::tari::rpc::Transaction* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); - } - _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetMempoolTransactionsResponse.transaction) -} -inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Transaction* released = _impl_.transaction_; - _impl_.transaction_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::unsafe_arena_release_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetMempoolTransactionsResponse.transaction) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Transaction* temp = _impl_.transaction_; - _impl_.transaction_ = nullptr; - return temp; -} -inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::_internal_mutable_transaction() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.transaction_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Transaction>(GetArena()); - _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(p); - } - return _impl_.transaction_; -} -inline ::tari::rpc::Transaction* GetMempoolTransactionsResponse::mutable_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Transaction* _msg = _internal_mutable_transaction(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetMempoolTransactionsResponse.transaction) - return _msg; -} -inline void GetMempoolTransactionsResponse::set_allocated_transaction(::tari::rpc::Transaction* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.transaction_ = reinterpret_cast<::tari::rpc::Transaction*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetMempoolTransactionsResponse.transaction) -} - -// ------------------------------------------------------------------- - -// TransactionStateRequest - -// .tari.rpc.Signature excess_sig = 1; -inline bool TransactionStateRequest::has_excess_sig() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.excess_sig_ != nullptr); - return value; -} -inline const ::tari::rpc::Signature& TransactionStateRequest::_internal_excess_sig() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Signature* p = _impl_.excess_sig_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); -} -inline const ::tari::rpc::Signature& TransactionStateRequest::excess_sig() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionStateRequest.excess_sig) - return _internal_excess_sig(); -} -inline void TransactionStateRequest::unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); - } - _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionStateRequest.excess_sig) -} -inline ::tari::rpc::Signature* TransactionStateRequest::release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* released = _impl_.excess_sig_; - _impl_.excess_sig_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Signature* TransactionStateRequest::unsafe_arena_release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionStateRequest.excess_sig) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* temp = _impl_.excess_sig_; - _impl_.excess_sig_ = nullptr; - return temp; -} -inline ::tari::rpc::Signature* TransactionStateRequest::_internal_mutable_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.excess_sig_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); - _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(p); - } - return _impl_.excess_sig_; -} -inline ::tari::rpc::Signature* TransactionStateRequest::mutable_excess_sig() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Signature* _msg = _internal_mutable_excess_sig(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionStateRequest.excess_sig) - return _msg; -} -inline void TransactionStateRequest::set_allocated_excess_sig(::tari::rpc::Signature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionStateRequest.excess_sig) -} - -// ------------------------------------------------------------------- - -// TransactionStateResponse - -// .tari.rpc.TransactionLocation result = 1; -inline void TransactionStateResponse::clear_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = 0; -} -inline ::tari::rpc::TransactionLocation TransactionStateResponse::result() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionStateResponse.result) - return _internal_result(); -} -inline void TransactionStateResponse::set_result(::tari::rpc::TransactionLocation value) { - _internal_set_result(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionStateResponse.result) -} -inline ::tari::rpc::TransactionLocation TransactionStateResponse::_internal_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::TransactionLocation>(_impl_.result_); -} -inline void TransactionStateResponse::_internal_set_result(::tari::rpc::TransactionLocation value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.result_ = value; -} - -// ------------------------------------------------------------------- - -// MempoolStatsResponse - -// uint64 unconfirmed_txs = 2; -inline void MempoolStatsResponse::clear_unconfirmed_txs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unconfirmed_txs_ = ::uint64_t{0u}; -} -inline ::uint64_t MempoolStatsResponse::unconfirmed_txs() const { - // @@protoc_insertion_point(field_get:tari.rpc.MempoolStatsResponse.unconfirmed_txs) - return _internal_unconfirmed_txs(); -} -inline void MempoolStatsResponse::set_unconfirmed_txs(::uint64_t value) { - _internal_set_unconfirmed_txs(value); - // @@protoc_insertion_point(field_set:tari.rpc.MempoolStatsResponse.unconfirmed_txs) -} -inline ::uint64_t MempoolStatsResponse::_internal_unconfirmed_txs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unconfirmed_txs_; -} -inline void MempoolStatsResponse::_internal_set_unconfirmed_txs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unconfirmed_txs_ = value; -} - -// uint64 reorg_txs = 3; -inline void MempoolStatsResponse::clear_reorg_txs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reorg_txs_ = ::uint64_t{0u}; -} -inline ::uint64_t MempoolStatsResponse::reorg_txs() const { - // @@protoc_insertion_point(field_get:tari.rpc.MempoolStatsResponse.reorg_txs) - return _internal_reorg_txs(); -} -inline void MempoolStatsResponse::set_reorg_txs(::uint64_t value) { - _internal_set_reorg_txs(value); - // @@protoc_insertion_point(field_set:tari.rpc.MempoolStatsResponse.reorg_txs) -} -inline ::uint64_t MempoolStatsResponse::_internal_reorg_txs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.reorg_txs_; -} -inline void MempoolStatsResponse::_internal_set_reorg_txs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.reorg_txs_ = value; -} - -// uint64 unconfirmed_weight = 4; -inline void MempoolStatsResponse::clear_unconfirmed_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unconfirmed_weight_ = ::uint64_t{0u}; -} -inline ::uint64_t MempoolStatsResponse::unconfirmed_weight() const { - // @@protoc_insertion_point(field_get:tari.rpc.MempoolStatsResponse.unconfirmed_weight) - return _internal_unconfirmed_weight(); -} -inline void MempoolStatsResponse::set_unconfirmed_weight(::uint64_t value) { - _internal_set_unconfirmed_weight(value); - // @@protoc_insertion_point(field_set:tari.rpc.MempoolStatsResponse.unconfirmed_weight) -} -inline ::uint64_t MempoolStatsResponse::_internal_unconfirmed_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.unconfirmed_weight_; -} -inline void MempoolStatsResponse::_internal_set_unconfirmed_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.unconfirmed_weight_ = value; -} - -// ------------------------------------------------------------------- - -// GetActiveValidatorNodesRequest - -// uint64 height = 1; -inline void GetActiveValidatorNodesRequest::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; -} -inline ::uint64_t GetActiveValidatorNodesRequest::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesRequest.height) - return _internal_height(); -} -inline void GetActiveValidatorNodesRequest::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesRequest.height) -} -inline ::uint64_t GetActiveValidatorNodesRequest::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void GetActiveValidatorNodesRequest::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; -} - -// ------------------------------------------------------------------- - -// GetActiveValidatorNodesResponse - -// bytes shard_key = 1; -inline void GetActiveValidatorNodesResponse::clear_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.ClearToEmpty(); -} -inline const std::string& GetActiveValidatorNodesResponse::shard_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesResponse.shard_key) - return _internal_shard_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_shard_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesResponse.shard_key) -} -inline std::string* GetActiveValidatorNodesResponse::mutable_shard_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_shard_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetActiveValidatorNodesResponse.shard_key) - return _s; -} -inline const std::string& GetActiveValidatorNodesResponse::_internal_shard_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.shard_key_.Get(); -} -inline void GetActiveValidatorNodesResponse::_internal_set_shard_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.Set(value, GetArena()); -} -inline std::string* GetActiveValidatorNodesResponse::_internal_mutable_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.shard_key_.Mutable( GetArena()); -} -inline std::string* GetActiveValidatorNodesResponse::release_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetActiveValidatorNodesResponse.shard_key) - return _impl_.shard_key_.Release(); -} -inline void GetActiveValidatorNodesResponse::set_allocated_shard_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.shard_key_.IsDefault()) { - _impl_.shard_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetActiveValidatorNodesResponse.shard_key) -} - -// bytes public_key = 2; -inline void GetActiveValidatorNodesResponse::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.ClearToEmpty(); -} -inline const std::string& GetActiveValidatorNodesResponse::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetActiveValidatorNodesResponse.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetActiveValidatorNodesResponse::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetActiveValidatorNodesResponse.public_key) -} -inline std::string* GetActiveValidatorNodesResponse::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetActiveValidatorNodesResponse.public_key) - return _s; -} -inline const std::string& GetActiveValidatorNodesResponse::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_key_.Get(); -} -inline void GetActiveValidatorNodesResponse::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.Set(value, GetArena()); -} -inline std::string* GetActiveValidatorNodesResponse::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_key_.Mutable( GetArena()); -} -inline std::string* GetActiveValidatorNodesResponse::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetActiveValidatorNodesResponse.public_key) - return _impl_.public_key_.Release(); -} -inline void GetActiveValidatorNodesResponse::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetActiveValidatorNodesResponse.public_key) -} - -// ------------------------------------------------------------------- - -// GetShardKeyRequest - -// uint64 height = 1; -inline void GetShardKeyRequest::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; -} -inline ::uint64_t GetShardKeyRequest::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyRequest.height) - return _internal_height(); -} -inline void GetShardKeyRequest::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyRequest.height) -} -inline ::uint64_t GetShardKeyRequest::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void GetShardKeyRequest::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; -} - -// bytes public_key = 2; -inline void GetShardKeyRequest::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.ClearToEmpty(); -} -inline const std::string& GetShardKeyRequest::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyRequest.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetShardKeyRequest::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyRequest.public_key) -} -inline std::string* GetShardKeyRequest::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetShardKeyRequest.public_key) - return _s; -} -inline const std::string& GetShardKeyRequest::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_key_.Get(); -} -inline void GetShardKeyRequest::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.Set(value, GetArena()); -} -inline std::string* GetShardKeyRequest::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_key_.Mutable( GetArena()); -} -inline std::string* GetShardKeyRequest::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetShardKeyRequest.public_key) - return _impl_.public_key_.Release(); -} -inline void GetShardKeyRequest::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetShardKeyRequest.public_key) -} - -// ------------------------------------------------------------------- - -// GetShardKeyResponse - -// bytes shard_key = 1; -inline void GetShardKeyResponse::clear_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.ClearToEmpty(); -} -inline const std::string& GetShardKeyResponse::shard_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyResponse.shard_key) - return _internal_shard_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetShardKeyResponse::set_shard_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyResponse.shard_key) -} -inline std::string* GetShardKeyResponse::mutable_shard_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_shard_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetShardKeyResponse.shard_key) - return _s; -} -inline const std::string& GetShardKeyResponse::_internal_shard_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.shard_key_.Get(); -} -inline void GetShardKeyResponse::_internal_set_shard_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.Set(value, GetArena()); -} -inline std::string* GetShardKeyResponse::_internal_mutable_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.shard_key_.Mutable( GetArena()); -} -inline std::string* GetShardKeyResponse::release_shard_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetShardKeyResponse.shard_key) - return _impl_.shard_key_.Release(); -} -inline void GetShardKeyResponse::set_allocated_shard_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.shard_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.shard_key_.IsDefault()) { - _impl_.shard_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetShardKeyResponse.shard_key) -} - -// bool found = 2; -inline void GetShardKeyResponse::clear_found() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.found_ = false; -} -inline bool GetShardKeyResponse::found() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetShardKeyResponse.found) - return _internal_found(); -} -inline void GetShardKeyResponse::set_found(bool value) { - _internal_set_found(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetShardKeyResponse.found) -} -inline bool GetShardKeyResponse::_internal_found() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.found_; -} -inline void GetShardKeyResponse::_internal_set_found(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.found_ = value; -} - -// ------------------------------------------------------------------- - -// GetTemplateRegistrationsRequest - -// bytes start_hash = 1; -inline void GetTemplateRegistrationsRequest::clear_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.ClearToEmpty(); -} -inline const std::string& GetTemplateRegistrationsRequest::start_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationsRequest.start_hash) - return _internal_start_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationsRequest::set_start_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationsRequest.start_hash) -} -inline std::string* GetTemplateRegistrationsRequest::mutable_start_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_start_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTemplateRegistrationsRequest.start_hash) - return _s; -} -inline const std::string& GetTemplateRegistrationsRequest::_internal_start_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.start_hash_.Get(); -} -inline void GetTemplateRegistrationsRequest::_internal_set_start_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.Set(value, GetArena()); -} -inline std::string* GetTemplateRegistrationsRequest::_internal_mutable_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.start_hash_.Mutable( GetArena()); -} -inline std::string* GetTemplateRegistrationsRequest::release_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTemplateRegistrationsRequest.start_hash) - return _impl_.start_hash_.Release(); -} -inline void GetTemplateRegistrationsRequest::set_allocated_start_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.start_hash_.IsDefault()) { - _impl_.start_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTemplateRegistrationsRequest.start_hash) -} - -// uint64 count = 2; -inline void GetTemplateRegistrationsRequest::clear_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.count_ = ::uint64_t{0u}; -} -inline ::uint64_t GetTemplateRegistrationsRequest::count() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationsRequest.count) - return _internal_count(); -} -inline void GetTemplateRegistrationsRequest::set_count(::uint64_t value) { - _internal_set_count(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationsRequest.count) -} -inline ::uint64_t GetTemplateRegistrationsRequest::_internal_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.count_; -} -inline void GetTemplateRegistrationsRequest::_internal_set_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.count_ = value; -} - -// ------------------------------------------------------------------- - -// GetTemplateRegistrationResponse - -// bytes utxo_hash = 1; -inline void GetTemplateRegistrationResponse::clear_utxo_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_hash_.ClearToEmpty(); -} -inline const std::string& GetTemplateRegistrationResponse::utxo_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) - return _internal_utxo_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetTemplateRegistrationResponse::set_utxo_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) -} -inline std::string* GetTemplateRegistrationResponse::mutable_utxo_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_utxo_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) - return _s; -} -inline const std::string& GetTemplateRegistrationResponse::_internal_utxo_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.utxo_hash_.Get(); -} -inline void GetTemplateRegistrationResponse::_internal_set_utxo_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_hash_.Set(value, GetArena()); -} -inline std::string* GetTemplateRegistrationResponse::_internal_mutable_utxo_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.utxo_hash_.Mutable( GetArena()); -} -inline std::string* GetTemplateRegistrationResponse::release_utxo_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) - return _impl_.utxo_hash_.Release(); -} -inline void GetTemplateRegistrationResponse::set_allocated_utxo_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.utxo_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.utxo_hash_.IsDefault()) { - _impl_.utxo_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTemplateRegistrationResponse.utxo_hash) -} - -// .tari.rpc.TemplateRegistration registration = 2; -inline bool GetTemplateRegistrationResponse::has_registration() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.registration_ != nullptr); - return value; -} -inline const ::tari::rpc::TemplateRegistration& GetTemplateRegistrationResponse::_internal_registration() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::TemplateRegistration* p = _impl_.registration_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_TemplateRegistration_default_instance_); -} -inline const ::tari::rpc::TemplateRegistration& GetTemplateRegistrationResponse::registration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetTemplateRegistrationResponse.registration) - return _internal_registration(); -} -inline void GetTemplateRegistrationResponse::unsafe_arena_set_allocated_registration(::tari::rpc::TemplateRegistration* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.registration_); - } - _impl_.registration_ = reinterpret_cast<::tari::rpc::TemplateRegistration*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetTemplateRegistrationResponse.registration) -} -inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::release_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::TemplateRegistration* released = _impl_.registration_; - _impl_.registration_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::unsafe_arena_release_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetTemplateRegistrationResponse.registration) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::TemplateRegistration* temp = _impl_.registration_; - _impl_.registration_ = nullptr; - return temp; -} -inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::_internal_mutable_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.registration_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateRegistration>(GetArena()); - _impl_.registration_ = reinterpret_cast<::tari::rpc::TemplateRegistration*>(p); - } - return _impl_.registration_; -} -inline ::tari::rpc::TemplateRegistration* GetTemplateRegistrationResponse::mutable_registration() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::TemplateRegistration* _msg = _internal_mutable_registration(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetTemplateRegistrationResponse.registration) - return _msg; -} -inline void GetTemplateRegistrationResponse::set_allocated_registration(::tari::rpc::TemplateRegistration* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.registration_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.registration_ = reinterpret_cast<::tari::rpc::TemplateRegistration*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetTemplateRegistrationResponse.registration) -} - -// ------------------------------------------------------------------- - -// BlockInfo - -// uint64 height = 1; -inline void BlockInfo::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockInfo::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockInfo.height) - return _internal_height(); -} -inline void BlockInfo::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.height) -} -inline ::uint64_t BlockInfo::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void BlockInfo::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; -} - -// bytes hash = 2; -inline void BlockInfo::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.ClearToEmpty(); -} -inline const std::string& BlockInfo::hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockInfo.hash) - return _internal_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockInfo::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.hash) -} -inline std::string* BlockInfo::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockInfo.hash) - return _s; -} -inline const std::string& BlockInfo::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hash_.Get(); -} -inline void BlockInfo::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.Set(value, GetArena()); -} -inline std::string* BlockInfo::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.hash_.Mutable( GetArena()); -} -inline std::string* BlockInfo::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockInfo.hash) - return _impl_.hash_.Release(); -} -inline void BlockInfo::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockInfo.hash) -} - -// bytes next_block_hash = 3; -inline void BlockInfo::clear_next_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_block_hash_.ClearToEmpty(); -} -inline const std::string& BlockInfo::next_block_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockInfo.next_block_hash) - return _internal_next_block_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockInfo::set_next_block_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_block_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockInfo.next_block_hash) -} -inline std::string* BlockInfo::mutable_next_block_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_next_block_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockInfo.next_block_hash) - return _s; -} -inline const std::string& BlockInfo::_internal_next_block_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.next_block_hash_.Get(); -} -inline void BlockInfo::_internal_set_next_block_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_block_hash_.Set(value, GetArena()); -} -inline std::string* BlockInfo::_internal_mutable_next_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.next_block_hash_.Mutable( GetArena()); -} -inline std::string* BlockInfo::release_next_block_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockInfo.next_block_hash) - return _impl_.next_block_hash_.Release(); -} -inline void BlockInfo::set_allocated_next_block_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.next_block_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.next_block_hash_.IsDefault()) { - _impl_.next_block_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockInfo.next_block_hash) -} - -// ------------------------------------------------------------------- - -// GetSideChainUtxosRequest - -// bytes start_hash = 1; -inline void GetSideChainUtxosRequest::clear_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.ClearToEmpty(); -} -inline const std::string& GetSideChainUtxosRequest::start_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosRequest.start_hash) - return _internal_start_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetSideChainUtxosRequest::set_start_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetSideChainUtxosRequest.start_hash) -} -inline std::string* GetSideChainUtxosRequest::mutable_start_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_start_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetSideChainUtxosRequest.start_hash) - return _s; -} -inline const std::string& GetSideChainUtxosRequest::_internal_start_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.start_hash_.Get(); -} -inline void GetSideChainUtxosRequest::_internal_set_start_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.Set(value, GetArena()); -} -inline std::string* GetSideChainUtxosRequest::_internal_mutable_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.start_hash_.Mutable( GetArena()); -} -inline std::string* GetSideChainUtxosRequest::release_start_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetSideChainUtxosRequest.start_hash) - return _impl_.start_hash_.Release(); -} -inline void GetSideChainUtxosRequest::set_allocated_start_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.start_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.start_hash_.IsDefault()) { - _impl_.start_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetSideChainUtxosRequest.start_hash) -} - -// uint64 count = 2; -inline void GetSideChainUtxosRequest::clear_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.count_ = ::uint64_t{0u}; -} -inline ::uint64_t GetSideChainUtxosRequest::count() const { - // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosRequest.count) - return _internal_count(); -} -inline void GetSideChainUtxosRequest::set_count(::uint64_t value) { - _internal_set_count(value); - // @@protoc_insertion_point(field_set:tari.rpc.GetSideChainUtxosRequest.count) -} -inline ::uint64_t GetSideChainUtxosRequest::_internal_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.count_; -} -inline void GetSideChainUtxosRequest::_internal_set_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.count_ = value; -} - -// ------------------------------------------------------------------- - -// GetSideChainUtxosResponse - -// .tari.rpc.BlockInfo block_info = 1; -inline bool GetSideChainUtxosResponse::has_block_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.block_info_ != nullptr); - return value; -} -inline void GetSideChainUtxosResponse::clear_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.block_info_ != nullptr) _impl_.block_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::BlockInfo& GetSideChainUtxosResponse::_internal_block_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::BlockInfo* p = _impl_.block_info_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BlockInfo_default_instance_); -} -inline const ::tari::rpc::BlockInfo& GetSideChainUtxosResponse::block_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosResponse.block_info) - return _internal_block_info(); -} -inline void GetSideChainUtxosResponse::unsafe_arena_set_allocated_block_info(::tari::rpc::BlockInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_info_); - } - _impl_.block_info_ = reinterpret_cast<::tari::rpc::BlockInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.GetSideChainUtxosResponse.block_info) -} -inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::release_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::BlockInfo* released = _impl_.block_info_; - _impl_.block_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::unsafe_arena_release_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetSideChainUtxosResponse.block_info) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::BlockInfo* temp = _impl_.block_info_; - _impl_.block_info_ = nullptr; - return temp; -} -inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::_internal_mutable_block_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.block_info_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BlockInfo>(GetArena()); - _impl_.block_info_ = reinterpret_cast<::tari::rpc::BlockInfo*>(p); - } - return _impl_.block_info_; -} -inline ::tari::rpc::BlockInfo* GetSideChainUtxosResponse::mutable_block_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::BlockInfo* _msg = _internal_mutable_block_info(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetSideChainUtxosResponse.block_info) - return _msg; -} -inline void GetSideChainUtxosResponse::set_allocated_block_info(::tari::rpc::BlockInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.block_info_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.block_info_ = reinterpret_cast<::tari::rpc::BlockInfo*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetSideChainUtxosResponse.block_info) -} - -// repeated .tari.rpc.TransactionOutput outputs = 2; -inline int GetSideChainUtxosResponse::_internal_outputs_size() const { - return _internal_outputs().size(); -} -inline int GetSideChainUtxosResponse::outputs_size() const { - return _internal_outputs_size(); -} -inline ::tari::rpc::TransactionOutput* GetSideChainUtxosResponse::mutable_outputs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.GetSideChainUtxosResponse.outputs) - return _internal_mutable_outputs()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* GetSideChainUtxosResponse::mutable_outputs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.GetSideChainUtxosResponse.outputs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_outputs(); -} -inline const ::tari::rpc::TransactionOutput& GetSideChainUtxosResponse::outputs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetSideChainUtxosResponse.outputs) - return _internal_outputs().Get(index); -} -inline ::tari::rpc::TransactionOutput* GetSideChainUtxosResponse::add_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::TransactionOutput* _add = _internal_mutable_outputs()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.GetSideChainUtxosResponse.outputs) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& GetSideChainUtxosResponse::outputs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.GetSideChainUtxosResponse.outputs) - return _internal_outputs(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& -GetSideChainUtxosResponse::_internal_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.outputs_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* -GetSideChainUtxosResponse::_internal_mutable_outputs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.outputs_; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::tari::rpc::BaseNodeState> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::BaseNodeState>() { - return ::tari::rpc::BaseNodeState_descriptor(); -} -template <> -struct is_proto_enum<::tari::rpc::CalcType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::CalcType>() { - return ::tari::rpc::CalcType_descriptor(); -} -template <> -struct is_proto_enum<::tari::rpc::Sorting> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::Sorting>() { - return ::tari::rpc::Sorting_descriptor(); -} -template <> -struct is_proto_enum<::tari::rpc::SyncState> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::SyncState>() { - return ::tari::rpc::SyncState_descriptor(); -} -template <> -struct is_proto_enum<::tari::rpc::SubmitTransactionResult> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::SubmitTransactionResult>() { - return ::tari::rpc::SubmitTransactionResult_descriptor(); -} -template <> -struct is_proto_enum<::tari::rpc::TransactionLocation> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::TransactionLocation>() { - return ::tari::rpc::TransactionLocation_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_base_5fnode_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/block.pb-c.c b/external/src/Tari/proto/gRPC/block.pb-c.c new file mode 100644 index 00000000..17478db9 --- /dev/null +++ b/external/src/Tari/proto/gRPC/block.pb-c.c @@ -0,0 +1,933 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: block.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "block.pb-c.h" +void tari__rpc__block_header__init + (Tari__Rpc__BlockHeader *message) +{ + static const Tari__Rpc__BlockHeader init_value = TARI__RPC__BLOCK_HEADER__INIT; + *message = init_value; +} +size_t tari__rpc__block_header__get_packed_size + (const Tari__Rpc__BlockHeader *message) +{ + assert(message->base.descriptor == &tari__rpc__block_header__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_header__pack + (const Tari__Rpc__BlockHeader *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_header__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_header__pack_to_buffer + (const Tari__Rpc__BlockHeader *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_header__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockHeader * + tari__rpc__block_header__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockHeader *) + protobuf_c_message_unpack (&tari__rpc__block_header__descriptor, + allocator, len, data); +} +void tari__rpc__block_header__free_unpacked + (Tari__Rpc__BlockHeader *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_header__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__proof_of_work__init + (Tari__Rpc__ProofOfWork *message) +{ + static const Tari__Rpc__ProofOfWork init_value = TARI__RPC__PROOF_OF_WORK__INIT; + *message = init_value; +} +size_t tari__rpc__proof_of_work__get_packed_size + (const Tari__Rpc__ProofOfWork *message) +{ + assert(message->base.descriptor == &tari__rpc__proof_of_work__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__proof_of_work__pack + (const Tari__Rpc__ProofOfWork *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__proof_of_work__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__proof_of_work__pack_to_buffer + (const Tari__Rpc__ProofOfWork *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__proof_of_work__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ProofOfWork * + tari__rpc__proof_of_work__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ProofOfWork *) + protobuf_c_message_unpack (&tari__rpc__proof_of_work__descriptor, + allocator, len, data); +} +void tari__rpc__proof_of_work__free_unpacked + (Tari__Rpc__ProofOfWork *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__proof_of_work__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__pow_algo__init + (Tari__Rpc__PowAlgo *message) +{ + static const Tari__Rpc__PowAlgo init_value = TARI__RPC__POW_ALGO__INIT; + *message = init_value; +} +size_t tari__rpc__pow_algo__get_packed_size + (const Tari__Rpc__PowAlgo *message) +{ + assert(message->base.descriptor == &tari__rpc__pow_algo__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__pow_algo__pack + (const Tari__Rpc__PowAlgo *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__pow_algo__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__pow_algo__pack_to_buffer + (const Tari__Rpc__PowAlgo *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__pow_algo__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__PowAlgo * + tari__rpc__pow_algo__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__PowAlgo *) + protobuf_c_message_unpack (&tari__rpc__pow_algo__descriptor, + allocator, len, data); +} +void tari__rpc__pow_algo__free_unpacked + (Tari__Rpc__PowAlgo *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__pow_algo__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block__init + (Tari__Rpc__Block *message) +{ + static const Tari__Rpc__Block init_value = TARI__RPC__BLOCK__INIT; + *message = init_value; +} +size_t tari__rpc__block__get_packed_size + (const Tari__Rpc__Block *message) +{ + assert(message->base.descriptor == &tari__rpc__block__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block__pack + (const Tari__Rpc__Block *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block__pack_to_buffer + (const Tari__Rpc__Block *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__Block * + tari__rpc__block__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__Block *) + protobuf_c_message_unpack (&tari__rpc__block__descriptor, + allocator, len, data); +} +void tari__rpc__block__free_unpacked + (Tari__Rpc__Block *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__historical_block__init + (Tari__Rpc__HistoricalBlock *message) +{ + static const Tari__Rpc__HistoricalBlock init_value = TARI__RPC__HISTORICAL_BLOCK__INIT; + *message = init_value; +} +size_t tari__rpc__historical_block__get_packed_size + (const Tari__Rpc__HistoricalBlock *message) +{ + assert(message->base.descriptor == &tari__rpc__historical_block__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__historical_block__pack + (const Tari__Rpc__HistoricalBlock *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__historical_block__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__historical_block__pack_to_buffer + (const Tari__Rpc__HistoricalBlock *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__historical_block__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__HistoricalBlock * + tari__rpc__historical_block__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__HistoricalBlock *) + protobuf_c_message_unpack (&tari__rpc__historical_block__descriptor, + allocator, len, data); +} +void tari__rpc__historical_block__free_unpacked + (Tari__Rpc__HistoricalBlock *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__historical_block__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__new_block_header_template__init + (Tari__Rpc__NewBlockHeaderTemplate *message) +{ + static const Tari__Rpc__NewBlockHeaderTemplate init_value = TARI__RPC__NEW_BLOCK_HEADER_TEMPLATE__INIT; + *message = init_value; +} +size_t tari__rpc__new_block_header_template__get_packed_size + (const Tari__Rpc__NewBlockHeaderTemplate *message) +{ + assert(message->base.descriptor == &tari__rpc__new_block_header_template__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__new_block_header_template__pack + (const Tari__Rpc__NewBlockHeaderTemplate *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__new_block_header_template__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__new_block_header_template__pack_to_buffer + (const Tari__Rpc__NewBlockHeaderTemplate *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__new_block_header_template__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__NewBlockHeaderTemplate * + tari__rpc__new_block_header_template__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__NewBlockHeaderTemplate *) + protobuf_c_message_unpack (&tari__rpc__new_block_header_template__descriptor, + allocator, len, data); +} +void tari__rpc__new_block_header_template__free_unpacked + (Tari__Rpc__NewBlockHeaderTemplate *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__new_block_header_template__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__new_block_template__init + (Tari__Rpc__NewBlockTemplate *message) +{ + static const Tari__Rpc__NewBlockTemplate init_value = TARI__RPC__NEW_BLOCK_TEMPLATE__INIT; + *message = init_value; +} +size_t tari__rpc__new_block_template__get_packed_size + (const Tari__Rpc__NewBlockTemplate *message) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__new_block_template__pack + (const Tari__Rpc__NewBlockTemplate *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__new_block_template__pack_to_buffer + (const Tari__Rpc__NewBlockTemplate *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__new_block_template__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__NewBlockTemplate * + tari__rpc__new_block_template__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__NewBlockTemplate *) + protobuf_c_message_unpack (&tari__rpc__new_block_template__descriptor, + allocator, len, data); +} +void tari__rpc__new_block_template__free_unpacked + (Tari__Rpc__NewBlockTemplate *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__new_block_template__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tari__rpc__block_header__field_descriptors[16] = +{ + { + "hash", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "version", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "height", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "prev_hash", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, prev_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "timestamp", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, timestamp), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "output_mr", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, output_mr), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "kernel_mr", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, kernel_mr), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "input_mr", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, input_mr), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "total_kernel_offset", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, total_kernel_offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "nonce", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, nonce), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "pow", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, pow), + &tari__rpc__proof_of_work__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "kernel_mmr_size", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, kernel_mmr_size), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "output_mmr_size", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, output_mmr_size), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "total_script_offset", + 15, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, total_script_offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "validator_node_mr", + 16, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, validator_node_mr), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "validator_node_size", + 17, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeader, validator_node_size), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_header__field_indices_by_name[] = { + 0, /* field[0] = hash */ + 2, /* field[2] = height */ + 7, /* field[7] = input_mr */ + 11, /* field[11] = kernel_mmr_size */ + 6, /* field[6] = kernel_mr */ + 9, /* field[9] = nonce */ + 12, /* field[12] = output_mmr_size */ + 5, /* field[5] = output_mr */ + 10, /* field[10] = pow */ + 3, /* field[3] = prev_hash */ + 4, /* field[4] = timestamp */ + 8, /* field[8] = total_kernel_offset */ + 13, /* field[13] = total_script_offset */ + 14, /* field[14] = validator_node_mr */ + 15, /* field[15] = validator_node_size */ + 1, /* field[1] = version */ +}; +static const ProtobufCIntRange tari__rpc__block_header__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 8, 6 }, + { 0, 16 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_header__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockHeader", + "BlockHeader", + "Tari__Rpc__BlockHeader", + "tari.rpc", + sizeof(Tari__Rpc__BlockHeader), + 16, + tari__rpc__block_header__field_descriptors, + tari__rpc__block_header__field_indices_by_name, + 2, tari__rpc__block_header__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_header__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__proof_of_work__field_descriptors[2] = +{ + { + "pow_algo", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ProofOfWork, pow_algo), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "pow_data", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ProofOfWork, pow_data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__proof_of_work__field_indices_by_name[] = { + 0, /* field[0] = pow_algo */ + 1, /* field[1] = pow_data */ +}; +static const ProtobufCIntRange tari__rpc__proof_of_work__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 4, 1 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__proof_of_work__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ProofOfWork", + "ProofOfWork", + "Tari__Rpc__ProofOfWork", + "tari.rpc", + sizeof(Tari__Rpc__ProofOfWork), + 2, + tari__rpc__proof_of_work__field_descriptors, + tari__rpc__proof_of_work__field_indices_by_name, + 2, tari__rpc__proof_of_work__number_ranges, + (ProtobufCMessageInit) tari__rpc__proof_of_work__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCEnumValue tari__rpc__pow_algo__pow_algos__enum_values_by_number[2] = +{ + { "POW_ALGOS_RANDOMX", "TARI__RPC__POW_ALGO__POW_ALGOS__POW_ALGOS_RANDOMX", 0 }, + { "POW_ALGOS_SHA3X", "TARI__RPC__POW_ALGO__POW_ALGOS__POW_ALGOS_SHA3X", 1 }, +}; +static const ProtobufCIntRange tari__rpc__pow_algo__pow_algos__value_ranges[] = { +{0, 0},{0, 2} +}; +static const ProtobufCEnumValueIndex tari__rpc__pow_algo__pow_algos__enum_values_by_name[2] = +{ + { "POW_ALGOS_RANDOMX", 0 }, + { "POW_ALGOS_SHA3X", 1 }, +}; +const ProtobufCEnumDescriptor tari__rpc__pow_algo__pow_algos__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.PowAlgo.PowAlgos", + "PowAlgos", + "Tari__Rpc__PowAlgo__PowAlgos", + "tari.rpc", + 2, + tari__rpc__pow_algo__pow_algos__enum_values_by_number, + 2, + tari__rpc__pow_algo__pow_algos__enum_values_by_name, + 1, + tari__rpc__pow_algo__pow_algos__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__pow_algo__field_descriptors[1] = +{ + { + "pow_algo", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__PowAlgo, pow_algo), + &tari__rpc__pow_algo__pow_algos__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__pow_algo__field_indices_by_name[] = { + 0, /* field[0] = pow_algo */ +}; +static const ProtobufCIntRange tari__rpc__pow_algo__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__pow_algo__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.PowAlgo", + "PowAlgo", + "Tari__Rpc__PowAlgo", + "tari.rpc", + sizeof(Tari__Rpc__PowAlgo), + 1, + tari__rpc__pow_algo__field_descriptors, + tari__rpc__pow_algo__field_indices_by_name, + 1, tari__rpc__pow_algo__number_ranges, + (ProtobufCMessageInit) tari__rpc__pow_algo__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block__field_descriptors[2] = +{ + { + "header", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Block, header), + &tari__rpc__block_header__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "body", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Block, body), + &tari__rpc__aggregate_body__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block__field_indices_by_name[] = { + 1, /* field[1] = body */ + 0, /* field[0] = header */ +}; +static const ProtobufCIntRange tari__rpc__block__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__block__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.Block", + "Block", + "Tari__Rpc__Block", + "tari.rpc", + sizeof(Tari__Rpc__Block), + 2, + tari__rpc__block__field_descriptors, + tari__rpc__block__field_indices_by_name, + 1, tari__rpc__block__number_ranges, + (ProtobufCMessageInit) tari__rpc__block__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__historical_block__field_descriptors[2] = +{ + { + "confirmations", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__HistoricalBlock, confirmations), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "block", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__HistoricalBlock, block), + &tari__rpc__block__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__historical_block__field_indices_by_name[] = { + 1, /* field[1] = block */ + 0, /* field[0] = confirmations */ +}; +static const ProtobufCIntRange tari__rpc__historical_block__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__historical_block__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.HistoricalBlock", + "HistoricalBlock", + "Tari__Rpc__HistoricalBlock", + "tari.rpc", + sizeof(Tari__Rpc__HistoricalBlock), + 2, + tari__rpc__historical_block__field_descriptors, + tari__rpc__historical_block__field_indices_by_name, + 1, tari__rpc__historical_block__number_ranges, + (ProtobufCMessageInit) tari__rpc__historical_block__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__new_block_header_template__field_descriptors[6] = +{ + { + "version", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockHeaderTemplate, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "height", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockHeaderTemplate, height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "prev_hash", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockHeaderTemplate, prev_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "total_kernel_offset", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockHeaderTemplate, total_kernel_offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "pow", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockHeaderTemplate, pow), + &tari__rpc__proof_of_work__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "total_script_offset", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockHeaderTemplate, total_script_offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__new_block_header_template__field_indices_by_name[] = { + 1, /* field[1] = height */ + 4, /* field[4] = pow */ + 2, /* field[2] = prev_hash */ + 3, /* field[3] = total_kernel_offset */ + 5, /* field[5] = total_script_offset */ + 0, /* field[0] = version */ +}; +static const ProtobufCIntRange tari__rpc__new_block_header_template__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 7, 5 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor tari__rpc__new_block_header_template__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.NewBlockHeaderTemplate", + "NewBlockHeaderTemplate", + "Tari__Rpc__NewBlockHeaderTemplate", + "tari.rpc", + sizeof(Tari__Rpc__NewBlockHeaderTemplate), + 6, + tari__rpc__new_block_header_template__field_descriptors, + tari__rpc__new_block_header_template__field_indices_by_name, + 2, tari__rpc__new_block_header_template__number_ranges, + (ProtobufCMessageInit) tari__rpc__new_block_header_template__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__new_block_template__field_descriptors[2] = +{ + { + "header", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockTemplate, header), + &tari__rpc__new_block_header_template__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "body", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NewBlockTemplate, body), + &tari__rpc__aggregate_body__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__new_block_template__field_indices_by_name[] = { + 1, /* field[1] = body */ + 0, /* field[0] = header */ +}; +static const ProtobufCIntRange tari__rpc__new_block_template__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__new_block_template__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.NewBlockTemplate", + "NewBlockTemplate", + "Tari__Rpc__NewBlockTemplate", + "tari.rpc", + sizeof(Tari__Rpc__NewBlockTemplate), + 2, + tari__rpc__new_block_template__field_descriptors, + tari__rpc__new_block_template__field_indices_by_name, + 1, tari__rpc__new_block_template__number_ranges, + (ProtobufCMessageInit) tari__rpc__new_block_template__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/external/src/Tari/proto/gRPC/block.pb-c.h b/external/src/Tari/proto/gRPC/block.pb-c.h new file mode 100644 index 00000000..d09e9c23 --- /dev/null +++ b/external/src/Tari/proto/gRPC/block.pb-c.h @@ -0,0 +1,442 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: block.proto */ + +#ifndef PROTOBUF_C_block_2eproto__INCLUDED +#define PROTOBUF_C_block_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "transaction.pb-c.h" + +typedef struct _Tari__Rpc__BlockHeader Tari__Rpc__BlockHeader; +typedef struct _Tari__Rpc__ProofOfWork Tari__Rpc__ProofOfWork; +typedef struct _Tari__Rpc__PowAlgo Tari__Rpc__PowAlgo; +typedef struct _Tari__Rpc__Block Tari__Rpc__Block; +typedef struct _Tari__Rpc__HistoricalBlock Tari__Rpc__HistoricalBlock; +typedef struct _Tari__Rpc__NewBlockHeaderTemplate Tari__Rpc__NewBlockHeaderTemplate; +typedef struct _Tari__Rpc__NewBlockTemplate Tari__Rpc__NewBlockTemplate; + + +/* --- enums --- */ + +/* + * The permitted pow algorithms + */ +typedef enum _Tari__Rpc__PowAlgo__PowAlgos { + /* + * Accessible as `grpc::pow_algo::PowAlgos::Randomx` + */ + TARI__RPC__POW_ALGO__POW_ALGOS__POW_ALGOS_RANDOMX = 0, + /* + * Accessible as `grpc::pow_algo::PowAlgos::Sha3x` + */ + TARI__RPC__POW_ALGO__POW_ALGOS__POW_ALGOS_SHA3X = 1 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__POW_ALGO__POW_ALGOS) +} Tari__Rpc__PowAlgo__PowAlgos; + +/* --- messages --- */ + +/* + * The BlockHeader contains all the metadata for the block, including proof of work, a link to the previous block + * and the transaction kernels. + */ +struct _Tari__Rpc__BlockHeader +{ + ProtobufCMessage base; + /* + * The hash of the block + */ + ProtobufCBinaryData hash; + /* + * Version of the block + */ + uint32_t version; + /* + * Height of this block since the genesis block (height 0) + */ + uint64_t height; + /* + * Hash of the block previous to this in the chain. + */ + ProtobufCBinaryData prev_hash; + /* + * Timestamp at which the block was built. + */ + uint64_t timestamp; + /* + * This is the UTXO merkle root of the outputs + * This is calculated as Hash (txo MMR root || roaring bitmap hash of UTXO indices) + */ + ProtobufCBinaryData output_mr; + /* + * This is the MMR root of the kernels + */ + ProtobufCBinaryData kernel_mr; + /* + * This is the Merkle root of the inputs in this block + */ + ProtobufCBinaryData input_mr; + /* + * Total accumulated sum of kernel offsets since genesis block. We can derive the kernel offset sum for *this* + * block from the total kernel offset of the previous block header. + */ + ProtobufCBinaryData total_kernel_offset; + /* + * Nonce increment used to mine this block. + */ + uint64_t nonce; + /* + * Proof of work metadata + */ + Tari__Rpc__ProofOfWork *pow; + /* + * Kernel MMR size + */ + uint64_t kernel_mmr_size; + /* + * Output MMR size + */ + uint64_t output_mmr_size; + /* + * Sum of script offsets for all kernels in this block. + */ + ProtobufCBinaryData total_script_offset; + /* + * Merkle root of validator nodes + */ + ProtobufCBinaryData validator_node_mr; + /* + * Validator size + */ + uint64_t validator_node_size; +}; +#define TARI__RPC__BLOCK_HEADER__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_header__descriptor) \ + , {0,NULL}, 0, 0, {0,NULL}, 0, {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL}, 0, NULL, 0, 0, {0,NULL}, {0,NULL}, 0 } + + +/* + * The proof of work data structure that is included in the block header. + */ +struct _Tari__Rpc__ProofOfWork +{ + ProtobufCMessage base; + /* + * The algorithm used to mine this block + * 0 = Monero + * 1 = Sha3X + */ + uint64_t pow_algo; + /* + * Supplemental proof of work data. For example for Sha3x, this would be empty (only the block header is + * required), but for Monero merge mining we need the Monero block header and RandomX seed hash. + */ + ProtobufCBinaryData pow_data; +}; +#define TARI__RPC__PROOF_OF_WORK__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__proof_of_work__descriptor) \ + , 0, {0,NULL} } + + +/* + *This is used to request the which pow algo should be used with the block template + */ +struct _Tari__Rpc__PowAlgo +{ + ProtobufCMessage base; + /* + * The pow algo to use + */ + Tari__Rpc__PowAlgo__PowAlgos pow_algo; +}; +#define TARI__RPC__POW_ALGO__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__pow_algo__descriptor) \ + , TARI__RPC__POW_ALGO__POW_ALGOS__POW_ALGOS_RANDOMX } + + +/* + * A Minotari block. Blocks are linked together into a blockchain. + */ +struct _Tari__Rpc__Block +{ + ProtobufCMessage base; + /* + * The BlockHeader contains all the metadata for the block, including proof of work, a link to the previous block + * and the transaction kernels. + */ + Tari__Rpc__BlockHeader *header; + /* + * The components of the block or transaction. The same struct can be used for either, since in Mimblewimble, + * blocks consist of inputs, outputs and kernels, rather than transactions. + */ + Tari__Rpc__AggregateBody *body; +}; +#define TARI__RPC__BLOCK__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block__descriptor) \ + , NULL, NULL } + + +/* + * The representation of a historical block in the blockchain. It is essentially identical to a protocol-defined + * block but contains some extra metadata that clients such as Block Explorers will find interesting. + */ +struct _Tari__Rpc__HistoricalBlock +{ + ProtobufCMessage base; + /* + * The number of blocks that have been mined since this block, including this one. The current tip will have one + * confirmation. + */ + uint64_t confirmations; + /* + * The underlying block + */ + Tari__Rpc__Block *block; +}; +#define TARI__RPC__HISTORICAL_BLOCK__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__historical_block__descriptor) \ + , 0, NULL } + + +/* + * The NewBlockHeaderTemplate is used for the construction of a new mine-able block. It contains all the metadata for the block that the Base Node is able to complete on behalf of a Miner. + */ +struct _Tari__Rpc__NewBlockHeaderTemplate +{ + ProtobufCMessage base; + /* + * Version of the block + */ + uint32_t version; + /* + * Height of this block since the genesis block (height 0) + */ + uint64_t height; + /* + * Hash of the block previous to this in the chain. + */ + ProtobufCBinaryData prev_hash; + /* + * Total accumulated sum of kernel offsets since genesis block. We can derive the kernel offset sum for *this* + * block from the total kernel offset of the previous block header. + */ + ProtobufCBinaryData total_kernel_offset; + /* + * Proof of work metadata + */ + Tari__Rpc__ProofOfWork *pow; + /* + * Sum of script offsets for all kernels in this block. + */ + ProtobufCBinaryData total_script_offset; +}; +#define TARI__RPC__NEW_BLOCK_HEADER_TEMPLATE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__new_block_header_template__descriptor) \ + , 0, 0, {0,NULL}, {0,NULL}, NULL, {0,NULL} } + + +/* + * The new block template is used constructing a new partial block, allowing a miner to added the coinbase utxo and as a final step the Base node to add the MMR roots to the header. + */ +struct _Tari__Rpc__NewBlockTemplate +{ + ProtobufCMessage base; + /* + * The NewBlockHeaderTemplate is used for the construction of a new mineable block. It contains all the metadata for + * the block that the Base Node is able to complete on behalf of a Miner. + */ + Tari__Rpc__NewBlockHeaderTemplate *header; + /* + * This flag indicates if the inputs, outputs and kernels have been sorted internally, that is, the sort() method + * has been called. This may be false even if all components are sorted. + */ + Tari__Rpc__AggregateBody *body; +}; +#define TARI__RPC__NEW_BLOCK_TEMPLATE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__new_block_template__descriptor) \ + , NULL, NULL } + + +/* Tari__Rpc__BlockHeader methods */ +void tari__rpc__block_header__init + (Tari__Rpc__BlockHeader *message); +size_t tari__rpc__block_header__get_packed_size + (const Tari__Rpc__BlockHeader *message); +size_t tari__rpc__block_header__pack + (const Tari__Rpc__BlockHeader *message, + uint8_t *out); +size_t tari__rpc__block_header__pack_to_buffer + (const Tari__Rpc__BlockHeader *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockHeader * + tari__rpc__block_header__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_header__free_unpacked + (Tari__Rpc__BlockHeader *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ProofOfWork methods */ +void tari__rpc__proof_of_work__init + (Tari__Rpc__ProofOfWork *message); +size_t tari__rpc__proof_of_work__get_packed_size + (const Tari__Rpc__ProofOfWork *message); +size_t tari__rpc__proof_of_work__pack + (const Tari__Rpc__ProofOfWork *message, + uint8_t *out); +size_t tari__rpc__proof_of_work__pack_to_buffer + (const Tari__Rpc__ProofOfWork *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ProofOfWork * + tari__rpc__proof_of_work__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__proof_of_work__free_unpacked + (Tari__Rpc__ProofOfWork *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__PowAlgo methods */ +void tari__rpc__pow_algo__init + (Tari__Rpc__PowAlgo *message); +size_t tari__rpc__pow_algo__get_packed_size + (const Tari__Rpc__PowAlgo *message); +size_t tari__rpc__pow_algo__pack + (const Tari__Rpc__PowAlgo *message, + uint8_t *out); +size_t tari__rpc__pow_algo__pack_to_buffer + (const Tari__Rpc__PowAlgo *message, + ProtobufCBuffer *buffer); +Tari__Rpc__PowAlgo * + tari__rpc__pow_algo__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__pow_algo__free_unpacked + (Tari__Rpc__PowAlgo *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__Block methods */ +void tari__rpc__block__init + (Tari__Rpc__Block *message); +size_t tari__rpc__block__get_packed_size + (const Tari__Rpc__Block *message); +size_t tari__rpc__block__pack + (const Tari__Rpc__Block *message, + uint8_t *out); +size_t tari__rpc__block__pack_to_buffer + (const Tari__Rpc__Block *message, + ProtobufCBuffer *buffer); +Tari__Rpc__Block * + tari__rpc__block__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block__free_unpacked + (Tari__Rpc__Block *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__HistoricalBlock methods */ +void tari__rpc__historical_block__init + (Tari__Rpc__HistoricalBlock *message); +size_t tari__rpc__historical_block__get_packed_size + (const Tari__Rpc__HistoricalBlock *message); +size_t tari__rpc__historical_block__pack + (const Tari__Rpc__HistoricalBlock *message, + uint8_t *out); +size_t tari__rpc__historical_block__pack_to_buffer + (const Tari__Rpc__HistoricalBlock *message, + ProtobufCBuffer *buffer); +Tari__Rpc__HistoricalBlock * + tari__rpc__historical_block__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__historical_block__free_unpacked + (Tari__Rpc__HistoricalBlock *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__NewBlockHeaderTemplate methods */ +void tari__rpc__new_block_header_template__init + (Tari__Rpc__NewBlockHeaderTemplate *message); +size_t tari__rpc__new_block_header_template__get_packed_size + (const Tari__Rpc__NewBlockHeaderTemplate *message); +size_t tari__rpc__new_block_header_template__pack + (const Tari__Rpc__NewBlockHeaderTemplate *message, + uint8_t *out); +size_t tari__rpc__new_block_header_template__pack_to_buffer + (const Tari__Rpc__NewBlockHeaderTemplate *message, + ProtobufCBuffer *buffer); +Tari__Rpc__NewBlockHeaderTemplate * + tari__rpc__new_block_header_template__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__new_block_header_template__free_unpacked + (Tari__Rpc__NewBlockHeaderTemplate *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__NewBlockTemplate methods */ +void tari__rpc__new_block_template__init + (Tari__Rpc__NewBlockTemplate *message); +size_t tari__rpc__new_block_template__get_packed_size + (const Tari__Rpc__NewBlockTemplate *message); +size_t tari__rpc__new_block_template__pack + (const Tari__Rpc__NewBlockTemplate *message, + uint8_t *out); +size_t tari__rpc__new_block_template__pack_to_buffer + (const Tari__Rpc__NewBlockTemplate *message, + ProtobufCBuffer *buffer); +Tari__Rpc__NewBlockTemplate * + tari__rpc__new_block_template__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__new_block_template__free_unpacked + (Tari__Rpc__NewBlockTemplate *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tari__Rpc__BlockHeader_Closure) + (const Tari__Rpc__BlockHeader *message, + void *closure_data); +typedef void (*Tari__Rpc__ProofOfWork_Closure) + (const Tari__Rpc__ProofOfWork *message, + void *closure_data); +typedef void (*Tari__Rpc__PowAlgo_Closure) + (const Tari__Rpc__PowAlgo *message, + void *closure_data); +typedef void (*Tari__Rpc__Block_Closure) + (const Tari__Rpc__Block *message, + void *closure_data); +typedef void (*Tari__Rpc__HistoricalBlock_Closure) + (const Tari__Rpc__HistoricalBlock *message, + void *closure_data); +typedef void (*Tari__Rpc__NewBlockHeaderTemplate_Closure) + (const Tari__Rpc__NewBlockHeaderTemplate *message, + void *closure_data); +typedef void (*Tari__Rpc__NewBlockTemplate_Closure) + (const Tari__Rpc__NewBlockTemplate *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tari__rpc__block_header__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__proof_of_work__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__pow_algo__descriptor; +extern const ProtobufCEnumDescriptor tari__rpc__pow_algo__pow_algos__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__historical_block__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__new_block_header_template__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__new_block_template__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_block_2eproto__INCLUDED */ diff --git a/external/src/Tari/proto/gRPC/block.pb.cc b/external/src/Tari/proto/gRPC/block.pb.cc deleted file mode 100644 index 2d21a1be..00000000 --- a/external/src/Tari/proto/gRPC/block.pb.cc +++ /dev/null @@ -1,2611 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: block.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#include "block.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.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" -#include "google/protobuf/generated_message_tctable_impl.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 tari { -namespace rpc { - -inline constexpr ProofOfWork::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : pow_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pow_algo_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ProofOfWork::ProofOfWork(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ProofOfWorkDefaultTypeInternal { - PROTOBUF_CONSTEXPR ProofOfWorkDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ProofOfWorkDefaultTypeInternal() {} - union { - ProofOfWork _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProofOfWorkDefaultTypeInternal _ProofOfWork_default_instance_; - -inline constexpr PowAlgo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : pow_algo_{static_cast< ::tari::rpc::PowAlgo_PowAlgos >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PowAlgo::PowAlgo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PowAlgoDefaultTypeInternal { - PROTOBUF_CONSTEXPR PowAlgoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PowAlgoDefaultTypeInternal() {} - union { - PowAlgo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PowAlgoDefaultTypeInternal _PowAlgo_default_instance_; - -inline constexpr NewBlockHeaderTemplate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - prev_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - total_kernel_offset_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - total_script_offset_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pow_{nullptr}, - height_{::uint64_t{0u}}, - version_{0u} {} - -template -PROTOBUF_CONSTEXPR NewBlockHeaderTemplate::NewBlockHeaderTemplate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewBlockHeaderTemplateDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewBlockHeaderTemplateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewBlockHeaderTemplateDefaultTypeInternal() {} - union { - NewBlockHeaderTemplate _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewBlockHeaderTemplateDefaultTypeInternal _NewBlockHeaderTemplate_default_instance_; - -inline constexpr BlockHeader::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - prev_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - output_mr_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - kernel_mr_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - input_mr_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - total_kernel_offset_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - total_script_offset_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - validator_node_mr_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - pow_{nullptr}, - height_{::uint64_t{0u}}, - timestamp_{::uint64_t{0u}}, - nonce_{::uint64_t{0u}}, - kernel_mmr_size_{::uint64_t{0u}}, - output_mmr_size_{::uint64_t{0u}}, - validator_node_size_{::uint64_t{0u}}, - version_{0u} {} - -template -PROTOBUF_CONSTEXPR BlockHeader::BlockHeader(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockHeaderDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockHeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockHeaderDefaultTypeInternal() {} - union { - BlockHeader _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockHeaderDefaultTypeInternal _BlockHeader_default_instance_; - -inline constexpr NewBlockTemplate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - header_{nullptr}, - body_{nullptr} {} - -template -PROTOBUF_CONSTEXPR NewBlockTemplate::NewBlockTemplate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NewBlockTemplateDefaultTypeInternal { - PROTOBUF_CONSTEXPR NewBlockTemplateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NewBlockTemplateDefaultTypeInternal() {} - union { - NewBlockTemplate _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewBlockTemplateDefaultTypeInternal _NewBlockTemplate_default_instance_; - -inline constexpr Block::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - header_{nullptr}, - body_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Block::Block(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockDefaultTypeInternal() {} - union { - Block _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockDefaultTypeInternal _Block_default_instance_; - -inline constexpr HistoricalBlock::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - block_{nullptr}, - confirmations_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR HistoricalBlock::HistoricalBlock(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct HistoricalBlockDefaultTypeInternal { - PROTOBUF_CONSTEXPR HistoricalBlockDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HistoricalBlockDefaultTypeInternal() {} - union { - HistoricalBlock _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HistoricalBlockDefaultTypeInternal _HistoricalBlock_default_instance_; -} // namespace rpc -} // namespace tari -static ::_pb::Metadata file_level_metadata_block_2eproto[7]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_block_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_block_2eproto = nullptr; -const ::uint32_t - TableStruct_block_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _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(::tari::rpc::BlockHeader, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.prev_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.timestamp_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.output_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.kernel_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.input_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.total_kernel_offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.nonce_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.pow_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.kernel_mmr_size_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.output_mmr_size_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.total_script_offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.validator_node_mr_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BlockHeader, _impl_.validator_node_size_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _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(::tari::rpc::ProofOfWork, _impl_.pow_algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ProofOfWork, _impl_.pow_data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgo, _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(::tari::rpc::PowAlgo, _impl_.pow_algo_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _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(::tari::rpc::Block, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Block, _impl_.body_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _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(::tari::rpc::HistoricalBlock, _impl_.confirmations_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::HistoricalBlock, _impl_.block_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _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(::tari::rpc::NewBlockHeaderTemplate, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.prev_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.total_kernel_offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.pow_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockHeaderTemplate, _impl_.total_script_offset_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _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(::tari::rpc::NewBlockTemplate, _impl_.header_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NewBlockTemplate, _impl_.body_), - 0, - 1, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 24, -1, sizeof(::tari::rpc::BlockHeader)}, - {40, -1, -1, sizeof(::tari::rpc::ProofOfWork)}, - {50, -1, -1, sizeof(::tari::rpc::PowAlgo)}, - {59, 69, -1, sizeof(::tari::rpc::Block)}, - {71, 81, -1, sizeof(::tari::rpc::HistoricalBlock)}, - {83, 97, -1, sizeof(::tari::rpc::NewBlockHeaderTemplate)}, - {103, 113, -1, sizeof(::tari::rpc::NewBlockTemplate)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::tari::rpc::_BlockHeader_default_instance_._instance, - &::tari::rpc::_ProofOfWork_default_instance_._instance, - &::tari::rpc::_PowAlgo_default_instance_._instance, - &::tari::rpc::_Block_default_instance_._instance, - &::tari::rpc::_HistoricalBlock_default_instance_._instance, - &::tari::rpc::_NewBlockHeaderTemplate_default_instance_._instance, - &::tari::rpc::_NewBlockTemplate_default_instance_._instance, -}; -const char descriptor_table_protodef_block_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\013block.proto\022\010tari.rpc\032\021transaction.pro" - "to\"\361\002\n\013BlockHeader\022\014\n\004hash\030\001 \001(\014\022\017\n\007vers" - "ion\030\002 \001(\r\022\016\n\006height\030\003 \001(\004\022\021\n\tprev_hash\030\004" - " \001(\014\022\021\n\ttimestamp\030\005 \001(\004\022\021\n\toutput_mr\030\006 \001" - "(\014\022\021\n\tkernel_mr\030\010 \001(\014\022\020\n\010input_mr\030\t \001(\014\022" - "\033\n\023total_kernel_offset\030\n \001(\014\022\r\n\005nonce\030\013 " - "\001(\004\022\"\n\003pow\030\014 \001(\0132\025.tari.rpc.ProofOfWork\022" - "\027\n\017kernel_mmr_size\030\r \001(\004\022\027\n\017output_mmr_s" - "ize\030\016 \001(\004\022\033\n\023total_script_offset\030\017 \001(\014\022\031" - "\n\021validator_node_mr\030\020 \001(\014\022\033\n\023validator_n" - "ode_size\030\021 \001(\004\"1\n\013ProofOfWork\022\020\n\010pow_alg" - "o\030\001 \001(\004\022\020\n\010pow_data\030\004 \001(\014\"o\n\007PowAlgo\022,\n\010" - "pow_algo\030\001 \001(\0162\032.tari.rpc.PowAlgo.PowAlg" - "os\"6\n\010PowAlgos\022\025\n\021POW_ALGOS_RANDOMX\020\000\022\023\n" - "\017POW_ALGOS_SHA3X\020\001\"U\n\005Block\022%\n\006header\030\001 " - "\001(\0132\025.tari.rpc.BlockHeader\022%\n\004body\030\002 \001(\013" - "2\027.tari.rpc.AggregateBody\"H\n\017HistoricalB" - "lock\022\025\n\rconfirmations\030\001 \001(\004\022\036\n\005block\030\002 \001" - "(\0132\017.tari.rpc.Block\"\252\001\n\026NewBlockHeaderTe" - "mplate\022\017\n\007version\030\001 \001(\r\022\016\n\006height\030\002 \001(\004\022" - "\021\n\tprev_hash\030\003 \001(\014\022\033\n\023total_kernel_offse" - "t\030\004 \001(\014\022\"\n\003pow\030\005 \001(\0132\025.tari.rpc.ProofOfW" - "ork\022\033\n\023total_script_offset\030\007 \001(\014\"k\n\020NewB" - "lockTemplate\0220\n\006header\030\001 \001(\0132 .tari.rpc." - "NewBlockHeaderTemplate\022%\n\004body\030\002 \001(\0132\027.t" - "ari.rpc.AggregateBodyb\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_block_2eproto_deps[1] = - { - &::descriptor_table_transaction_2eproto, -}; -static ::absl::once_flag descriptor_table_block_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_block_2eproto = { - false, - false, - 1029, - descriptor_table_protodef_block_2eproto, - "block.proto", - &descriptor_table_block_2eproto_once, - descriptor_table_block_2eproto_deps, - 1, - 7, - schemas, - file_default_instances, - TableStruct_block_2eproto::offsets, - file_level_metadata_block_2eproto, - file_level_enum_descriptors_block_2eproto, - file_level_service_descriptors_block_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_block_2eproto_getter() { - return &descriptor_table_block_2eproto; -} -namespace tari { -namespace rpc { -const ::google::protobuf::EnumDescriptor* PowAlgo_PowAlgos_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_block_2eproto); - return file_level_enum_descriptors_block_2eproto[0]; -} -PROTOBUF_CONSTINIT const uint32_t PowAlgo_PowAlgos_internal_data_[] = { - 131072u, 0u, }; -bool PowAlgo_PowAlgos_IsValid(int value) { - return 0 <= value && value <= 1; -} -#if (__cplusplus < 201703) && \ - (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - -constexpr PowAlgo_PowAlgos PowAlgo::POW_ALGOS_RANDOMX; -constexpr PowAlgo_PowAlgos PowAlgo::POW_ALGOS_SHA3X; -constexpr PowAlgo_PowAlgos PowAlgo::PowAlgos_MIN; -constexpr PowAlgo_PowAlgos PowAlgo::PowAlgos_MAX; -constexpr int PowAlgo::PowAlgos_ARRAYSIZE; - -#endif // (__cplusplus < 201703) && - // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -// =================================================================== - -class BlockHeader::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._has_bits_); -}; - -BlockHeader::BlockHeader(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockHeader) -} -inline PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - hash_(arena, from.hash_), - prev_hash_(arena, from.prev_hash_), - output_mr_(arena, from.output_mr_), - kernel_mr_(arena, from.kernel_mr_), - input_mr_(arena, from.input_mr_), - total_kernel_offset_(arena, from.total_kernel_offset_), - total_script_offset_(arena, from.total_script_offset_), - validator_node_mr_(arena, from.validator_node_mr_) {} - -BlockHeader::BlockHeader( - ::google::protobuf::Arena* arena, - const BlockHeader& from) - : ::google::protobuf::Message(arena) { - BlockHeader* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pow_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>( - arena, *from._impl_.pow_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, height_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, height_), - offsetof(Impl_, version_) - - offsetof(Impl_, height_) + - sizeof(Impl_::version_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.BlockHeader) -} -inline PROTOBUF_NDEBUG_INLINE BlockHeader::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - hash_(arena), - prev_hash_(arena), - output_mr_(arena), - kernel_mr_(arena), - input_mr_(arena), - total_kernel_offset_(arena), - total_script_offset_(arena), - validator_node_mr_(arena) {} - -inline void BlockHeader::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, pow_), - 0, - offsetof(Impl_, version_) - - offsetof(Impl_, pow_) + - sizeof(Impl_::version_)); -} -BlockHeader::~BlockHeader() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockHeader) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockHeader::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.hash_.Destroy(); - _impl_.prev_hash_.Destroy(); - _impl_.output_mr_.Destroy(); - _impl_.kernel_mr_.Destroy(); - _impl_.input_mr_.Destroy(); - _impl_.total_kernel_offset_.Destroy(); - _impl_.total_script_offset_.Destroy(); - _impl_.validator_node_mr_.Destroy(); - delete _impl_.pow_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockHeader::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._cached_size_), - false, - }, - &BlockHeader::MergeImpl, - &BlockHeader::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockHeader::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeader) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.hash_.ClearToEmpty(); - _impl_.prev_hash_.ClearToEmpty(); - _impl_.output_mr_.ClearToEmpty(); - _impl_.kernel_mr_.ClearToEmpty(); - _impl_.input_mr_.ClearToEmpty(); - _impl_.total_kernel_offset_.ClearToEmpty(); - _impl_.total_script_offset_.ClearToEmpty(); - _impl_.validator_node_mr_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pow_ != nullptr); - _impl_.pow_->Clear(); - } - ::memset(&_impl_.height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockHeader::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 16, 1, 0, 2> BlockHeader::_table_ = { - { - PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_._has_bits_), - 0, // no _extensions_ - 17, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294836288, // skipmap - offsetof(decltype(_table_), field_entries), - 16, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_BlockHeader_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes hash = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.hash_)}}, - // uint32 version = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(BlockHeader, _impl_.version_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.version_)}}, - // uint64 height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.height_)}}, - // bytes prev_hash = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.prev_hash_)}}, - // uint64 timestamp = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.timestamp_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.timestamp_)}}, - // bytes output_mr = 6; - {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mr_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // bytes kernel_mr = 8; - {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mr_)}}, - // bytes input_mr = 9; - {::_pbi::TcParser::FastBS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.input_mr_)}}, - // bytes total_kernel_offset = 10; - {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_kernel_offset_)}}, - // uint64 nonce = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.nonce_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.nonce_)}}, - // .tari.rpc.ProofOfWork pow = 12; - {::_pbi::TcParser::FastMtS1, - {98, 0, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.pow_)}}, - // uint64 kernel_mmr_size = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.kernel_mmr_size_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mmr_size_)}}, - // uint64 output_mmr_size = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeader, _impl_.output_mmr_size_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mmr_size_)}}, - // bytes total_script_offset = 15; - {::_pbi::TcParser::FastBS1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_script_offset_)}}, - // bytes validator_node_mr = 16; - {::_pbi::TcParser::FastBS2, - {386, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_mr_)}}, - // uint64 validator_node_size = 17; - {::_pbi::TcParser::FastV64S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_size_)}}, - {::_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 - }}, {{ - // bytes hash = 1; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint32 version = 2; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 height = 3; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes prev_hash = 4; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.prev_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 timestamp = 5; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.timestamp_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes output_mr = 6; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes kernel_mr = 8; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes input_mr = 9; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.input_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes total_kernel_offset = 10; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_kernel_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 nonce = 11; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.nonce_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.ProofOfWork pow = 12; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.pow_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 kernel_mmr_size = 13; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.kernel_mmr_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 output_mmr_size = 14; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.output_mmr_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes total_script_offset = 15; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.total_script_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes validator_node_mr = 16; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_mr_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 validator_node_size = 17; - {PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.validator_node_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>()}, - }}, {{ - }}, -}; - -::uint8_t* BlockHeader::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockHeader) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes hash = 1; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // uint32 version = 2; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_version(), target); - } - - // uint64 height = 3; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_height(), target); - } - - // bytes prev_hash = 4; - if (!this->_internal_prev_hash().empty()) { - const std::string& _s = this->_internal_prev_hash(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // uint64 timestamp = 5; - if (this->_internal_timestamp() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_timestamp(), target); - } - - // bytes output_mr = 6; - if (!this->_internal_output_mr().empty()) { - const std::string& _s = this->_internal_output_mr(); - target = stream->WriteBytesMaybeAliased(6, _s, target); - } - - // bytes kernel_mr = 8; - if (!this->_internal_kernel_mr().empty()) { - const std::string& _s = this->_internal_kernel_mr(); - target = stream->WriteBytesMaybeAliased(8, _s, target); - } - - // bytes input_mr = 9; - if (!this->_internal_input_mr().empty()) { - const std::string& _s = this->_internal_input_mr(); - target = stream->WriteBytesMaybeAliased(9, _s, target); - } - - // bytes total_kernel_offset = 10; - if (!this->_internal_total_kernel_offset().empty()) { - const std::string& _s = this->_internal_total_kernel_offset(); - target = stream->WriteBytesMaybeAliased(10, _s, target); - } - - // uint64 nonce = 11; - if (this->_internal_nonce() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 11, this->_internal_nonce(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.ProofOfWork pow = 12; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, *_impl_.pow_, _impl_.pow_->GetCachedSize(), target, stream); - } - - // uint64 kernel_mmr_size = 13; - if (this->_internal_kernel_mmr_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_kernel_mmr_size(), target); - } - - // uint64 output_mmr_size = 14; - if (this->_internal_output_mmr_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 14, this->_internal_output_mmr_size(), target); - } - - // bytes total_script_offset = 15; - if (!this->_internal_total_script_offset().empty()) { - const std::string& _s = this->_internal_total_script_offset(); - target = stream->WriteBytesMaybeAliased(15, _s, target); - } - - // bytes validator_node_mr = 16; - if (!this->_internal_validator_node_mr().empty()) { - const std::string& _s = this->_internal_validator_node_mr(); - target = stream->WriteBytesMaybeAliased(16, _s, target); - } - - // uint64 validator_node_size = 17; - if (this->_internal_validator_node_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 17, this->_internal_validator_node_size(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockHeader) - return target; -} - -::size_t BlockHeader::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeader) - ::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 hash = 1; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes prev_hash = 4; - if (!this->_internal_prev_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_prev_hash()); - } - - // bytes output_mr = 6; - if (!this->_internal_output_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_output_mr()); - } - - // bytes kernel_mr = 8; - if (!this->_internal_kernel_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_kernel_mr()); - } - - // bytes input_mr = 9; - if (!this->_internal_input_mr().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_input_mr()); - } - - // bytes total_kernel_offset = 10; - if (!this->_internal_total_kernel_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_kernel_offset()); - } - - // bytes total_script_offset = 15; - if (!this->_internal_total_script_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_script_offset()); - } - - // bytes validator_node_mr = 16; - if (!this->_internal_validator_node_mr().empty()) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_validator_node_mr()); - } - - // .tari.rpc.ProofOfWork pow = 12; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pow_); - } - - // uint64 height = 3; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - // uint64 timestamp = 5; - if (this->_internal_timestamp() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_timestamp()); - } - - // uint64 nonce = 11; - if (this->_internal_nonce() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_nonce()); - } - - // uint64 kernel_mmr_size = 13; - if (this->_internal_kernel_mmr_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_kernel_mmr_size()); - } - - // uint64 output_mmr_size = 14; - if (this->_internal_output_mmr_size() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_output_mmr_size()); - } - - // uint64 validator_node_size = 17; - if (this->_internal_validator_node_size() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_size()); - } - - // uint32 version = 2; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockHeader::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:tari.rpc.BlockHeader) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_prev_hash().empty()) { - _this->_internal_set_prev_hash(from._internal_prev_hash()); - } - if (!from._internal_output_mr().empty()) { - _this->_internal_set_output_mr(from._internal_output_mr()); - } - if (!from._internal_kernel_mr().empty()) { - _this->_internal_set_kernel_mr(from._internal_kernel_mr()); - } - if (!from._internal_input_mr().empty()) { - _this->_internal_set_input_mr(from._internal_input_mr()); - } - if (!from._internal_total_kernel_offset().empty()) { - _this->_internal_set_total_kernel_offset(from._internal_total_kernel_offset()); - } - if (!from._internal_total_script_offset().empty()) { - _this->_internal_set_total_script_offset(from._internal_total_script_offset()); - } - if (!from._internal_validator_node_mr().empty()) { - _this->_internal_set_validator_node_mr(from._internal_validator_node_mr()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.pow_ != nullptr); - if (_this->_impl_.pow_ == nullptr) { - _this->_impl_.pow_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>(arena, *from._impl_.pow_); - } else { - _this->_impl_.pow_->MergeFrom(*from._impl_.pow_); - } - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - if (from._internal_timestamp() != 0) { - _this->_impl_.timestamp_ = from._impl_.timestamp_; - } - if (from._internal_nonce() != 0) { - _this->_impl_.nonce_ = from._impl_.nonce_; - } - if (from._internal_kernel_mmr_size() != 0) { - _this->_impl_.kernel_mmr_size_ = from._impl_.kernel_mmr_size_; - } - if (from._internal_output_mmr_size() != 0) { - _this->_impl_.output_mmr_size_ = from._impl_.output_mmr_size_; - } - if (from._internal_validator_node_size() != 0) { - _this->_impl_.validator_node_size_ = from._impl_.validator_node_size_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockHeader::CopyFrom(const BlockHeader& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockHeader) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockHeader::IsInitialized() const { - return true; -} - -void BlockHeader::InternalSwap(BlockHeader* PROTOBUF_RESTRICT 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_.hash_, &other->_impl_.hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.prev_hash_, &other->_impl_.prev_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.output_mr_, &other->_impl_.output_mr_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kernel_mr_, &other->_impl_.kernel_mr_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.input_mr_, &other->_impl_.input_mr_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.total_kernel_offset_, &other->_impl_.total_kernel_offset_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.total_script_offset_, &other->_impl_.total_script_offset_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.validator_node_mr_, &other->_impl_.validator_node_mr_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.version_) - + sizeof(BlockHeader::_impl_.version_) - - PROTOBUF_FIELD_OFFSET(BlockHeader, _impl_.pow_)>( - reinterpret_cast(&_impl_.pow_), - reinterpret_cast(&other->_impl_.pow_)); -} - -::google::protobuf::Metadata BlockHeader::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, - &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[0]); -} -// =================================================================== - -class ProofOfWork::_Internal { - public: -}; - -ProofOfWork::ProofOfWork(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ProofOfWork) -} -inline PROTOBUF_NDEBUG_INLINE ProofOfWork::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : pow_data_(arena, from.pow_data_), - _cached_size_{0} {} - -ProofOfWork::ProofOfWork( - ::google::protobuf::Arena* arena, - const ProofOfWork& from) - : ::google::protobuf::Message(arena) { - ProofOfWork* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.pow_algo_ = from._impl_.pow_algo_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ProofOfWork) -} -inline PROTOBUF_NDEBUG_INLINE ProofOfWork::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : pow_data_(arena), - _cached_size_{0} {} - -inline void ProofOfWork::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pow_algo_ = {}; -} -ProofOfWork::~ProofOfWork() { - // @@protoc_insertion_point(destructor:tari.rpc.ProofOfWork) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ProofOfWork::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.pow_data_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ProofOfWork::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_._cached_size_), - false, - }, - &ProofOfWork::MergeImpl, - &ProofOfWork::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ProofOfWork::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ProofOfWork) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.pow_data_.ClearToEmpty(); - _impl_.pow_algo_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ProofOfWork::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> ProofOfWork::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967286, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ProofOfWork_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes pow_data = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_data_)}}, - // uint64 pow_algo = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ProofOfWork, _impl_.pow_algo_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_algo_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 pow_algo = 1; - {PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_algo_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes pow_data = 4; - {PROTOBUF_FIELD_OFFSET(ProofOfWork, _impl_.pow_data_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ProofOfWork::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ProofOfWork) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_pow_algo(), target); - } - - // bytes pow_data = 4; - if (!this->_internal_pow_data().empty()) { - const std::string& _s = this->_internal_pow_data(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ProofOfWork) - return target; -} - -::size_t ProofOfWork::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ProofOfWork) - ::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 pow_data = 4; - if (!this->_internal_pow_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_pow_data()); - } - - // uint64 pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pow_algo()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ProofOfWork::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:tari.rpc.ProofOfWork) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_pow_data().empty()) { - _this->_internal_set_pow_data(from._internal_pow_data()); - } - if (from._internal_pow_algo() != 0) { - _this->_impl_.pow_algo_ = from._impl_.pow_algo_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ProofOfWork::CopyFrom(const ProofOfWork& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ProofOfWork) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ProofOfWork::IsInitialized() const { - return true; -} - -void ProofOfWork::InternalSwap(ProofOfWork* 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_.pow_data_, &other->_impl_.pow_data_, arena); - swap(_impl_.pow_algo_, other->_impl_.pow_algo_); -} - -::google::protobuf::Metadata ProofOfWork::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, - &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[1]); -} -// =================================================================== - -class PowAlgo::_Internal { - public: -}; - -PowAlgo::PowAlgo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.PowAlgo) -} -PowAlgo::PowAlgo( - ::google::protobuf::Arena* arena, const PowAlgo& from) - : PowAlgo(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE PowAlgo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void PowAlgo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.pow_algo_ = {}; -} -PowAlgo::~PowAlgo() { - // @@protoc_insertion_point(destructor:tari.rpc.PowAlgo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void PowAlgo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -PowAlgo::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_._cached_size_), - false, - }, - &PowAlgo::MergeImpl, - &PowAlgo::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void PowAlgo::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.PowAlgo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.pow_algo_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PowAlgo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> PowAlgo::_table_ = { - { - 0, // no _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 - &_PowAlgo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::PowAlgo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PowAlgo, _impl_.pow_algo_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_.pow_algo_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - {PROTOBUF_FIELD_OFFSET(PowAlgo, _impl_.pow_algo_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* PowAlgo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.PowAlgo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_pow_algo(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.PowAlgo) - return target; -} - -::size_t PowAlgo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.PowAlgo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - if (this->_internal_pow_algo() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_pow_algo()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void PowAlgo::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:tari.rpc.PowAlgo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_pow_algo() != 0) { - _this->_impl_.pow_algo_ = from._impl_.pow_algo_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void PowAlgo::CopyFrom(const PowAlgo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.PowAlgo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool PowAlgo::IsInitialized() const { - return true; -} - -void PowAlgo::InternalSwap(PowAlgo* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.pow_algo_, other->_impl_.pow_algo_); -} - -::google::protobuf::Metadata PowAlgo::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, - &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[2]); -} -// =================================================================== - -class Block::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Block, _impl_._has_bits_); -}; - -void Block::clear_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.body_ != nullptr) _impl_.body_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -Block::Block(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.Block) -} -inline PROTOBUF_NDEBUG_INLINE Block::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -Block::Block( - ::google::protobuf::Arena* arena, - const Block& from) - : ::google::protobuf::Message(arena) { - Block* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>( - arena, *from._impl_.header_) - : nullptr; - _impl_.body_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>( - arena, *from._impl_.body_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.Block) -} -inline PROTOBUF_NDEBUG_INLINE Block::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void Block::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, header_), - 0, - offsetof(Impl_, body_) - - offsetof(Impl_, header_) + - sizeof(Impl_::body_)); -} -Block::~Block() { - // @@protoc_insertion_point(destructor:tari.rpc.Block) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Block::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.header_; - delete _impl_.body_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Block::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Block, _impl_._cached_size_), - false, - }, - &Block::MergeImpl, - &Block::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Block::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.Block) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.header_ != nullptr); - _impl_.header_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.body_ != nullptr); - _impl_.body_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Block::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> Block::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Block, _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 - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Block_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::Block>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.AggregateBody body = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(Block, _impl_.body_)}}, - // .tari.rpc.BlockHeader header = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Block, _impl_.header_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.BlockHeader header = 1; - {PROTOBUF_FIELD_OFFSET(Block, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.AggregateBody body = 2; - {PROTOBUF_FIELD_OFFSET(Block, _impl_.body_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::BlockHeader>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, - }}, {{ - }}, -}; - -::uint8_t* Block::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Block) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.BlockHeader header = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.header_, _impl_.header_->GetCachedSize(), target, stream); - } - - // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Block) - return target; -} - -::size_t Block::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Block) - ::size_t total_size = 0; - - ::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 (cached_has_bits & 0x00000003u) { - // .tari.rpc.BlockHeader header = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.header_); - } - - // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.body_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Block::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:tari.rpc.Block) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.header_ != nullptr); - if (_this->_impl_.header_ == nullptr) { - _this->_impl_.header_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::BlockHeader>(arena, *from._impl_.header_); - } else { - _this->_impl_.header_->MergeFrom(*from._impl_.header_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.body_ != nullptr); - if (_this->_impl_.body_ == nullptr) { - _this->_impl_.body_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>(arena, *from._impl_.body_); - } else { - _this->_impl_.body_->MergeFrom(*from._impl_.body_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Block::CopyFrom(const Block& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.Block) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Block::IsInitialized() const { - return true; -} - -void Block::InternalSwap(Block* PROTOBUF_RESTRICT 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(Block, _impl_.body_) - + sizeof(Block::_impl_.body_) - - PROTOBUF_FIELD_OFFSET(Block, _impl_.header_)>( - reinterpret_cast(&_impl_.header_), - reinterpret_cast(&other->_impl_.header_)); -} - -::google::protobuf::Metadata Block::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, - &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[3]); -} -// =================================================================== - -class HistoricalBlock::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._has_bits_); -}; - -HistoricalBlock::HistoricalBlock(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.HistoricalBlock) -} -inline PROTOBUF_NDEBUG_INLINE HistoricalBlock::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -HistoricalBlock::HistoricalBlock( - ::google::protobuf::Arena* arena, - const HistoricalBlock& from) - : ::google::protobuf::Message(arena) { - HistoricalBlock* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.block_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>( - arena, *from._impl_.block_) - : nullptr; - _impl_.confirmations_ = from._impl_.confirmations_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.HistoricalBlock) -} -inline PROTOBUF_NDEBUG_INLINE HistoricalBlock::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void HistoricalBlock::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, block_), - 0, - offsetof(Impl_, confirmations_) - - offsetof(Impl_, block_) + - sizeof(Impl_::confirmations_)); -} -HistoricalBlock::~HistoricalBlock() { - // @@protoc_insertion_point(destructor:tari.rpc.HistoricalBlock) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void HistoricalBlock::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.block_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -HistoricalBlock::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_._cached_size_), - false, - }, - &HistoricalBlock::MergeImpl, - &HistoricalBlock::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void HistoricalBlock::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.HistoricalBlock) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.block_ != nullptr); - _impl_.block_->Clear(); - } - _impl_.confirmations_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* HistoricalBlock::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> HistoricalBlock::_table_ = { - { - PROTOBUF_FIELD_OFFSET(HistoricalBlock, _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), - &_HistoricalBlock_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::HistoricalBlock>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.Block block = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.block_)}}, - // uint64 confirmations = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(HistoricalBlock, _impl_.confirmations_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.confirmations_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 confirmations = 1; - {PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.confirmations_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.Block block = 2; - {PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.block_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Block>()}, - }}, {{ - }}, -}; - -::uint8_t* HistoricalBlock::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.HistoricalBlock) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 confirmations = 1; - if (this->_internal_confirmations() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_confirmations(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Block block = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.block_, _impl_.block_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.HistoricalBlock) - return target; -} - -::size_t HistoricalBlock::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.HistoricalBlock) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.Block block = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.block_); - } - - // uint64 confirmations = 1; - if (this->_internal_confirmations() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_confirmations()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void HistoricalBlock::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:tari.rpc.HistoricalBlock) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.block_ != nullptr); - if (_this->_impl_.block_ == nullptr) { - _this->_impl_.block_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Block>(arena, *from._impl_.block_); - } else { - _this->_impl_.block_->MergeFrom(*from._impl_.block_); - } - } - if (from._internal_confirmations() != 0) { - _this->_impl_.confirmations_ = from._impl_.confirmations_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void HistoricalBlock::CopyFrom(const HistoricalBlock& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.HistoricalBlock) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool HistoricalBlock::IsInitialized() const { - return true; -} - -void HistoricalBlock::InternalSwap(HistoricalBlock* PROTOBUF_RESTRICT 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(HistoricalBlock, _impl_.confirmations_) - + sizeof(HistoricalBlock::_impl_.confirmations_) - - PROTOBUF_FIELD_OFFSET(HistoricalBlock, _impl_.block_)>( - reinterpret_cast(&_impl_.block_), - reinterpret_cast(&other->_impl_.block_)); -} - -::google::protobuf::Metadata HistoricalBlock::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, - &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[4]); -} -// =================================================================== - -class NewBlockHeaderTemplate::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._has_bits_); -}; - -NewBlockHeaderTemplate::NewBlockHeaderTemplate(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockHeaderTemplate) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockHeaderTemplate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - prev_hash_(arena, from.prev_hash_), - total_kernel_offset_(arena, from.total_kernel_offset_), - total_script_offset_(arena, from.total_script_offset_) {} - -NewBlockHeaderTemplate::NewBlockHeaderTemplate( - ::google::protobuf::Arena* arena, - const NewBlockHeaderTemplate& from) - : ::google::protobuf::Message(arena) { - NewBlockHeaderTemplate* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.pow_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>( - arena, *from._impl_.pow_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, height_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, height_), - offsetof(Impl_, version_) - - offsetof(Impl_, height_) + - sizeof(Impl_::version_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockHeaderTemplate) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockHeaderTemplate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - prev_hash_(arena), - total_kernel_offset_(arena), - total_script_offset_(arena) {} - -inline void NewBlockHeaderTemplate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, pow_), - 0, - offsetof(Impl_, version_) - - offsetof(Impl_, pow_) + - sizeof(Impl_::version_)); -} -NewBlockHeaderTemplate::~NewBlockHeaderTemplate() { - // @@protoc_insertion_point(destructor:tari.rpc.NewBlockHeaderTemplate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void NewBlockHeaderTemplate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.prev_hash_.Destroy(); - _impl_.total_kernel_offset_.Destroy(); - _impl_.total_script_offset_.Destroy(); - delete _impl_.pow_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -NewBlockHeaderTemplate::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._cached_size_), - false, - }, - &NewBlockHeaderTemplate::MergeImpl, - &NewBlockHeaderTemplate::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void NewBlockHeaderTemplate::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockHeaderTemplate) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.prev_hash_.ClearToEmpty(); - _impl_.total_kernel_offset_.ClearToEmpty(); - _impl_.total_script_offset_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.pow_ != nullptr); - _impl_.pow_->Clear(); - } - ::memset(&_impl_.height_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.height_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NewBlockHeaderTemplate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 0, 2> NewBlockHeaderTemplate::_table_ = { - { - PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967200, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_NewBlockHeaderTemplate_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockHeaderTemplate>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint32 version = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NewBlockHeaderTemplate, _impl_.version_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.version_)}}, - // uint64 height = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(NewBlockHeaderTemplate, _impl_.height_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.height_)}}, - // bytes prev_hash = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.prev_hash_)}}, - // bytes total_kernel_offset = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_kernel_offset_)}}, - // .tari.rpc.ProofOfWork pow = 5; - {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.pow_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // bytes total_script_offset = 7; - {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_script_offset_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 version = 1; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 height = 2; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes prev_hash = 3; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.prev_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes total_kernel_offset = 4; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_kernel_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.ProofOfWork pow = 5; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.pow_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes total_script_offset = 7; - {PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.total_script_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::ProofOfWork>()}, - }}, {{ - }}, -}; - -::uint8_t* NewBlockHeaderTemplate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockHeaderTemplate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 version = 1; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_version(), target); - } - - // uint64 height = 2; - if (this->_internal_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_height(), target); - } - - // bytes prev_hash = 3; - if (!this->_internal_prev_hash().empty()) { - const std::string& _s = this->_internal_prev_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // bytes total_kernel_offset = 4; - if (!this->_internal_total_kernel_offset().empty()) { - const std::string& _s = this->_internal_total_kernel_offset(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.ProofOfWork pow = 5; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.pow_, _impl_.pow_->GetCachedSize(), target, stream); - } - - // bytes total_script_offset = 7; - if (!this->_internal_total_script_offset().empty()) { - const std::string& _s = this->_internal_total_script_offset(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockHeaderTemplate) - return target; -} - -::size_t NewBlockHeaderTemplate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockHeaderTemplate) - ::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 prev_hash = 3; - if (!this->_internal_prev_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_prev_hash()); - } - - // bytes total_kernel_offset = 4; - if (!this->_internal_total_kernel_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_kernel_offset()); - } - - // bytes total_script_offset = 7; - if (!this->_internal_total_script_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_total_script_offset()); - } - - // .tari.rpc.ProofOfWork pow = 5; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.pow_); - } - - // uint64 height = 2; - if (this->_internal_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_height()); - } - - // uint32 version = 1; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void NewBlockHeaderTemplate::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:tari.rpc.NewBlockHeaderTemplate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_prev_hash().empty()) { - _this->_internal_set_prev_hash(from._internal_prev_hash()); - } - if (!from._internal_total_kernel_offset().empty()) { - _this->_internal_set_total_kernel_offset(from._internal_total_kernel_offset()); - } - if (!from._internal_total_script_offset().empty()) { - _this->_internal_set_total_script_offset(from._internal_total_script_offset()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.pow_ != nullptr); - if (_this->_impl_.pow_ == nullptr) { - _this->_impl_.pow_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ProofOfWork>(arena, *from._impl_.pow_); - } else { - _this->_impl_.pow_->MergeFrom(*from._impl_.pow_); - } - } - if (from._internal_height() != 0) { - _this->_impl_.height_ = from._impl_.height_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void NewBlockHeaderTemplate::CopyFrom(const NewBlockHeaderTemplate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.NewBlockHeaderTemplate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool NewBlockHeaderTemplate::IsInitialized() const { - return true; -} - -void NewBlockHeaderTemplate::InternalSwap(NewBlockHeaderTemplate* PROTOBUF_RESTRICT 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_.prev_hash_, &other->_impl_.prev_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.total_kernel_offset_, &other->_impl_.total_kernel_offset_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.total_script_offset_, &other->_impl_.total_script_offset_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.version_) - + sizeof(NewBlockHeaderTemplate::_impl_.version_) - - PROTOBUF_FIELD_OFFSET(NewBlockHeaderTemplate, _impl_.pow_)>( - reinterpret_cast(&_impl_.pow_), - reinterpret_cast(&other->_impl_.pow_)); -} - -::google::protobuf::Metadata NewBlockHeaderTemplate::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, - &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[5]); -} -// =================================================================== - -class NewBlockTemplate::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._has_bits_); -}; - -void NewBlockTemplate::clear_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.body_ != nullptr) _impl_.body_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -NewBlockTemplate::NewBlockTemplate(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.NewBlockTemplate) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -NewBlockTemplate::NewBlockTemplate( - ::google::protobuf::Arena* arena, - const NewBlockTemplate& from) - : ::google::protobuf::Message(arena) { - NewBlockTemplate* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockHeaderTemplate>( - arena, *from._impl_.header_) - : nullptr; - _impl_.body_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>( - arena, *from._impl_.body_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.NewBlockTemplate) -} -inline PROTOBUF_NDEBUG_INLINE NewBlockTemplate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void NewBlockTemplate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, header_), - 0, - offsetof(Impl_, body_) - - offsetof(Impl_, header_) + - sizeof(Impl_::body_)); -} -NewBlockTemplate::~NewBlockTemplate() { - // @@protoc_insertion_point(destructor:tari.rpc.NewBlockTemplate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void NewBlockTemplate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.header_; - delete _impl_.body_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -NewBlockTemplate::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_._cached_size_), - false, - }, - &NewBlockTemplate::MergeImpl, - &NewBlockTemplate::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void NewBlockTemplate::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.NewBlockTemplate) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.header_ != nullptr); - _impl_.header_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.body_ != nullptr); - _impl_.body_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NewBlockTemplate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> NewBlockTemplate::_table_ = { - { - PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _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 - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_NewBlockTemplate_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::NewBlockTemplate>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.AggregateBody body = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.body_)}}, - // .tari.rpc.NewBlockHeaderTemplate header = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.header_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.NewBlockHeaderTemplate header = 1; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.AggregateBody body = 2; - {PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.body_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::NewBlockHeaderTemplate>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, - }}, {{ - }}, -}; - -::uint8_t* NewBlockTemplate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NewBlockTemplate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.NewBlockHeaderTemplate header = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.header_, _impl_.header_->GetCachedSize(), target, stream); - } - - // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NewBlockTemplate) - return target; -} - -::size_t NewBlockTemplate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NewBlockTemplate) - ::size_t total_size = 0; - - ::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 (cached_has_bits & 0x00000003u) { - // .tari.rpc.NewBlockHeaderTemplate header = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.header_); - } - - // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.body_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void NewBlockTemplate::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:tari.rpc.NewBlockTemplate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.header_ != nullptr); - if (_this->_impl_.header_ == nullptr) { - _this->_impl_.header_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::NewBlockHeaderTemplate>(arena, *from._impl_.header_); - } else { - _this->_impl_.header_->MergeFrom(*from._impl_.header_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.body_ != nullptr); - if (_this->_impl_.body_ == nullptr) { - _this->_impl_.body_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>(arena, *from._impl_.body_); - } else { - _this->_impl_.body_->MergeFrom(*from._impl_.body_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void NewBlockTemplate::CopyFrom(const NewBlockTemplate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.NewBlockTemplate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool NewBlockTemplate::IsInitialized() const { - return true; -} - -void NewBlockTemplate::InternalSwap(NewBlockTemplate* PROTOBUF_RESTRICT 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(NewBlockTemplate, _impl_.body_) - + sizeof(NewBlockTemplate::_impl_.body_) - - PROTOBUF_FIELD_OFFSET(NewBlockTemplate, _impl_.header_)>( - reinterpret_cast(&_impl_.header_), - reinterpret_cast(&other->_impl_.header_)); -} - -::google::protobuf::Metadata NewBlockTemplate::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_block_2eproto_getter, - &descriptor_table_block_2eproto_once, - file_level_metadata_block_2eproto[6]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_block_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/block.pb.h b/external/src/Tari/proto/gRPC/block.pb.h deleted file mode 100644 index ba5a6c6b..00000000 --- a/external/src/Tari/proto/gRPC/block.pb.h +++ /dev/null @@ -1,3304 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: block.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026000 -#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/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.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/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "transaction.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_block_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_block_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_block_2eproto; -namespace tari { -namespace rpc { -class Block; -struct BlockDefaultTypeInternal; -extern BlockDefaultTypeInternal _Block_default_instance_; -class BlockHeader; -struct BlockHeaderDefaultTypeInternal; -extern BlockHeaderDefaultTypeInternal _BlockHeader_default_instance_; -class HistoricalBlock; -struct HistoricalBlockDefaultTypeInternal; -extern HistoricalBlockDefaultTypeInternal _HistoricalBlock_default_instance_; -class NewBlockHeaderTemplate; -struct NewBlockHeaderTemplateDefaultTypeInternal; -extern NewBlockHeaderTemplateDefaultTypeInternal _NewBlockHeaderTemplate_default_instance_; -class NewBlockTemplate; -struct NewBlockTemplateDefaultTypeInternal; -extern NewBlockTemplateDefaultTypeInternal _NewBlockTemplate_default_instance_; -class PowAlgo; -struct PowAlgoDefaultTypeInternal; -extern PowAlgoDefaultTypeInternal _PowAlgo_default_instance_; -class ProofOfWork; -struct ProofOfWorkDefaultTypeInternal; -extern ProofOfWorkDefaultTypeInternal _ProofOfWork_default_instance_; -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace tari { -namespace rpc { -enum PowAlgo_PowAlgos : int { - PowAlgo_PowAlgos_POW_ALGOS_RANDOMX = 0, - PowAlgo_PowAlgos_POW_ALGOS_SHA3X = 1, - PowAlgo_PowAlgos_PowAlgo_PowAlgos_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - PowAlgo_PowAlgos_PowAlgo_PowAlgos_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool PowAlgo_PowAlgos_IsValid(int value); -extern const uint32_t PowAlgo_PowAlgos_internal_data_[]; -constexpr PowAlgo_PowAlgos PowAlgo_PowAlgos_PowAlgos_MIN = static_cast(0); -constexpr PowAlgo_PowAlgos PowAlgo_PowAlgos_PowAlgos_MAX = static_cast(1); -constexpr int PowAlgo_PowAlgos_PowAlgos_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -PowAlgo_PowAlgos_descriptor(); -template -const std::string& PowAlgo_PowAlgos_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to PowAlgos_Name()."); - return PowAlgo_PowAlgos_Name(static_cast(value)); -} -template <> -inline const std::string& PowAlgo_PowAlgos_Name(PowAlgo_PowAlgos value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool PowAlgo_PowAlgos_Parse(absl::string_view name, PowAlgo_PowAlgos* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PowAlgo_PowAlgos_descriptor(), name, value); -} - -// =================================================================== - - -// ------------------------------------------------------------------- - -class ProofOfWork final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ProofOfWork) */ { - public: - inline ProofOfWork() : ProofOfWork(nullptr) {} - ~ProofOfWork() override; - template - explicit PROTOBUF_CONSTEXPR ProofOfWork( - ::google::protobuf::internal::ConstantInitialized); - - inline ProofOfWork(const ProofOfWork& from) : ProofOfWork(nullptr, from) {} - inline ProofOfWork(ProofOfWork&& from) noexcept - : ProofOfWork(nullptr, std::move(from)) {} - inline ProofOfWork& operator=(const ProofOfWork& from) { - CopyFrom(from); - return *this; - } - inline ProofOfWork& operator=(ProofOfWork&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ProofOfWork& default_instance() { - return *internal_default_instance(); - } - static inline const ProofOfWork* internal_default_instance() { - return reinterpret_cast( - &_ProofOfWork_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(ProofOfWork& a, ProofOfWork& b) { a.Swap(&b); } - inline void Swap(ProofOfWork* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ProofOfWork* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ProofOfWork* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ProofOfWork& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ProofOfWork& from) { ProofOfWork::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ProofOfWork* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ProofOfWork"; } - - protected: - explicit ProofOfWork(::google::protobuf::Arena* arena); - ProofOfWork(::google::protobuf::Arena* arena, const ProofOfWork& from); - ProofOfWork(::google::protobuf::Arena* arena, ProofOfWork&& from) noexcept - : ProofOfWork(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPowDataFieldNumber = 4, - kPowAlgoFieldNumber = 1, - }; - // bytes pow_data = 4; - void clear_pow_data() ; - const std::string& pow_data() const; - template - void set_pow_data(Arg_&& arg, Args_... args); - std::string* mutable_pow_data(); - PROTOBUF_NODISCARD std::string* release_pow_data(); - void set_allocated_pow_data(std::string* value); - - private: - const std::string& _internal_pow_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_pow_data( - const std::string& value); - std::string* _internal_mutable_pow_data(); - - public: - // uint64 pow_algo = 1; - void clear_pow_algo() ; - ::uint64_t pow_algo() const; - void set_pow_algo(::uint64_t value); - - private: - ::uint64_t _internal_pow_algo() const; - void _internal_set_pow_algo(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ProofOfWork) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr pow_data_; - ::uint64_t pow_algo_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_block_2eproto; -}; -// ------------------------------------------------------------------- - -class PowAlgo final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgo) */ { - public: - inline PowAlgo() : PowAlgo(nullptr) {} - ~PowAlgo() override; - template - explicit PROTOBUF_CONSTEXPR PowAlgo( - ::google::protobuf::internal::ConstantInitialized); - - inline PowAlgo(const PowAlgo& from) : PowAlgo(nullptr, from) {} - inline PowAlgo(PowAlgo&& from) noexcept - : PowAlgo(nullptr, std::move(from)) {} - inline PowAlgo& operator=(const PowAlgo& from) { - CopyFrom(from); - return *this; - } - inline PowAlgo& operator=(PowAlgo&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PowAlgo& default_instance() { - return *internal_default_instance(); - } - static inline const PowAlgo* internal_default_instance() { - return reinterpret_cast( - &_PowAlgo_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(PowAlgo& a, PowAlgo& b) { a.Swap(&b); } - inline void Swap(PowAlgo* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PowAlgo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PowAlgo* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PowAlgo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const PowAlgo& from) { PowAlgo::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PowAlgo* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.PowAlgo"; } - - protected: - explicit PowAlgo(::google::protobuf::Arena* arena); - PowAlgo(::google::protobuf::Arena* arena, const PowAlgo& from); - PowAlgo(::google::protobuf::Arena* arena, PowAlgo&& from) noexcept - : PowAlgo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - using PowAlgos = PowAlgo_PowAlgos; - static constexpr PowAlgos POW_ALGOS_RANDOMX = PowAlgo_PowAlgos_POW_ALGOS_RANDOMX; - static constexpr PowAlgos POW_ALGOS_SHA3X = PowAlgo_PowAlgos_POW_ALGOS_SHA3X; - static inline bool PowAlgos_IsValid(int value) { - return PowAlgo_PowAlgos_IsValid(value); - } - static constexpr PowAlgos PowAlgos_MIN = PowAlgo_PowAlgos_PowAlgos_MIN; - static constexpr PowAlgos PowAlgos_MAX = PowAlgo_PowAlgos_PowAlgos_MAX; - static constexpr int PowAlgos_ARRAYSIZE = PowAlgo_PowAlgos_PowAlgos_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* PowAlgos_descriptor() { - return PowAlgo_PowAlgos_descriptor(); - } - template - static inline const std::string& PowAlgos_Name(T value) { - return PowAlgo_PowAlgos_Name(value); - } - static inline bool PowAlgos_Parse(absl::string_view name, PowAlgos* value) { - return PowAlgo_PowAlgos_Parse(name, value); - } - - // accessors ------------------------------------------------------- - enum : int { - kPowAlgoFieldNumber = 1, - }; - // .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; - void clear_pow_algo() ; - ::tari::rpc::PowAlgo_PowAlgos pow_algo() const; - void set_pow_algo(::tari::rpc::PowAlgo_PowAlgos value); - - private: - ::tari::rpc::PowAlgo_PowAlgos _internal_pow_algo() const; - void _internal_set_pow_algo(::tari::rpc::PowAlgo_PowAlgos value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.PowAlgo) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int pow_algo_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_block_2eproto; -}; -// ------------------------------------------------------------------- - -class NewBlockHeaderTemplate final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockHeaderTemplate) */ { - public: - inline NewBlockHeaderTemplate() : NewBlockHeaderTemplate(nullptr) {} - ~NewBlockHeaderTemplate() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockHeaderTemplate( - ::google::protobuf::internal::ConstantInitialized); - - inline NewBlockHeaderTemplate(const NewBlockHeaderTemplate& from) : NewBlockHeaderTemplate(nullptr, from) {} - inline NewBlockHeaderTemplate(NewBlockHeaderTemplate&& from) noexcept - : NewBlockHeaderTemplate(nullptr, std::move(from)) {} - inline NewBlockHeaderTemplate& operator=(const NewBlockHeaderTemplate& from) { - CopyFrom(from); - return *this; - } - inline NewBlockHeaderTemplate& operator=(NewBlockHeaderTemplate&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NewBlockHeaderTemplate& default_instance() { - return *internal_default_instance(); - } - static inline const NewBlockHeaderTemplate* internal_default_instance() { - return reinterpret_cast( - &_NewBlockHeaderTemplate_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(NewBlockHeaderTemplate& a, NewBlockHeaderTemplate& b) { a.Swap(&b); } - inline void Swap(NewBlockHeaderTemplate* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NewBlockHeaderTemplate* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NewBlockHeaderTemplate* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewBlockHeaderTemplate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const NewBlockHeaderTemplate& from) { NewBlockHeaderTemplate::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockHeaderTemplate* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockHeaderTemplate"; } - - protected: - explicit NewBlockHeaderTemplate(::google::protobuf::Arena* arena); - NewBlockHeaderTemplate(::google::protobuf::Arena* arena, const NewBlockHeaderTemplate& from); - NewBlockHeaderTemplate(::google::protobuf::Arena* arena, NewBlockHeaderTemplate&& from) noexcept - : NewBlockHeaderTemplate(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPrevHashFieldNumber = 3, - kTotalKernelOffsetFieldNumber = 4, - kTotalScriptOffsetFieldNumber = 7, - kPowFieldNumber = 5, - kHeightFieldNumber = 2, - kVersionFieldNumber = 1, - }; - // bytes prev_hash = 3; - void clear_prev_hash() ; - const std::string& prev_hash() const; - template - void set_prev_hash(Arg_&& arg, Args_... args); - std::string* mutable_prev_hash(); - PROTOBUF_NODISCARD std::string* release_prev_hash(); - void set_allocated_prev_hash(std::string* value); - - private: - const std::string& _internal_prev_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_prev_hash( - const std::string& value); - std::string* _internal_mutable_prev_hash(); - - public: - // bytes total_kernel_offset = 4; - void clear_total_kernel_offset() ; - const std::string& total_kernel_offset() const; - template - void set_total_kernel_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_kernel_offset(); - PROTOBUF_NODISCARD std::string* release_total_kernel_offset(); - void set_allocated_total_kernel_offset(std::string* value); - - private: - const std::string& _internal_total_kernel_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_kernel_offset( - const std::string& value); - std::string* _internal_mutable_total_kernel_offset(); - - public: - // bytes total_script_offset = 7; - void clear_total_script_offset() ; - const std::string& total_script_offset() const; - template - void set_total_script_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_script_offset(); - PROTOBUF_NODISCARD std::string* release_total_script_offset(); - void set_allocated_total_script_offset(std::string* value); - - private: - const std::string& _internal_total_script_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_script_offset( - const std::string& value); - std::string* _internal_mutable_total_script_offset(); - - public: - // .tari.rpc.ProofOfWork pow = 5; - bool has_pow() const; - void clear_pow() ; - const ::tari::rpc::ProofOfWork& pow() const; - PROTOBUF_NODISCARD ::tari::rpc::ProofOfWork* release_pow(); - ::tari::rpc::ProofOfWork* mutable_pow(); - void set_allocated_pow(::tari::rpc::ProofOfWork* value); - void unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value); - ::tari::rpc::ProofOfWork* unsafe_arena_release_pow(); - - private: - const ::tari::rpc::ProofOfWork& _internal_pow() const; - ::tari::rpc::ProofOfWork* _internal_mutable_pow(); - - public: - // uint64 height = 2; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); - - private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); - - public: - // uint32 version = 1; - void clear_version() ; - ::uint32_t version() const; - void set_version(::uint32_t value); - - private: - ::uint32_t _internal_version() const; - void _internal_set_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockHeaderTemplate) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr prev_hash_; - ::google::protobuf::internal::ArenaStringPtr total_kernel_offset_; - ::google::protobuf::internal::ArenaStringPtr total_script_offset_; - ::tari::rpc::ProofOfWork* pow_; - ::uint64_t height_; - ::uint32_t version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_block_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockHeader final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeader) */ { - public: - inline BlockHeader() : BlockHeader(nullptr) {} - ~BlockHeader() override; - template - explicit PROTOBUF_CONSTEXPR BlockHeader( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockHeader(const BlockHeader& from) : BlockHeader(nullptr, from) {} - inline BlockHeader(BlockHeader&& from) noexcept - : BlockHeader(nullptr, std::move(from)) {} - inline BlockHeader& operator=(const BlockHeader& from) { - CopyFrom(from); - return *this; - } - inline BlockHeader& operator=(BlockHeader&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockHeader& default_instance() { - return *internal_default_instance(); - } - static inline const BlockHeader* internal_default_instance() { - return reinterpret_cast( - &_BlockHeader_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(BlockHeader& a, BlockHeader& b) { a.Swap(&b); } - inline void Swap(BlockHeader* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockHeader* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockHeader* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockHeader& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockHeader& from) { BlockHeader::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockHeader* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeader"; } - - protected: - explicit BlockHeader(::google::protobuf::Arena* arena); - BlockHeader(::google::protobuf::Arena* arena, const BlockHeader& from); - BlockHeader(::google::protobuf::Arena* arena, BlockHeader&& from) noexcept - : BlockHeader(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHashFieldNumber = 1, - kPrevHashFieldNumber = 4, - kOutputMrFieldNumber = 6, - kKernelMrFieldNumber = 8, - kInputMrFieldNumber = 9, - kTotalKernelOffsetFieldNumber = 10, - kTotalScriptOffsetFieldNumber = 15, - kValidatorNodeMrFieldNumber = 16, - kPowFieldNumber = 12, - kHeightFieldNumber = 3, - kTimestampFieldNumber = 5, - kNonceFieldNumber = 11, - kKernelMmrSizeFieldNumber = 13, - kOutputMmrSizeFieldNumber = 14, - kValidatorNodeSizeFieldNumber = 17, - kVersionFieldNumber = 2, - }; - // bytes hash = 1; - void clear_hash() ; - const std::string& hash() const; - template - void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); - - private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); - - public: - // bytes prev_hash = 4; - void clear_prev_hash() ; - const std::string& prev_hash() const; - template - void set_prev_hash(Arg_&& arg, Args_... args); - std::string* mutable_prev_hash(); - PROTOBUF_NODISCARD std::string* release_prev_hash(); - void set_allocated_prev_hash(std::string* value); - - private: - const std::string& _internal_prev_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_prev_hash( - const std::string& value); - std::string* _internal_mutable_prev_hash(); - - public: - // bytes output_mr = 6; - void clear_output_mr() ; - const std::string& output_mr() const; - template - void set_output_mr(Arg_&& arg, Args_... args); - std::string* mutable_output_mr(); - PROTOBUF_NODISCARD std::string* release_output_mr(); - void set_allocated_output_mr(std::string* value); - - private: - const std::string& _internal_output_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_mr( - const std::string& value); - std::string* _internal_mutable_output_mr(); - - public: - // bytes kernel_mr = 8; - void clear_kernel_mr() ; - const std::string& kernel_mr() const; - template - void set_kernel_mr(Arg_&& arg, Args_... args); - std::string* mutable_kernel_mr(); - PROTOBUF_NODISCARD std::string* release_kernel_mr(); - void set_allocated_kernel_mr(std::string* value); - - private: - const std::string& _internal_kernel_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_kernel_mr( - const std::string& value); - std::string* _internal_mutable_kernel_mr(); - - public: - // bytes input_mr = 9; - void clear_input_mr() ; - const std::string& input_mr() const; - template - void set_input_mr(Arg_&& arg, Args_... args); - std::string* mutable_input_mr(); - PROTOBUF_NODISCARD std::string* release_input_mr(); - void set_allocated_input_mr(std::string* value); - - private: - const std::string& _internal_input_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_mr( - const std::string& value); - std::string* _internal_mutable_input_mr(); - - public: - // bytes total_kernel_offset = 10; - void clear_total_kernel_offset() ; - const std::string& total_kernel_offset() const; - template - void set_total_kernel_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_kernel_offset(); - PROTOBUF_NODISCARD std::string* release_total_kernel_offset(); - void set_allocated_total_kernel_offset(std::string* value); - - private: - const std::string& _internal_total_kernel_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_kernel_offset( - const std::string& value); - std::string* _internal_mutable_total_kernel_offset(); - - public: - // bytes total_script_offset = 15; - void clear_total_script_offset() ; - const std::string& total_script_offset() const; - template - void set_total_script_offset(Arg_&& arg, Args_... args); - std::string* mutable_total_script_offset(); - PROTOBUF_NODISCARD std::string* release_total_script_offset(); - void set_allocated_total_script_offset(std::string* value); - - private: - const std::string& _internal_total_script_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_total_script_offset( - const std::string& value); - std::string* _internal_mutable_total_script_offset(); - - public: - // bytes validator_node_mr = 16; - void clear_validator_node_mr() ; - const std::string& validator_node_mr() const; - template - void set_validator_node_mr(Arg_&& arg, Args_... args); - std::string* mutable_validator_node_mr(); - PROTOBUF_NODISCARD std::string* release_validator_node_mr(); - void set_allocated_validator_node_mr(std::string* value); - - private: - const std::string& _internal_validator_node_mr() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_validator_node_mr( - const std::string& value); - std::string* _internal_mutable_validator_node_mr(); - - public: - // .tari.rpc.ProofOfWork pow = 12; - bool has_pow() const; - void clear_pow() ; - const ::tari::rpc::ProofOfWork& pow() const; - PROTOBUF_NODISCARD ::tari::rpc::ProofOfWork* release_pow(); - ::tari::rpc::ProofOfWork* mutable_pow(); - void set_allocated_pow(::tari::rpc::ProofOfWork* value); - void unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value); - ::tari::rpc::ProofOfWork* unsafe_arena_release_pow(); - - private: - const ::tari::rpc::ProofOfWork& _internal_pow() const; - ::tari::rpc::ProofOfWork* _internal_mutable_pow(); - - public: - // uint64 height = 3; - void clear_height() ; - ::uint64_t height() const; - void set_height(::uint64_t value); - - private: - ::uint64_t _internal_height() const; - void _internal_set_height(::uint64_t value); - - public: - // uint64 timestamp = 5; - void clear_timestamp() ; - ::uint64_t timestamp() const; - void set_timestamp(::uint64_t value); - - private: - ::uint64_t _internal_timestamp() const; - void _internal_set_timestamp(::uint64_t value); - - public: - // uint64 nonce = 11; - void clear_nonce() ; - ::uint64_t nonce() const; - void set_nonce(::uint64_t value); - - private: - ::uint64_t _internal_nonce() const; - void _internal_set_nonce(::uint64_t value); - - public: - // uint64 kernel_mmr_size = 13; - void clear_kernel_mmr_size() ; - ::uint64_t kernel_mmr_size() const; - void set_kernel_mmr_size(::uint64_t value); - - private: - ::uint64_t _internal_kernel_mmr_size() const; - void _internal_set_kernel_mmr_size(::uint64_t value); - - public: - // uint64 output_mmr_size = 14; - void clear_output_mmr_size() ; - ::uint64_t output_mmr_size() const; - void set_output_mmr_size(::uint64_t value); - - private: - ::uint64_t _internal_output_mmr_size() const; - void _internal_set_output_mmr_size(::uint64_t value); - - public: - // uint64 validator_node_size = 17; - void clear_validator_node_size() ; - ::uint64_t validator_node_size() const; - void set_validator_node_size(::uint64_t value); - - private: - ::uint64_t _internal_validator_node_size() const; - void _internal_set_validator_node_size(::uint64_t value); - - public: - // uint32 version = 2; - void clear_version() ; - ::uint32_t version() const; - void set_version(::uint32_t value); - - private: - ::uint32_t _internal_version() const; - void _internal_set_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockHeader) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 16, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr hash_; - ::google::protobuf::internal::ArenaStringPtr prev_hash_; - ::google::protobuf::internal::ArenaStringPtr output_mr_; - ::google::protobuf::internal::ArenaStringPtr kernel_mr_; - ::google::protobuf::internal::ArenaStringPtr input_mr_; - ::google::protobuf::internal::ArenaStringPtr total_kernel_offset_; - ::google::protobuf::internal::ArenaStringPtr total_script_offset_; - ::google::protobuf::internal::ArenaStringPtr validator_node_mr_; - ::tari::rpc::ProofOfWork* pow_; - ::uint64_t height_; - ::uint64_t timestamp_; - ::uint64_t nonce_; - ::uint64_t kernel_mmr_size_; - ::uint64_t output_mmr_size_; - ::uint64_t validator_node_size_; - ::uint32_t version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_block_2eproto; -}; -// ------------------------------------------------------------------- - -class NewBlockTemplate final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NewBlockTemplate) */ { - public: - inline NewBlockTemplate() : NewBlockTemplate(nullptr) {} - ~NewBlockTemplate() override; - template - explicit PROTOBUF_CONSTEXPR NewBlockTemplate( - ::google::protobuf::internal::ConstantInitialized); - - inline NewBlockTemplate(const NewBlockTemplate& from) : NewBlockTemplate(nullptr, from) {} - inline NewBlockTemplate(NewBlockTemplate&& from) noexcept - : NewBlockTemplate(nullptr, std::move(from)) {} - inline NewBlockTemplate& operator=(const NewBlockTemplate& from) { - CopyFrom(from); - return *this; - } - inline NewBlockTemplate& operator=(NewBlockTemplate&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NewBlockTemplate& default_instance() { - return *internal_default_instance(); - } - static inline const NewBlockTemplate* internal_default_instance() { - return reinterpret_cast( - &_NewBlockTemplate_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(NewBlockTemplate& a, NewBlockTemplate& b) { a.Swap(&b); } - inline void Swap(NewBlockTemplate* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NewBlockTemplate* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NewBlockTemplate* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NewBlockTemplate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const NewBlockTemplate& from) { NewBlockTemplate::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NewBlockTemplate* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.NewBlockTemplate"; } - - protected: - explicit NewBlockTemplate(::google::protobuf::Arena* arena); - NewBlockTemplate(::google::protobuf::Arena* arena, const NewBlockTemplate& from); - NewBlockTemplate(::google::protobuf::Arena* arena, NewBlockTemplate&& from) noexcept - : NewBlockTemplate(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeaderFieldNumber = 1, - kBodyFieldNumber = 2, - }; - // .tari.rpc.NewBlockHeaderTemplate header = 1; - bool has_header() const; - void clear_header() ; - const ::tari::rpc::NewBlockHeaderTemplate& header() const; - PROTOBUF_NODISCARD ::tari::rpc::NewBlockHeaderTemplate* release_header(); - ::tari::rpc::NewBlockHeaderTemplate* mutable_header(); - void set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value); - void unsafe_arena_set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value); - ::tari::rpc::NewBlockHeaderTemplate* unsafe_arena_release_header(); - - private: - const ::tari::rpc::NewBlockHeaderTemplate& _internal_header() const; - ::tari::rpc::NewBlockHeaderTemplate* _internal_mutable_header(); - - public: - // .tari.rpc.AggregateBody body = 2; - bool has_body() const; - void clear_body() ; - const ::tari::rpc::AggregateBody& body() const; - PROTOBUF_NODISCARD ::tari::rpc::AggregateBody* release_body(); - ::tari::rpc::AggregateBody* mutable_body(); - void set_allocated_body(::tari::rpc::AggregateBody* value); - void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value); - ::tari::rpc::AggregateBody* unsafe_arena_release_body(); - - private: - const ::tari::rpc::AggregateBody& _internal_body() const; - ::tari::rpc::AggregateBody* _internal_mutable_body(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.NewBlockTemplate) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::NewBlockHeaderTemplate* header_; - ::tari::rpc::AggregateBody* body_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_block_2eproto; -}; -// ------------------------------------------------------------------- - -class Block final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.Block) */ { - public: - inline Block() : Block(nullptr) {} - ~Block() override; - template - explicit PROTOBUF_CONSTEXPR Block( - ::google::protobuf::internal::ConstantInitialized); - - inline Block(const Block& from) : Block(nullptr, from) {} - inline Block(Block&& from) noexcept - : Block(nullptr, std::move(from)) {} - inline Block& operator=(const Block& from) { - CopyFrom(from); - return *this; - } - inline Block& operator=(Block&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Block& default_instance() { - return *internal_default_instance(); - } - static inline const Block* internal_default_instance() { - return reinterpret_cast( - &_Block_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(Block& a, Block& b) { a.Swap(&b); } - inline void Swap(Block* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Block* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Block* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Block& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Block& from) { Block::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Block* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.Block"; } - - protected: - explicit Block(::google::protobuf::Arena* arena); - Block(::google::protobuf::Arena* arena, const Block& from); - Block(::google::protobuf::Arena* arena, Block&& from) noexcept - : Block(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeaderFieldNumber = 1, - kBodyFieldNumber = 2, - }; - // .tari.rpc.BlockHeader header = 1; - bool has_header() const; - void clear_header() ; - const ::tari::rpc::BlockHeader& header() const; - PROTOBUF_NODISCARD ::tari::rpc::BlockHeader* release_header(); - ::tari::rpc::BlockHeader* mutable_header(); - void set_allocated_header(::tari::rpc::BlockHeader* value); - void unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value); - ::tari::rpc::BlockHeader* unsafe_arena_release_header(); - - private: - const ::tari::rpc::BlockHeader& _internal_header() const; - ::tari::rpc::BlockHeader* _internal_mutable_header(); - - public: - // .tari.rpc.AggregateBody body = 2; - bool has_body() const; - void clear_body() ; - const ::tari::rpc::AggregateBody& body() const; - PROTOBUF_NODISCARD ::tari::rpc::AggregateBody* release_body(); - ::tari::rpc::AggregateBody* mutable_body(); - void set_allocated_body(::tari::rpc::AggregateBody* value); - void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value); - ::tari::rpc::AggregateBody* unsafe_arena_release_body(); - - private: - const ::tari::rpc::AggregateBody& _internal_body() const; - ::tari::rpc::AggregateBody* _internal_mutable_body(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.Block) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::BlockHeader* header_; - ::tari::rpc::AggregateBody* body_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_block_2eproto; -}; -// ------------------------------------------------------------------- - -class HistoricalBlock final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.HistoricalBlock) */ { - public: - inline HistoricalBlock() : HistoricalBlock(nullptr) {} - ~HistoricalBlock() override; - template - explicit PROTOBUF_CONSTEXPR HistoricalBlock( - ::google::protobuf::internal::ConstantInitialized); - - inline HistoricalBlock(const HistoricalBlock& from) : HistoricalBlock(nullptr, from) {} - inline HistoricalBlock(HistoricalBlock&& from) noexcept - : HistoricalBlock(nullptr, std::move(from)) {} - inline HistoricalBlock& operator=(const HistoricalBlock& from) { - CopyFrom(from); - return *this; - } - inline HistoricalBlock& operator=(HistoricalBlock&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const HistoricalBlock& default_instance() { - return *internal_default_instance(); - } - static inline const HistoricalBlock* internal_default_instance() { - return reinterpret_cast( - &_HistoricalBlock_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(HistoricalBlock& a, HistoricalBlock& b) { a.Swap(&b); } - inline void Swap(HistoricalBlock* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HistoricalBlock* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HistoricalBlock* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const HistoricalBlock& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const HistoricalBlock& from) { HistoricalBlock::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(HistoricalBlock* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.HistoricalBlock"; } - - protected: - explicit HistoricalBlock(::google::protobuf::Arena* arena); - HistoricalBlock(::google::protobuf::Arena* arena, const HistoricalBlock& from); - HistoricalBlock(::google::protobuf::Arena* arena, HistoricalBlock&& from) noexcept - : HistoricalBlock(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBlockFieldNumber = 2, - kConfirmationsFieldNumber = 1, - }; - // .tari.rpc.Block block = 2; - bool has_block() const; - void clear_block() ; - const ::tari::rpc::Block& block() const; - PROTOBUF_NODISCARD ::tari::rpc::Block* release_block(); - ::tari::rpc::Block* mutable_block(); - void set_allocated_block(::tari::rpc::Block* value); - void unsafe_arena_set_allocated_block(::tari::rpc::Block* value); - ::tari::rpc::Block* unsafe_arena_release_block(); - - private: - const ::tari::rpc::Block& _internal_block() const; - ::tari::rpc::Block* _internal_mutable_block(); - - public: - // uint64 confirmations = 1; - void clear_confirmations() ; - ::uint64_t confirmations() const; - void set_confirmations(::uint64_t value); - - private: - ::uint64_t _internal_confirmations() const; - void _internal_set_confirmations(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.HistoricalBlock) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Block* block_; - ::uint64_t confirmations_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_block_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// BlockHeader - -// bytes hash = 1; -inline void BlockHeader::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.ClearToEmpty(); -} -inline const std::string& BlockHeader::hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.hash) - return _internal_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.hash) -} -inline std::string* BlockHeader::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.hash) - return _s; -} -inline const std::string& BlockHeader::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hash_.Get(); -} -inline void BlockHeader::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.hash_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.hash) - return _impl_.hash_.Release(); -} -inline void BlockHeader::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.hash) -} - -// uint32 version = 2; -inline void BlockHeader::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = 0u; -} -inline ::uint32_t BlockHeader::version() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.version) - return _internal_version(); -} -inline void BlockHeader::set_version(::uint32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.version) -} -inline ::uint32_t BlockHeader::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_; -} -inline void BlockHeader::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = value; -} - -// uint64 height = 3; -inline void BlockHeader::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeader::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.height) - return _internal_height(); -} -inline void BlockHeader::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.height) -} -inline ::uint64_t BlockHeader::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void BlockHeader::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; -} - -// bytes prev_hash = 4; -inline void BlockHeader::clear_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.ClearToEmpty(); -} -inline const std::string& BlockHeader::prev_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.prev_hash) - return _internal_prev_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_prev_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.prev_hash) -} -inline std::string* BlockHeader::mutable_prev_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_prev_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.prev_hash) - return _s; -} -inline const std::string& BlockHeader::_internal_prev_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.prev_hash_.Get(); -} -inline void BlockHeader::_internal_set_prev_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.prev_hash_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.prev_hash) - return _impl_.prev_hash_.Release(); -} -inline void BlockHeader::set_allocated_prev_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.prev_hash_.IsDefault()) { - _impl_.prev_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.prev_hash) -} - -// uint64 timestamp = 5; -inline void BlockHeader::clear_timestamp() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.timestamp_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeader::timestamp() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.timestamp) - return _internal_timestamp(); -} -inline void BlockHeader::set_timestamp(::uint64_t value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.timestamp) -} -inline ::uint64_t BlockHeader::_internal_timestamp() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.timestamp_; -} -inline void BlockHeader::_internal_set_timestamp(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.timestamp_ = value; -} - -// bytes output_mr = 6; -inline void BlockHeader::clear_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_mr_.ClearToEmpty(); -} -inline const std::string& BlockHeader::output_mr() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.output_mr) - return _internal_output_mr(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_output_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_mr_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.output_mr) -} -inline std::string* BlockHeader::mutable_output_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_output_mr(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.output_mr) - return _s; -} -inline const std::string& BlockHeader::_internal_output_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.output_mr_.Get(); -} -inline void BlockHeader::_internal_set_output_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_mr_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.output_mr_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_output_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.output_mr) - return _impl_.output_mr_.Release(); -} -inline void BlockHeader::set_allocated_output_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.output_mr_.IsDefault()) { - _impl_.output_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.output_mr) -} - -// bytes kernel_mr = 8; -inline void BlockHeader::clear_kernel_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_mr_.ClearToEmpty(); -} -inline const std::string& BlockHeader::kernel_mr() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.kernel_mr) - return _internal_kernel_mr(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_kernel_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_mr_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.kernel_mr) -} -inline std::string* BlockHeader::mutable_kernel_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_kernel_mr(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.kernel_mr) - return _s; -} -inline const std::string& BlockHeader::_internal_kernel_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.kernel_mr_.Get(); -} -inline void BlockHeader::_internal_set_kernel_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_mr_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_kernel_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.kernel_mr_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_kernel_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.kernel_mr) - return _impl_.kernel_mr_.Release(); -} -inline void BlockHeader::set_allocated_kernel_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.kernel_mr_.IsDefault()) { - _impl_.kernel_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.kernel_mr) -} - -// bytes input_mr = 9; -inline void BlockHeader::clear_input_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_mr_.ClearToEmpty(); -} -inline const std::string& BlockHeader::input_mr() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.input_mr) - return _internal_input_mr(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_input_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_mr_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.input_mr) -} -inline std::string* BlockHeader::mutable_input_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_input_mr(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.input_mr) - return _s; -} -inline const std::string& BlockHeader::_internal_input_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.input_mr_.Get(); -} -inline void BlockHeader::_internal_set_input_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_mr_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_input_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.input_mr_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_input_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.input_mr) - return _impl_.input_mr_.Release(); -} -inline void BlockHeader::set_allocated_input_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.input_mr_.IsDefault()) { - _impl_.input_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.input_mr) -} - -// bytes total_kernel_offset = 10; -inline void BlockHeader::clear_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.ClearToEmpty(); -} -inline const std::string& BlockHeader::total_kernel_offset() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.total_kernel_offset) - return _internal_total_kernel_offset(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_kernel_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.total_kernel_offset) -} -inline std::string* BlockHeader::mutable_total_kernel_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_kernel_offset(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.total_kernel_offset) - return _s; -} -inline const std::string& BlockHeader::_internal_total_kernel_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_kernel_offset_.Get(); -} -inline void BlockHeader::_internal_set_total_kernel_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.total_kernel_offset_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.total_kernel_offset) - return _impl_.total_kernel_offset_.Release(); -} -inline void BlockHeader::set_allocated_total_kernel_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_kernel_offset_.IsDefault()) { - _impl_.total_kernel_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.total_kernel_offset) -} - -// uint64 nonce = 11; -inline void BlockHeader::clear_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.nonce_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeader::nonce() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.nonce) - return _internal_nonce(); -} -inline void BlockHeader::set_nonce(::uint64_t value) { - _internal_set_nonce(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.nonce) -} -inline ::uint64_t BlockHeader::_internal_nonce() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.nonce_; -} -inline void BlockHeader::_internal_set_nonce(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.nonce_ = value; -} - -// .tari.rpc.ProofOfWork pow = 12; -inline bool BlockHeader::has_pow() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pow_ != nullptr); - return value; -} -inline void BlockHeader::clear_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pow_ != nullptr) _impl_.pow_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::ProofOfWork& BlockHeader::_internal_pow() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::ProofOfWork* p = _impl_.pow_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ProofOfWork_default_instance_); -} -inline const ::tari::rpc::ProofOfWork& BlockHeader::pow() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.pow) - return _internal_pow(); -} -inline void BlockHeader::unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pow_); - } - _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.BlockHeader.pow) -} -inline ::tari::rpc::ProofOfWork* BlockHeader::release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::ProofOfWork* released = _impl_.pow_; - _impl_.pow_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::ProofOfWork* BlockHeader::unsafe_arena_release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.pow) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::ProofOfWork* temp = _impl_.pow_; - _impl_.pow_ = nullptr; - return temp; -} -inline ::tari::rpc::ProofOfWork* BlockHeader::_internal_mutable_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pow_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ProofOfWork>(GetArena()); - _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(p); - } - return _impl_.pow_; -} -inline ::tari::rpc::ProofOfWork* BlockHeader::mutable_pow() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::ProofOfWork* _msg = _internal_mutable_pow(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.pow) - return _msg; -} -inline void BlockHeader::set_allocated_pow(::tari::rpc::ProofOfWork* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.pow_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.pow) -} - -// uint64 kernel_mmr_size = 13; -inline void BlockHeader::clear_kernel_mmr_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_mmr_size_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeader::kernel_mmr_size() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.kernel_mmr_size) - return _internal_kernel_mmr_size(); -} -inline void BlockHeader::set_kernel_mmr_size(::uint64_t value) { - _internal_set_kernel_mmr_size(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.kernel_mmr_size) -} -inline ::uint64_t BlockHeader::_internal_kernel_mmr_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.kernel_mmr_size_; -} -inline void BlockHeader::_internal_set_kernel_mmr_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_mmr_size_ = value; -} - -// uint64 output_mmr_size = 14; -inline void BlockHeader::clear_output_mmr_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_mmr_size_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeader::output_mmr_size() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.output_mmr_size) - return _internal_output_mmr_size(); -} -inline void BlockHeader::set_output_mmr_size(::uint64_t value) { - _internal_set_output_mmr_size(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.output_mmr_size) -} -inline ::uint64_t BlockHeader::_internal_output_mmr_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.output_mmr_size_; -} -inline void BlockHeader::_internal_set_output_mmr_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_mmr_size_ = value; -} - -// bytes total_script_offset = 15; -inline void BlockHeader::clear_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.ClearToEmpty(); -} -inline const std::string& BlockHeader::total_script_offset() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.total_script_offset) - return _internal_total_script_offset(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_total_script_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.total_script_offset) -} -inline std::string* BlockHeader::mutable_total_script_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_script_offset(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.total_script_offset) - return _s; -} -inline const std::string& BlockHeader::_internal_total_script_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_script_offset_.Get(); -} -inline void BlockHeader::_internal_set_total_script_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.total_script_offset_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.total_script_offset) - return _impl_.total_script_offset_.Release(); -} -inline void BlockHeader::set_allocated_total_script_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_script_offset_.IsDefault()) { - _impl_.total_script_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.total_script_offset) -} - -// bytes validator_node_mr = 16; -inline void BlockHeader::clear_validator_node_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_mr_.ClearToEmpty(); -} -inline const std::string& BlockHeader::validator_node_mr() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.validator_node_mr) - return _internal_validator_node_mr(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BlockHeader::set_validator_node_mr(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_mr_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.validator_node_mr) -} -inline std::string* BlockHeader::mutable_validator_node_mr() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_validator_node_mr(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BlockHeader.validator_node_mr) - return _s; -} -inline const std::string& BlockHeader::_internal_validator_node_mr() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.validator_node_mr_.Get(); -} -inline void BlockHeader::_internal_set_validator_node_mr(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_mr_.Set(value, GetArena()); -} -inline std::string* BlockHeader::_internal_mutable_validator_node_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.validator_node_mr_.Mutable( GetArena()); -} -inline std::string* BlockHeader::release_validator_node_mr() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BlockHeader.validator_node_mr) - return _impl_.validator_node_mr_.Release(); -} -inline void BlockHeader::set_allocated_validator_node_mr(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_mr_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.validator_node_mr_.IsDefault()) { - _impl_.validator_node_mr_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BlockHeader.validator_node_mr) -} - -// uint64 validator_node_size = 17; -inline void BlockHeader::clear_validator_node_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_size_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeader::validator_node_size() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeader.validator_node_size) - return _internal_validator_node_size(); -} -inline void BlockHeader::set_validator_node_size(::uint64_t value) { - _internal_set_validator_node_size(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeader.validator_node_size) -} -inline ::uint64_t BlockHeader::_internal_validator_node_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.validator_node_size_; -} -inline void BlockHeader::_internal_set_validator_node_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_size_ = value; -} - -// ------------------------------------------------------------------- - -// ProofOfWork - -// uint64 pow_algo = 1; -inline void ProofOfWork::clear_pow_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_ = ::uint64_t{0u}; -} -inline ::uint64_t ProofOfWork::pow_algo() const { - // @@protoc_insertion_point(field_get:tari.rpc.ProofOfWork.pow_algo) - return _internal_pow_algo(); -} -inline void ProofOfWork::set_pow_algo(::uint64_t value) { - _internal_set_pow_algo(value); - // @@protoc_insertion_point(field_set:tari.rpc.ProofOfWork.pow_algo) -} -inline ::uint64_t ProofOfWork::_internal_pow_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pow_algo_; -} -inline void ProofOfWork::_internal_set_pow_algo(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_ = value; -} - -// bytes pow_data = 4; -inline void ProofOfWork::clear_pow_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_data_.ClearToEmpty(); -} -inline const std::string& ProofOfWork::pow_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ProofOfWork.pow_data) - return _internal_pow_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ProofOfWork::set_pow_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ProofOfWork.pow_data) -} -inline std::string* ProofOfWork::mutable_pow_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_pow_data(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ProofOfWork.pow_data) - return _s; -} -inline const std::string& ProofOfWork::_internal_pow_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pow_data_.Get(); -} -inline void ProofOfWork::_internal_set_pow_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_data_.Set(value, GetArena()); -} -inline std::string* ProofOfWork::_internal_mutable_pow_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.pow_data_.Mutable( GetArena()); -} -inline std::string* ProofOfWork::release_pow_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ProofOfWork.pow_data) - return _impl_.pow_data_.Release(); -} -inline void ProofOfWork::set_allocated_pow_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.pow_data_.IsDefault()) { - _impl_.pow_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ProofOfWork.pow_data) -} - -// ------------------------------------------------------------------- - -// PowAlgo - -// .tari.rpc.PowAlgo.PowAlgos pow_algo = 1; -inline void PowAlgo::clear_pow_algo() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_ = 0; -} -inline ::tari::rpc::PowAlgo_PowAlgos PowAlgo::pow_algo() const { - // @@protoc_insertion_point(field_get:tari.rpc.PowAlgo.pow_algo) - return _internal_pow_algo(); -} -inline void PowAlgo::set_pow_algo(::tari::rpc::PowAlgo_PowAlgos value) { - _internal_set_pow_algo(value); - // @@protoc_insertion_point(field_set:tari.rpc.PowAlgo.pow_algo) -} -inline ::tari::rpc::PowAlgo_PowAlgos PowAlgo::_internal_pow_algo() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::PowAlgo_PowAlgos>(_impl_.pow_algo_); -} -inline void PowAlgo::_internal_set_pow_algo(::tari::rpc::PowAlgo_PowAlgos value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_ = value; -} - -// ------------------------------------------------------------------- - -// Block - -// .tari.rpc.BlockHeader header = 1; -inline bool Block::has_header() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); - return value; -} -inline void Block::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.header_ != nullptr) _impl_.header_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::BlockHeader& Block::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::BlockHeader* p = _impl_.header_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BlockHeader_default_instance_); -} -inline const ::tari::rpc::BlockHeader& Block::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Block.header) - return _internal_header(); -} -inline void Block::unsafe_arena_set_allocated_header(::tari::rpc::BlockHeader* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); - } - _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.Block.header) -} -inline ::tari::rpc::BlockHeader* Block::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::BlockHeader* released = _impl_.header_; - _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::BlockHeader* Block::unsafe_arena_release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Block.header) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::BlockHeader* temp = _impl_.header_; - _impl_.header_ = nullptr; - return temp; -} -inline ::tari::rpc::BlockHeader* Block::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.header_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BlockHeader>(GetArena()); - _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(p); - } - return _impl_.header_; -} -inline ::tari::rpc::BlockHeader* Block::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::BlockHeader* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Block.header) - return _msg; -} -inline void Block::set_allocated_header(::tari::rpc::BlockHeader* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.header_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.header_ = reinterpret_cast<::tari::rpc::BlockHeader*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Block.header) -} - -// .tari.rpc.AggregateBody body = 2; -inline bool Block::has_body() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.body_ != nullptr); - return value; -} -inline const ::tari::rpc::AggregateBody& Block::_internal_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::AggregateBody* p = _impl_.body_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_AggregateBody_default_instance_); -} -inline const ::tari::rpc::AggregateBody& Block::body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Block.body) - return _internal_body(); -} -inline void Block::unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); - } - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.Block.body) -} -inline ::tari::rpc::AggregateBody* Block::release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::AggregateBody* released = _impl_.body_; - _impl_.body_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::AggregateBody* Block::unsafe_arena_release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Block.body) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::AggregateBody* temp = _impl_.body_; - _impl_.body_ = nullptr; - return temp; -} -inline ::tari::rpc::AggregateBody* Block::_internal_mutable_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.body_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::AggregateBody>(GetArena()); - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(p); - } - return _impl_.body_; -} -inline ::tari::rpc::AggregateBody* Block::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::AggregateBody* _msg = _internal_mutable_body(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Block.body) - return _msg; -} -inline void Block::set_allocated_body(::tari::rpc::AggregateBody* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Block.body) -} - -// ------------------------------------------------------------------- - -// HistoricalBlock - -// uint64 confirmations = 1; -inline void HistoricalBlock::clear_confirmations() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.confirmations_ = ::uint64_t{0u}; -} -inline ::uint64_t HistoricalBlock::confirmations() const { - // @@protoc_insertion_point(field_get:tari.rpc.HistoricalBlock.confirmations) - return _internal_confirmations(); -} -inline void HistoricalBlock::set_confirmations(::uint64_t value) { - _internal_set_confirmations(value); - // @@protoc_insertion_point(field_set:tari.rpc.HistoricalBlock.confirmations) -} -inline ::uint64_t HistoricalBlock::_internal_confirmations() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.confirmations_; -} -inline void HistoricalBlock::_internal_set_confirmations(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.confirmations_ = value; -} - -// .tari.rpc.Block block = 2; -inline bool HistoricalBlock::has_block() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.block_ != nullptr); - return value; -} -inline void HistoricalBlock::clear_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.block_ != nullptr) _impl_.block_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::Block& HistoricalBlock::_internal_block() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Block* p = _impl_.block_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Block_default_instance_); -} -inline const ::tari::rpc::Block& HistoricalBlock::block() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.HistoricalBlock.block) - return _internal_block(); -} -inline void HistoricalBlock::unsafe_arena_set_allocated_block(::tari::rpc::Block* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.block_); - } - _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.HistoricalBlock.block) -} -inline ::tari::rpc::Block* HistoricalBlock::release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Block* released = _impl_.block_; - _impl_.block_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Block* HistoricalBlock::unsafe_arena_release_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.HistoricalBlock.block) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Block* temp = _impl_.block_; - _impl_.block_ = nullptr; - return temp; -} -inline ::tari::rpc::Block* HistoricalBlock::_internal_mutable_block() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.block_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Block>(GetArena()); - _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(p); - } - return _impl_.block_; -} -inline ::tari::rpc::Block* HistoricalBlock::mutable_block() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Block* _msg = _internal_mutable_block(); - // @@protoc_insertion_point(field_mutable:tari.rpc.HistoricalBlock.block) - return _msg; -} -inline void HistoricalBlock::set_allocated_block(::tari::rpc::Block* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.block_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.block_ = reinterpret_cast<::tari::rpc::Block*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.HistoricalBlock.block) -} - -// ------------------------------------------------------------------- - -// NewBlockHeaderTemplate - -// uint32 version = 1; -inline void NewBlockHeaderTemplate::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = 0u; -} -inline ::uint32_t NewBlockHeaderTemplate::version() const { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.version) - return _internal_version(); -} -inline void NewBlockHeaderTemplate::set_version(::uint32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.version) -} -inline ::uint32_t NewBlockHeaderTemplate::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_; -} -inline void NewBlockHeaderTemplate::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = value; -} - -// uint64 height = 2; -inline void NewBlockHeaderTemplate::clear_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = ::uint64_t{0u}; -} -inline ::uint64_t NewBlockHeaderTemplate::height() const { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.height) - return _internal_height(); -} -inline void NewBlockHeaderTemplate::set_height(::uint64_t value) { - _internal_set_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.height) -} -inline ::uint64_t NewBlockHeaderTemplate::_internal_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.height_; -} -inline void NewBlockHeaderTemplate::_internal_set_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.height_ = value; -} - -// bytes prev_hash = 3; -inline void NewBlockHeaderTemplate::clear_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.ClearToEmpty(); -} -inline const std::string& NewBlockHeaderTemplate::prev_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.prev_hash) - return _internal_prev_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_prev_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.prev_hash) -} -inline std::string* NewBlockHeaderTemplate::mutable_prev_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_prev_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.prev_hash) - return _s; -} -inline const std::string& NewBlockHeaderTemplate::_internal_prev_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.prev_hash_.Get(); -} -inline void NewBlockHeaderTemplate::_internal_set_prev_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.Set(value, GetArena()); -} -inline std::string* NewBlockHeaderTemplate::_internal_mutable_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.prev_hash_.Mutable( GetArena()); -} -inline std::string* NewBlockHeaderTemplate::release_prev_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.prev_hash) - return _impl_.prev_hash_.Release(); -} -inline void NewBlockHeaderTemplate::set_allocated_prev_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.prev_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.prev_hash_.IsDefault()) { - _impl_.prev_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockHeaderTemplate.prev_hash) -} - -// bytes total_kernel_offset = 4; -inline void NewBlockHeaderTemplate::clear_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.ClearToEmpty(); -} -inline const std::string& NewBlockHeaderTemplate::total_kernel_offset() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) - return _internal_total_kernel_offset(); -} -template -inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_kernel_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) -} -inline std::string* NewBlockHeaderTemplate::mutable_total_kernel_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_kernel_offset(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) - return _s; -} -inline const std::string& NewBlockHeaderTemplate::_internal_total_kernel_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_kernel_offset_.Get(); -} -inline void NewBlockHeaderTemplate::_internal_set_total_kernel_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.Set(value, GetArena()); -} -inline std::string* NewBlockHeaderTemplate::_internal_mutable_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.total_kernel_offset_.Mutable( GetArena()); -} -inline std::string* NewBlockHeaderTemplate::release_total_kernel_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) - return _impl_.total_kernel_offset_.Release(); -} -inline void NewBlockHeaderTemplate::set_allocated_total_kernel_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_kernel_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_kernel_offset_.IsDefault()) { - _impl_.total_kernel_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockHeaderTemplate.total_kernel_offset) -} - -// .tari.rpc.ProofOfWork pow = 5; -inline bool NewBlockHeaderTemplate::has_pow() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.pow_ != nullptr); - return value; -} -inline void NewBlockHeaderTemplate::clear_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pow_ != nullptr) _impl_.pow_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::ProofOfWork& NewBlockHeaderTemplate::_internal_pow() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::ProofOfWork* p = _impl_.pow_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ProofOfWork_default_instance_); -} -inline const ::tari::rpc::ProofOfWork& NewBlockHeaderTemplate::pow() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.pow) - return _internal_pow(); -} -inline void NewBlockHeaderTemplate::unsafe_arena_set_allocated_pow(::tari::rpc::ProofOfWork* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.pow_); - } - _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockHeaderTemplate.pow) -} -inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::ProofOfWork* released = _impl_.pow_; - _impl_.pow_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::unsafe_arena_release_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.pow) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::ProofOfWork* temp = _impl_.pow_; - _impl_.pow_ = nullptr; - return temp; -} -inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::_internal_mutable_pow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.pow_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ProofOfWork>(GetArena()); - _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(p); - } - return _impl_.pow_; -} -inline ::tari::rpc::ProofOfWork* NewBlockHeaderTemplate::mutable_pow() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::ProofOfWork* _msg = _internal_mutable_pow(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.pow) - return _msg; -} -inline void NewBlockHeaderTemplate::set_allocated_pow(::tari::rpc::ProofOfWork* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.pow_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.pow_ = reinterpret_cast<::tari::rpc::ProofOfWork*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockHeaderTemplate.pow) -} - -// bytes total_script_offset = 7; -inline void NewBlockHeaderTemplate::clear_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.ClearToEmpty(); -} -inline const std::string& NewBlockHeaderTemplate::total_script_offset() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockHeaderTemplate.total_script_offset) - return _internal_total_script_offset(); -} -template -inline PROTOBUF_ALWAYS_INLINE void NewBlockHeaderTemplate::set_total_script_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.NewBlockHeaderTemplate.total_script_offset) -} -inline std::string* NewBlockHeaderTemplate::mutable_total_script_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_total_script_offset(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockHeaderTemplate.total_script_offset) - return _s; -} -inline const std::string& NewBlockHeaderTemplate::_internal_total_script_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.total_script_offset_.Get(); -} -inline void NewBlockHeaderTemplate::_internal_set_total_script_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.Set(value, GetArena()); -} -inline std::string* NewBlockHeaderTemplate::_internal_mutable_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.total_script_offset_.Mutable( GetArena()); -} -inline std::string* NewBlockHeaderTemplate::release_total_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockHeaderTemplate.total_script_offset) - return _impl_.total_script_offset_.Release(); -} -inline void NewBlockHeaderTemplate::set_allocated_total_script_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.total_script_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.total_script_offset_.IsDefault()) { - _impl_.total_script_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockHeaderTemplate.total_script_offset) -} - -// ------------------------------------------------------------------- - -// NewBlockTemplate - -// .tari.rpc.NewBlockHeaderTemplate header = 1; -inline bool NewBlockTemplate::has_header() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); - return value; -} -inline void NewBlockTemplate::clear_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.header_ != nullptr) _impl_.header_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::NewBlockHeaderTemplate& NewBlockTemplate::_internal_header() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::NewBlockHeaderTemplate* p = _impl_.header_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_NewBlockHeaderTemplate_default_instance_); -} -inline const ::tari::rpc::NewBlockHeaderTemplate& NewBlockTemplate::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplate.header) - return _internal_header(); -} -inline void NewBlockTemplate::unsafe_arena_set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); - } - _impl_.header_ = reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplate.header) -} -inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::NewBlockHeaderTemplate* released = _impl_.header_; - _impl_.header_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::unsafe_arena_release_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplate.header) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::NewBlockHeaderTemplate* temp = _impl_.header_; - _impl_.header_ = nullptr; - return temp; -} -inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::_internal_mutable_header() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.header_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::NewBlockHeaderTemplate>(GetArena()); - _impl_.header_ = reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(p); - } - return _impl_.header_; -} -inline ::tari::rpc::NewBlockHeaderTemplate* NewBlockTemplate::mutable_header() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::NewBlockHeaderTemplate* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplate.header) - return _msg; -} -inline void NewBlockTemplate::set_allocated_header(::tari::rpc::NewBlockHeaderTemplate* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.header_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.header_ = reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockTemplate.header) -} - -// .tari.rpc.AggregateBody body = 2; -inline bool NewBlockTemplate::has_body() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.body_ != nullptr); - return value; -} -inline const ::tari::rpc::AggregateBody& NewBlockTemplate::_internal_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::AggregateBody* p = _impl_.body_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_AggregateBody_default_instance_); -} -inline const ::tari::rpc::AggregateBody& NewBlockTemplate::body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NewBlockTemplate.body) - return _internal_body(); -} -inline void NewBlockTemplate::unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); - } - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.NewBlockTemplate.body) -} -inline ::tari::rpc::AggregateBody* NewBlockTemplate::release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::AggregateBody* released = _impl_.body_; - _impl_.body_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::AggregateBody* NewBlockTemplate::unsafe_arena_release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NewBlockTemplate.body) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::AggregateBody* temp = _impl_.body_; - _impl_.body_ = nullptr; - return temp; -} -inline ::tari::rpc::AggregateBody* NewBlockTemplate::_internal_mutable_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.body_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::AggregateBody>(GetArena()); - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(p); - } - return _impl_.body_; -} -inline ::tari::rpc::AggregateBody* NewBlockTemplate::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::AggregateBody* _msg = _internal_mutable_body(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NewBlockTemplate.body) - return _msg; -} -inline void NewBlockTemplate::set_allocated_body(::tari::rpc::AggregateBody* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NewBlockTemplate.body) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::tari::rpc::PowAlgo_PowAlgos> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::PowAlgo_PowAlgos>() { - return ::tari::rpc::PowAlgo_PowAlgos_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_block_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/google/protobuf/timestamp.pb-c.c b/external/src/Tari/proto/gRPC/google/protobuf/timestamp.pb-c.c new file mode 100644 index 00000000..ed87692e --- /dev/null +++ b/external/src/Tari/proto/gRPC/google/protobuf/timestamp.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: timestamp.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "timestamp.pb-c.h" +void google__protobuf__timestamp__init + (Google__Protobuf__Timestamp *message) +{ + static const Google__Protobuf__Timestamp init_value = GOOGLE__PROTOBUF__TIMESTAMP__INIT; + *message = init_value; +} +size_t google__protobuf__timestamp__get_packed_size + (const Google__Protobuf__Timestamp *message) +{ + assert(message->base.descriptor == &google__protobuf__timestamp__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t google__protobuf__timestamp__pack + (const Google__Protobuf__Timestamp *message, + uint8_t *out) +{ + assert(message->base.descriptor == &google__protobuf__timestamp__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t google__protobuf__timestamp__pack_to_buffer + (const Google__Protobuf__Timestamp *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &google__protobuf__timestamp__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Google__Protobuf__Timestamp * + google__protobuf__timestamp__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Google__Protobuf__Timestamp *) + protobuf_c_message_unpack (&google__protobuf__timestamp__descriptor, + allocator, len, data); +} +void google__protobuf__timestamp__free_unpacked + (Google__Protobuf__Timestamp *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &google__protobuf__timestamp__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor google__protobuf__timestamp__field_descriptors[2] = +{ + { + "seconds", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT64, + 0, /* quantifier_offset */ + offsetof(Google__Protobuf__Timestamp, seconds), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "nanos", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(Google__Protobuf__Timestamp, nanos), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned google__protobuf__timestamp__field_indices_by_name[] = { + 1, /* field[1] = nanos */ + 0, /* field[0] = seconds */ +}; +static const ProtobufCIntRange google__protobuf__timestamp__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor google__protobuf__timestamp__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "google.protobuf.Timestamp", + "Timestamp", + "Google__Protobuf__Timestamp", + "google.protobuf", + sizeof(Google__Protobuf__Timestamp), + 2, + google__protobuf__timestamp__field_descriptors, + google__protobuf__timestamp__field_indices_by_name, + 1, google__protobuf__timestamp__number_ranges, + (ProtobufCMessageInit) google__protobuf__timestamp__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/external/src/Tari/proto/gRPC/google/protobuf/timestamp.pb-c.h b/external/src/Tari/proto/gRPC/google/protobuf/timestamp.pb-c.h new file mode 100644 index 00000000..96eb84e2 --- /dev/null +++ b/external/src/Tari/proto/gRPC/google/protobuf/timestamp.pb-c.h @@ -0,0 +1,151 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: timestamp.proto */ + +#ifndef PROTOBUF_C_timestamp_2eproto__INCLUDED +#define PROTOBUF_C_timestamp_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Google__Protobuf__Timestamp Google__Protobuf__Timestamp; + + +/* --- enums --- */ + + +/* --- messages --- */ + +/* + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * # Examples + * Example 1: Compute Timestamp from POSIX `time()`. + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * struct timeval tv; + * gettimeofday(&tv, NULL); + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * long millis = System.currentTimeMillis(); + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * Example 5: Compute Timestamp from Java `Instant.now()`. + * Instant now = Instant.now(); + * Timestamp timestamp = + * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + * .setNanos(now.getNano()).build(); + * Example 6: Compute Timestamp from current time in Python. + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * # JSON Mapping + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + * ) to obtain a formatter capable of generating timestamps in this format. + */ +struct _Google__Protobuf__Timestamp +{ + ProtobufCMessage base; + /* + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + */ + int64_t seconds; + /* + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. + */ + int32_t nanos; +}; +#define GOOGLE__PROTOBUF__TIMESTAMP__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&google__protobuf__timestamp__descriptor) \ + , 0, 0 } + + +/* Google__Protobuf__Timestamp methods */ +void google__protobuf__timestamp__init + (Google__Protobuf__Timestamp *message); +size_t google__protobuf__timestamp__get_packed_size + (const Google__Protobuf__Timestamp *message); +size_t google__protobuf__timestamp__pack + (const Google__Protobuf__Timestamp *message, + uint8_t *out); +size_t google__protobuf__timestamp__pack_to_buffer + (const Google__Protobuf__Timestamp *message, + ProtobufCBuffer *buffer); +Google__Protobuf__Timestamp * + google__protobuf__timestamp__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void google__protobuf__timestamp__free_unpacked + (Google__Protobuf__Timestamp *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Google__Protobuf__Timestamp_Closure) + (const Google__Protobuf__Timestamp *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor google__protobuf__timestamp__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_timestamp_2eproto__INCLUDED */ diff --git a/external/src/Tari/proto/gRPC/google/protobuf/timestamp.proto b/external/src/Tari/proto/gRPC/google/protobuf/timestamp.proto new file mode 100644 index 00000000..fd0bc07d --- /dev/null +++ b/external/src/Tari/proto/gRPC/google/protobuf/timestamp.proto @@ -0,0 +1,144 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +syntax = "proto3"; + +package google.protobuf; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/protobuf/types/known/timestamppb"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "TimestampProto"; +option java_multiple_files = true; +option objc_class_prefix = "GPB"; +option csharp_namespace = "Google.Protobuf.WellKnownTypes"; + +// A Timestamp represents a point in time independent of any time zone or local +// calendar, encoded as a count of seconds and fractions of seconds at +// nanosecond resolution. The count is relative to an epoch at UTC midnight on +// January 1, 1970, in the proleptic Gregorian calendar which extends the +// Gregorian calendar backwards to year one. +// +// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap +// second table is needed for interpretation, using a [24-hour linear +// smear](https://developers.google.com/time/smear). +// +// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By +// restricting to that range, we ensure that we can convert to and from [RFC +// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. +// +// # Examples +// +// Example 1: Compute Timestamp from POSIX `time()`. +// +// Timestamp timestamp; +// timestamp.set_seconds(time(NULL)); +// timestamp.set_nanos(0); +// +// Example 2: Compute Timestamp from POSIX `gettimeofday()`. +// +// struct timeval tv; +// gettimeofday(&tv, NULL); +// +// Timestamp timestamp; +// timestamp.set_seconds(tv.tv_sec); +// timestamp.set_nanos(tv.tv_usec * 1000); +// +// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. +// +// FILETIME ft; +// GetSystemTimeAsFileTime(&ft); +// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; +// +// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z +// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. +// Timestamp timestamp; +// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); +// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); +// +// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. +// +// long millis = System.currentTimeMillis(); +// +// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) +// .setNanos((int) ((millis % 1000) * 1000000)).build(); +// +// Example 5: Compute Timestamp from Java `Instant.now()`. +// +// Instant now = Instant.now(); +// +// Timestamp timestamp = +// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) +// .setNanos(now.getNano()).build(); +// +// Example 6: Compute Timestamp from current time in Python. +// +// timestamp = Timestamp() +// timestamp.GetCurrentTime() +// +// # JSON Mapping +// +// In JSON format, the Timestamp type is encoded as a string in the +// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +// where {year} is always expressed using four digits while {month}, {day}, +// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +// is required. A proto3 JSON serializer should always use UTC (as indicated by +// "Z") when printing the Timestamp type and a proto3 JSON parser should be +// able to accept both UTC and other timezones (as indicated by an offset). +// +// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +// 01:30 UTC on January 15, 2017. +// +// In JavaScript, one can convert a Date object to this format using the +// standard +// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) +// method. In Python, a standard `datetime.datetime` object can be converted +// to this format using +// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with +// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use +// the Joda Time's [`ISODateTimeFormat.dateTime()`]( +// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() +// ) to obtain a formatter capable of generating timestamps in this format. +// +message Timestamp { + // Represents seconds of UTC time since Unix epoch + // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + // 9999-12-31T23:59:59Z inclusive. + int64 seconds = 1; + + // Non-negative fractions of a second at nanosecond resolution. Negative + // second values with fractions must still have non-negative nanos values + // that count forward in time. Must be from 0 to 999,999,999 + // inclusive. + int32 nanos = 2; +} diff --git a/external/src/Tari/proto/gRPC/network.pb-c.c b/external/src/Tari/proto/gRPC/network.pb-c.c new file mode 100644 index 00000000..00b3a401 --- /dev/null +++ b/external/src/Tari/proto/gRPC/network.pb-c.c @@ -0,0 +1,973 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: network.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "network.pb-c.h" +void tari__rpc__node_identity__init + (Tari__Rpc__NodeIdentity *message) +{ + static const Tari__Rpc__NodeIdentity init_value = TARI__RPC__NODE_IDENTITY__INIT; + *message = init_value; +} +size_t tari__rpc__node_identity__get_packed_size + (const Tari__Rpc__NodeIdentity *message) +{ + assert(message->base.descriptor == &tari__rpc__node_identity__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__node_identity__pack + (const Tari__Rpc__NodeIdentity *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__node_identity__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__node_identity__pack_to_buffer + (const Tari__Rpc__NodeIdentity *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__node_identity__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__NodeIdentity * + tari__rpc__node_identity__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__NodeIdentity *) + protobuf_c_message_unpack (&tari__rpc__node_identity__descriptor, + allocator, len, data); +} +void tari__rpc__node_identity__free_unpacked + (Tari__Rpc__NodeIdentity *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__node_identity__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__peer__init + (Tari__Rpc__Peer *message) +{ + static const Tari__Rpc__Peer init_value = TARI__RPC__PEER__INIT; + *message = init_value; +} +size_t tari__rpc__peer__get_packed_size + (const Tari__Rpc__Peer *message) +{ + assert(message->base.descriptor == &tari__rpc__peer__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__peer__pack + (const Tari__Rpc__Peer *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__peer__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__peer__pack_to_buffer + (const Tari__Rpc__Peer *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__peer__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__Peer * + tari__rpc__peer__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__Peer *) + protobuf_c_message_unpack (&tari__rpc__peer__descriptor, + allocator, len, data); +} +void tari__rpc__peer__free_unpacked + (Tari__Rpc__Peer *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__peer__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__network_status_response__init + (Tari__Rpc__NetworkStatusResponse *message) +{ + static const Tari__Rpc__NetworkStatusResponse init_value = TARI__RPC__NETWORK_STATUS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__network_status_response__get_packed_size + (const Tari__Rpc__NetworkStatusResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__network_status_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__network_status_response__pack + (const Tari__Rpc__NetworkStatusResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__network_status_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__network_status_response__pack_to_buffer + (const Tari__Rpc__NetworkStatusResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__network_status_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__NetworkStatusResponse * + tari__rpc__network_status_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__NetworkStatusResponse *) + protobuf_c_message_unpack (&tari__rpc__network_status_response__descriptor, + allocator, len, data); +} +void tari__rpc__network_status_response__free_unpacked + (Tari__Rpc__NetworkStatusResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__network_status_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__address__init + (Tari__Rpc__Address *message) +{ + static const Tari__Rpc__Address init_value = TARI__RPC__ADDRESS__INIT; + *message = init_value; +} +size_t tari__rpc__address__get_packed_size + (const Tari__Rpc__Address *message) +{ + assert(message->base.descriptor == &tari__rpc__address__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__address__pack + (const Tari__Rpc__Address *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__address__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__address__pack_to_buffer + (const Tari__Rpc__Address *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__address__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__Address * + tari__rpc__address__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__Address *) + protobuf_c_message_unpack (&tari__rpc__address__descriptor, + allocator, len, data); +} +void tari__rpc__address__free_unpacked + (Tari__Rpc__Address *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__address__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__list_connected_peers_response__init + (Tari__Rpc__ListConnectedPeersResponse *message) +{ + static const Tari__Rpc__ListConnectedPeersResponse init_value = TARI__RPC__LIST_CONNECTED_PEERS_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__list_connected_peers_response__get_packed_size + (const Tari__Rpc__ListConnectedPeersResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__list_connected_peers_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__list_connected_peers_response__pack + (const Tari__Rpc__ListConnectedPeersResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__list_connected_peers_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__list_connected_peers_response__pack_to_buffer + (const Tari__Rpc__ListConnectedPeersResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__list_connected_peers_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ListConnectedPeersResponse * + tari__rpc__list_connected_peers_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ListConnectedPeersResponse *) + protobuf_c_message_unpack (&tari__rpc__list_connected_peers_response__descriptor, + allocator, len, data); +} +void tari__rpc__list_connected_peers_response__free_unpacked + (Tari__Rpc__ListConnectedPeersResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__list_connected_peers_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__software_update__init + (Tari__Rpc__SoftwareUpdate *message) +{ + static const Tari__Rpc__SoftwareUpdate init_value = TARI__RPC__SOFTWARE_UPDATE__INIT; + *message = init_value; +} +size_t tari__rpc__software_update__get_packed_size + (const Tari__Rpc__SoftwareUpdate *message) +{ + assert(message->base.descriptor == &tari__rpc__software_update__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__software_update__pack + (const Tari__Rpc__SoftwareUpdate *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__software_update__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__software_update__pack_to_buffer + (const Tari__Rpc__SoftwareUpdate *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__software_update__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SoftwareUpdate * + tari__rpc__software_update__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SoftwareUpdate *) + protobuf_c_message_unpack (&tari__rpc__software_update__descriptor, + allocator, len, data); +} +void tari__rpc__software_update__free_unpacked + (Tari__Rpc__SoftwareUpdate *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__software_update__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_identity_request__init + (Tari__Rpc__GetIdentityRequest *message) +{ + static const Tari__Rpc__GetIdentityRequest init_value = TARI__RPC__GET_IDENTITY_REQUEST__INIT; + *message = init_value; +} +size_t tari__rpc__get_identity_request__get_packed_size + (const Tari__Rpc__GetIdentityRequest *message) +{ + assert(message->base.descriptor == &tari__rpc__get_identity_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_identity_request__pack + (const Tari__Rpc__GetIdentityRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_identity_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_identity_request__pack_to_buffer + (const Tari__Rpc__GetIdentityRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_identity_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetIdentityRequest * + tari__rpc__get_identity_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetIdentityRequest *) + protobuf_c_message_unpack (&tari__rpc__get_identity_request__descriptor, + allocator, len, data); +} +void tari__rpc__get_identity_request__free_unpacked + (Tari__Rpc__GetIdentityRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_identity_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__get_identity_response__init + (Tari__Rpc__GetIdentityResponse *message) +{ + static const Tari__Rpc__GetIdentityResponse init_value = TARI__RPC__GET_IDENTITY_RESPONSE__INIT; + *message = init_value; +} +size_t tari__rpc__get_identity_response__get_packed_size + (const Tari__Rpc__GetIdentityResponse *message) +{ + assert(message->base.descriptor == &tari__rpc__get_identity_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__get_identity_response__pack + (const Tari__Rpc__GetIdentityResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__get_identity_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__get_identity_response__pack_to_buffer + (const Tari__Rpc__GetIdentityResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__get_identity_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__GetIdentityResponse * + tari__rpc__get_identity_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__GetIdentityResponse *) + protobuf_c_message_unpack (&tari__rpc__get_identity_response__descriptor, + allocator, len, data); +} +void tari__rpc__get_identity_response__free_unpacked + (Tari__Rpc__GetIdentityResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__get_identity_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tari__rpc__node_identity__field_descriptors[3] = +{ + { + "public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NodeIdentity, public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "public_addresses", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_STRING, + offsetof(Tari__Rpc__NodeIdentity, n_public_addresses), + offsetof(Tari__Rpc__NodeIdentity, public_addresses), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "node_id", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NodeIdentity, node_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__node_identity__field_indices_by_name[] = { + 2, /* field[2] = node_id */ + 1, /* field[1] = public_addresses */ + 0, /* field[0] = public_key */ +}; +static const ProtobufCIntRange tari__rpc__node_identity__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__node_identity__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.NodeIdentity", + "NodeIdentity", + "Tari__Rpc__NodeIdentity", + "tari.rpc", + sizeof(Tari__Rpc__NodeIdentity), + 3, + tari__rpc__node_identity__field_descriptors, + tari__rpc__node_identity__field_indices_by_name, + 1, tari__rpc__node_identity__number_ranges, + (ProtobufCMessageInit) tari__rpc__node_identity__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__peer__field_descriptors[11] = +{ + { + "public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "node_id", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, node_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "addresses", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__Peer, n_addresses), + offsetof(Tari__Rpc__Peer, addresses), + &tari__rpc__address__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "last_connection", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, last_connection), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "flags", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, flags), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "banned_until", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, banned_until), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "banned_reason", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, banned_reason), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "offline_at", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, offline_at), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "features", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, features), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "supported_protocols", + 11, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_BYTES, + offsetof(Tari__Rpc__Peer, n_supported_protocols), + offsetof(Tari__Rpc__Peer, supported_protocols), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "user_agent", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Peer, user_agent), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__peer__field_indices_by_name[] = { + 2, /* field[2] = addresses */ + 6, /* field[6] = banned_reason */ + 5, /* field[5] = banned_until */ + 8, /* field[8] = features */ + 4, /* field[4] = flags */ + 3, /* field[3] = last_connection */ + 1, /* field[1] = node_id */ + 7, /* field[7] = offline_at */ + 0, /* field[0] = public_key */ + 9, /* field[9] = supported_protocols */ + 10, /* field[10] = user_agent */ +}; +static const ProtobufCIntRange tari__rpc__peer__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 11, 9 }, + { 0, 11 } +}; +const ProtobufCMessageDescriptor tari__rpc__peer__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.Peer", + "Peer", + "Tari__Rpc__Peer", + "tari.rpc", + sizeof(Tari__Rpc__Peer), + 11, + tari__rpc__peer__field_descriptors, + tari__rpc__peer__field_indices_by_name, + 2, tari__rpc__peer__number_ranges, + (ProtobufCMessageInit) tari__rpc__peer__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__network_status_response__field_descriptors[3] = +{ + { + "status", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkStatusResponse, status), + &tari__rpc__connectivity_status__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "avg_latency_ms", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkStatusResponse, avg_latency_ms), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "num_node_connections", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__NetworkStatusResponse, num_node_connections), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__network_status_response__field_indices_by_name[] = { + 1, /* field[1] = avg_latency_ms */ + 2, /* field[2] = num_node_connections */ + 0, /* field[0] = status */ +}; +static const ProtobufCIntRange tari__rpc__network_status_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__network_status_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.NetworkStatusResponse", + "NetworkStatusResponse", + "Tari__Rpc__NetworkStatusResponse", + "tari.rpc", + sizeof(Tari__Rpc__NetworkStatusResponse), + 3, + tari__rpc__network_status_response__field_descriptors, + tari__rpc__network_status_response__field_indices_by_name, + 1, tari__rpc__network_status_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__network_status_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__address__field_descriptors[4] = +{ + { + "address", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Address, address), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "last_seen", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Address, last_seen), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "connection_attempts", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Address, connection_attempts), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "avg_latency", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Address, avg_latency), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__address__field_indices_by_name[] = { + 0, /* field[0] = address */ + 3, /* field[3] = avg_latency */ + 2, /* field[2] = connection_attempts */ + 1, /* field[1] = last_seen */ +}; +static const ProtobufCIntRange tari__rpc__address__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 5, 3 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor tari__rpc__address__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.Address", + "Address", + "Tari__Rpc__Address", + "tari.rpc", + sizeof(Tari__Rpc__Address), + 4, + tari__rpc__address__field_descriptors, + tari__rpc__address__field_indices_by_name, + 2, tari__rpc__address__number_ranges, + (ProtobufCMessageInit) tari__rpc__address__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__list_connected_peers_response__field_descriptors[1] = +{ + { + "connected_peers", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__ListConnectedPeersResponse, n_connected_peers), + offsetof(Tari__Rpc__ListConnectedPeersResponse, connected_peers), + &tari__rpc__peer__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__list_connected_peers_response__field_indices_by_name[] = { + 0, /* field[0] = connected_peers */ +}; +static const ProtobufCIntRange tari__rpc__list_connected_peers_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__list_connected_peers_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ListConnectedPeersResponse", + "ListConnectedPeersResponse", + "Tari__Rpc__ListConnectedPeersResponse", + "tari.rpc", + sizeof(Tari__Rpc__ListConnectedPeersResponse), + 1, + tari__rpc__list_connected_peers_response__field_descriptors, + tari__rpc__list_connected_peers_response__field_indices_by_name, + 1, tari__rpc__list_connected_peers_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__list_connected_peers_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__software_update__field_descriptors[4] = +{ + { + "has_update", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SoftwareUpdate, has_update), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "version", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SoftwareUpdate, version), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sha", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SoftwareUpdate, sha), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "download_url", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__SoftwareUpdate, download_url), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__software_update__field_indices_by_name[] = { + 3, /* field[3] = download_url */ + 0, /* field[0] = has_update */ + 2, /* field[2] = sha */ + 1, /* field[1] = version */ +}; +static const ProtobufCIntRange tari__rpc__software_update__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor tari__rpc__software_update__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SoftwareUpdate", + "SoftwareUpdate", + "Tari__Rpc__SoftwareUpdate", + "tari.rpc", + sizeof(Tari__Rpc__SoftwareUpdate), + 4, + tari__rpc__software_update__field_descriptors, + tari__rpc__software_update__field_indices_by_name, + 1, tari__rpc__software_update__number_ranges, + (ProtobufCMessageInit) tari__rpc__software_update__init, + NULL,NULL,NULL /* reserved[123] */ +}; +#define tari__rpc__get_identity_request__field_descriptors NULL +#define tari__rpc__get_identity_request__field_indices_by_name NULL +#define tari__rpc__get_identity_request__number_ranges NULL +const ProtobufCMessageDescriptor tari__rpc__get_identity_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetIdentityRequest", + "GetIdentityRequest", + "Tari__Rpc__GetIdentityRequest", + "tari.rpc", + sizeof(Tari__Rpc__GetIdentityRequest), + 0, + tari__rpc__get_identity_request__field_descriptors, + tari__rpc__get_identity_request__field_indices_by_name, + 0, tari__rpc__get_identity_request__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_identity_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__get_identity_response__field_descriptors[3] = +{ + { + "public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetIdentityResponse, public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "public_address", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetIdentityResponse, public_address), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "node_id", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__GetIdentityResponse, node_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__get_identity_response__field_indices_by_name[] = { + 2, /* field[2] = node_id */ + 1, /* field[1] = public_address */ + 0, /* field[0] = public_key */ +}; +static const ProtobufCIntRange tari__rpc__get_identity_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__get_identity_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.GetIdentityResponse", + "GetIdentityResponse", + "Tari__Rpc__GetIdentityResponse", + "tari.rpc", + sizeof(Tari__Rpc__GetIdentityResponse), + 3, + tari__rpc__get_identity_response__field_descriptors, + tari__rpc__get_identity_response__field_indices_by_name, + 1, tari__rpc__get_identity_response__number_ranges, + (ProtobufCMessageInit) tari__rpc__get_identity_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCEnumValue tari__rpc__connectivity_status__enum_values_by_number[4] = +{ + { "Initializing", "TARI__RPC__CONNECTIVITY_STATUS__Initializing", 0 }, + { "Online", "TARI__RPC__CONNECTIVITY_STATUS__Online", 1 }, + { "Degraded", "TARI__RPC__CONNECTIVITY_STATUS__Degraded", 2 }, + { "Offline", "TARI__RPC__CONNECTIVITY_STATUS__Offline", 3 }, +}; +static const ProtobufCIntRange tari__rpc__connectivity_status__value_ranges[] = { +{0, 0},{0, 4} +}; +static const ProtobufCEnumValueIndex tari__rpc__connectivity_status__enum_values_by_name[4] = +{ + { "Degraded", 2 }, + { "Initializing", 0 }, + { "Offline", 3 }, + { "Online", 1 }, +}; +const ProtobufCEnumDescriptor tari__rpc__connectivity_status__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.ConnectivityStatus", + "ConnectivityStatus", + "Tari__Rpc__ConnectivityStatus", + "tari.rpc", + 4, + tari__rpc__connectivity_status__enum_values_by_number, + 4, + tari__rpc__connectivity_status__enum_values_by_name, + 1, + tari__rpc__connectivity_status__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/external/src/Tari/proto/gRPC/network.pb-c.h b/external/src/Tari/proto/gRPC/network.pb-c.h new file mode 100644 index 00000000..71602823 --- /dev/null +++ b/external/src/Tari/proto/gRPC/network.pb-c.h @@ -0,0 +1,367 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: network.proto */ + +#ifndef PROTOBUF_C_network_2eproto__INCLUDED +#define PROTOBUF_C_network_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "google/protobuf/timestamp.pb-c.h" + +typedef struct _Tari__Rpc__NodeIdentity Tari__Rpc__NodeIdentity; +typedef struct _Tari__Rpc__Peer Tari__Rpc__Peer; +typedef struct _Tari__Rpc__NetworkStatusResponse Tari__Rpc__NetworkStatusResponse; +typedef struct _Tari__Rpc__Address Tari__Rpc__Address; +typedef struct _Tari__Rpc__ListConnectedPeersResponse Tari__Rpc__ListConnectedPeersResponse; +typedef struct _Tari__Rpc__SoftwareUpdate Tari__Rpc__SoftwareUpdate; +typedef struct _Tari__Rpc__GetIdentityRequest Tari__Rpc__GetIdentityRequest; +typedef struct _Tari__Rpc__GetIdentityResponse Tari__Rpc__GetIdentityResponse; + + +/* --- enums --- */ + +typedef enum _Tari__Rpc__ConnectivityStatus { + TARI__RPC__CONNECTIVITY_STATUS__Initializing = 0, + TARI__RPC__CONNECTIVITY_STATUS__Online = 1, + TARI__RPC__CONNECTIVITY_STATUS__Degraded = 2, + TARI__RPC__CONNECTIVITY_STATUS__Offline = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__CONNECTIVITY_STATUS) +} Tari__Rpc__ConnectivityStatus; + +/* --- messages --- */ + +struct _Tari__Rpc__NodeIdentity +{ + ProtobufCMessage base; + ProtobufCBinaryData public_key; + size_t n_public_addresses; + char **public_addresses; + ProtobufCBinaryData node_id; +}; +#define TARI__RPC__NODE_IDENTITY__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__node_identity__descriptor) \ + , {0,NULL}, 0,NULL, {0,NULL} } + + +struct _Tari__Rpc__Peer +{ + ProtobufCMessage base; + /* + * / Public key of the peer + */ + ProtobufCBinaryData public_key; + /* + * / NodeId of the peer + */ + ProtobufCBinaryData node_id; + /* + * / Peer's addresses + */ + size_t n_addresses; + Tari__Rpc__Address **addresses; + /* + * / Last connection attempt to peer + */ + uint64_t last_connection; + /* + * / Flags for the peer. + */ + uint32_t flags; + uint64_t banned_until; + char *banned_reason; + uint64_t offline_at; + /* + * / Features supported by the peer + */ + uint32_t features; + /* + * / used as information for more efficient protocol negotiation. + */ + size_t n_supported_protocols; + ProtobufCBinaryData *supported_protocols; + /* + * / User agent advertised by the peer + */ + char *user_agent; +}; +#define TARI__RPC__PEER__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__peer__descriptor) \ + , {0,NULL}, {0,NULL}, 0,NULL, 0, 0, 0, (char *)protobuf_c_empty_string, 0, 0, 0,NULL, (char *)protobuf_c_empty_string } + + +struct _Tari__Rpc__NetworkStatusResponse +{ + ProtobufCMessage base; + Tari__Rpc__ConnectivityStatus status; + uint32_t avg_latency_ms; + uint32_t num_node_connections; +}; +#define TARI__RPC__NETWORK_STATUS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__network_status_response__descriptor) \ + , TARI__RPC__CONNECTIVITY_STATUS__Initializing, 0, 0 } + + +struct _Tari__Rpc__Address +{ + ProtobufCMessage base; + ProtobufCBinaryData address; + char *last_seen; + uint32_t connection_attempts; + uint64_t avg_latency; +}; +#define TARI__RPC__ADDRESS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__address__descriptor) \ + , {0,NULL}, (char *)protobuf_c_empty_string, 0, 0 } + + +struct _Tari__Rpc__ListConnectedPeersResponse +{ + ProtobufCMessage base; + size_t n_connected_peers; + Tari__Rpc__Peer **connected_peers; +}; +#define TARI__RPC__LIST_CONNECTED_PEERS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__list_connected_peers_response__descriptor) \ + , 0,NULL } + + +struct _Tari__Rpc__SoftwareUpdate +{ + ProtobufCMessage base; + protobuf_c_boolean has_update; + char *version; + char *sha; + char *download_url; +}; +#define TARI__RPC__SOFTWARE_UPDATE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__software_update__descriptor) \ + , 0, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string, (char *)protobuf_c_empty_string } + + +struct _Tari__Rpc__GetIdentityRequest +{ + ProtobufCMessage base; +}; +#define TARI__RPC__GET_IDENTITY_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_identity_request__descriptor) \ + } + + +struct _Tari__Rpc__GetIdentityResponse +{ + ProtobufCMessage base; + ProtobufCBinaryData public_key; + char *public_address; + ProtobufCBinaryData node_id; +}; +#define TARI__RPC__GET_IDENTITY_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__get_identity_response__descriptor) \ + , {0,NULL}, (char *)protobuf_c_empty_string, {0,NULL} } + + +/* Tari__Rpc__NodeIdentity methods */ +void tari__rpc__node_identity__init + (Tari__Rpc__NodeIdentity *message); +size_t tari__rpc__node_identity__get_packed_size + (const Tari__Rpc__NodeIdentity *message); +size_t tari__rpc__node_identity__pack + (const Tari__Rpc__NodeIdentity *message, + uint8_t *out); +size_t tari__rpc__node_identity__pack_to_buffer + (const Tari__Rpc__NodeIdentity *message, + ProtobufCBuffer *buffer); +Tari__Rpc__NodeIdentity * + tari__rpc__node_identity__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__node_identity__free_unpacked + (Tari__Rpc__NodeIdentity *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__Peer methods */ +void tari__rpc__peer__init + (Tari__Rpc__Peer *message); +size_t tari__rpc__peer__get_packed_size + (const Tari__Rpc__Peer *message); +size_t tari__rpc__peer__pack + (const Tari__Rpc__Peer *message, + uint8_t *out); +size_t tari__rpc__peer__pack_to_buffer + (const Tari__Rpc__Peer *message, + ProtobufCBuffer *buffer); +Tari__Rpc__Peer * + tari__rpc__peer__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__peer__free_unpacked + (Tari__Rpc__Peer *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__NetworkStatusResponse methods */ +void tari__rpc__network_status_response__init + (Tari__Rpc__NetworkStatusResponse *message); +size_t tari__rpc__network_status_response__get_packed_size + (const Tari__Rpc__NetworkStatusResponse *message); +size_t tari__rpc__network_status_response__pack + (const Tari__Rpc__NetworkStatusResponse *message, + uint8_t *out); +size_t tari__rpc__network_status_response__pack_to_buffer + (const Tari__Rpc__NetworkStatusResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__NetworkStatusResponse * + tari__rpc__network_status_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__network_status_response__free_unpacked + (Tari__Rpc__NetworkStatusResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__Address methods */ +void tari__rpc__address__init + (Tari__Rpc__Address *message); +size_t tari__rpc__address__get_packed_size + (const Tari__Rpc__Address *message); +size_t tari__rpc__address__pack + (const Tari__Rpc__Address *message, + uint8_t *out); +size_t tari__rpc__address__pack_to_buffer + (const Tari__Rpc__Address *message, + ProtobufCBuffer *buffer); +Tari__Rpc__Address * + tari__rpc__address__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__address__free_unpacked + (Tari__Rpc__Address *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ListConnectedPeersResponse methods */ +void tari__rpc__list_connected_peers_response__init + (Tari__Rpc__ListConnectedPeersResponse *message); +size_t tari__rpc__list_connected_peers_response__get_packed_size + (const Tari__Rpc__ListConnectedPeersResponse *message); +size_t tari__rpc__list_connected_peers_response__pack + (const Tari__Rpc__ListConnectedPeersResponse *message, + uint8_t *out); +size_t tari__rpc__list_connected_peers_response__pack_to_buffer + (const Tari__Rpc__ListConnectedPeersResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ListConnectedPeersResponse * + tari__rpc__list_connected_peers_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__list_connected_peers_response__free_unpacked + (Tari__Rpc__ListConnectedPeersResponse *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__SoftwareUpdate methods */ +void tari__rpc__software_update__init + (Tari__Rpc__SoftwareUpdate *message); +size_t tari__rpc__software_update__get_packed_size + (const Tari__Rpc__SoftwareUpdate *message); +size_t tari__rpc__software_update__pack + (const Tari__Rpc__SoftwareUpdate *message, + uint8_t *out); +size_t tari__rpc__software_update__pack_to_buffer + (const Tari__Rpc__SoftwareUpdate *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SoftwareUpdate * + tari__rpc__software_update__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__software_update__free_unpacked + (Tari__Rpc__SoftwareUpdate *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetIdentityRequest methods */ +void tari__rpc__get_identity_request__init + (Tari__Rpc__GetIdentityRequest *message); +size_t tari__rpc__get_identity_request__get_packed_size + (const Tari__Rpc__GetIdentityRequest *message); +size_t tari__rpc__get_identity_request__pack + (const Tari__Rpc__GetIdentityRequest *message, + uint8_t *out); +size_t tari__rpc__get_identity_request__pack_to_buffer + (const Tari__Rpc__GetIdentityRequest *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetIdentityRequest * + tari__rpc__get_identity_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_identity_request__free_unpacked + (Tari__Rpc__GetIdentityRequest *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__GetIdentityResponse methods */ +void tari__rpc__get_identity_response__init + (Tari__Rpc__GetIdentityResponse *message); +size_t tari__rpc__get_identity_response__get_packed_size + (const Tari__Rpc__GetIdentityResponse *message); +size_t tari__rpc__get_identity_response__pack + (const Tari__Rpc__GetIdentityResponse *message, + uint8_t *out); +size_t tari__rpc__get_identity_response__pack_to_buffer + (const Tari__Rpc__GetIdentityResponse *message, + ProtobufCBuffer *buffer); +Tari__Rpc__GetIdentityResponse * + tari__rpc__get_identity_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__get_identity_response__free_unpacked + (Tari__Rpc__GetIdentityResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tari__Rpc__NodeIdentity_Closure) + (const Tari__Rpc__NodeIdentity *message, + void *closure_data); +typedef void (*Tari__Rpc__Peer_Closure) + (const Tari__Rpc__Peer *message, + void *closure_data); +typedef void (*Tari__Rpc__NetworkStatusResponse_Closure) + (const Tari__Rpc__NetworkStatusResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__Address_Closure) + (const Tari__Rpc__Address *message, + void *closure_data); +typedef void (*Tari__Rpc__ListConnectedPeersResponse_Closure) + (const Tari__Rpc__ListConnectedPeersResponse *message, + void *closure_data); +typedef void (*Tari__Rpc__SoftwareUpdate_Closure) + (const Tari__Rpc__SoftwareUpdate *message, + void *closure_data); +typedef void (*Tari__Rpc__GetIdentityRequest_Closure) + (const Tari__Rpc__GetIdentityRequest *message, + void *closure_data); +typedef void (*Tari__Rpc__GetIdentityResponse_Closure) + (const Tari__Rpc__GetIdentityResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor tari__rpc__connectivity_status__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__node_identity__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__peer__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__network_status_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__address__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__list_connected_peers_response__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__software_update__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_identity_request__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__get_identity_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_network_2eproto__INCLUDED */ diff --git a/external/src/Tari/proto/gRPC/network.pb.cc b/external/src/Tari/proto/gRPC/network.pb.cc deleted file mode 100644 index 0181947f..00000000 --- a/external/src/Tari/proto/gRPC/network.pb.cc +++ /dev/null @@ -1,2431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: network.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#include "network.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.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" -#include "google/protobuf/generated_message_tctable_impl.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 tari { -namespace rpc { - -inline constexpr SoftwareUpdate::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sha_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - download_url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - has_update_{false}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SoftwareUpdate::SoftwareUpdate(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SoftwareUpdateDefaultTypeInternal { - PROTOBUF_CONSTEXPR SoftwareUpdateDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SoftwareUpdateDefaultTypeInternal() {} - union { - SoftwareUpdate _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SoftwareUpdateDefaultTypeInternal _SoftwareUpdate_default_instance_; - -inline constexpr NodeIdentity::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : public_addresses_{}, - public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - node_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NodeIdentity::NodeIdentity(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NodeIdentityDefaultTypeInternal { - PROTOBUF_CONSTEXPR NodeIdentityDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NodeIdentityDefaultTypeInternal() {} - union { - NodeIdentity _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NodeIdentityDefaultTypeInternal _NodeIdentity_default_instance_; - -inline constexpr NetworkStatusResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : status_{static_cast< ::tari::rpc::ConnectivityStatus >(0)}, - avg_latency_ms_{0u}, - num_node_connections_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR NetworkStatusResponse::NetworkStatusResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct NetworkStatusResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR NetworkStatusResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~NetworkStatusResponseDefaultTypeInternal() {} - union { - NetworkStatusResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NetworkStatusResponseDefaultTypeInternal _NetworkStatusResponse_default_instance_; - -inline constexpr GetIdentityResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - node_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR GetIdentityResponse::GetIdentityResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetIdentityResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetIdentityResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetIdentityResponseDefaultTypeInternal() {} - union { - GetIdentityResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetIdentityResponseDefaultTypeInternal _GetIdentityResponse_default_instance_; - template -PROTOBUF_CONSTEXPR GetIdentityRequest::GetIdentityRequest(::_pbi::ConstantInitialized) {} -struct GetIdentityRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetIdentityRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetIdentityRequestDefaultTypeInternal() {} - union { - GetIdentityRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetIdentityRequestDefaultTypeInternal _GetIdentityRequest_default_instance_; - -inline constexpr Address::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - last_seen_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - avg_latency_{::uint64_t{0u}}, - connection_attempts_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Address::Address(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AddressDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddressDefaultTypeInternal() {} - union { - Address _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddressDefaultTypeInternal _Address_default_instance_; - -inline constexpr Peer::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : addresses_{}, - supported_protocols_{}, - public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - node_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - banned_reason_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - user_agent_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - last_connection_{::uint64_t{0u}}, - banned_until_{::uint64_t{0u}}, - flags_{0u}, - features_{0u}, - offline_at_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Peer::Peer(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PeerDefaultTypeInternal { - PROTOBUF_CONSTEXPR PeerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PeerDefaultTypeInternal() {} - union { - Peer _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerDefaultTypeInternal _Peer_default_instance_; - -inline constexpr ListConnectedPeersResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : connected_peers_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ListConnectedPeersResponse::ListConnectedPeersResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ListConnectedPeersResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ListConnectedPeersResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ListConnectedPeersResponseDefaultTypeInternal() {} - union { - ListConnectedPeersResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListConnectedPeersResponseDefaultTypeInternal _ListConnectedPeersResponse_default_instance_; -} // namespace rpc -} // namespace tari -static ::_pb::Metadata file_level_metadata_network_2eproto[8]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_network_2eproto[1]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_network_2eproto = nullptr; -const ::uint32_t - TableStruct_network_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _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(::tari::rpc::NodeIdentity, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.public_addresses_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NodeIdentity, _impl_.node_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _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(::tari::rpc::Peer, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.node_id_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.addresses_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.last_connection_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.flags_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.banned_until_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.banned_reason_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.offline_at_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.supported_protocols_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Peer, _impl_.user_agent_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _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(::tari::rpc::NetworkStatusResponse, _impl_.status_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.avg_latency_ms_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::NetworkStatusResponse, _impl_.num_node_connections_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _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(::tari::rpc::Address, _impl_.address_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.last_seen_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.connection_attempts_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Address, _impl_.avg_latency_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ListConnectedPeersResponse, _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(::tari::rpc::ListConnectedPeersResponse, _impl_.connected_peers_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _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(::tari::rpc::SoftwareUpdate, _impl_.has_update_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.sha_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::SoftwareUpdate, _impl_.download_url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityRequest, _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(::tari::rpc::GetIdentityResponse, _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(::tari::rpc::GetIdentityResponse, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.public_address_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::GetIdentityResponse, _impl_.node_id_), -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::tari::rpc::NodeIdentity)}, - {11, -1, -1, sizeof(::tari::rpc::Peer)}, - {30, -1, -1, sizeof(::tari::rpc::NetworkStatusResponse)}, - {41, -1, -1, sizeof(::tari::rpc::Address)}, - {53, -1, -1, sizeof(::tari::rpc::ListConnectedPeersResponse)}, - {62, -1, -1, sizeof(::tari::rpc::SoftwareUpdate)}, - {74, -1, -1, sizeof(::tari::rpc::GetIdentityRequest)}, - {82, -1, -1, sizeof(::tari::rpc::GetIdentityResponse)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::tari::rpc::_NodeIdentity_default_instance_._instance, - &::tari::rpc::_Peer_default_instance_._instance, - &::tari::rpc::_NetworkStatusResponse_default_instance_._instance, - &::tari::rpc::_Address_default_instance_._instance, - &::tari::rpc::_ListConnectedPeersResponse_default_instance_._instance, - &::tari::rpc::_SoftwareUpdate_default_instance_._instance, - &::tari::rpc::_GetIdentityRequest_default_instance_._instance, - &::tari::rpc::_GetIdentityResponse_default_instance_._instance, -}; -const char descriptor_table_protodef_network_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\rnetwork.proto\022\010tari.rpc\032\037google/protob" - "uf/timestamp.proto\"M\n\014NodeIdentity\022\022\n\npu" - "blic_key\030\001 \001(\014\022\030\n\020public_addresses\030\002 \003(\t" - "\022\017\n\007node_id\030\003 \001(\014\"\375\001\n\004Peer\022\022\n\npublic_key" - "\030\001 \001(\014\022\017\n\007node_id\030\002 \001(\014\022$\n\taddresses\030\003 \003" - "(\0132\021.tari.rpc.Address\022\027\n\017last_connection" - "\030\004 \001(\004\022\r\n\005flags\030\005 \001(\r\022\024\n\014banned_until\030\006 " - "\001(\004\022\025\n\rbanned_reason\030\007 \001(\t\022\022\n\noffline_at" - "\030\010 \001(\004\022\020\n\010features\030\t \001(\r\022\033\n\023supported_pr" - "otocols\030\013 \003(\014\022\022\n\nuser_agent\030\014 \001(\t\"{\n\025Net" - "workStatusResponse\022,\n\006status\030\001 \001(\0162\034.tar" - "i.rpc.ConnectivityStatus\022\026\n\016avg_latency_" - "ms\030\002 \001(\r\022\034\n\024num_node_connections\030\003 \001(\r\"_" - "\n\007Address\022\017\n\007address\030\001 \001(\014\022\021\n\tlast_seen\030" - "\002 \001(\t\022\033\n\023connection_attempts\030\003 \001(\r\022\023\n\013av" - "g_latency\030\005 \001(\004\"E\n\032ListConnectedPeersRes" - "ponse\022\'\n\017connected_peers\030\001 \003(\0132\016.tari.rp" - "c.Peer\"X\n\016SoftwareUpdate\022\022\n\nhas_update\030\001" - " \001(\010\022\017\n\007version\030\002 \001(\t\022\013\n\003sha\030\003 \001(\t\022\024\n\014do" - "wnload_url\030\004 \001(\t\"\024\n\022GetIdentityRequest\"R" - "\n\023GetIdentityResponse\022\022\n\npublic_key\030\001 \001(" - "\014\022\026\n\016public_address\030\002 \001(\t\022\017\n\007node_id\030\003 \001" - "(\014*M\n\022ConnectivityStatus\022\020\n\014Initializing" - "\020\000\022\n\n\006Online\020\001\022\014\n\010Degraded\020\002\022\013\n\007Offline\020" - "\003b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_network_2eproto_deps[1] = - { - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::absl::once_flag descriptor_table_network_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_network_2eproto = { - false, - false, - 969, - descriptor_table_protodef_network_2eproto, - "network.proto", - &descriptor_table_network_2eproto_once, - descriptor_table_network_2eproto_deps, - 1, - 8, - schemas, - file_default_instances, - TableStruct_network_2eproto::offsets, - file_level_metadata_network_2eproto, - file_level_enum_descriptors_network_2eproto, - file_level_service_descriptors_network_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_network_2eproto_getter() { - return &descriptor_table_network_2eproto; -} -namespace tari { -namespace rpc { -const ::google::protobuf::EnumDescriptor* ConnectivityStatus_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_network_2eproto); - return file_level_enum_descriptors_network_2eproto[0]; -} -PROTOBUF_CONSTINIT const uint32_t ConnectivityStatus_internal_data_[] = { - 262144u, 0u, }; -bool ConnectivityStatus_IsValid(int value) { - return 0 <= value && value <= 3; -} -// =================================================================== - -class NodeIdentity::_Internal { - public: -}; - -NodeIdentity::NodeIdentity(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.NodeIdentity) -} -inline PROTOBUF_NDEBUG_INLINE NodeIdentity::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_addresses_{visibility, arena, from.public_addresses_}, - public_key_(arena, from.public_key_), - node_id_(arena, from.node_id_), - _cached_size_{0} {} - -NodeIdentity::NodeIdentity( - ::google::protobuf::Arena* arena, - const NodeIdentity& from) - : ::google::protobuf::Message(arena) { - NodeIdentity* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.NodeIdentity) -} -inline PROTOBUF_NDEBUG_INLINE NodeIdentity::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_addresses_{visibility, arena}, - public_key_(arena), - node_id_(arena), - _cached_size_{0} {} - -inline void NodeIdentity::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -NodeIdentity::~NodeIdentity() { - // @@protoc_insertion_point(destructor:tari.rpc.NodeIdentity) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void NodeIdentity::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.node_id_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -NodeIdentity::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_._cached_size_), - false, - }, - &NodeIdentity::MergeImpl, - &NodeIdentity::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void NodeIdentity::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.NodeIdentity) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_addresses_.Clear(); - _impl_.public_key_.ClearToEmpty(); - _impl_.node_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NodeIdentity::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 46, 2> NodeIdentity::_table_ = { - { - 0, // no _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 - &_NodeIdentity_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::NodeIdentity>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_key_)}}, - // repeated string public_addresses = 2; - {::_pbi::TcParser::FastUR1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_addresses_)}}, - // bytes node_id = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.node_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // repeated string public_addresses = 2; - {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.public_addresses_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // bytes node_id = 3; - {PROTOBUF_FIELD_OFFSET(NodeIdentity, _impl_.node_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\25\0\20\0\0\0\0\0" - "tari.rpc.NodeIdentity" - "public_addresses" - }}, -}; - -::uint8_t* NodeIdentity::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NodeIdentity) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // repeated string public_addresses = 2; - for (int i = 0, n = this->_internal_public_addresses_size(); i < n; ++i) { - const auto& s = this->_internal_public_addresses().Get(i); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.NodeIdentity.public_addresses"); - target = stream->WriteString(2, s, target); - } - - // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - const std::string& _s = this->_internal_node_id(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NodeIdentity) - return target; -} - -::size_t NodeIdentity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NodeIdentity) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string public_addresses = 2; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_public_addresses().size()); - for (int i = 0, n = _internal_public_addresses().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - _internal_public_addresses().Get(i)); - } - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); - } - - // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_node_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void NodeIdentity::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:tari.rpc.NodeIdentity) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_public_addresses()->MergeFrom(from._internal_public_addresses()); - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (!from._internal_node_id().empty()) { - _this->_internal_set_node_id(from._internal_node_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void NodeIdentity::CopyFrom(const NodeIdentity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.NodeIdentity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool NodeIdentity::IsInitialized() const { - return true; -} - -void NodeIdentity::InternalSwap(NodeIdentity* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.public_addresses_.InternalSwap(&other->_impl_.public_addresses_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.node_id_, &other->_impl_.node_id_, arena); -} - -::google::protobuf::Metadata NodeIdentity::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[0]); -} -// =================================================================== - -class Peer::_Internal { - public: -}; - -Peer::Peer(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.Peer) -} -inline PROTOBUF_NDEBUG_INLINE Peer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : addresses_{visibility, arena, from.addresses_}, - supported_protocols_{visibility, arena, from.supported_protocols_}, - public_key_(arena, from.public_key_), - node_id_(arena, from.node_id_), - banned_reason_(arena, from.banned_reason_), - user_agent_(arena, from.user_agent_), - _cached_size_{0} {} - -Peer::Peer( - ::google::protobuf::Arena* arena, - const Peer& from) - : ::google::protobuf::Message(arena) { - Peer* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, last_connection_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, last_connection_), - offsetof(Impl_, offline_at_) - - offsetof(Impl_, last_connection_) + - sizeof(Impl_::offline_at_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.Peer) -} -inline PROTOBUF_NDEBUG_INLINE Peer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : addresses_{visibility, arena}, - supported_protocols_{visibility, arena}, - public_key_(arena), - node_id_(arena), - banned_reason_(arena), - user_agent_(arena), - _cached_size_{0} {} - -inline void Peer::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, last_connection_), - 0, - offsetof(Impl_, offline_at_) - - offsetof(Impl_, last_connection_) + - sizeof(Impl_::offline_at_)); -} -Peer::~Peer() { - // @@protoc_insertion_point(destructor:tari.rpc.Peer) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Peer::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.node_id_.Destroy(); - _impl_.banned_reason_.Destroy(); - _impl_.user_agent_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Peer::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Peer, _impl_._cached_size_), - false, - }, - &Peer::MergeImpl, - &Peer::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Peer::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.Peer) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.addresses_.Clear(); - _impl_.supported_protocols_.Clear(); - _impl_.public_key_.ClearToEmpty(); - _impl_.node_id_.ClearToEmpty(); - _impl_.banned_reason_.ClearToEmpty(); - _impl_.user_agent_.ClearToEmpty(); - ::memset(&_impl_.last_connection_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.offline_at_) - - reinterpret_cast(&_impl_.last_connection_)) + sizeof(_impl_.offline_at_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Peer::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 1, 53, 2> Peer::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 12, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294963712, // skipmap - offsetof(decltype(_table_), field_entries), - 11, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_Peer_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::Peer>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.public_key_)}}, - // bytes node_id = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.node_id_)}}, - // repeated .tari.rpc.Address addresses = 3; - {::_pbi::TcParser::FastMtR1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.addresses_)}}, - // uint64 last_connection = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.last_connection_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.last_connection_)}}, - // uint32 flags = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Peer, _impl_.flags_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.flags_)}}, - // uint64 banned_until = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.banned_until_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_until_)}}, - // string banned_reason = 7; - {::_pbi::TcParser::FastUS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_reason_)}}, - // uint64 offline_at = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Peer, _impl_.offline_at_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.offline_at_)}}, - // uint32 features = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Peer, _impl_.features_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.features_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated bytes supported_protocols = 11; - {::_pbi::TcParser::FastBR1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.supported_protocols_)}}, - // string user_agent = 12; - {::_pbi::TcParser::FastUS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(Peer, _impl_.user_agent_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes node_id = 2; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.node_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // repeated .tari.rpc.Address addresses = 3; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.addresses_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 last_connection = 4; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.last_connection_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint32 flags = 5; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.flags_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 banned_until = 6; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_until_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // string banned_reason = 7; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.banned_reason_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 offline_at = 8; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.offline_at_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint32 features = 9; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.features_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // repeated bytes supported_protocols = 11; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.supported_protocols_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kBytes | ::_fl::kRepSString)}, - // string user_agent = 12; - {PROTOBUF_FIELD_OFFSET(Peer, _impl_.user_agent_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Address>()}, - }}, {{ - "\15\0\0\0\0\0\0\15\0\0\0\12\0\0\0\0" - "tari.rpc.Peer" - "banned_reason" - "user_agent" - }}, -}; - -::uint8_t* Peer::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Peer) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes node_id = 2; - if (!this->_internal_node_id().empty()) { - const std::string& _s = this->_internal_node_id(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // repeated .tari.rpc.Address addresses = 3; - for (unsigned i = 0, n = static_cast( - this->_internal_addresses_size()); - i < n; i++) { - const auto& repfield = this->_internal_addresses().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); - } - - // uint64 last_connection = 4; - if (this->_internal_last_connection() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_last_connection(), target); - } - - // uint32 flags = 5; - if (this->_internal_flags() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 5, this->_internal_flags(), target); - } - - // uint64 banned_until = 6; - if (this->_internal_banned_until() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 6, this->_internal_banned_until(), target); - } - - // string banned_reason = 7; - if (!this->_internal_banned_reason().empty()) { - const std::string& _s = this->_internal_banned_reason(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Peer.banned_reason"); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - // uint64 offline_at = 8; - if (this->_internal_offline_at() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this->_internal_offline_at(), target); - } - - // uint32 features = 9; - if (this->_internal_features() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_features(), target); - } - - // repeated bytes supported_protocols = 11; - for (int i = 0, n = this->_internal_supported_protocols_size(); i < n; ++i) { - const auto& s = this->_internal_supported_protocols().Get(i); - target = stream->WriteBytes(11, s, target); - } - - // string user_agent = 12; - if (!this->_internal_user_agent().empty()) { - const std::string& _s = this->_internal_user_agent(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Peer.user_agent"); - target = stream->WriteStringMaybeAliased(12, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Peer) - return target; -} - -::size_t Peer::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Peer) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .tari.rpc.Address addresses = 3; - total_size += 1UL * this->_internal_addresses_size(); - for (const auto& msg : this->_internal_addresses()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated bytes supported_protocols = 11; - total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_supported_protocols().size()); - for (int i = 0, n = _internal_supported_protocols().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( - _internal_supported_protocols().Get(i)); - } - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); - } - - // bytes node_id = 2; - if (!this->_internal_node_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_node_id()); - } - - // string banned_reason = 7; - if (!this->_internal_banned_reason().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_banned_reason()); - } - - // string user_agent = 12; - if (!this->_internal_user_agent().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_user_agent()); - } - - // uint64 last_connection = 4; - if (this->_internal_last_connection() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_last_connection()); - } - - // uint64 banned_until = 6; - if (this->_internal_banned_until() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_banned_until()); - } - - // uint32 flags = 5; - if (this->_internal_flags() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_flags()); - } - - // uint32 features = 9; - if (this->_internal_features() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_features()); - } - - // uint64 offline_at = 8; - if (this->_internal_offline_at() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_offline_at()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Peer::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:tari.rpc.Peer) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_addresses()->MergeFrom( - from._internal_addresses()); - _this->_internal_mutable_supported_protocols()->MergeFrom(from._internal_supported_protocols()); - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (!from._internal_node_id().empty()) { - _this->_internal_set_node_id(from._internal_node_id()); - } - if (!from._internal_banned_reason().empty()) { - _this->_internal_set_banned_reason(from._internal_banned_reason()); - } - if (!from._internal_user_agent().empty()) { - _this->_internal_set_user_agent(from._internal_user_agent()); - } - if (from._internal_last_connection() != 0) { - _this->_impl_.last_connection_ = from._impl_.last_connection_; - } - if (from._internal_banned_until() != 0) { - _this->_impl_.banned_until_ = from._impl_.banned_until_; - } - if (from._internal_flags() != 0) { - _this->_impl_.flags_ = from._impl_.flags_; - } - if (from._internal_features() != 0) { - _this->_impl_.features_ = from._impl_.features_; - } - if (from._internal_offline_at() != 0) { - _this->_impl_.offline_at_ = from._impl_.offline_at_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Peer::CopyFrom(const Peer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.Peer) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Peer::IsInitialized() const { - return true; -} - -void Peer::InternalSwap(Peer* PROTOBUF_RESTRICT other) { - using std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.addresses_.InternalSwap(&other->_impl_.addresses_); - _impl_.supported_protocols_.InternalSwap(&other->_impl_.supported_protocols_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.node_id_, &other->_impl_.node_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.banned_reason_, &other->_impl_.banned_reason_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_agent_, &other->_impl_.user_agent_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Peer, _impl_.offline_at_) - + sizeof(Peer::_impl_.offline_at_) - - PROTOBUF_FIELD_OFFSET(Peer, _impl_.last_connection_)>( - reinterpret_cast(&_impl_.last_connection_), - reinterpret_cast(&other->_impl_.last_connection_)); -} - -::google::protobuf::Metadata Peer::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[1]); -} -// =================================================================== - -class NetworkStatusResponse::_Internal { - public: -}; - -NetworkStatusResponse::NetworkStatusResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.NetworkStatusResponse) -} -NetworkStatusResponse::NetworkStatusResponse( - ::google::protobuf::Arena* arena, const NetworkStatusResponse& from) - : NetworkStatusResponse(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE NetworkStatusResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void NetworkStatusResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, status_), - 0, - offsetof(Impl_, num_node_connections_) - - offsetof(Impl_, status_) + - sizeof(Impl_::num_node_connections_)); -} -NetworkStatusResponse::~NetworkStatusResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.NetworkStatusResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void NetworkStatusResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -NetworkStatusResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_._cached_size_), - false, - }, - &NetworkStatusResponse::MergeImpl, - &NetworkStatusResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void NetworkStatusResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.NetworkStatusResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.status_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.num_node_connections_) - - reinterpret_cast(&_impl_.status_)) + sizeof(_impl_.num_node_connections_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* NetworkStatusResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> NetworkStatusResponse::_table_ = { - { - 0, // no _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 - &_NetworkStatusResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::NetworkStatusResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.ConnectivityStatus status = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.status_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.status_)}}, - // uint32 avg_latency_ms = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.avg_latency_ms_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.avg_latency_ms_)}}, - // uint32 num_node_connections = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(NetworkStatusResponse, _impl_.num_node_connections_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.ConnectivityStatus status = 1; - {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.status_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // uint32 avg_latency_ms = 2; - {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.avg_latency_ms_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint32 num_node_connections = 3; - {PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* NetworkStatusResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.NetworkStatusResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .tari.rpc.ConnectivityStatus status = 1; - if (this->_internal_status() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_status(), target); - } - - // uint32 avg_latency_ms = 2; - if (this->_internal_avg_latency_ms() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_avg_latency_ms(), target); - } - - // uint32 num_node_connections = 3; - if (this->_internal_num_node_connections() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_num_node_connections(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.NetworkStatusResponse) - return target; -} - -::size_t NetworkStatusResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.NetworkStatusResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .tari.rpc.ConnectivityStatus status = 1; - if (this->_internal_status() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_status()); - } - - // uint32 avg_latency_ms = 2; - if (this->_internal_avg_latency_ms() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_avg_latency_ms()); - } - - // uint32 num_node_connections = 3; - if (this->_internal_num_node_connections() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_num_node_connections()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void NetworkStatusResponse::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:tari.rpc.NetworkStatusResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_status() != 0) { - _this->_impl_.status_ = from._impl_.status_; - } - if (from._internal_avg_latency_ms() != 0) { - _this->_impl_.avg_latency_ms_ = from._impl_.avg_latency_ms_; - } - if (from._internal_num_node_connections() != 0) { - _this->_impl_.num_node_connections_ = from._impl_.num_node_connections_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void NetworkStatusResponse::CopyFrom(const NetworkStatusResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.NetworkStatusResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool NetworkStatusResponse::IsInitialized() const { - return true; -} - -void NetworkStatusResponse::InternalSwap(NetworkStatusResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.num_node_connections_) - + sizeof(NetworkStatusResponse::_impl_.num_node_connections_) - - PROTOBUF_FIELD_OFFSET(NetworkStatusResponse, _impl_.status_)>( - reinterpret_cast(&_impl_.status_), - reinterpret_cast(&other->_impl_.status_)); -} - -::google::protobuf::Metadata NetworkStatusResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[2]); -} -// =================================================================== - -class Address::_Internal { - public: -}; - -Address::Address(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.Address) -} -inline PROTOBUF_NDEBUG_INLINE Address::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : address_(arena, from.address_), - last_seen_(arena, from.last_seen_), - _cached_size_{0} {} - -Address::Address( - ::google::protobuf::Arena* arena, - const Address& from) - : ::google::protobuf::Message(arena) { - Address* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, avg_latency_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, avg_latency_), - offsetof(Impl_, connection_attempts_) - - offsetof(Impl_, avg_latency_) + - sizeof(Impl_::connection_attempts_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.Address) -} -inline PROTOBUF_NDEBUG_INLINE Address::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : address_(arena), - last_seen_(arena), - _cached_size_{0} {} - -inline void Address::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, avg_latency_), - 0, - offsetof(Impl_, connection_attempts_) - - offsetof(Impl_, avg_latency_) + - sizeof(Impl_::connection_attempts_)); -} -Address::~Address() { - // @@protoc_insertion_point(destructor:tari.rpc.Address) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Address::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.address_.Destroy(); - _impl_.last_seen_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Address::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Address, _impl_._cached_size_), - false, - }, - &Address::MergeImpl, - &Address::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Address::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.Address) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.address_.ClearToEmpty(); - _impl_.last_seen_.ClearToEmpty(); - ::memset(&_impl_.avg_latency_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.connection_attempts_) - - reinterpret_cast(&_impl_.avg_latency_)) + sizeof(_impl_.connection_attempts_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Address::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 4, 0, 34, 2> Address::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 5, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967272, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_Address_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::Address>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes address = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.address_)}}, - // string last_seen = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.last_seen_)}}, - // uint32 connection_attempts = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Address, _impl_.connection_attempts_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.connection_attempts_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 avg_latency = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Address, _impl_.avg_latency_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(Address, _impl_.avg_latency_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes address = 1; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.address_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // string last_seen = 2; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.last_seen_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint32 connection_attempts = 3; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.connection_attempts_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 avg_latency = 5; - {PROTOBUF_FIELD_OFFSET(Address, _impl_.avg_latency_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - "\20\0\11\0\0\0\0\0" - "tari.rpc.Address" - "last_seen" - }}, -}; - -::uint8_t* Address::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Address) - ::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); - } - - // string last_seen = 2; - if (!this->_internal_last_seen().empty()) { - const std::string& _s = this->_internal_last_seen(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.Address.last_seen"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // uint32 connection_attempts = 3; - if (this->_internal_connection_attempts() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 3, this->_internal_connection_attempts(), target); - } - - // uint64 avg_latency = 5; - if (this->_internal_avg_latency() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_avg_latency(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Address) - return target; -} - -::size_t Address::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Address) - ::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 address = 1; - if (!this->_internal_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_address()); - } - - // string last_seen = 2; - if (!this->_internal_last_seen().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_last_seen()); - } - - // uint64 avg_latency = 5; - if (this->_internal_avg_latency() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_avg_latency()); - } - - // uint32 connection_attempts = 3; - if (this->_internal_connection_attempts() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_connection_attempts()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Address::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:tari.rpc.Address) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_address().empty()) { - _this->_internal_set_address(from._internal_address()); - } - if (!from._internal_last_seen().empty()) { - _this->_internal_set_last_seen(from._internal_last_seen()); - } - if (from._internal_avg_latency() != 0) { - _this->_impl_.avg_latency_ = from._impl_.avg_latency_; - } - if (from._internal_connection_attempts() != 0) { - _this->_impl_.connection_attempts_ = from._impl_.connection_attempts_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Address::CopyFrom(const Address& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.Address) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Address::IsInitialized() const { - return true; -} - -void Address::InternalSwap(Address* 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_.address_, &other->_impl_.address_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.last_seen_, &other->_impl_.last_seen_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Address, _impl_.connection_attempts_) - + sizeof(Address::_impl_.connection_attempts_) - - PROTOBUF_FIELD_OFFSET(Address, _impl_.avg_latency_)>( - reinterpret_cast(&_impl_.avg_latency_), - reinterpret_cast(&other->_impl_.avg_latency_)); -} - -::google::protobuf::Metadata Address::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[3]); -} -// =================================================================== - -class ListConnectedPeersResponse::_Internal { - public: -}; - -ListConnectedPeersResponse::ListConnectedPeersResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ListConnectedPeersResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListConnectedPeersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : connected_peers_{visibility, arena, from.connected_peers_}, - _cached_size_{0} {} - -ListConnectedPeersResponse::ListConnectedPeersResponse( - ::google::protobuf::Arena* arena, - const ListConnectedPeersResponse& from) - : ::google::protobuf::Message(arena) { - ListConnectedPeersResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ListConnectedPeersResponse) -} -inline PROTOBUF_NDEBUG_INLINE ListConnectedPeersResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : connected_peers_{visibility, arena}, - _cached_size_{0} {} - -inline void ListConnectedPeersResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ListConnectedPeersResponse::~ListConnectedPeersResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.ListConnectedPeersResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ListConnectedPeersResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ListConnectedPeersResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ListConnectedPeersResponse, _impl_._cached_size_), - false, - }, - &ListConnectedPeersResponse::MergeImpl, - &ListConnectedPeersResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ListConnectedPeersResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ListConnectedPeersResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.connected_peers_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ListConnectedPeersResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ListConnectedPeersResponse::_table_ = { - { - 0, // no _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ListConnectedPeersResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ListConnectedPeersResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .tari.rpc.Peer connected_peers = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ListConnectedPeersResponse, _impl_.connected_peers_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .tari.rpc.Peer connected_peers = 1; - {PROTOBUF_FIELD_OFFSET(ListConnectedPeersResponse, _impl_.connected_peers_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Peer>()}, - }}, {{ - }}, -}; - -::uint8_t* ListConnectedPeersResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ListConnectedPeersResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .tari.rpc.Peer connected_peers = 1; - for (unsigned i = 0, n = static_cast( - this->_internal_connected_peers_size()); - i < n; i++) { - const auto& repfield = this->_internal_connected_peers().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ListConnectedPeersResponse) - return target; -} - -::size_t ListConnectedPeersResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ListConnectedPeersResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .tari.rpc.Peer connected_peers = 1; - total_size += 1UL * this->_internal_connected_peers_size(); - for (const auto& msg : this->_internal_connected_peers()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ListConnectedPeersResponse::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:tari.rpc.ListConnectedPeersResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_connected_peers()->MergeFrom( - from._internal_connected_peers()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ListConnectedPeersResponse::CopyFrom(const ListConnectedPeersResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ListConnectedPeersResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ListConnectedPeersResponse::IsInitialized() const { - return true; -} - -void ListConnectedPeersResponse::InternalSwap(ListConnectedPeersResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.connected_peers_.InternalSwap(&other->_impl_.connected_peers_); -} - -::google::protobuf::Metadata ListConnectedPeersResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[4]); -} -// =================================================================== - -class SoftwareUpdate::_Internal { - public: -}; - -SoftwareUpdate::SoftwareUpdate(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SoftwareUpdate) -} -inline PROTOBUF_NDEBUG_INLINE SoftwareUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : version_(arena, from.version_), - sha_(arena, from.sha_), - download_url_(arena, from.download_url_), - _cached_size_{0} {} - -SoftwareUpdate::SoftwareUpdate( - ::google::protobuf::Arena* arena, - const SoftwareUpdate& from) - : ::google::protobuf::Message(arena) { - SoftwareUpdate* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.has_update_ = from._impl_.has_update_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.SoftwareUpdate) -} -inline PROTOBUF_NDEBUG_INLINE SoftwareUpdate::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : version_(arena), - sha_(arena), - download_url_(arena), - _cached_size_{0} {} - -inline void SoftwareUpdate::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.has_update_ = {}; -} -SoftwareUpdate::~SoftwareUpdate() { - // @@protoc_insertion_point(destructor:tari.rpc.SoftwareUpdate) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SoftwareUpdate::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.version_.Destroy(); - _impl_.sha_.Destroy(); - _impl_.download_url_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -SoftwareUpdate::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_._cached_size_), - false, - }, - &SoftwareUpdate::MergeImpl, - &SoftwareUpdate::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SoftwareUpdate::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SoftwareUpdate) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.version_.ClearToEmpty(); - _impl_.sha_.ClearToEmpty(); - _impl_.download_url_.ClearToEmpty(); - _impl_.has_update_ = false; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SoftwareUpdate::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 54, 2> SoftwareUpdate::_table_ = { - { - 0, // no _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 - &_SoftwareUpdate_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SoftwareUpdate>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string download_url = 4; - {::_pbi::TcParser::FastUS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.download_url_)}}, - // bool has_update = 1; - {::_pbi::TcParser::SingularVarintNoZag1(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.has_update_)}}, - // string version = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.version_)}}, - // string sha = 3; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.sha_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bool has_update = 1; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.has_update_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBool)}, - // string version = 2; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string sha = 3; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.sha_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string download_url = 4; - {PROTOBUF_FIELD_OFFSET(SoftwareUpdate, _impl_.download_url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\27\0\7\3\14\0\0\0" - "tari.rpc.SoftwareUpdate" - "version" - "sha" - "download_url" - }}, -}; - -::uint8_t* SoftwareUpdate::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SoftwareUpdate) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bool has_update = 1; - if (this->_internal_has_update() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 1, this->_internal_has_update(), target); - } - - // string version = 2; - if (!this->_internal_version().empty()) { - const std::string& _s = this->_internal_version(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.version"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // string sha = 3; - if (!this->_internal_sha().empty()) { - const std::string& _s = this->_internal_sha(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.sha"); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // string download_url = 4; - if (!this->_internal_download_url().empty()) { - const std::string& _s = this->_internal_download_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.SoftwareUpdate.download_url"); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SoftwareUpdate) - return target; -} - -::size_t SoftwareUpdate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SoftwareUpdate) - ::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 version = 2; - if (!this->_internal_version().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_version()); - } - - // string sha = 3; - if (!this->_internal_sha().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_sha()); - } - - // string download_url = 4; - if (!this->_internal_download_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_download_url()); - } - - // bool has_update = 1; - if (this->_internal_has_update() != 0) { - total_size += 2; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SoftwareUpdate::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:tari.rpc.SoftwareUpdate) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_version().empty()) { - _this->_internal_set_version(from._internal_version()); - } - if (!from._internal_sha().empty()) { - _this->_internal_set_sha(from._internal_sha()); - } - if (!from._internal_download_url().empty()) { - _this->_internal_set_download_url(from._internal_download_url()); - } - if (from._internal_has_update() != 0) { - _this->_impl_.has_update_ = from._impl_.has_update_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SoftwareUpdate::CopyFrom(const SoftwareUpdate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SoftwareUpdate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SoftwareUpdate::IsInitialized() const { - return true; -} - -void SoftwareUpdate::InternalSwap(SoftwareUpdate* 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_.version_, &other->_impl_.version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sha_, &other->_impl_.sha_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.download_url_, &other->_impl_.download_url_, arena); - swap(_impl_.has_update_, other->_impl_.has_update_); -} - -::google::protobuf::Metadata SoftwareUpdate::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[5]); -} -// =================================================================== - -class GetIdentityRequest::_Internal { - public: -}; - -GetIdentityRequest::GetIdentityRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetIdentityRequest) -} -GetIdentityRequest::GetIdentityRequest( - ::google::protobuf::Arena* arena, - const GetIdentityRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetIdentityRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetIdentityRequest) -} - - - - - - - - - -::google::protobuf::Metadata GetIdentityRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[6]); -} -// =================================================================== - -class GetIdentityResponse::_Internal { - public: -}; - -GetIdentityResponse::GetIdentityResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.GetIdentityResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetIdentityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_key_(arena, from.public_key_), - public_address_(arena, from.public_address_), - node_id_(arena, from.node_id_), - _cached_size_{0} {} - -GetIdentityResponse::GetIdentityResponse( - ::google::protobuf::Arena* arena, - const GetIdentityResponse& from) - : ::google::protobuf::Message(arena) { - GetIdentityResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.GetIdentityResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetIdentityResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_key_(arena), - public_address_(arena), - node_id_(arena), - _cached_size_{0} {} - -inline void GetIdentityResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -GetIdentityResponse::~GetIdentityResponse() { - // @@protoc_insertion_point(destructor:tari.rpc.GetIdentityResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetIdentityResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - _impl_.public_address_.Destroy(); - _impl_.node_id_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -GetIdentityResponse::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_._cached_size_), - false, - }, - &GetIdentityResponse::MergeImpl, - &GetIdentityResponse::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void GetIdentityResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.GetIdentityResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_key_.ClearToEmpty(); - _impl_.public_address_.ClearToEmpty(); - _impl_.node_id_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetIdentityResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 51, 2> GetIdentityResponse::_table_ = { - { - 0, // no _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 - &_GetIdentityResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::GetIdentityResponse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_key_)}}, - // string public_address = 2; - {::_pbi::TcParser::FastUS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_address_)}}, - // bytes node_id = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.node_id_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // string public_address = 2; - {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.public_address_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes node_id = 3; - {PROTOBUF_FIELD_OFFSET(GetIdentityResponse, _impl_.node_id_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\0\16\0\0\0\0\0" - "tari.rpc.GetIdentityResponse" - "public_address" - }}, -}; - -::uint8_t* GetIdentityResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.GetIdentityResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // string public_address = 2; - if (!this->_internal_public_address().empty()) { - const std::string& _s = this->_internal_public_address(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.GetIdentityResponse.public_address"); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - const std::string& _s = this->_internal_node_id(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.GetIdentityResponse) - return target; -} - -::size_t GetIdentityResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.GetIdentityResponse) - ::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 public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); - } - - // string public_address = 2; - if (!this->_internal_public_address().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_public_address()); - } - - // bytes node_id = 3; - if (!this->_internal_node_id().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_node_id()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void GetIdentityResponse::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:tari.rpc.GetIdentityResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (!from._internal_public_address().empty()) { - _this->_internal_set_public_address(from._internal_public_address()); - } - if (!from._internal_node_id().empty()) { - _this->_internal_set_node_id(from._internal_node_id()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetIdentityResponse::CopyFrom(const GetIdentityResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.GetIdentityResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetIdentityResponse::IsInitialized() const { - return true; -} - -void GetIdentityResponse::InternalSwap(GetIdentityResponse* 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_.public_key_, &other->_impl_.public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_address_, &other->_impl_.public_address_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.node_id_, &other->_impl_.node_id_, arena); -} - -::google::protobuf::Metadata GetIdentityResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_network_2eproto_getter, - &descriptor_table_network_2eproto_once, - file_level_metadata_network_2eproto[7]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_network_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/network.pb.h b/external/src/Tari/proto/gRPC/network.pb.h deleted file mode 100644 index 4d97f2ac..00000000 --- a/external/src/Tari/proto/gRPC/network.pb.h +++ /dev/null @@ -1,3139 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: network.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026000 -#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/port_undef.inc" -#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/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -#include "google/protobuf/timestamp.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_network_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_network_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_network_2eproto; -namespace tari { -namespace rpc { -class Address; -struct AddressDefaultTypeInternal; -extern AddressDefaultTypeInternal _Address_default_instance_; -class GetIdentityRequest; -struct GetIdentityRequestDefaultTypeInternal; -extern GetIdentityRequestDefaultTypeInternal _GetIdentityRequest_default_instance_; -class GetIdentityResponse; -struct GetIdentityResponseDefaultTypeInternal; -extern GetIdentityResponseDefaultTypeInternal _GetIdentityResponse_default_instance_; -class ListConnectedPeersResponse; -struct ListConnectedPeersResponseDefaultTypeInternal; -extern ListConnectedPeersResponseDefaultTypeInternal _ListConnectedPeersResponse_default_instance_; -class NetworkStatusResponse; -struct NetworkStatusResponseDefaultTypeInternal; -extern NetworkStatusResponseDefaultTypeInternal _NetworkStatusResponse_default_instance_; -class NodeIdentity; -struct NodeIdentityDefaultTypeInternal; -extern NodeIdentityDefaultTypeInternal _NodeIdentity_default_instance_; -class Peer; -struct PeerDefaultTypeInternal; -extern PeerDefaultTypeInternal _Peer_default_instance_; -class SoftwareUpdate; -struct SoftwareUpdateDefaultTypeInternal; -extern SoftwareUpdateDefaultTypeInternal _SoftwareUpdate_default_instance_; -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace tari { -namespace rpc { -enum ConnectivityStatus : int { - Initializing = 0, - Online = 1, - Degraded = 2, - Offline = 3, - ConnectivityStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - ConnectivityStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool ConnectivityStatus_IsValid(int value); -extern const uint32_t ConnectivityStatus_internal_data_[]; -constexpr ConnectivityStatus ConnectivityStatus_MIN = static_cast(0); -constexpr ConnectivityStatus ConnectivityStatus_MAX = static_cast(3); -constexpr int ConnectivityStatus_ARRAYSIZE = 3 + 1; -const ::google::protobuf::EnumDescriptor* -ConnectivityStatus_descriptor(); -template -const std::string& ConnectivityStatus_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to ConnectivityStatus_Name()."); - return ConnectivityStatus_Name(static_cast(value)); -} -template <> -inline const std::string& ConnectivityStatus_Name(ConnectivityStatus value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool ConnectivityStatus_Parse(absl::string_view name, ConnectivityStatus* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ConnectivityStatus_descriptor(), name, value); -} - -// =================================================================== - - -// ------------------------------------------------------------------- - -class SoftwareUpdate final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SoftwareUpdate) */ { - public: - inline SoftwareUpdate() : SoftwareUpdate(nullptr) {} - ~SoftwareUpdate() override; - template - explicit PROTOBUF_CONSTEXPR SoftwareUpdate( - ::google::protobuf::internal::ConstantInitialized); - - inline SoftwareUpdate(const SoftwareUpdate& from) : SoftwareUpdate(nullptr, from) {} - inline SoftwareUpdate(SoftwareUpdate&& from) noexcept - : SoftwareUpdate(nullptr, std::move(from)) {} - inline SoftwareUpdate& operator=(const SoftwareUpdate& from) { - CopyFrom(from); - return *this; - } - inline SoftwareUpdate& operator=(SoftwareUpdate&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SoftwareUpdate& default_instance() { - return *internal_default_instance(); - } - static inline const SoftwareUpdate* internal_default_instance() { - return reinterpret_cast( - &_SoftwareUpdate_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(SoftwareUpdate& a, SoftwareUpdate& b) { a.Swap(&b); } - inline void Swap(SoftwareUpdate* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SoftwareUpdate* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SoftwareUpdate* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SoftwareUpdate& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SoftwareUpdate& from) { SoftwareUpdate::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SoftwareUpdate* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SoftwareUpdate"; } - - protected: - explicit SoftwareUpdate(::google::protobuf::Arena* arena); - SoftwareUpdate(::google::protobuf::Arena* arena, const SoftwareUpdate& from); - SoftwareUpdate(::google::protobuf::Arena* arena, SoftwareUpdate&& from) noexcept - : SoftwareUpdate(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kVersionFieldNumber = 2, - kShaFieldNumber = 3, - kDownloadUrlFieldNumber = 4, - kHasUpdateFieldNumber = 1, - }; - // string version = 2; - void clear_version() ; - const std::string& version() const; - template - void set_version(Arg_&& arg, Args_... args); - std::string* mutable_version(); - PROTOBUF_NODISCARD std::string* release_version(); - void set_allocated_version(std::string* value); - - private: - const std::string& _internal_version() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version( - const std::string& value); - std::string* _internal_mutable_version(); - - public: - // string sha = 3; - void clear_sha() ; - const std::string& sha() const; - template - void set_sha(Arg_&& arg, Args_... args); - std::string* mutable_sha(); - PROTOBUF_NODISCARD std::string* release_sha(); - void set_allocated_sha(std::string* value); - - private: - const std::string& _internal_sha() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sha( - const std::string& value); - std::string* _internal_mutable_sha(); - - public: - // string download_url = 4; - void clear_download_url() ; - const std::string& download_url() const; - template - void set_download_url(Arg_&& arg, Args_... args); - std::string* mutable_download_url(); - PROTOBUF_NODISCARD std::string* release_download_url(); - void set_allocated_download_url(std::string* value); - - private: - const std::string& _internal_download_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_download_url( - const std::string& value); - std::string* _internal_mutable_download_url(); - - public: - // bool has_update = 1; - void clear_has_update() ; - bool has_update() const; - void set_has_update(bool value); - - private: - bool _internal_has_update() const; - void _internal_set_has_update(bool value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.SoftwareUpdate) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 4, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr sha_; - ::google::protobuf::internal::ArenaStringPtr download_url_; - bool has_update_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_network_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeIdentity final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NodeIdentity) */ { - public: - inline NodeIdentity() : NodeIdentity(nullptr) {} - ~NodeIdentity() override; - template - explicit PROTOBUF_CONSTEXPR NodeIdentity( - ::google::protobuf::internal::ConstantInitialized); - - inline NodeIdentity(const NodeIdentity& from) : NodeIdentity(nullptr, from) {} - inline NodeIdentity(NodeIdentity&& from) noexcept - : NodeIdentity(nullptr, std::move(from)) {} - inline NodeIdentity& operator=(const NodeIdentity& from) { - CopyFrom(from); - return *this; - } - inline NodeIdentity& operator=(NodeIdentity&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NodeIdentity& default_instance() { - return *internal_default_instance(); - } - static inline const NodeIdentity* internal_default_instance() { - return reinterpret_cast( - &_NodeIdentity_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(NodeIdentity& a, NodeIdentity& b) { a.Swap(&b); } - inline void Swap(NodeIdentity* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NodeIdentity* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NodeIdentity* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NodeIdentity& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const NodeIdentity& from) { NodeIdentity::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NodeIdentity* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.NodeIdentity"; } - - protected: - explicit NodeIdentity(::google::protobuf::Arena* arena); - NodeIdentity(::google::protobuf::Arena* arena, const NodeIdentity& from); - NodeIdentity(::google::protobuf::Arena* arena, NodeIdentity&& from) noexcept - : NodeIdentity(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicAddressesFieldNumber = 2, - kPublicKeyFieldNumber = 1, - kNodeIdFieldNumber = 3, - }; - // repeated string public_addresses = 2; - int public_addresses_size() const; - private: - int _internal_public_addresses_size() const; - - public: - void clear_public_addresses() ; - const std::string& public_addresses(int index) const; - std::string* mutable_public_addresses(int index); - void set_public_addresses(int index, const std::string& value); - void set_public_addresses(int index, std::string&& value); - void set_public_addresses(int index, const char* value); - void set_public_addresses(int index, const char* value, std::size_t size); - void set_public_addresses(int index, absl::string_view value); - std::string* add_public_addresses(); - void add_public_addresses(const std::string& value); - void add_public_addresses(std::string&& value); - void add_public_addresses(const char* value); - void add_public_addresses(const char* value, std::size_t size); - void add_public_addresses(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& public_addresses() const; - ::google::protobuf::RepeatedPtrField* mutable_public_addresses(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_public_addresses() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_public_addresses(); - - public: - // bytes public_key = 1; - void clear_public_key() ; - const std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); - - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); - - public: - // bytes node_id = 3; - void clear_node_id() ; - const std::string& node_id() const; - template - void set_node_id(Arg_&& arg, Args_... args); - std::string* mutable_node_id(); - PROTOBUF_NODISCARD std::string* release_node_id(); - void set_allocated_node_id(std::string* value); - - private: - const std::string& _internal_node_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_node_id( - const std::string& value); - std::string* _internal_mutable_node_id(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.NodeIdentity) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField public_addresses_; - ::google::protobuf::internal::ArenaStringPtr public_key_; - ::google::protobuf::internal::ArenaStringPtr node_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_network_2eproto; -}; -// ------------------------------------------------------------------- - -class NetworkStatusResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.NetworkStatusResponse) */ { - public: - inline NetworkStatusResponse() : NetworkStatusResponse(nullptr) {} - ~NetworkStatusResponse() override; - template - explicit PROTOBUF_CONSTEXPR NetworkStatusResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline NetworkStatusResponse(const NetworkStatusResponse& from) : NetworkStatusResponse(nullptr, from) {} - inline NetworkStatusResponse(NetworkStatusResponse&& from) noexcept - : NetworkStatusResponse(nullptr, std::move(from)) {} - inline NetworkStatusResponse& operator=(const NetworkStatusResponse& from) { - CopyFrom(from); - return *this; - } - inline NetworkStatusResponse& operator=(NetworkStatusResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const NetworkStatusResponse& default_instance() { - return *internal_default_instance(); - } - static inline const NetworkStatusResponse* internal_default_instance() { - return reinterpret_cast( - &_NetworkStatusResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(NetworkStatusResponse& a, NetworkStatusResponse& b) { a.Swap(&b); } - inline void Swap(NetworkStatusResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(NetworkStatusResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - NetworkStatusResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const NetworkStatusResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const NetworkStatusResponse& from) { NetworkStatusResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(NetworkStatusResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.NetworkStatusResponse"; } - - protected: - explicit NetworkStatusResponse(::google::protobuf::Arena* arena); - NetworkStatusResponse(::google::protobuf::Arena* arena, const NetworkStatusResponse& from); - NetworkStatusResponse(::google::protobuf::Arena* arena, NetworkStatusResponse&& from) noexcept - : NetworkStatusResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kStatusFieldNumber = 1, - kAvgLatencyMsFieldNumber = 2, - kNumNodeConnectionsFieldNumber = 3, - }; - // .tari.rpc.ConnectivityStatus status = 1; - void clear_status() ; - ::tari::rpc::ConnectivityStatus status() const; - void set_status(::tari::rpc::ConnectivityStatus value); - - private: - ::tari::rpc::ConnectivityStatus _internal_status() const; - void _internal_set_status(::tari::rpc::ConnectivityStatus value); - - public: - // uint32 avg_latency_ms = 2; - void clear_avg_latency_ms() ; - ::uint32_t avg_latency_ms() const; - void set_avg_latency_ms(::uint32_t value); - - private: - ::uint32_t _internal_avg_latency_ms() const; - void _internal_set_avg_latency_ms(::uint32_t value); - - public: - // uint32 num_node_connections = 3; - void clear_num_node_connections() ; - ::uint32_t num_node_connections() const; - void set_num_node_connections(::uint32_t value); - - private: - ::uint32_t _internal_num_node_connections() const; - void _internal_set_num_node_connections(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.NetworkStatusResponse) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - int status_; - ::uint32_t avg_latency_ms_; - ::uint32_t num_node_connections_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_network_2eproto; -}; -// ------------------------------------------------------------------- - -class GetIdentityResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityResponse) */ { - public: - inline GetIdentityResponse() : GetIdentityResponse(nullptr) {} - ~GetIdentityResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetIdentityResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline GetIdentityResponse(const GetIdentityResponse& from) : GetIdentityResponse(nullptr, from) {} - inline GetIdentityResponse(GetIdentityResponse&& from) noexcept - : GetIdentityResponse(nullptr, std::move(from)) {} - inline GetIdentityResponse& operator=(const GetIdentityResponse& from) { - CopyFrom(from); - return *this; - } - inline GetIdentityResponse& operator=(GetIdentityResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetIdentityResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetIdentityResponse* internal_default_instance() { - return reinterpret_cast( - &_GetIdentityResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(GetIdentityResponse& a, GetIdentityResponse& b) { a.Swap(&b); } - inline void Swap(GetIdentityResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetIdentityResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetIdentityResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetIdentityResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const GetIdentityResponse& from) { GetIdentityResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetIdentityResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetIdentityResponse"; } - - protected: - explicit GetIdentityResponse(::google::protobuf::Arena* arena); - GetIdentityResponse(::google::protobuf::Arena* arena, const GetIdentityResponse& from); - GetIdentityResponse(::google::protobuf::Arena* arena, GetIdentityResponse&& from) noexcept - : GetIdentityResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 1, - kPublicAddressFieldNumber = 2, - kNodeIdFieldNumber = 3, - }; - // bytes public_key = 1; - void clear_public_key() ; - const std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); - - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); - - public: - // string public_address = 2; - void clear_public_address() ; - const std::string& public_address() const; - template - void set_public_address(Arg_&& arg, Args_... args); - std::string* mutable_public_address(); - PROTOBUF_NODISCARD std::string* release_public_address(); - void set_allocated_public_address(std::string* value); - - private: - const std::string& _internal_public_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_address( - const std::string& value); - std::string* _internal_mutable_public_address(); - - public: - // bytes node_id = 3; - void clear_node_id() ; - const std::string& node_id() const; - template - void set_node_id(Arg_&& arg, Args_... args); - std::string* mutable_node_id(); - PROTOBUF_NODISCARD std::string* release_node_id(); - void set_allocated_node_id(std::string* value); - - private: - const std::string& _internal_node_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_node_id( - const std::string& value); - std::string* _internal_mutable_node_id(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.GetIdentityResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr public_key_; - ::google::protobuf::internal::ArenaStringPtr public_address_; - ::google::protobuf::internal::ArenaStringPtr node_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_network_2eproto; -}; -// ------------------------------------------------------------------- - -class GetIdentityRequest final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:tari.rpc.GetIdentityRequest) */ { - public: - inline GetIdentityRequest() : GetIdentityRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetIdentityRequest( - ::google::protobuf::internal::ConstantInitialized); - - inline GetIdentityRequest(const GetIdentityRequest& from) : GetIdentityRequest(nullptr, from) {} - inline GetIdentityRequest(GetIdentityRequest&& from) noexcept - : GetIdentityRequest(nullptr, std::move(from)) {} - inline GetIdentityRequest& operator=(const GetIdentityRequest& from) { - CopyFrom(from); - return *this; - } - inline GetIdentityRequest& operator=(GetIdentityRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetIdentityRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetIdentityRequest* internal_default_instance() { - return reinterpret_cast( - &_GetIdentityRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(GetIdentityRequest& a, GetIdentityRequest& b) { a.Swap(&b); } - inline void Swap(GetIdentityRequest* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetIdentityRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetIdentityRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetIdentityRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetIdentityRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.GetIdentityRequest"; } - - protected: - explicit GetIdentityRequest(::google::protobuf::Arena* arena); - GetIdentityRequest(::google::protobuf::Arena* arena, const GetIdentityRequest& from); - GetIdentityRequest(::google::protobuf::Arena* arena, GetIdentityRequest&& from) noexcept - : GetIdentityRequest(arena) { - *this = ::std::move(from); - } - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.GetIdentityRequest) - private: - class _Internal; - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_network_2eproto; -}; -// ------------------------------------------------------------------- - -class Address final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.Address) */ { - public: - inline Address() : Address(nullptr) {} - ~Address() override; - template - explicit PROTOBUF_CONSTEXPR Address( - ::google::protobuf::internal::ConstantInitialized); - - inline Address(const Address& from) : Address(nullptr, from) {} - inline Address(Address&& from) noexcept - : Address(nullptr, std::move(from)) {} - inline Address& operator=(const Address& from) { - CopyFrom(from); - return *this; - } - inline Address& operator=(Address&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Address& default_instance() { - return *internal_default_instance(); - } - static inline const Address* internal_default_instance() { - return reinterpret_cast( - &_Address_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(Address& a, Address& b) { a.Swap(&b); } - inline void Swap(Address* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Address* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Address* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct
(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Address& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Address& from) { Address::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Address* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.Address"; } - - protected: - explicit Address(::google::protobuf::Arena* arena); - Address(::google::protobuf::Arena* arena, const Address& from); - Address(::google::protobuf::Arena* arena, Address&& from) noexcept - : Address(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAddressFieldNumber = 1, - kLastSeenFieldNumber = 2, - kAvgLatencyFieldNumber = 5, - kConnectionAttemptsFieldNumber = 3, - }; - // bytes address = 1; - void clear_address() ; - 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); - - private: - const std::string& _internal_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_address( - const std::string& value); - std::string* _internal_mutable_address(); - - public: - // string last_seen = 2; - void clear_last_seen() ; - const std::string& last_seen() const; - template - void set_last_seen(Arg_&& arg, Args_... args); - std::string* mutable_last_seen(); - PROTOBUF_NODISCARD std::string* release_last_seen(); - void set_allocated_last_seen(std::string* value); - - private: - const std::string& _internal_last_seen() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_seen( - const std::string& value); - std::string* _internal_mutable_last_seen(); - - public: - // uint64 avg_latency = 5; - void clear_avg_latency() ; - ::uint64_t avg_latency() const; - void set_avg_latency(::uint64_t value); - - private: - ::uint64_t _internal_avg_latency() const; - void _internal_set_avg_latency(::uint64_t value); - - public: - // uint32 connection_attempts = 3; - void clear_connection_attempts() ; - ::uint32_t connection_attempts() const; - void set_connection_attempts(::uint32_t value); - - private: - ::uint32_t _internal_connection_attempts() const; - void _internal_set_connection_attempts(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.Address) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 4, 0, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr address_; - ::google::protobuf::internal::ArenaStringPtr last_seen_; - ::uint64_t avg_latency_; - ::uint32_t connection_attempts_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_network_2eproto; -}; -// ------------------------------------------------------------------- - -class Peer final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.Peer) */ { - public: - inline Peer() : Peer(nullptr) {} - ~Peer() override; - template - explicit PROTOBUF_CONSTEXPR Peer( - ::google::protobuf::internal::ConstantInitialized); - - inline Peer(const Peer& from) : Peer(nullptr, from) {} - inline Peer(Peer&& from) noexcept - : Peer(nullptr, std::move(from)) {} - inline Peer& operator=(const Peer& from) { - CopyFrom(from); - return *this; - } - inline Peer& operator=(Peer&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Peer& default_instance() { - return *internal_default_instance(); - } - static inline const Peer* internal_default_instance() { - return reinterpret_cast( - &_Peer_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(Peer& a, Peer& b) { a.Swap(&b); } - inline void Swap(Peer* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Peer* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Peer* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Peer& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Peer& from) { Peer::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Peer* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.Peer"; } - - protected: - explicit Peer(::google::protobuf::Arena* arena); - Peer(::google::protobuf::Arena* arena, const Peer& from); - Peer(::google::protobuf::Arena* arena, Peer&& from) noexcept - : Peer(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAddressesFieldNumber = 3, - kSupportedProtocolsFieldNumber = 11, - kPublicKeyFieldNumber = 1, - kNodeIdFieldNumber = 2, - kBannedReasonFieldNumber = 7, - kUserAgentFieldNumber = 12, - kLastConnectionFieldNumber = 4, - kBannedUntilFieldNumber = 6, - kFlagsFieldNumber = 5, - kFeaturesFieldNumber = 9, - kOfflineAtFieldNumber = 8, - }; - // repeated .tari.rpc.Address addresses = 3; - int addresses_size() const; - private: - int _internal_addresses_size() const; - - public: - void clear_addresses() ; - ::tari::rpc::Address* mutable_addresses(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* mutable_addresses(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& _internal_addresses() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* _internal_mutable_addresses(); - public: - const ::tari::rpc::Address& addresses(int index) const; - ::tari::rpc::Address* add_addresses(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& addresses() const; - // repeated bytes supported_protocols = 11; - int supported_protocols_size() const; - private: - int _internal_supported_protocols_size() const; - - public: - void clear_supported_protocols() ; - const std::string& supported_protocols(int index) const; - std::string* mutable_supported_protocols(int index); - void set_supported_protocols(int index, const std::string& value); - void set_supported_protocols(int index, std::string&& value); - void set_supported_protocols(int index, const char* value); - void set_supported_protocols(int index, const void* value, std::size_t size); - void set_supported_protocols(int index, absl::string_view value); - std::string* add_supported_protocols(); - void add_supported_protocols(const std::string& value); - void add_supported_protocols(std::string&& value); - void add_supported_protocols(const char* value); - void add_supported_protocols(const void* value, std::size_t size); - void add_supported_protocols(absl::string_view value); - const ::google::protobuf::RepeatedPtrField& supported_protocols() const; - ::google::protobuf::RepeatedPtrField* mutable_supported_protocols(); - - private: - const ::google::protobuf::RepeatedPtrField& _internal_supported_protocols() const; - ::google::protobuf::RepeatedPtrField* _internal_mutable_supported_protocols(); - - public: - // bytes public_key = 1; - void clear_public_key() ; - const std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); - - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); - - public: - // bytes node_id = 2; - void clear_node_id() ; - const std::string& node_id() const; - template - void set_node_id(Arg_&& arg, Args_... args); - std::string* mutable_node_id(); - PROTOBUF_NODISCARD std::string* release_node_id(); - void set_allocated_node_id(std::string* value); - - private: - const std::string& _internal_node_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_node_id( - const std::string& value); - std::string* _internal_mutable_node_id(); - - public: - // string banned_reason = 7; - void clear_banned_reason() ; - const std::string& banned_reason() const; - template - void set_banned_reason(Arg_&& arg, Args_... args); - std::string* mutable_banned_reason(); - PROTOBUF_NODISCARD std::string* release_banned_reason(); - void set_allocated_banned_reason(std::string* value); - - private: - const std::string& _internal_banned_reason() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_banned_reason( - const std::string& value); - std::string* _internal_mutable_banned_reason(); - - public: - // string user_agent = 12; - void clear_user_agent() ; - const std::string& user_agent() const; - template - void set_user_agent(Arg_&& arg, Args_... args); - std::string* mutable_user_agent(); - PROTOBUF_NODISCARD std::string* release_user_agent(); - void set_allocated_user_agent(std::string* value); - - private: - const std::string& _internal_user_agent() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_user_agent( - const std::string& value); - std::string* _internal_mutable_user_agent(); - - public: - // uint64 last_connection = 4; - void clear_last_connection() ; - ::uint64_t last_connection() const; - void set_last_connection(::uint64_t value); - - private: - ::uint64_t _internal_last_connection() const; - void _internal_set_last_connection(::uint64_t value); - - public: - // uint64 banned_until = 6; - void clear_banned_until() ; - ::uint64_t banned_until() const; - void set_banned_until(::uint64_t value); - - private: - ::uint64_t _internal_banned_until() const; - void _internal_set_banned_until(::uint64_t value); - - public: - // uint32 flags = 5; - void clear_flags() ; - ::uint32_t flags() const; - void set_flags(::uint32_t value); - - private: - ::uint32_t _internal_flags() const; - void _internal_set_flags(::uint32_t value); - - public: - // uint32 features = 9; - void clear_features() ; - ::uint32_t features() const; - void set_features(::uint32_t value); - - private: - ::uint32_t _internal_features() const; - void _internal_set_features(::uint32_t value); - - public: - // uint64 offline_at = 8; - void clear_offline_at() ; - ::uint64_t offline_at() const; - void set_offline_at(::uint64_t value); - - private: - ::uint64_t _internal_offline_at() const; - void _internal_set_offline_at(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.Peer) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 1, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::Address > addresses_; - ::google::protobuf::RepeatedPtrField supported_protocols_; - ::google::protobuf::internal::ArenaStringPtr public_key_; - ::google::protobuf::internal::ArenaStringPtr node_id_; - ::google::protobuf::internal::ArenaStringPtr banned_reason_; - ::google::protobuf::internal::ArenaStringPtr user_agent_; - ::uint64_t last_connection_; - ::uint64_t banned_until_; - ::uint32_t flags_; - ::uint32_t features_; - ::uint64_t offline_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_network_2eproto; -}; -// ------------------------------------------------------------------- - -class ListConnectedPeersResponse final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ListConnectedPeersResponse) */ { - public: - inline ListConnectedPeersResponse() : ListConnectedPeersResponse(nullptr) {} - ~ListConnectedPeersResponse() override; - template - explicit PROTOBUF_CONSTEXPR ListConnectedPeersResponse( - ::google::protobuf::internal::ConstantInitialized); - - inline ListConnectedPeersResponse(const ListConnectedPeersResponse& from) : ListConnectedPeersResponse(nullptr, from) {} - inline ListConnectedPeersResponse(ListConnectedPeersResponse&& from) noexcept - : ListConnectedPeersResponse(nullptr, std::move(from)) {} - inline ListConnectedPeersResponse& operator=(const ListConnectedPeersResponse& from) { - CopyFrom(from); - return *this; - } - inline ListConnectedPeersResponse& operator=(ListConnectedPeersResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ListConnectedPeersResponse& default_instance() { - return *internal_default_instance(); - } - static inline const ListConnectedPeersResponse* internal_default_instance() { - return reinterpret_cast( - &_ListConnectedPeersResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(ListConnectedPeersResponse& a, ListConnectedPeersResponse& b) { a.Swap(&b); } - inline void Swap(ListConnectedPeersResponse* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ListConnectedPeersResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ListConnectedPeersResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ListConnectedPeersResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ListConnectedPeersResponse& from) { ListConnectedPeersResponse::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ListConnectedPeersResponse* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ListConnectedPeersResponse"; } - - protected: - explicit ListConnectedPeersResponse(::google::protobuf::Arena* arena); - ListConnectedPeersResponse(::google::protobuf::Arena* arena, const ListConnectedPeersResponse& from); - ListConnectedPeersResponse(::google::protobuf::Arena* arena, ListConnectedPeersResponse&& from) noexcept - : ListConnectedPeersResponse(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kConnectedPeersFieldNumber = 1, - }; - // repeated .tari.rpc.Peer connected_peers = 1; - int connected_peers_size() const; - private: - int _internal_connected_peers_size() const; - - public: - void clear_connected_peers() ; - ::tari::rpc::Peer* mutable_connected_peers(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* mutable_connected_peers(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& _internal_connected_peers() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* _internal_mutable_connected_peers(); - public: - const ::tari::rpc::Peer& connected_peers(int index) const; - ::tari::rpc::Peer* add_connected_peers(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& connected_peers() const; - // @@protoc_insertion_point(class_scope:tari.rpc.ListConnectedPeersResponse) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::Peer > connected_peers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_network_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// NodeIdentity - -// bytes public_key = 1; -inline void NodeIdentity::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.ClearToEmpty(); -} -inline const std::string& NodeIdentity::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NodeIdentity.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.public_key) -} -inline std::string* NodeIdentity::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NodeIdentity.public_key) - return _s; -} -inline const std::string& NodeIdentity::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_key_.Get(); -} -inline void NodeIdentity::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.Set(value, GetArena()); -} -inline std::string* NodeIdentity::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_key_.Mutable( GetArena()); -} -inline std::string* NodeIdentity::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NodeIdentity.public_key) - return _impl_.public_key_.Release(); -} -inline void NodeIdentity::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NodeIdentity.public_key) -} - -// repeated string public_addresses = 2; -inline int NodeIdentity::_internal_public_addresses_size() const { - return _internal_public_addresses().size(); -} -inline int NodeIdentity::public_addresses_size() const { - return _internal_public_addresses_size(); -} -inline void NodeIdentity::clear_public_addresses() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_addresses_.Clear(); -} -inline std::string* NodeIdentity::add_public_addresses() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_public_addresses()->Add(); - // @@protoc_insertion_point(field_add_mutable:tari.rpc.NodeIdentity.public_addresses) - return _s; -} -inline const std::string& NodeIdentity::public_addresses(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NodeIdentity.public_addresses) - return _internal_public_addresses().Get(index); -} -inline std::string* NodeIdentity::mutable_public_addresses(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.NodeIdentity.public_addresses) - return _internal_mutable_public_addresses()->Mutable(index); -} -inline void NodeIdentity::set_public_addresses(int index, const std::string& value) { - _internal_mutable_public_addresses()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::set_public_addresses(int index, std::string&& value) { - _internal_mutable_public_addresses()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::set_public_addresses(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_public_addresses()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::set_public_addresses(int index, const char* value, - std::size_t size) { - _internal_mutable_public_addresses()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::set_public_addresses(int index, absl::string_view value) { - _internal_mutable_public_addresses()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign(value); - // @@protoc_insertion_point(field_add:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(const char* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.NodeIdentity.public_addresses) -} -inline void NodeIdentity::add_public_addresses(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_public_addresses()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.NodeIdentity.public_addresses) -} -inline const ::google::protobuf::RepeatedPtrField& -NodeIdentity::public_addresses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.NodeIdentity.public_addresses) - return _internal_public_addresses(); -} -inline ::google::protobuf::RepeatedPtrField* -NodeIdentity::mutable_public_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.NodeIdentity.public_addresses) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_public_addresses(); -} -inline const ::google::protobuf::RepeatedPtrField& -NodeIdentity::_internal_public_addresses() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_addresses_; -} -inline ::google::protobuf::RepeatedPtrField* -NodeIdentity::_internal_mutable_public_addresses() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.public_addresses_; -} - -// bytes node_id = 3; -inline void NodeIdentity::clear_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.ClearToEmpty(); -} -inline const std::string& NodeIdentity::node_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.NodeIdentity.node_id) - return _internal_node_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void NodeIdentity::set_node_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.NodeIdentity.node_id) -} -inline std::string* NodeIdentity::mutable_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_node_id(); - // @@protoc_insertion_point(field_mutable:tari.rpc.NodeIdentity.node_id) - return _s; -} -inline const std::string& NodeIdentity::_internal_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.node_id_.Get(); -} -inline void NodeIdentity::_internal_set_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.Set(value, GetArena()); -} -inline std::string* NodeIdentity::_internal_mutable_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.node_id_.Mutable( GetArena()); -} -inline std::string* NodeIdentity::release_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.NodeIdentity.node_id) - return _impl_.node_id_.Release(); -} -inline void NodeIdentity::set_allocated_node_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.node_id_.IsDefault()) { - _impl_.node_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.NodeIdentity.node_id) -} - -// ------------------------------------------------------------------- - -// Peer - -// bytes public_key = 1; -inline void Peer::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.ClearToEmpty(); -} -inline const std::string& Peer::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.public_key) -} -inline std::string* Peer::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.public_key) - return _s; -} -inline const std::string& Peer::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_key_.Get(); -} -inline void Peer::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.Set(value, GetArena()); -} -inline std::string* Peer::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_key_.Mutable( GetArena()); -} -inline std::string* Peer::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Peer.public_key) - return _impl_.public_key_.Release(); -} -inline void Peer::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.public_key) -} - -// bytes node_id = 2; -inline void Peer::clear_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.ClearToEmpty(); -} -inline const std::string& Peer::node_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.node_id) - return _internal_node_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_node_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.node_id) -} -inline std::string* Peer::mutable_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_node_id(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.node_id) - return _s; -} -inline const std::string& Peer::_internal_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.node_id_.Get(); -} -inline void Peer::_internal_set_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.Set(value, GetArena()); -} -inline std::string* Peer::_internal_mutable_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.node_id_.Mutable( GetArena()); -} -inline std::string* Peer::release_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Peer.node_id) - return _impl_.node_id_.Release(); -} -inline void Peer::set_allocated_node_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.node_id_.IsDefault()) { - _impl_.node_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.node_id) -} - -// repeated .tari.rpc.Address addresses = 3; -inline int Peer::_internal_addresses_size() const { - return _internal_addresses().size(); -} -inline int Peer::addresses_size() const { - return _internal_addresses_size(); -} -inline void Peer::clear_addresses() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.addresses_.Clear(); -} -inline ::tari::rpc::Address* Peer::mutable_addresses(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.addresses) - return _internal_mutable_addresses()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* Peer::mutable_addresses() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.Peer.addresses) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_addresses(); -} -inline const ::tari::rpc::Address& Peer::addresses(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.addresses) - return _internal_addresses().Get(index); -} -inline ::tari::rpc::Address* Peer::add_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::Address* _add = _internal_mutable_addresses()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.Peer.addresses) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& Peer::addresses() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.Peer.addresses) - return _internal_addresses(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>& -Peer::_internal_addresses() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.addresses_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Address>* -Peer::_internal_mutable_addresses() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.addresses_; -} - -// uint64 last_connection = 4; -inline void Peer::clear_last_connection() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_connection_ = ::uint64_t{0u}; -} -inline ::uint64_t Peer::last_connection() const { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.last_connection) - return _internal_last_connection(); -} -inline void Peer::set_last_connection(::uint64_t value) { - _internal_set_last_connection(value); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.last_connection) -} -inline ::uint64_t Peer::_internal_last_connection() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.last_connection_; -} -inline void Peer::_internal_set_last_connection(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_connection_ = value; -} - -// uint32 flags = 5; -inline void Peer::clear_flags() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.flags_ = 0u; -} -inline ::uint32_t Peer::flags() const { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.flags) - return _internal_flags(); -} -inline void Peer::set_flags(::uint32_t value) { - _internal_set_flags(value); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.flags) -} -inline ::uint32_t Peer::_internal_flags() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.flags_; -} -inline void Peer::_internal_set_flags(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.flags_ = value; -} - -// uint64 banned_until = 6; -inline void Peer::clear_banned_until() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.banned_until_ = ::uint64_t{0u}; -} -inline ::uint64_t Peer::banned_until() const { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.banned_until) - return _internal_banned_until(); -} -inline void Peer::set_banned_until(::uint64_t value) { - _internal_set_banned_until(value); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.banned_until) -} -inline ::uint64_t Peer::_internal_banned_until() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.banned_until_; -} -inline void Peer::_internal_set_banned_until(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.banned_until_ = value; -} - -// string banned_reason = 7; -inline void Peer::clear_banned_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.banned_reason_.ClearToEmpty(); -} -inline const std::string& Peer::banned_reason() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.banned_reason) - return _internal_banned_reason(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_banned_reason(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.banned_reason_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.banned_reason) -} -inline std::string* Peer::mutable_banned_reason() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_banned_reason(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.banned_reason) - return _s; -} -inline const std::string& Peer::_internal_banned_reason() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.banned_reason_.Get(); -} -inline void Peer::_internal_set_banned_reason(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.banned_reason_.Set(value, GetArena()); -} -inline std::string* Peer::_internal_mutable_banned_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.banned_reason_.Mutable( GetArena()); -} -inline std::string* Peer::release_banned_reason() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Peer.banned_reason) - return _impl_.banned_reason_.Release(); -} -inline void Peer::set_allocated_banned_reason(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.banned_reason_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.banned_reason_.IsDefault()) { - _impl_.banned_reason_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.banned_reason) -} - -// uint64 offline_at = 8; -inline void Peer::clear_offline_at() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offline_at_ = ::uint64_t{0u}; -} -inline ::uint64_t Peer::offline_at() const { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.offline_at) - return _internal_offline_at(); -} -inline void Peer::set_offline_at(::uint64_t value) { - _internal_set_offline_at(value); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.offline_at) -} -inline ::uint64_t Peer::_internal_offline_at() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.offline_at_; -} -inline void Peer::_internal_set_offline_at(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offline_at_ = value; -} - -// uint32 features = 9; -inline void Peer::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.features_ = 0u; -} -inline ::uint32_t Peer::features() const { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.features) - return _internal_features(); -} -inline void Peer::set_features(::uint32_t value) { - _internal_set_features(value); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.features) -} -inline ::uint32_t Peer::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.features_; -} -inline void Peer::_internal_set_features(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.features_ = value; -} - -// repeated bytes supported_protocols = 11; -inline int Peer::_internal_supported_protocols_size() const { - return _internal_supported_protocols().size(); -} -inline int Peer::supported_protocols_size() const { - return _internal_supported_protocols_size(); -} -inline void Peer::clear_supported_protocols() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.supported_protocols_.Clear(); -} -inline std::string* Peer::add_supported_protocols() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - std::string* _s = _internal_mutable_supported_protocols()->Add(); - // @@protoc_insertion_point(field_add_mutable:tari.rpc.Peer.supported_protocols) - return _s; -} -inline const std::string& Peer::supported_protocols(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.supported_protocols) - return _internal_supported_protocols().Get(index); -} -inline std::string* Peer::mutable_supported_protocols(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.supported_protocols) - return _internal_mutable_supported_protocols()->Mutable(index); -} -inline void Peer::set_supported_protocols(int index, const std::string& value) { - _internal_mutable_supported_protocols()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.supported_protocols) -} -inline void Peer::set_supported_protocols(int index, std::string&& value) { - _internal_mutable_supported_protocols()->Mutable(index)->assign(std::move(value)); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.supported_protocols) -} -inline void Peer::set_supported_protocols(int index, const char* value) { - ABSL_DCHECK(value != nullptr); - _internal_mutable_supported_protocols()->Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tari.rpc.Peer.supported_protocols) -} -inline void Peer::set_supported_protocols(int index, const void* value, - std::size_t size) { - _internal_mutable_supported_protocols()->Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tari.rpc.Peer.supported_protocols) -} -inline void Peer::set_supported_protocols(int index, absl::string_view value) { - _internal_mutable_supported_protocols()->Mutable(index)->assign( - value.data(), value.size()); - // @@protoc_insertion_point(field_set_string_piece:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign(value); - // @@protoc_insertion_point(field_add:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(std::string&& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add(std::move(value)); - // @@protoc_insertion_point(field_add:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(const char* value) { - ABSL_DCHECK(value != nullptr); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(const void* value, std::size_t size) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tari.rpc.Peer.supported_protocols) -} -inline void Peer::add_supported_protocols(absl::string_view value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_supported_protocols()->Add()->assign(value.data(), - value.size()); - // @@protoc_insertion_point(field_add_string_piece:tari.rpc.Peer.supported_protocols) -} -inline const ::google::protobuf::RepeatedPtrField& -Peer::supported_protocols() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.Peer.supported_protocols) - return _internal_supported_protocols(); -} -inline ::google::protobuf::RepeatedPtrField* -Peer::mutable_supported_protocols() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.Peer.supported_protocols) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_supported_protocols(); -} -inline const ::google::protobuf::RepeatedPtrField& -Peer::_internal_supported_protocols() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.supported_protocols_; -} -inline ::google::protobuf::RepeatedPtrField* -Peer::_internal_mutable_supported_protocols() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.supported_protocols_; -} - -// string user_agent = 12; -inline void Peer::clear_user_agent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_agent_.ClearToEmpty(); -} -inline const std::string& Peer::user_agent() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Peer.user_agent) - return _internal_user_agent(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Peer::set_user_agent(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_agent_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Peer.user_agent) -} -inline std::string* Peer::mutable_user_agent() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_user_agent(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Peer.user_agent) - return _s; -} -inline const std::string& Peer::_internal_user_agent() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.user_agent_.Get(); -} -inline void Peer::_internal_set_user_agent(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_agent_.Set(value, GetArena()); -} -inline std::string* Peer::_internal_mutable_user_agent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.user_agent_.Mutable( GetArena()); -} -inline std::string* Peer::release_user_agent() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Peer.user_agent) - return _impl_.user_agent_.Release(); -} -inline void Peer::set_allocated_user_agent(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.user_agent_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.user_agent_.IsDefault()) { - _impl_.user_agent_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Peer.user_agent) -} - -// ------------------------------------------------------------------- - -// NetworkStatusResponse - -// .tari.rpc.ConnectivityStatus status = 1; -inline void NetworkStatusResponse::clear_status() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = 0; -} -inline ::tari::rpc::ConnectivityStatus NetworkStatusResponse::status() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkStatusResponse.status) - return _internal_status(); -} -inline void NetworkStatusResponse::set_status(::tari::rpc::ConnectivityStatus value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkStatusResponse.status) -} -inline ::tari::rpc::ConnectivityStatus NetworkStatusResponse::_internal_status() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::ConnectivityStatus>(_impl_.status_); -} -inline void NetworkStatusResponse::_internal_set_status(::tari::rpc::ConnectivityStatus value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.status_ = value; -} - -// uint32 avg_latency_ms = 2; -inline void NetworkStatusResponse::clear_avg_latency_ms() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.avg_latency_ms_ = 0u; -} -inline ::uint32_t NetworkStatusResponse::avg_latency_ms() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkStatusResponse.avg_latency_ms) - return _internal_avg_latency_ms(); -} -inline void NetworkStatusResponse::set_avg_latency_ms(::uint32_t value) { - _internal_set_avg_latency_ms(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkStatusResponse.avg_latency_ms) -} -inline ::uint32_t NetworkStatusResponse::_internal_avg_latency_ms() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.avg_latency_ms_; -} -inline void NetworkStatusResponse::_internal_set_avg_latency_ms(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.avg_latency_ms_ = value; -} - -// uint32 num_node_connections = 3; -inline void NetworkStatusResponse::clear_num_node_connections() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.num_node_connections_ = 0u; -} -inline ::uint32_t NetworkStatusResponse::num_node_connections() const { - // @@protoc_insertion_point(field_get:tari.rpc.NetworkStatusResponse.num_node_connections) - return _internal_num_node_connections(); -} -inline void NetworkStatusResponse::set_num_node_connections(::uint32_t value) { - _internal_set_num_node_connections(value); - // @@protoc_insertion_point(field_set:tari.rpc.NetworkStatusResponse.num_node_connections) -} -inline ::uint32_t NetworkStatusResponse::_internal_num_node_connections() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.num_node_connections_; -} -inline void NetworkStatusResponse::_internal_set_num_node_connections(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.num_node_connections_ = value; -} - -// ------------------------------------------------------------------- - -// Address - -// bytes address = 1; -inline void Address::clear_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_.ClearToEmpty(); -} -inline const std::string& Address::address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Address.address) - return _internal_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Address::set_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Address.address) -} -inline std::string* Address::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_address(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Address.address) - return _s; -} -inline const std::string& Address::_internal_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.address_.Get(); -} -inline void Address::_internal_set_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_.Set(value, GetArena()); -} -inline std::string* Address::_internal_mutable_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.address_.Mutable( GetArena()); -} -inline std::string* Address::release_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Address.address) - return _impl_.address_.Release(); -} -inline void Address::set_allocated_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.address_.IsDefault()) { - _impl_.address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Address.address) -} - -// string last_seen = 2; -inline void Address::clear_last_seen() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_seen_.ClearToEmpty(); -} -inline const std::string& Address::last_seen() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Address.last_seen) - return _internal_last_seen(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Address::set_last_seen(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_seen_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Address.last_seen) -} -inline std::string* Address::mutable_last_seen() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_last_seen(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Address.last_seen) - return _s; -} -inline const std::string& Address::_internal_last_seen() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.last_seen_.Get(); -} -inline void Address::_internal_set_last_seen(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_seen_.Set(value, GetArena()); -} -inline std::string* Address::_internal_mutable_last_seen() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.last_seen_.Mutable( GetArena()); -} -inline std::string* Address::release_last_seen() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Address.last_seen) - return _impl_.last_seen_.Release(); -} -inline void Address::set_allocated_last_seen(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.last_seen_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.last_seen_.IsDefault()) { - _impl_.last_seen_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Address.last_seen) -} - -// uint32 connection_attempts = 3; -inline void Address::clear_connection_attempts() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.connection_attempts_ = 0u; -} -inline ::uint32_t Address::connection_attempts() const { - // @@protoc_insertion_point(field_get:tari.rpc.Address.connection_attempts) - return _internal_connection_attempts(); -} -inline void Address::set_connection_attempts(::uint32_t value) { - _internal_set_connection_attempts(value); - // @@protoc_insertion_point(field_set:tari.rpc.Address.connection_attempts) -} -inline ::uint32_t Address::_internal_connection_attempts() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.connection_attempts_; -} -inline void Address::_internal_set_connection_attempts(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.connection_attempts_ = value; -} - -// uint64 avg_latency = 5; -inline void Address::clear_avg_latency() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.avg_latency_ = ::uint64_t{0u}; -} -inline ::uint64_t Address::avg_latency() const { - // @@protoc_insertion_point(field_get:tari.rpc.Address.avg_latency) - return _internal_avg_latency(); -} -inline void Address::set_avg_latency(::uint64_t value) { - _internal_set_avg_latency(value); - // @@protoc_insertion_point(field_set:tari.rpc.Address.avg_latency) -} -inline ::uint64_t Address::_internal_avg_latency() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.avg_latency_; -} -inline void Address::_internal_set_avg_latency(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.avg_latency_ = value; -} - -// ------------------------------------------------------------------- - -// ListConnectedPeersResponse - -// repeated .tari.rpc.Peer connected_peers = 1; -inline int ListConnectedPeersResponse::_internal_connected_peers_size() const { - return _internal_connected_peers().size(); -} -inline int ListConnectedPeersResponse::connected_peers_size() const { - return _internal_connected_peers_size(); -} -inline void ListConnectedPeersResponse::clear_connected_peers() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.connected_peers_.Clear(); -} -inline ::tari::rpc::Peer* ListConnectedPeersResponse::mutable_connected_peers(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.ListConnectedPeersResponse.connected_peers) - return _internal_mutable_connected_peers()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* ListConnectedPeersResponse::mutable_connected_peers() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.ListConnectedPeersResponse.connected_peers) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_connected_peers(); -} -inline const ::tari::rpc::Peer& ListConnectedPeersResponse::connected_peers(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ListConnectedPeersResponse.connected_peers) - return _internal_connected_peers().Get(index); -} -inline ::tari::rpc::Peer* ListConnectedPeersResponse::add_connected_peers() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::Peer* _add = _internal_mutable_connected_peers()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.ListConnectedPeersResponse.connected_peers) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& ListConnectedPeersResponse::connected_peers() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.ListConnectedPeersResponse.connected_peers) - return _internal_connected_peers(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>& -ListConnectedPeersResponse::_internal_connected_peers() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.connected_peers_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::Peer>* -ListConnectedPeersResponse::_internal_mutable_connected_peers() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.connected_peers_; -} - -// ------------------------------------------------------------------- - -// SoftwareUpdate - -// bool has_update = 1; -inline void SoftwareUpdate::clear_has_update() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.has_update_ = false; -} -inline bool SoftwareUpdate::has_update() const { - // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.has_update) - return _internal_has_update(); -} -inline void SoftwareUpdate::set_has_update(bool value) { - _internal_set_has_update(value); - // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.has_update) -} -inline bool SoftwareUpdate::_internal_has_update() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.has_update_; -} -inline void SoftwareUpdate::_internal_set_has_update(bool value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.has_update_ = value; -} - -// string version = 2; -inline void SoftwareUpdate::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.ClearToEmpty(); -} -inline const std::string& SoftwareUpdate::version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.version) - return _internal_version(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_version(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.version) -} -inline std::string* SoftwareUpdate::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_version(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SoftwareUpdate.version) - return _s; -} -inline const std::string& SoftwareUpdate::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_.Get(); -} -inline void SoftwareUpdate::_internal_set_version(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.Set(value, GetArena()); -} -inline std::string* SoftwareUpdate::_internal_mutable_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.version_.Mutable( GetArena()); -} -inline std::string* SoftwareUpdate::release_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.SoftwareUpdate.version) - return _impl_.version_.Release(); -} -inline void SoftwareUpdate::set_allocated_version(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_.IsDefault()) { - _impl_.version_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SoftwareUpdate.version) -} - -// string sha = 3; -inline void SoftwareUpdate::clear_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sha_.ClearToEmpty(); -} -inline const std::string& SoftwareUpdate::sha() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.sha) - return _internal_sha(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_sha(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sha_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.sha) -} -inline std::string* SoftwareUpdate::mutable_sha() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sha(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SoftwareUpdate.sha) - return _s; -} -inline const std::string& SoftwareUpdate::_internal_sha() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sha_.Get(); -} -inline void SoftwareUpdate::_internal_set_sha(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sha_.Set(value, GetArena()); -} -inline std::string* SoftwareUpdate::_internal_mutable_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.sha_.Mutable( GetArena()); -} -inline std::string* SoftwareUpdate::release_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.SoftwareUpdate.sha) - return _impl_.sha_.Release(); -} -inline void SoftwareUpdate::set_allocated_sha(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sha_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sha_.IsDefault()) { - _impl_.sha_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SoftwareUpdate.sha) -} - -// string download_url = 4; -inline void SoftwareUpdate::clear_download_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.download_url_.ClearToEmpty(); -} -inline const std::string& SoftwareUpdate::download_url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SoftwareUpdate.download_url) - return _internal_download_url(); -} -template -inline PROTOBUF_ALWAYS_INLINE void SoftwareUpdate::set_download_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.download_url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.SoftwareUpdate.download_url) -} -inline std::string* SoftwareUpdate::mutable_download_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_download_url(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SoftwareUpdate.download_url) - return _s; -} -inline const std::string& SoftwareUpdate::_internal_download_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.download_url_.Get(); -} -inline void SoftwareUpdate::_internal_set_download_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.download_url_.Set(value, GetArena()); -} -inline std::string* SoftwareUpdate::_internal_mutable_download_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.download_url_.Mutable( GetArena()); -} -inline std::string* SoftwareUpdate::release_download_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.SoftwareUpdate.download_url) - return _impl_.download_url_.Release(); -} -inline void SoftwareUpdate::set_allocated_download_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.download_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.download_url_.IsDefault()) { - _impl_.download_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SoftwareUpdate.download_url) -} - -// ------------------------------------------------------------------- - -// GetIdentityRequest - -// ------------------------------------------------------------------- - -// GetIdentityResponse - -// bytes public_key = 1; -inline void GetIdentityResponse::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.ClearToEmpty(); -} -inline const std::string& GetIdentityResponse::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetIdentityResponse.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.public_key) -} -inline std::string* GetIdentityResponse::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetIdentityResponse.public_key) - return _s; -} -inline const std::string& GetIdentityResponse::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_key_.Get(); -} -inline void GetIdentityResponse::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.Set(value, GetArena()); -} -inline std::string* GetIdentityResponse::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_key_.Mutable( GetArena()); -} -inline std::string* GetIdentityResponse::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetIdentityResponse.public_key) - return _impl_.public_key_.Release(); -} -inline void GetIdentityResponse::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetIdentityResponse.public_key) -} - -// string public_address = 2; -inline void GetIdentityResponse::clear_public_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_address_.ClearToEmpty(); -} -inline const std::string& GetIdentityResponse::public_address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetIdentityResponse.public_address) - return _internal_public_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_public_address(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_address_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.public_address) -} -inline std::string* GetIdentityResponse::mutable_public_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_address(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetIdentityResponse.public_address) - return _s; -} -inline const std::string& GetIdentityResponse::_internal_public_address() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_address_.Get(); -} -inline void GetIdentityResponse::_internal_set_public_address(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_address_.Set(value, GetArena()); -} -inline std::string* GetIdentityResponse::_internal_mutable_public_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_address_.Mutable( GetArena()); -} -inline std::string* GetIdentityResponse::release_public_address() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetIdentityResponse.public_address) - return _impl_.public_address_.Release(); -} -inline void GetIdentityResponse::set_allocated_public_address(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_address_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_address_.IsDefault()) { - _impl_.public_address_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetIdentityResponse.public_address) -} - -// bytes node_id = 3; -inline void GetIdentityResponse::clear_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.ClearToEmpty(); -} -inline const std::string& GetIdentityResponse::node_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.GetIdentityResponse.node_id) - return _internal_node_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE void GetIdentityResponse::set_node_id(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.GetIdentityResponse.node_id) -} -inline std::string* GetIdentityResponse::mutable_node_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_node_id(); - // @@protoc_insertion_point(field_mutable:tari.rpc.GetIdentityResponse.node_id) - return _s; -} -inline const std::string& GetIdentityResponse::_internal_node_id() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.node_id_.Get(); -} -inline void GetIdentityResponse::_internal_set_node_id(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.Set(value, GetArena()); -} -inline std::string* GetIdentityResponse::_internal_mutable_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.node_id_.Mutable( GetArena()); -} -inline std::string* GetIdentityResponse::release_node_id() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.GetIdentityResponse.node_id) - return _impl_.node_id_.Release(); -} -inline void GetIdentityResponse::set_allocated_node_id(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.node_id_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.node_id_.IsDefault()) { - _impl_.node_id_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.GetIdentityResponse.node_id) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::tari::rpc::ConnectivityStatus> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::ConnectivityStatus>() { - return ::tari::rpc::ConnectivityStatus_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_network_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb-c.c b/external/src/Tari/proto/gRPC/sidechain_types.pb-c.c new file mode 100644 index 00000000..fe5220b2 --- /dev/null +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb-c.c @@ -0,0 +1,885 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: sidechain_types.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "sidechain_types.pb-c.h" +void tari__rpc__side_chain_feature__init + (Tari__Rpc__SideChainFeature *message) +{ + static const Tari__Rpc__SideChainFeature init_value = TARI__RPC__SIDE_CHAIN_FEATURE__INIT; + *message = init_value; +} +size_t tari__rpc__side_chain_feature__get_packed_size + (const Tari__Rpc__SideChainFeature *message) +{ + assert(message->base.descriptor == &tari__rpc__side_chain_feature__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__side_chain_feature__pack + (const Tari__Rpc__SideChainFeature *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__side_chain_feature__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__side_chain_feature__pack_to_buffer + (const Tari__Rpc__SideChainFeature *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__side_chain_feature__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__SideChainFeature * + tari__rpc__side_chain_feature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__SideChainFeature *) + protobuf_c_message_unpack (&tari__rpc__side_chain_feature__descriptor, + allocator, len, data); +} +void tari__rpc__side_chain_feature__free_unpacked + (Tari__Rpc__SideChainFeature *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__side_chain_feature__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__validator_node_registration__init + (Tari__Rpc__ValidatorNodeRegistration *message) +{ + static const Tari__Rpc__ValidatorNodeRegistration init_value = TARI__RPC__VALIDATOR_NODE_REGISTRATION__INIT; + *message = init_value; +} +size_t tari__rpc__validator_node_registration__get_packed_size + (const Tari__Rpc__ValidatorNodeRegistration *message) +{ + assert(message->base.descriptor == &tari__rpc__validator_node_registration__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__validator_node_registration__pack + (const Tari__Rpc__ValidatorNodeRegistration *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__validator_node_registration__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__validator_node_registration__pack_to_buffer + (const Tari__Rpc__ValidatorNodeRegistration *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__validator_node_registration__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ValidatorNodeRegistration * + tari__rpc__validator_node_registration__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ValidatorNodeRegistration *) + protobuf_c_message_unpack (&tari__rpc__validator_node_registration__descriptor, + allocator, len, data); +} +void tari__rpc__validator_node_registration__free_unpacked + (Tari__Rpc__ValidatorNodeRegistration *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__validator_node_registration__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__template_registration__init + (Tari__Rpc__TemplateRegistration *message) +{ + static const Tari__Rpc__TemplateRegistration init_value = TARI__RPC__TEMPLATE_REGISTRATION__INIT; + *message = init_value; +} +size_t tari__rpc__template_registration__get_packed_size + (const Tari__Rpc__TemplateRegistration *message) +{ + assert(message->base.descriptor == &tari__rpc__template_registration__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__template_registration__pack + (const Tari__Rpc__TemplateRegistration *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__template_registration__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__template_registration__pack_to_buffer + (const Tari__Rpc__TemplateRegistration *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__template_registration__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TemplateRegistration * + tari__rpc__template_registration__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TemplateRegistration *) + protobuf_c_message_unpack (&tari__rpc__template_registration__descriptor, + allocator, len, data); +} +void tari__rpc__template_registration__free_unpacked + (Tari__Rpc__TemplateRegistration *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__template_registration__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__confidential_output_data__init + (Tari__Rpc__ConfidentialOutputData *message) +{ + static const Tari__Rpc__ConfidentialOutputData init_value = TARI__RPC__CONFIDENTIAL_OUTPUT_DATA__INIT; + *message = init_value; +} +size_t tari__rpc__confidential_output_data__get_packed_size + (const Tari__Rpc__ConfidentialOutputData *message) +{ + assert(message->base.descriptor == &tari__rpc__confidential_output_data__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__confidential_output_data__pack + (const Tari__Rpc__ConfidentialOutputData *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__confidential_output_data__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__confidential_output_data__pack_to_buffer + (const Tari__Rpc__ConfidentialOutputData *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__confidential_output_data__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ConfidentialOutputData * + tari__rpc__confidential_output_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ConfidentialOutputData *) + protobuf_c_message_unpack (&tari__rpc__confidential_output_data__descriptor, + allocator, len, data); +} +void tari__rpc__confidential_output_data__free_unpacked + (Tari__Rpc__ConfidentialOutputData *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__confidential_output_data__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__template_type__init + (Tari__Rpc__TemplateType *message) +{ + static const Tari__Rpc__TemplateType init_value = TARI__RPC__TEMPLATE_TYPE__INIT; + *message = init_value; +} +size_t tari__rpc__template_type__get_packed_size + (const Tari__Rpc__TemplateType *message) +{ + assert(message->base.descriptor == &tari__rpc__template_type__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__template_type__pack + (const Tari__Rpc__TemplateType *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__template_type__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__template_type__pack_to_buffer + (const Tari__Rpc__TemplateType *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__template_type__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TemplateType * + tari__rpc__template_type__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TemplateType *) + protobuf_c_message_unpack (&tari__rpc__template_type__descriptor, + allocator, len, data); +} +void tari__rpc__template_type__free_unpacked + (Tari__Rpc__TemplateType *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__template_type__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__wasm_info__init + (Tari__Rpc__WasmInfo *message) +{ + static const Tari__Rpc__WasmInfo init_value = TARI__RPC__WASM_INFO__INIT; + *message = init_value; +} +size_t tari__rpc__wasm_info__get_packed_size + (const Tari__Rpc__WasmInfo *message) +{ + assert(message->base.descriptor == &tari__rpc__wasm_info__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__wasm_info__pack + (const Tari__Rpc__WasmInfo *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__wasm_info__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__wasm_info__pack_to_buffer + (const Tari__Rpc__WasmInfo *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__wasm_info__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__WasmInfo * + tari__rpc__wasm_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__WasmInfo *) + protobuf_c_message_unpack (&tari__rpc__wasm_info__descriptor, + allocator, len, data); +} +void tari__rpc__wasm_info__free_unpacked + (Tari__Rpc__WasmInfo *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__wasm_info__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__flow_info__init + (Tari__Rpc__FlowInfo *message) +{ + static const Tari__Rpc__FlowInfo init_value = TARI__RPC__FLOW_INFO__INIT; + *message = init_value; +} +size_t tari__rpc__flow_info__get_packed_size + (const Tari__Rpc__FlowInfo *message) +{ + assert(message->base.descriptor == &tari__rpc__flow_info__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__flow_info__pack + (const Tari__Rpc__FlowInfo *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__flow_info__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__flow_info__pack_to_buffer + (const Tari__Rpc__FlowInfo *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__flow_info__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__FlowInfo * + tari__rpc__flow_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__FlowInfo *) + protobuf_c_message_unpack (&tari__rpc__flow_info__descriptor, + allocator, len, data); +} +void tari__rpc__flow_info__free_unpacked + (Tari__Rpc__FlowInfo *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__flow_info__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__manifest_info__init + (Tari__Rpc__ManifestInfo *message) +{ + static const Tari__Rpc__ManifestInfo init_value = TARI__RPC__MANIFEST_INFO__INIT; + *message = init_value; +} +size_t tari__rpc__manifest_info__get_packed_size + (const Tari__Rpc__ManifestInfo *message) +{ + assert(message->base.descriptor == &tari__rpc__manifest_info__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__manifest_info__pack + (const Tari__Rpc__ManifestInfo *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__manifest_info__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__manifest_info__pack_to_buffer + (const Tari__Rpc__ManifestInfo *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__manifest_info__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ManifestInfo * + tari__rpc__manifest_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ManifestInfo *) + protobuf_c_message_unpack (&tari__rpc__manifest_info__descriptor, + allocator, len, data); +} +void tari__rpc__manifest_info__free_unpacked + (Tari__Rpc__ManifestInfo *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__manifest_info__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__build_info__init + (Tari__Rpc__BuildInfo *message) +{ + static const Tari__Rpc__BuildInfo init_value = TARI__RPC__BUILD_INFO__INIT; + *message = init_value; +} +size_t tari__rpc__build_info__get_packed_size + (const Tari__Rpc__BuildInfo *message) +{ + assert(message->base.descriptor == &tari__rpc__build_info__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__build_info__pack + (const Tari__Rpc__BuildInfo *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__build_info__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__build_info__pack_to_buffer + (const Tari__Rpc__BuildInfo *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__build_info__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BuildInfo * + tari__rpc__build_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BuildInfo *) + protobuf_c_message_unpack (&tari__rpc__build_info__descriptor, + allocator, len, data); +} +void tari__rpc__build_info__free_unpacked + (Tari__Rpc__BuildInfo *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__build_info__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tari__rpc__side_chain_feature__field_descriptors[3] = +{ + { + "validator_node_registration", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__SideChainFeature, side_chain_feature_case), + offsetof(Tari__Rpc__SideChainFeature, validator_node_registration), + &tari__rpc__validator_node_registration__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "template_registration", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__SideChainFeature, side_chain_feature_case), + offsetof(Tari__Rpc__SideChainFeature, template_registration), + &tari__rpc__template_registration__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "confidential_output", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__SideChainFeature, side_chain_feature_case), + offsetof(Tari__Rpc__SideChainFeature, confidential_output), + &tari__rpc__confidential_output_data__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__side_chain_feature__field_indices_by_name[] = { + 2, /* field[2] = confidential_output */ + 1, /* field[1] = template_registration */ + 0, /* field[0] = validator_node_registration */ +}; +static const ProtobufCIntRange tari__rpc__side_chain_feature__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__side_chain_feature__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.SideChainFeature", + "SideChainFeature", + "Tari__Rpc__SideChainFeature", + "tari.rpc", + sizeof(Tari__Rpc__SideChainFeature), + 3, + tari__rpc__side_chain_feature__field_descriptors, + tari__rpc__side_chain_feature__field_indices_by_name, + 1, tari__rpc__side_chain_feature__number_ranges, + (ProtobufCMessageInit) tari__rpc__side_chain_feature__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__validator_node_registration__field_descriptors[2] = +{ + { + "public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ValidatorNodeRegistration, public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "signature", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ValidatorNodeRegistration, signature), + &tari__rpc__signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__validator_node_registration__field_indices_by_name[] = { + 0, /* field[0] = public_key */ + 1, /* field[1] = signature */ +}; +static const ProtobufCIntRange tari__rpc__validator_node_registration__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__validator_node_registration__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ValidatorNodeRegistration", + "ValidatorNodeRegistration", + "Tari__Rpc__ValidatorNodeRegistration", + "tari.rpc", + sizeof(Tari__Rpc__ValidatorNodeRegistration), + 2, + tari__rpc__validator_node_registration__field_descriptors, + tari__rpc__validator_node_registration__field_indices_by_name, + 1, tari__rpc__validator_node_registration__number_ranges, + (ProtobufCMessageInit) tari__rpc__validator_node_registration__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__template_registration__field_descriptors[8] = +{ + { + "author_public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, author_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "author_signature", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, author_signature), + &tari__rpc__signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "template_name", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, template_name), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "template_version", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, template_version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "template_type", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, template_type), + &tari__rpc__template_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "build_info", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, build_info), + &tari__rpc__build_info__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "binary_sha", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, binary_sha), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "binary_url", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TemplateRegistration, binary_url), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__template_registration__field_indices_by_name[] = { + 0, /* field[0] = author_public_key */ + 1, /* field[1] = author_signature */ + 6, /* field[6] = binary_sha */ + 7, /* field[7] = binary_url */ + 5, /* field[5] = build_info */ + 2, /* field[2] = template_name */ + 4, /* field[4] = template_type */ + 3, /* field[3] = template_version */ +}; +static const ProtobufCIntRange tari__rpc__template_registration__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor tari__rpc__template_registration__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TemplateRegistration", + "TemplateRegistration", + "Tari__Rpc__TemplateRegistration", + "tari.rpc", + sizeof(Tari__Rpc__TemplateRegistration), + 8, + tari__rpc__template_registration__field_descriptors, + tari__rpc__template_registration__field_indices_by_name, + 1, tari__rpc__template_registration__number_ranges, + (ProtobufCMessageInit) tari__rpc__template_registration__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__confidential_output_data__field_descriptors[1] = +{ + { + "claim_public_key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConfidentialOutputData, claim_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__confidential_output_data__field_indices_by_name[] = { + 0, /* field[0] = claim_public_key */ +}; +static const ProtobufCIntRange tari__rpc__confidential_output_data__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__confidential_output_data__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ConfidentialOutputData", + "ConfidentialOutputData", + "Tari__Rpc__ConfidentialOutputData", + "tari.rpc", + sizeof(Tari__Rpc__ConfidentialOutputData), + 1, + tari__rpc__confidential_output_data__field_descriptors, + tari__rpc__confidential_output_data__field_indices_by_name, + 1, tari__rpc__confidential_output_data__number_ranges, + (ProtobufCMessageInit) tari__rpc__confidential_output_data__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__template_type__field_descriptors[3] = +{ + { + "wasm", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__TemplateType, template_type_case), + offsetof(Tari__Rpc__TemplateType, wasm), + &tari__rpc__wasm_info__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "flow", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__TemplateType, template_type_case), + offsetof(Tari__Rpc__TemplateType, flow), + &tari__rpc__flow_info__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "manifest", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__TemplateType, template_type_case), + offsetof(Tari__Rpc__TemplateType, manifest), + &tari__rpc__manifest_info__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__template_type__field_indices_by_name[] = { + 1, /* field[1] = flow */ + 2, /* field[2] = manifest */ + 0, /* field[0] = wasm */ +}; +static const ProtobufCIntRange tari__rpc__template_type__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__template_type__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TemplateType", + "TemplateType", + "Tari__Rpc__TemplateType", + "tari.rpc", + sizeof(Tari__Rpc__TemplateType), + 3, + tari__rpc__template_type__field_descriptors, + tari__rpc__template_type__field_indices_by_name, + 1, tari__rpc__template_type__number_ranges, + (ProtobufCMessageInit) tari__rpc__template_type__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__wasm_info__field_descriptors[1] = +{ + { + "abi_version", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__WasmInfo, abi_version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__wasm_info__field_indices_by_name[] = { + 0, /* field[0] = abi_version */ +}; +static const ProtobufCIntRange tari__rpc__wasm_info__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__wasm_info__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.WasmInfo", + "WasmInfo", + "Tari__Rpc__WasmInfo", + "tari.rpc", + sizeof(Tari__Rpc__WasmInfo), + 1, + tari__rpc__wasm_info__field_descriptors, + tari__rpc__wasm_info__field_indices_by_name, + 1, tari__rpc__wasm_info__number_ranges, + (ProtobufCMessageInit) tari__rpc__wasm_info__init, + NULL,NULL,NULL /* reserved[123] */ +}; +#define tari__rpc__flow_info__field_descriptors NULL +#define tari__rpc__flow_info__field_indices_by_name NULL +#define tari__rpc__flow_info__number_ranges NULL +const ProtobufCMessageDescriptor tari__rpc__flow_info__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.FlowInfo", + "FlowInfo", + "Tari__Rpc__FlowInfo", + "tari.rpc", + sizeof(Tari__Rpc__FlowInfo), + 0, + tari__rpc__flow_info__field_descriptors, + tari__rpc__flow_info__field_indices_by_name, + 0, tari__rpc__flow_info__number_ranges, + (ProtobufCMessageInit) tari__rpc__flow_info__init, + NULL,NULL,NULL /* reserved[123] */ +}; +#define tari__rpc__manifest_info__field_descriptors NULL +#define tari__rpc__manifest_info__field_indices_by_name NULL +#define tari__rpc__manifest_info__number_ranges NULL +const ProtobufCMessageDescriptor tari__rpc__manifest_info__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ManifestInfo", + "ManifestInfo", + "Tari__Rpc__ManifestInfo", + "tari.rpc", + sizeof(Tari__Rpc__ManifestInfo), + 0, + tari__rpc__manifest_info__field_descriptors, + tari__rpc__manifest_info__field_indices_by_name, + 0, tari__rpc__manifest_info__number_ranges, + (ProtobufCMessageInit) tari__rpc__manifest_info__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__build_info__field_descriptors[2] = +{ + { + "repo_url", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BuildInfo, repo_url), + NULL, + &protobuf_c_empty_string, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "commit_hash", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BuildInfo, commit_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__build_info__field_indices_by_name[] = { + 1, /* field[1] = commit_hash */ + 0, /* field[0] = repo_url */ +}; +static const ProtobufCIntRange tari__rpc__build_info__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__build_info__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BuildInfo", + "BuildInfo", + "Tari__Rpc__BuildInfo", + "tari.rpc", + sizeof(Tari__Rpc__BuildInfo), + 2, + tari__rpc__build_info__field_descriptors, + tari__rpc__build_info__field_indices_by_name, + 1, tari__rpc__build_info__number_ranges, + (ProtobufCMessageInit) tari__rpc__build_info__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb-c.h b/external/src/Tari/proto/gRPC/sidechain_types.pb-c.h new file mode 100644 index 00000000..e8d610d4 --- /dev/null +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb-c.h @@ -0,0 +1,377 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: sidechain_types.proto */ + +#ifndef PROTOBUF_C_sidechain_5ftypes_2eproto__INCLUDED +#define PROTOBUF_C_sidechain_5ftypes_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "types.pb-c.h" + +typedef struct _Tari__Rpc__SideChainFeature Tari__Rpc__SideChainFeature; +typedef struct _Tari__Rpc__ValidatorNodeRegistration Tari__Rpc__ValidatorNodeRegistration; +typedef struct _Tari__Rpc__TemplateRegistration Tari__Rpc__TemplateRegistration; +typedef struct _Tari__Rpc__ConfidentialOutputData Tari__Rpc__ConfidentialOutputData; +typedef struct _Tari__Rpc__TemplateType Tari__Rpc__TemplateType; +typedef struct _Tari__Rpc__WasmInfo Tari__Rpc__WasmInfo; +typedef struct _Tari__Rpc__FlowInfo Tari__Rpc__FlowInfo; +typedef struct _Tari__Rpc__ManifestInfo Tari__Rpc__ManifestInfo; +typedef struct _Tari__Rpc__BuildInfo Tari__Rpc__BuildInfo; + + +/* --- enums --- */ + + +/* --- messages --- */ + +typedef enum { + TARI__RPC__SIDE_CHAIN_FEATURE__SIDE_CHAIN_FEATURE__NOT_SET = 0, + TARI__RPC__SIDE_CHAIN_FEATURE__SIDE_CHAIN_FEATURE_VALIDATOR_NODE_REGISTRATION = 1, + TARI__RPC__SIDE_CHAIN_FEATURE__SIDE_CHAIN_FEATURE_TEMPLATE_REGISTRATION = 2, + TARI__RPC__SIDE_CHAIN_FEATURE__SIDE_CHAIN_FEATURE_CONFIDENTIAL_OUTPUT = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__SIDE_CHAIN_FEATURE__SIDE_CHAIN_FEATURE) +} Tari__Rpc__SideChainFeature__SideChainFeatureCase; + +struct _Tari__Rpc__SideChainFeature +{ + ProtobufCMessage base; + Tari__Rpc__SideChainFeature__SideChainFeatureCase side_chain_feature_case; + union { + Tari__Rpc__ValidatorNodeRegistration *validator_node_registration; + Tari__Rpc__TemplateRegistration *template_registration; + Tari__Rpc__ConfidentialOutputData *confidential_output; + }; +}; +#define TARI__RPC__SIDE_CHAIN_FEATURE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__side_chain_feature__descriptor) \ + , TARI__RPC__SIDE_CHAIN_FEATURE__SIDE_CHAIN_FEATURE__NOT_SET, {0} } + + +struct _Tari__Rpc__ValidatorNodeRegistration +{ + ProtobufCMessage base; + ProtobufCBinaryData public_key; + Tari__Rpc__Signature *signature; +}; +#define TARI__RPC__VALIDATOR_NODE_REGISTRATION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__validator_node_registration__descriptor) \ + , {0,NULL}, NULL } + + +struct _Tari__Rpc__TemplateRegistration +{ + ProtobufCMessage base; + ProtobufCBinaryData author_public_key; + Tari__Rpc__Signature *author_signature; + char *template_name; + uint32_t template_version; + Tari__Rpc__TemplateType *template_type; + Tari__Rpc__BuildInfo *build_info; + ProtobufCBinaryData binary_sha; + char *binary_url; +}; +#define TARI__RPC__TEMPLATE_REGISTRATION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__template_registration__descriptor) \ + , {0,NULL}, NULL, (char *)protobuf_c_empty_string, 0, NULL, NULL, {0,NULL}, (char *)protobuf_c_empty_string } + + +struct _Tari__Rpc__ConfidentialOutputData +{ + ProtobufCMessage base; + ProtobufCBinaryData claim_public_key; +}; +#define TARI__RPC__CONFIDENTIAL_OUTPUT_DATA__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__confidential_output_data__descriptor) \ + , {0,NULL} } + + +typedef enum { + TARI__RPC__TEMPLATE_TYPE__TEMPLATE_TYPE__NOT_SET = 0, + TARI__RPC__TEMPLATE_TYPE__TEMPLATE_TYPE_WASM = 1, + TARI__RPC__TEMPLATE_TYPE__TEMPLATE_TYPE_FLOW = 2, + TARI__RPC__TEMPLATE_TYPE__TEMPLATE_TYPE_MANIFEST = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__TEMPLATE_TYPE__TEMPLATE_TYPE) +} Tari__Rpc__TemplateType__TemplateTypeCase; + +struct _Tari__Rpc__TemplateType +{ + ProtobufCMessage base; + Tari__Rpc__TemplateType__TemplateTypeCase template_type_case; + union { + Tari__Rpc__WasmInfo *wasm; + Tari__Rpc__FlowInfo *flow; + Tari__Rpc__ManifestInfo *manifest; + }; +}; +#define TARI__RPC__TEMPLATE_TYPE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__template_type__descriptor) \ + , TARI__RPC__TEMPLATE_TYPE__TEMPLATE_TYPE__NOT_SET, {0} } + + +struct _Tari__Rpc__WasmInfo +{ + ProtobufCMessage base; + uint32_t abi_version; +}; +#define TARI__RPC__WASM_INFO__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__wasm_info__descriptor) \ + , 0 } + + +struct _Tari__Rpc__FlowInfo +{ + ProtobufCMessage base; +}; +#define TARI__RPC__FLOW_INFO__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__flow_info__descriptor) \ + } + + +struct _Tari__Rpc__ManifestInfo +{ + ProtobufCMessage base; +}; +#define TARI__RPC__MANIFEST_INFO__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__manifest_info__descriptor) \ + } + + +struct _Tari__Rpc__BuildInfo +{ + ProtobufCMessage base; + char *repo_url; + ProtobufCBinaryData commit_hash; +}; +#define TARI__RPC__BUILD_INFO__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__build_info__descriptor) \ + , (char *)protobuf_c_empty_string, {0,NULL} } + + +/* Tari__Rpc__SideChainFeature methods */ +void tari__rpc__side_chain_feature__init + (Tari__Rpc__SideChainFeature *message); +size_t tari__rpc__side_chain_feature__get_packed_size + (const Tari__Rpc__SideChainFeature *message); +size_t tari__rpc__side_chain_feature__pack + (const Tari__Rpc__SideChainFeature *message, + uint8_t *out); +size_t tari__rpc__side_chain_feature__pack_to_buffer + (const Tari__Rpc__SideChainFeature *message, + ProtobufCBuffer *buffer); +Tari__Rpc__SideChainFeature * + tari__rpc__side_chain_feature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__side_chain_feature__free_unpacked + (Tari__Rpc__SideChainFeature *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ValidatorNodeRegistration methods */ +void tari__rpc__validator_node_registration__init + (Tari__Rpc__ValidatorNodeRegistration *message); +size_t tari__rpc__validator_node_registration__get_packed_size + (const Tari__Rpc__ValidatorNodeRegistration *message); +size_t tari__rpc__validator_node_registration__pack + (const Tari__Rpc__ValidatorNodeRegistration *message, + uint8_t *out); +size_t tari__rpc__validator_node_registration__pack_to_buffer + (const Tari__Rpc__ValidatorNodeRegistration *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ValidatorNodeRegistration * + tari__rpc__validator_node_registration__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__validator_node_registration__free_unpacked + (Tari__Rpc__ValidatorNodeRegistration *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__TemplateRegistration methods */ +void tari__rpc__template_registration__init + (Tari__Rpc__TemplateRegistration *message); +size_t tari__rpc__template_registration__get_packed_size + (const Tari__Rpc__TemplateRegistration *message); +size_t tari__rpc__template_registration__pack + (const Tari__Rpc__TemplateRegistration *message, + uint8_t *out); +size_t tari__rpc__template_registration__pack_to_buffer + (const Tari__Rpc__TemplateRegistration *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TemplateRegistration * + tari__rpc__template_registration__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__template_registration__free_unpacked + (Tari__Rpc__TemplateRegistration *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ConfidentialOutputData methods */ +void tari__rpc__confidential_output_data__init + (Tari__Rpc__ConfidentialOutputData *message); +size_t tari__rpc__confidential_output_data__get_packed_size + (const Tari__Rpc__ConfidentialOutputData *message); +size_t tari__rpc__confidential_output_data__pack + (const Tari__Rpc__ConfidentialOutputData *message, + uint8_t *out); +size_t tari__rpc__confidential_output_data__pack_to_buffer + (const Tari__Rpc__ConfidentialOutputData *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ConfidentialOutputData * + tari__rpc__confidential_output_data__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__confidential_output_data__free_unpacked + (Tari__Rpc__ConfidentialOutputData *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__TemplateType methods */ +void tari__rpc__template_type__init + (Tari__Rpc__TemplateType *message); +size_t tari__rpc__template_type__get_packed_size + (const Tari__Rpc__TemplateType *message); +size_t tari__rpc__template_type__pack + (const Tari__Rpc__TemplateType *message, + uint8_t *out); +size_t tari__rpc__template_type__pack_to_buffer + (const Tari__Rpc__TemplateType *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TemplateType * + tari__rpc__template_type__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__template_type__free_unpacked + (Tari__Rpc__TemplateType *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__WasmInfo methods */ +void tari__rpc__wasm_info__init + (Tari__Rpc__WasmInfo *message); +size_t tari__rpc__wasm_info__get_packed_size + (const Tari__Rpc__WasmInfo *message); +size_t tari__rpc__wasm_info__pack + (const Tari__Rpc__WasmInfo *message, + uint8_t *out); +size_t tari__rpc__wasm_info__pack_to_buffer + (const Tari__Rpc__WasmInfo *message, + ProtobufCBuffer *buffer); +Tari__Rpc__WasmInfo * + tari__rpc__wasm_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__wasm_info__free_unpacked + (Tari__Rpc__WasmInfo *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__FlowInfo methods */ +void tari__rpc__flow_info__init + (Tari__Rpc__FlowInfo *message); +size_t tari__rpc__flow_info__get_packed_size + (const Tari__Rpc__FlowInfo *message); +size_t tari__rpc__flow_info__pack + (const Tari__Rpc__FlowInfo *message, + uint8_t *out); +size_t tari__rpc__flow_info__pack_to_buffer + (const Tari__Rpc__FlowInfo *message, + ProtobufCBuffer *buffer); +Tari__Rpc__FlowInfo * + tari__rpc__flow_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__flow_info__free_unpacked + (Tari__Rpc__FlowInfo *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ManifestInfo methods */ +void tari__rpc__manifest_info__init + (Tari__Rpc__ManifestInfo *message); +size_t tari__rpc__manifest_info__get_packed_size + (const Tari__Rpc__ManifestInfo *message); +size_t tari__rpc__manifest_info__pack + (const Tari__Rpc__ManifestInfo *message, + uint8_t *out); +size_t tari__rpc__manifest_info__pack_to_buffer + (const Tari__Rpc__ManifestInfo *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ManifestInfo * + tari__rpc__manifest_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__manifest_info__free_unpacked + (Tari__Rpc__ManifestInfo *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BuildInfo methods */ +void tari__rpc__build_info__init + (Tari__Rpc__BuildInfo *message); +size_t tari__rpc__build_info__get_packed_size + (const Tari__Rpc__BuildInfo *message); +size_t tari__rpc__build_info__pack + (const Tari__Rpc__BuildInfo *message, + uint8_t *out); +size_t tari__rpc__build_info__pack_to_buffer + (const Tari__Rpc__BuildInfo *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BuildInfo * + tari__rpc__build_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__build_info__free_unpacked + (Tari__Rpc__BuildInfo *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tari__Rpc__SideChainFeature_Closure) + (const Tari__Rpc__SideChainFeature *message, + void *closure_data); +typedef void (*Tari__Rpc__ValidatorNodeRegistration_Closure) + (const Tari__Rpc__ValidatorNodeRegistration *message, + void *closure_data); +typedef void (*Tari__Rpc__TemplateRegistration_Closure) + (const Tari__Rpc__TemplateRegistration *message, + void *closure_data); +typedef void (*Tari__Rpc__ConfidentialOutputData_Closure) + (const Tari__Rpc__ConfidentialOutputData *message, + void *closure_data); +typedef void (*Tari__Rpc__TemplateType_Closure) + (const Tari__Rpc__TemplateType *message, + void *closure_data); +typedef void (*Tari__Rpc__WasmInfo_Closure) + (const Tari__Rpc__WasmInfo *message, + void *closure_data); +typedef void (*Tari__Rpc__FlowInfo_Closure) + (const Tari__Rpc__FlowInfo *message, + void *closure_data); +typedef void (*Tari__Rpc__ManifestInfo_Closure) + (const Tari__Rpc__ManifestInfo *message, + void *closure_data); +typedef void (*Tari__Rpc__BuildInfo_Closure) + (const Tari__Rpc__BuildInfo *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tari__rpc__side_chain_feature__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__validator_node_registration__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__template_registration__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__confidential_output_data__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__template_type__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__wasm_info__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__flow_info__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__manifest_info__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__build_info__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_sidechain_5ftypes_2eproto__INCLUDED */ diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb.cc b/external/src/Tari/proto/gRPC/sidechain_types.pb.cc deleted file mode 100644 index 0699c5aa..00000000 --- a/external/src/Tari/proto/gRPC/sidechain_types.pb.cc +++ /dev/null @@ -1,2492 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: sidechain_types.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#include "sidechain_types.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.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" -#include "google/protobuf/generated_message_tctable_impl.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 tari { -namespace rpc { - -inline constexpr WasmInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : abi_version_{0u}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR WasmInfo::WasmInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WasmInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR WasmInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WasmInfoDefaultTypeInternal() {} - union { - WasmInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WasmInfoDefaultTypeInternal _WasmInfo_default_instance_; - template -PROTOBUF_CONSTEXPR ManifestInfo::ManifestInfo(::_pbi::ConstantInitialized) {} -struct ManifestInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR ManifestInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ManifestInfoDefaultTypeInternal() {} - union { - ManifestInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManifestInfoDefaultTypeInternal _ManifestInfo_default_instance_; - template -PROTOBUF_CONSTEXPR FlowInfo::FlowInfo(::_pbi::ConstantInitialized) {} -struct FlowInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR FlowInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~FlowInfoDefaultTypeInternal() {} - union { - FlowInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowInfoDefaultTypeInternal _FlowInfo_default_instance_; - -inline constexpr ConfidentialOutputData::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : claim_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ConfidentialOutputData::ConfidentialOutputData(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ConfidentialOutputDataDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConfidentialOutputDataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ConfidentialOutputDataDefaultTypeInternal() {} - union { - ConfidentialOutputData _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfidentialOutputDataDefaultTypeInternal _ConfidentialOutputData_default_instance_; - -inline constexpr BuildInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : repo_url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - commit_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BuildInfo::BuildInfo(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BuildInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR BuildInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BuildInfoDefaultTypeInternal() {} - union { - BuildInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BuildInfoDefaultTypeInternal _BuildInfo_default_instance_; - -inline constexpr ValidatorNodeRegistration::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - signature_{nullptr} {} - -template -PROTOBUF_CONSTEXPR ValidatorNodeRegistration::ValidatorNodeRegistration(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ValidatorNodeRegistrationDefaultTypeInternal { - PROTOBUF_CONSTEXPR ValidatorNodeRegistrationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ValidatorNodeRegistrationDefaultTypeInternal() {} - union { - ValidatorNodeRegistration _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValidatorNodeRegistrationDefaultTypeInternal _ValidatorNodeRegistration_default_instance_; - -inline constexpr TemplateType::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : template_type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR TemplateType::TemplateType(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TemplateTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR TemplateTypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TemplateTypeDefaultTypeInternal() {} - union { - TemplateType _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemplateTypeDefaultTypeInternal _TemplateType_default_instance_; - -inline constexpr TemplateRegistration::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - author_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - template_name_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - binary_sha_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - binary_url_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - author_signature_{nullptr}, - template_type_{nullptr}, - build_info_{nullptr}, - template_version_{0u} {} - -template -PROTOBUF_CONSTEXPR TemplateRegistration::TemplateRegistration(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TemplateRegistrationDefaultTypeInternal { - PROTOBUF_CONSTEXPR TemplateRegistrationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TemplateRegistrationDefaultTypeInternal() {} - union { - TemplateRegistration _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TemplateRegistrationDefaultTypeInternal _TemplateRegistration_default_instance_; - -inline constexpr SideChainFeature::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : side_chain_feature_{}, - _cached_size_{0}, - _oneof_case_{} {} - -template -PROTOBUF_CONSTEXPR SideChainFeature::SideChainFeature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SideChainFeatureDefaultTypeInternal { - PROTOBUF_CONSTEXPR SideChainFeatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SideChainFeatureDefaultTypeInternal() {} - union { - SideChainFeature _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChainFeatureDefaultTypeInternal _SideChainFeature_default_instance_; -} // namespace rpc -} // namespace tari -static ::_pb::Metadata file_level_metadata_sidechain_5ftypes_2eproto[9]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_sidechain_5ftypes_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_sidechain_5ftypes_2eproto = nullptr; -const ::uint32_t - TableStruct_sidechain_5ftypes_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _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, - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_.side_chain_feature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _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(::tari::rpc::ValidatorNodeRegistration, _impl_.public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ValidatorNodeRegistration, _impl_.signature_), - ~0u, - 0, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _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(::tari::rpc::TemplateRegistration, _impl_.author_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.author_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_name_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.template_type_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.build_info_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.binary_sha_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateRegistration, _impl_.binary_url_), - ~0u, - 0, - ~0u, - ~0u, - 1, - 2, - ~0u, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConfidentialOutputData, _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(::tari::rpc::ConfidentialOutputData, _impl_.claim_public_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _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, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_.template_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::WasmInfo, _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(::tari::rpc::WasmInfo, _impl_.abi_version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::FlowInfo, _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(::tari::rpc::ManifestInfo, _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(::tari::rpc::BuildInfo, _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(::tari::rpc::BuildInfo, _impl_.repo_url_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::BuildInfo, _impl_.commit_hash_), -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::tari::rpc::SideChainFeature)}, - {12, 22, -1, sizeof(::tari::rpc::ValidatorNodeRegistration)}, - {24, 40, -1, sizeof(::tari::rpc::TemplateRegistration)}, - {48, -1, -1, sizeof(::tari::rpc::ConfidentialOutputData)}, - {57, -1, -1, sizeof(::tari::rpc::TemplateType)}, - {69, -1, -1, sizeof(::tari::rpc::WasmInfo)}, - {78, -1, -1, sizeof(::tari::rpc::FlowInfo)}, - {86, -1, -1, sizeof(::tari::rpc::ManifestInfo)}, - {94, -1, -1, sizeof(::tari::rpc::BuildInfo)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::tari::rpc::_SideChainFeature_default_instance_._instance, - &::tari::rpc::_ValidatorNodeRegistration_default_instance_._instance, - &::tari::rpc::_TemplateRegistration_default_instance_._instance, - &::tari::rpc::_ConfidentialOutputData_default_instance_._instance, - &::tari::rpc::_TemplateType_default_instance_._instance, - &::tari::rpc::_WasmInfo_default_instance_._instance, - &::tari::rpc::_FlowInfo_default_instance_._instance, - &::tari::rpc::_ManifestInfo_default_instance_._instance, - &::tari::rpc::_BuildInfo_default_instance_._instance, -}; -const char descriptor_table_protodef_sidechain_5ftypes_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\025sidechain_types.proto\022\010tari.rpc\032\013types" - ".proto\"\366\001\n\020SideChainFeature\022J\n\033validator" - "_node_registration\030\001 \001(\0132#.tari.rpc.Vali" - "datorNodeRegistrationH\000\022\?\n\025template_regi" - "stration\030\002 \001(\0132\036.tari.rpc.TemplateRegist" - "rationH\000\022\?\n\023confidential_output\030\003 \001(\0132 ." - "tari.rpc.ConfidentialOutputDataH\000B\024\n\022sid" - "e_chain_feature\"W\n\031ValidatorNodeRegistra" - "tion\022\022\n\npublic_key\030\001 \001(\014\022&\n\tsignature\030\002 " - "\001(\0132\023.tari.rpc.Signature\"\221\002\n\024TemplateReg" - "istration\022\031\n\021author_public_key\030\001 \001(\014\022-\n\020" - "author_signature\030\002 \001(\0132\023.tari.rpc.Signat" - "ure\022\025\n\rtemplate_name\030\003 \001(\t\022\030\n\020template_v" - "ersion\030\004 \001(\r\022-\n\rtemplate_type\030\005 \001(\0132\026.ta" - "ri.rpc.TemplateType\022\'\n\nbuild_info\030\006 \001(\0132" - "\023.tari.rpc.BuildInfo\022\022\n\nbinary_sha\030\007 \001(\014" - "\022\022\n\nbinary_url\030\010 \001(\t\"2\n\026ConfidentialOutp" - "utData\022\030\n\020claim_public_key\030\001 \001(\014\"\223\001\n\014Tem" - "plateType\022\"\n\004wasm\030\001 \001(\0132\022.tari.rpc.WasmI" - "nfoH\000\022\"\n\004flow\030\002 \001(\0132\022.tari.rpc.FlowInfoH" - "\000\022*\n\010manifest\030\003 \001(\0132\026.tari.rpc.ManifestI" - "nfoH\000B\017\n\rtemplate_type\"\037\n\010WasmInfo\022\023\n\013ab" - "i_version\030\001 \001(\r\"\n\n\010FlowInfo\"\016\n\014ManifestI" - "nfo\"2\n\tBuildInfo\022\020\n\010repo_url\030\001 \001(\t\022\023\n\013co" - "mmit_hash\030\002 \001(\014b\006proto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_sidechain_5ftypes_2eproto_deps[1] = - { - &::descriptor_table_types_2eproto, -}; -static ::absl::once_flag descriptor_table_sidechain_5ftypes_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_sidechain_5ftypes_2eproto = { - false, - false, - 983, - descriptor_table_protodef_sidechain_5ftypes_2eproto, - "sidechain_types.proto", - &descriptor_table_sidechain_5ftypes_2eproto_once, - descriptor_table_sidechain_5ftypes_2eproto_deps, - 1, - 9, - schemas, - file_default_instances, - TableStruct_sidechain_5ftypes_2eproto::offsets, - file_level_metadata_sidechain_5ftypes_2eproto, - file_level_enum_descriptors_sidechain_5ftypes_2eproto, - file_level_service_descriptors_sidechain_5ftypes_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_sidechain_5ftypes_2eproto_getter() { - return &descriptor_table_sidechain_5ftypes_2eproto; -} -namespace tari { -namespace rpc { -// =================================================================== - -class SideChainFeature::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::tari::rpc::SideChainFeature, _impl_._oneof_case_); -}; - -void SideChainFeature::set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* validator_node_registration) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_side_chain_feature(); - if (validator_node_registration) { - ::google::protobuf::Arena* submessage_arena = validator_node_registration->GetArena(); - if (message_arena != submessage_arena) { - validator_node_registration = ::google::protobuf::internal::GetOwnedMessage(message_arena, validator_node_registration, submessage_arena); - } - set_has_validator_node_registration(); - _impl_.side_chain_feature_.validator_node_registration_ = validator_node_registration; - } - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.validator_node_registration) -} -void SideChainFeature::set_allocated_template_registration(::tari::rpc::TemplateRegistration* template_registration) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_side_chain_feature(); - if (template_registration) { - ::google::protobuf::Arena* submessage_arena = template_registration->GetArena(); - if (message_arena != submessage_arena) { - template_registration = ::google::protobuf::internal::GetOwnedMessage(message_arena, template_registration, submessage_arena); - } - set_has_template_registration(); - _impl_.side_chain_feature_.template_registration_ = template_registration; - } - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.template_registration) -} -void SideChainFeature::set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* confidential_output) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_side_chain_feature(); - if (confidential_output) { - ::google::protobuf::Arena* submessage_arena = confidential_output->GetArena(); - if (message_arena != submessage_arena) { - confidential_output = ::google::protobuf::internal::GetOwnedMessage(message_arena, confidential_output, submessage_arena); - } - set_has_confidential_output(); - _impl_.side_chain_feature_.confidential_output_ = confidential_output; - } - // @@protoc_insertion_point(field_set_allocated:tari.rpc.SideChainFeature.confidential_output) -} -SideChainFeature::SideChainFeature(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.SideChainFeature) -} -inline PROTOBUF_NDEBUG_INLINE SideChainFeature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : side_chain_feature_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -SideChainFeature::SideChainFeature( - ::google::protobuf::Arena* arena, - const SideChainFeature& from) - : ::google::protobuf::Message(arena) { - SideChainFeature* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (side_chain_feature_case()) { - case SIDE_CHAIN_FEATURE_NOT_SET: - break; - case kValidatorNodeRegistration: - _impl_.side_chain_feature_.validator_node_registration_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ValidatorNodeRegistration>(arena, *from._impl_.side_chain_feature_.validator_node_registration_); - break; - case kTemplateRegistration: - _impl_.side_chain_feature_.template_registration_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>(arena, *from._impl_.side_chain_feature_.template_registration_); - break; - case kConfidentialOutput: - _impl_.side_chain_feature_.confidential_output_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ConfidentialOutputData>(arena, *from._impl_.side_chain_feature_.confidential_output_); - break; - } - - // @@protoc_insertion_point(copy_constructor:tari.rpc.SideChainFeature) -} -inline PROTOBUF_NDEBUG_INLINE SideChainFeature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : side_chain_feature_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void SideChainFeature::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SideChainFeature::~SideChainFeature() { - // @@protoc_insertion_point(destructor:tari.rpc.SideChainFeature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SideChainFeature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_side_chain_feature()) { - clear_side_chain_feature(); - } - _impl_.~Impl_(); -} - -void SideChainFeature::clear_side_chain_feature() { -// @@protoc_insertion_point(one_of_clear_start:tari.rpc.SideChainFeature) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (side_chain_feature_case()) { - case kValidatorNodeRegistration: { - if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.validator_node_registration_; - } - break; - } - case kTemplateRegistration: { - if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.template_registration_; - } - break; - } - case kConfidentialOutput: { - if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.confidential_output_; - } - break; - } - case SIDE_CHAIN_FEATURE_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = SIDE_CHAIN_FEATURE_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -SideChainFeature::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_._cached_size_), - false, - }, - &SideChainFeature::MergeImpl, - &SideChainFeature::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void SideChainFeature::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.SideChainFeature) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_side_chain_feature(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SideChainFeature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> SideChainFeature::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SideChainFeature_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::SideChainFeature>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; - {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.side_chain_feature_.validator_node_registration_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.TemplateRegistration template_registration = 2; - {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.side_chain_feature_.template_registration_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.ConfidentialOutputData confidential_output = 3; - {PROTOBUF_FIELD_OFFSET(SideChainFeature, _impl_.side_chain_feature_.confidential_output_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeRegistration>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ConfidentialOutputData>()}, - }}, {{ - }}, -}; - -::uint8_t* SideChainFeature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.SideChainFeature) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (side_chain_feature_case()) { - case kValidatorNodeRegistration: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.side_chain_feature_.validator_node_registration_, _impl_.side_chain_feature_.validator_node_registration_->GetCachedSize(), target, stream); - break; - } - case kTemplateRegistration: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.side_chain_feature_.template_registration_, _impl_.side_chain_feature_.template_registration_->GetCachedSize(), target, stream); - break; - } - case kConfidentialOutput: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.side_chain_feature_.confidential_output_, _impl_.side_chain_feature_.confidential_output_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.SideChainFeature) - return target; -} - -::size_t SideChainFeature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.SideChainFeature) - ::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 (side_chain_feature_case()) { - // .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; - case kValidatorNodeRegistration: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.side_chain_feature_.validator_node_registration_); - break; - } - // .tari.rpc.TemplateRegistration template_registration = 2; - case kTemplateRegistration: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.side_chain_feature_.template_registration_); - break; - } - // .tari.rpc.ConfidentialOutputData confidential_output = 3; - case kConfidentialOutput: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.side_chain_feature_.confidential_output_); - break; - } - case SIDE_CHAIN_FEATURE_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void SideChainFeature::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:tari.rpc.SideChainFeature) - 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_side_chain_feature(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kValidatorNodeRegistration: { - if (oneof_needs_init) { - _this->_impl_.side_chain_feature_.validator_node_registration_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ValidatorNodeRegistration>(arena, *from._impl_.side_chain_feature_.validator_node_registration_); - } else { - _this->_impl_.side_chain_feature_.validator_node_registration_->MergeFrom(from._internal_validator_node_registration()); - } - break; - } - case kTemplateRegistration: { - if (oneof_needs_init) { - _this->_impl_.side_chain_feature_.template_registration_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateRegistration>(arena, *from._impl_.side_chain_feature_.template_registration_); - } else { - _this->_impl_.side_chain_feature_.template_registration_->MergeFrom(from._internal_template_registration()); - } - break; - } - case kConfidentialOutput: { - if (oneof_needs_init) { - _this->_impl_.side_chain_feature_.confidential_output_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ConfidentialOutputData>(arena, *from._impl_.side_chain_feature_.confidential_output_); - } else { - _this->_impl_.side_chain_feature_.confidential_output_->MergeFrom(from._internal_confidential_output()); - } - break; - } - case SIDE_CHAIN_FEATURE_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SideChainFeature::CopyFrom(const SideChainFeature& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.SideChainFeature) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SideChainFeature::IsInitialized() const { - return true; -} - -void SideChainFeature::InternalSwap(SideChainFeature* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.side_chain_feature_, other->_impl_.side_chain_feature_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata SideChainFeature::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[0]); -} -// =================================================================== - -class ValidatorNodeRegistration::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._has_bits_); -}; - -void ValidatorNodeRegistration::clear_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.signature_ != nullptr) _impl_.signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -ValidatorNodeRegistration::ValidatorNodeRegistration(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ValidatorNodeRegistration) -} -inline PROTOBUF_NDEBUG_INLINE ValidatorNodeRegistration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - public_key_(arena, from.public_key_) {} - -ValidatorNodeRegistration::ValidatorNodeRegistration( - ::google::protobuf::Arena* arena, - const ValidatorNodeRegistration& from) - : ::google::protobuf::Message(arena) { - ValidatorNodeRegistration* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.signature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( - arena, *from._impl_.signature_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ValidatorNodeRegistration) -} -inline PROTOBUF_NDEBUG_INLINE ValidatorNodeRegistration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - public_key_(arena) {} - -inline void ValidatorNodeRegistration::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.signature_ = {}; -} -ValidatorNodeRegistration::~ValidatorNodeRegistration() { - // @@protoc_insertion_point(destructor:tari.rpc.ValidatorNodeRegistration) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ValidatorNodeRegistration::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_key_.Destroy(); - delete _impl_.signature_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ValidatorNodeRegistration::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_._cached_size_), - false, - }, - &ValidatorNodeRegistration::MergeImpl, - &ValidatorNodeRegistration::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ValidatorNodeRegistration::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ValidatorNodeRegistration) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_key_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.signature_ != nullptr); - _impl_.signature_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ValidatorNodeRegistration::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> ValidatorNodeRegistration::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _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), - &_ValidatorNodeRegistration_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ValidatorNodeRegistration>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.Signature signature = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.signature_)}}, - // bytes public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.public_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.Signature signature = 2; - {PROTOBUF_FIELD_OFFSET(ValidatorNodeRegistration, _impl_.signature_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ - }}, -}; - -::uint8_t* ValidatorNodeRegistration::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ValidatorNodeRegistration) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes public_key = 1; - if (!this->_internal_public_key().empty()) { - const std::string& _s = this->_internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Signature signature = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.signature_, _impl_.signature_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ValidatorNodeRegistration) - return target; -} - -::size_t ValidatorNodeRegistration::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ValidatorNodeRegistration) - ::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 public_key = 1; - if (!this->_internal_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); - } - - // .tari.rpc.Signature signature = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.signature_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ValidatorNodeRegistration::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:tari.rpc.ValidatorNodeRegistration) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_public_key().empty()) { - _this->_internal_set_public_key(from._internal_public_key()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.signature_ != nullptr); - if (_this->_impl_.signature_ == nullptr) { - _this->_impl_.signature_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.signature_); - } else { - _this->_impl_.signature_->MergeFrom(*from._impl_.signature_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ValidatorNodeRegistration::CopyFrom(const ValidatorNodeRegistration& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ValidatorNodeRegistration) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ValidatorNodeRegistration::IsInitialized() const { - return true; -} - -void ValidatorNodeRegistration::InternalSwap(ValidatorNodeRegistration* PROTOBUF_RESTRICT 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_.public_key_, &other->_impl_.public_key_, arena); - swap(_impl_.signature_, other->_impl_.signature_); -} - -::google::protobuf::Metadata ValidatorNodeRegistration::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[1]); -} -// =================================================================== - -class TemplateRegistration::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._has_bits_); -}; - -void TemplateRegistration::clear_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.author_signature_ != nullptr) _impl_.author_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -TemplateRegistration::TemplateRegistration(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TemplateRegistration) -} -inline PROTOBUF_NDEBUG_INLINE TemplateRegistration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - author_public_key_(arena, from.author_public_key_), - template_name_(arena, from.template_name_), - binary_sha_(arena, from.binary_sha_), - binary_url_(arena, from.binary_url_) {} - -TemplateRegistration::TemplateRegistration( - ::google::protobuf::Arena* arena, - const TemplateRegistration& from) - : ::google::protobuf::Message(arena) { - TemplateRegistration* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.author_signature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( - arena, *from._impl_.author_signature_) - : nullptr; - _impl_.template_type_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateType>( - arena, *from._impl_.template_type_) - : nullptr; - _impl_.build_info_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::BuildInfo>( - arena, *from._impl_.build_info_) - : nullptr; - _impl_.template_version_ = from._impl_.template_version_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.TemplateRegistration) -} -inline PROTOBUF_NDEBUG_INLINE TemplateRegistration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - author_public_key_(arena), - template_name_(arena), - binary_sha_(arena), - binary_url_(arena) {} - -inline void TemplateRegistration::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, author_signature_), - 0, - offsetof(Impl_, template_version_) - - offsetof(Impl_, author_signature_) + - sizeof(Impl_::template_version_)); -} -TemplateRegistration::~TemplateRegistration() { - // @@protoc_insertion_point(destructor:tari.rpc.TemplateRegistration) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TemplateRegistration::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.author_public_key_.Destroy(); - _impl_.template_name_.Destroy(); - _impl_.binary_sha_.Destroy(); - _impl_.binary_url_.Destroy(); - delete _impl_.author_signature_; - delete _impl_.template_type_; - delete _impl_.build_info_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TemplateRegistration::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_._cached_size_), - false, - }, - &TemplateRegistration::MergeImpl, - &TemplateRegistration::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TemplateRegistration::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TemplateRegistration) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.author_public_key_.ClearToEmpty(); - _impl_.template_name_.ClearToEmpty(); - _impl_.binary_sha_.ClearToEmpty(); - _impl_.binary_url_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.author_signature_ != nullptr); - _impl_.author_signature_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.template_type_ != nullptr); - _impl_.template_type_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.build_info_ != nullptr); - _impl_.build_info_->Clear(); - } - } - _impl_.template_version_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TemplateRegistration::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 8, 3, 69, 2> TemplateRegistration::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TemplateRegistration, _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 - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TemplateRegistration_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TemplateRegistration>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string binary_url = 8; - {::_pbi::TcParser::FastUS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_url_)}}, - // bytes author_public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_public_key_)}}, - // .tari.rpc.Signature author_signature = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_signature_)}}, - // string template_name = 3; - {::_pbi::TcParser::FastUS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_name_)}}, - // uint32 template_version = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TemplateRegistration, _impl_.template_version_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_version_)}}, - // .tari.rpc.TemplateType template_type = 5; - {::_pbi::TcParser::FastMtS1, - {42, 1, 1, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_type_)}}, - // .tari.rpc.BuildInfo build_info = 6; - {::_pbi::TcParser::FastMtS1, - {50, 2, 2, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.build_info_)}}, - // bytes binary_sha = 7; - {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_sha_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes author_public_key = 1; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.Signature author_signature = 2; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_signature_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string template_name = 3; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_name_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint32 template_version = 4; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // .tari.rpc.TemplateType template_type = 5; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_type_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.BuildInfo build_info = 6; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.build_info_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes binary_sha = 7; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_sha_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // string binary_url = 8; - {PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.binary_url_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TemplateType>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::BuildInfo>()}, - }}, {{ - "\35\0\0\15\0\0\0\0\12\0\0\0\0\0\0\0" - "tari.rpc.TemplateRegistration" - "template_name" - "binary_url" - }}, -}; - -::uint8_t* TemplateRegistration::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TemplateRegistration) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes author_public_key = 1; - if (!this->_internal_author_public_key().empty()) { - const std::string& _s = this->_internal_author_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Signature author_signature = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.author_signature_, _impl_.author_signature_->GetCachedSize(), target, stream); - } - - // string template_name = 3; - if (!this->_internal_template_name().empty()) { - const std::string& _s = this->_internal_template_name(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.TemplateRegistration.template_name"); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // uint32 template_version = 4; - if (this->_internal_template_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 4, this->_internal_template_version(), target); - } - - // .tari.rpc.TemplateType template_type = 5; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.template_type_, _impl_.template_type_->GetCachedSize(), target, stream); - } - - // .tari.rpc.BuildInfo build_info = 6; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 6, *_impl_.build_info_, _impl_.build_info_->GetCachedSize(), target, stream); - } - - // bytes binary_sha = 7; - if (!this->_internal_binary_sha().empty()) { - const std::string& _s = this->_internal_binary_sha(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - } - - // string binary_url = 8; - if (!this->_internal_binary_url().empty()) { - const std::string& _s = this->_internal_binary_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.TemplateRegistration.binary_url"); - target = stream->WriteStringMaybeAliased(8, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TemplateRegistration) - return target; -} - -::size_t TemplateRegistration::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TemplateRegistration) - ::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 author_public_key = 1; - if (!this->_internal_author_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_author_public_key()); - } - - // string template_name = 3; - if (!this->_internal_template_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_template_name()); - } - - // bytes binary_sha = 7; - if (!this->_internal_binary_sha().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_binary_sha()); - } - - // string binary_url = 8; - if (!this->_internal_binary_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_binary_url()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .tari.rpc.Signature author_signature = 2; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.author_signature_); - } - - // .tari.rpc.TemplateType template_type = 5; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_); - } - - // .tari.rpc.BuildInfo build_info = 6; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.build_info_); - } - - } - // uint32 template_version = 4; - if (this->_internal_template_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_template_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TemplateRegistration::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:tari.rpc.TemplateRegistration) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_author_public_key().empty()) { - _this->_internal_set_author_public_key(from._internal_author_public_key()); - } - if (!from._internal_template_name().empty()) { - _this->_internal_set_template_name(from._internal_template_name()); - } - if (!from._internal_binary_sha().empty()) { - _this->_internal_set_binary_sha(from._internal_binary_sha()); - } - if (!from._internal_binary_url().empty()) { - _this->_internal_set_binary_url(from._internal_binary_url()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.author_signature_ != nullptr); - if (_this->_impl_.author_signature_ == nullptr) { - _this->_impl_.author_signature_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.author_signature_); - } else { - _this->_impl_.author_signature_->MergeFrom(*from._impl_.author_signature_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.template_type_ != nullptr); - if (_this->_impl_.template_type_ == nullptr) { - _this->_impl_.template_type_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::TemplateType>(arena, *from._impl_.template_type_); - } else { - _this->_impl_.template_type_->MergeFrom(*from._impl_.template_type_); - } - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(from._impl_.build_info_ != nullptr); - if (_this->_impl_.build_info_ == nullptr) { - _this->_impl_.build_info_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::BuildInfo>(arena, *from._impl_.build_info_); - } else { - _this->_impl_.build_info_->MergeFrom(*from._impl_.build_info_); - } - } - } - if (from._internal_template_version() != 0) { - _this->_impl_.template_version_ = from._impl_.template_version_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TemplateRegistration::CopyFrom(const TemplateRegistration& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TemplateRegistration) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TemplateRegistration::IsInitialized() const { - return true; -} - -void TemplateRegistration::InternalSwap(TemplateRegistration* PROTOBUF_RESTRICT 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_.author_public_key_, &other->_impl_.author_public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.template_name_, &other->_impl_.template_name_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.binary_sha_, &other->_impl_.binary_sha_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.binary_url_, &other->_impl_.binary_url_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.template_version_) - + sizeof(TemplateRegistration::_impl_.template_version_) - - PROTOBUF_FIELD_OFFSET(TemplateRegistration, _impl_.author_signature_)>( - reinterpret_cast(&_impl_.author_signature_), - reinterpret_cast(&other->_impl_.author_signature_)); -} - -::google::protobuf::Metadata TemplateRegistration::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[2]); -} -// =================================================================== - -class ConfidentialOutputData::_Internal { - public: -}; - -ConfidentialOutputData::ConfidentialOutputData(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ConfidentialOutputData) -} -inline PROTOBUF_NDEBUG_INLINE ConfidentialOutputData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : claim_public_key_(arena, from.claim_public_key_), - _cached_size_{0} {} - -ConfidentialOutputData::ConfidentialOutputData( - ::google::protobuf::Arena* arena, - const ConfidentialOutputData& from) - : ::google::protobuf::Message(arena) { - ConfidentialOutputData* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ConfidentialOutputData) -} -inline PROTOBUF_NDEBUG_INLINE ConfidentialOutputData::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : claim_public_key_(arena), - _cached_size_{0} {} - -inline void ConfidentialOutputData::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ConfidentialOutputData::~ConfidentialOutputData() { - // @@protoc_insertion_point(destructor:tari.rpc.ConfidentialOutputData) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ConfidentialOutputData::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.claim_public_key_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ConfidentialOutputData::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_._cached_size_), - false, - }, - &ConfidentialOutputData::MergeImpl, - &ConfidentialOutputData::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ConfidentialOutputData::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ConfidentialOutputData) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.claim_public_key_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ConfidentialOutputData::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> ConfidentialOutputData::_table_ = { - { - 0, // no _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 - &_ConfidentialOutputData_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ConfidentialOutputData>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes claim_public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_.claim_public_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes claim_public_key = 1; - {PROTOBUF_FIELD_OFFSET(ConfidentialOutputData, _impl_.claim_public_key_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ConfidentialOutputData::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ConfidentialOutputData) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes claim_public_key = 1; - if (!this->_internal_claim_public_key().empty()) { - const std::string& _s = this->_internal_claim_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ConfidentialOutputData) - return target; -} - -::size_t ConfidentialOutputData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ConfidentialOutputData) - ::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 claim_public_key = 1; - if (!this->_internal_claim_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_claim_public_key()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ConfidentialOutputData::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:tari.rpc.ConfidentialOutputData) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_claim_public_key().empty()) { - _this->_internal_set_claim_public_key(from._internal_claim_public_key()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ConfidentialOutputData::CopyFrom(const ConfidentialOutputData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ConfidentialOutputData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ConfidentialOutputData::IsInitialized() const { - return true; -} - -void ConfidentialOutputData::InternalSwap(ConfidentialOutputData* 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_.claim_public_key_, &other->_impl_.claim_public_key_, arena); -} - -::google::protobuf::Metadata ConfidentialOutputData::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[3]); -} -// =================================================================== - -class TemplateType::_Internal { - public: - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::tari::rpc::TemplateType, _impl_._oneof_case_); -}; - -void TemplateType::set_allocated_wasm(::tari::rpc::WasmInfo* wasm) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_template_type(); - if (wasm) { - ::google::protobuf::Arena* submessage_arena = wasm->GetArena(); - if (message_arena != submessage_arena) { - wasm = ::google::protobuf::internal::GetOwnedMessage(message_arena, wasm, submessage_arena); - } - set_has_wasm(); - _impl_.template_type_.wasm_ = wasm; - } - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateType.wasm) -} -void TemplateType::set_allocated_flow(::tari::rpc::FlowInfo* flow) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_template_type(); - if (flow) { - ::google::protobuf::Arena* submessage_arena = flow->GetArena(); - if (message_arena != submessage_arena) { - flow = ::google::protobuf::internal::GetOwnedMessage(message_arena, flow, submessage_arena); - } - set_has_flow(); - _impl_.template_type_.flow_ = flow; - } - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateType.flow) -} -void TemplateType::set_allocated_manifest(::tari::rpc::ManifestInfo* manifest) { - ::google::protobuf::Arena* message_arena = GetArena(); - clear_template_type(); - if (manifest) { - ::google::protobuf::Arena* submessage_arena = manifest->GetArena(); - if (message_arena != submessage_arena) { - manifest = ::google::protobuf::internal::GetOwnedMessage(message_arena, manifest, submessage_arena); - } - set_has_manifest(); - _impl_.template_type_.manifest_ = manifest; - } - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateType.manifest) -} -TemplateType::TemplateType(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TemplateType) -} -inline PROTOBUF_NDEBUG_INLINE TemplateType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : template_type_{}, - _cached_size_{0}, - _oneof_case_{from._oneof_case_[0]} {} - -TemplateType::TemplateType( - ::google::protobuf::Arena* arena, - const TemplateType& from) - : ::google::protobuf::Message(arena) { - TemplateType* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - switch (template_type_case()) { - case TEMPLATE_TYPE_NOT_SET: - break; - case kWasm: - _impl_.template_type_.wasm_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::WasmInfo>(arena, *from._impl_.template_type_.wasm_); - break; - case kFlow: - _impl_.template_type_.flow_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::FlowInfo>(arena, *from._impl_.template_type_.flow_); - break; - case kManifest: - _impl_.template_type_.manifest_ = ::google::protobuf::Message::CopyConstruct<::tari::rpc::ManifestInfo>(arena, *from._impl_.template_type_.manifest_); - break; - } - - // @@protoc_insertion_point(copy_constructor:tari.rpc.TemplateType) -} -inline PROTOBUF_NDEBUG_INLINE TemplateType::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : template_type_{}, - _cached_size_{0}, - _oneof_case_{} {} - -inline void TemplateType::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -TemplateType::~TemplateType() { - // @@protoc_insertion_point(destructor:tari.rpc.TemplateType) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TemplateType::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - if (has_template_type()) { - clear_template_type(); - } - _impl_.~Impl_(); -} - -void TemplateType::clear_template_type() { -// @@protoc_insertion_point(one_of_clear_start:tari.rpc.TemplateType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - switch (template_type_case()) { - case kWasm: { - if (GetArena() == nullptr) { - delete _impl_.template_type_.wasm_; - } - break; - } - case kFlow: { - if (GetArena() == nullptr) { - delete _impl_.template_type_.flow_; - } - break; - } - case kManifest: { - if (GetArena() == nullptr) { - delete _impl_.template_type_.manifest_; - } - break; - } - case TEMPLATE_TYPE_NOT_SET: { - break; - } - } - _impl_._oneof_case_[0] = TEMPLATE_TYPE_NOT_SET; -} - - -const ::google::protobuf::MessageLite::ClassData* -TemplateType::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TemplateType, _impl_._cached_size_), - false, - }, - &TemplateType::MergeImpl, - &TemplateType::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TemplateType::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TemplateType) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_template_type(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TemplateType::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 3, 3, 0, 2> TemplateType::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 3, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TemplateType_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TemplateType>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.WasmInfo wasm = 1; - {PROTOBUF_FIELD_OFFSET(TemplateType, _impl_.template_type_.wasm_), _Internal::kOneofCaseOffset + 0, 0, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.FlowInfo flow = 2; - {PROTOBUF_FIELD_OFFSET(TemplateType, _impl_.template_type_.flow_), _Internal::kOneofCaseOffset + 0, 1, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - // .tari.rpc.ManifestInfo manifest = 3; - {PROTOBUF_FIELD_OFFSET(TemplateType, _impl_.template_type_.manifest_), _Internal::kOneofCaseOffset + 0, 2, - (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvDefault)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::WasmInfo>()}, - {::_pbi::FieldAuxDefaultMessage{}, &::tari::rpc::_FlowInfo_default_instance_}, - {::_pbi::FieldAuxDefaultMessage{}, &::tari::rpc::_ManifestInfo_default_instance_}, - }}, {{ - }}, -}; - -::uint8_t* TemplateType::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TemplateType) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - switch (template_type_case()) { - case kWasm: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.template_type_.wasm_, _impl_.template_type_.wasm_->GetCachedSize(), target, stream); - break; - } - case kFlow: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.template_type_.flow_, _impl_.template_type_.flow_->GetCachedSize(), target, stream); - break; - } - case kManifest: { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.template_type_.manifest_, _impl_.template_type_.manifest_->GetCachedSize(), target, stream); - break; - } - default: - break; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TemplateType) - return target; -} - -::size_t TemplateType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TemplateType) - ::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 (template_type_case()) { - // .tari.rpc.WasmInfo wasm = 1; - case kWasm: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_.wasm_); - break; - } - // .tari.rpc.FlowInfo flow = 2; - case kFlow: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_.flow_); - break; - } - // .tari.rpc.ManifestInfo manifest = 3; - case kManifest: { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.template_type_.manifest_); - break; - } - case TEMPLATE_TYPE_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TemplateType::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:tari.rpc.TemplateType) - 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_template_type(); - } - _this->_impl_._oneof_case_[0] = oneof_from_case; - } - - switch (oneof_from_case) { - case kWasm: { - if (oneof_needs_init) { - _this->_impl_.template_type_.wasm_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::WasmInfo>(arena, *from._impl_.template_type_.wasm_); - } else { - _this->_impl_.template_type_.wasm_->MergeFrom(from._internal_wasm()); - } - break; - } - case kFlow: { - if (oneof_needs_init) { - _this->_impl_.template_type_.flow_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::FlowInfo>(arena, *from._impl_.template_type_.flow_); - } else { - _this->_impl_.template_type_.flow_->MergeFrom(from._internal_flow()); - } - break; - } - case kManifest: { - if (oneof_needs_init) { - _this->_impl_.template_type_.manifest_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ManifestInfo>(arena, *from._impl_.template_type_.manifest_); - } else { - _this->_impl_.template_type_.manifest_->MergeFrom(from._internal_manifest()); - } - break; - } - case TEMPLATE_TYPE_NOT_SET: - break; - } - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TemplateType::CopyFrom(const TemplateType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TemplateType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TemplateType::IsInitialized() const { - return true; -} - -void TemplateType::InternalSwap(TemplateType* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.template_type_, other->_impl_.template_type_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); -} - -::google::protobuf::Metadata TemplateType::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[4]); -} -// =================================================================== - -class WasmInfo::_Internal { - public: -}; - -WasmInfo::WasmInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.WasmInfo) -} -WasmInfo::WasmInfo( - ::google::protobuf::Arena* arena, const WasmInfo& from) - : WasmInfo(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE WasmInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void WasmInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.abi_version_ = {}; -} -WasmInfo::~WasmInfo() { - // @@protoc_insertion_point(destructor:tari.rpc.WasmInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void WasmInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -WasmInfo::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_._cached_size_), - false, - }, - &WasmInfo::MergeImpl, - &WasmInfo::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void WasmInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.WasmInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.abi_version_ = 0u; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* WasmInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> WasmInfo::_table_ = { - { - 0, // no _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 - &_WasmInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::WasmInfo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint32 abi_version = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(WasmInfo, _impl_.abi_version_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_.abi_version_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 abi_version = 1; - {PROTOBUF_FIELD_OFFSET(WasmInfo, _impl_.abi_version_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* WasmInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.WasmInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 abi_version = 1; - if (this->_internal_abi_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_abi_version(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.WasmInfo) - return target; -} - -::size_t WasmInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.WasmInfo) - ::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 abi_version = 1; - if (this->_internal_abi_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_abi_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void WasmInfo::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:tari.rpc.WasmInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_abi_version() != 0) { - _this->_impl_.abi_version_ = from._impl_.abi_version_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void WasmInfo::CopyFrom(const WasmInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.WasmInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool WasmInfo::IsInitialized() const { - return true; -} - -void WasmInfo::InternalSwap(WasmInfo* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.abi_version_, other->_impl_.abi_version_); -} - -::google::protobuf::Metadata WasmInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[5]); -} -// =================================================================== - -class FlowInfo::_Internal { - public: -}; - -FlowInfo::FlowInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:tari.rpc.FlowInfo) -} -FlowInfo::FlowInfo( - ::google::protobuf::Arena* arena, - const FlowInfo& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - FlowInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.FlowInfo) -} - - - - - - - - - -::google::protobuf::Metadata FlowInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[6]); -} -// =================================================================== - -class ManifestInfo::_Internal { - public: -}; - -ManifestInfo::ManifestInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:tari.rpc.ManifestInfo) -} -ManifestInfo::ManifestInfo( - ::google::protobuf::Arena* arena, - const ManifestInfo& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - ManifestInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ManifestInfo) -} - - - - - - - - - -::google::protobuf::Metadata ManifestInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[7]); -} -// =================================================================== - -class BuildInfo::_Internal { - public: -}; - -BuildInfo::BuildInfo(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BuildInfo) -} -inline PROTOBUF_NDEBUG_INLINE BuildInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : repo_url_(arena, from.repo_url_), - commit_hash_(arena, from.commit_hash_), - _cached_size_{0} {} - -BuildInfo::BuildInfo( - ::google::protobuf::Arena* arena, - const BuildInfo& from) - : ::google::protobuf::Message(arena) { - BuildInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.BuildInfo) -} -inline PROTOBUF_NDEBUG_INLINE BuildInfo::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : repo_url_(arena), - commit_hash_(arena), - _cached_size_{0} {} - -inline void BuildInfo::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -BuildInfo::~BuildInfo() { - // @@protoc_insertion_point(destructor:tari.rpc.BuildInfo) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BuildInfo::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.repo_url_.Destroy(); - _impl_.commit_hash_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BuildInfo::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_._cached_size_), - false, - }, - &BuildInfo::MergeImpl, - &BuildInfo::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BuildInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BuildInfo) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.repo_url_.ClearToEmpty(); - _impl_.commit_hash_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BuildInfo::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 35, 2> BuildInfo::_table_ = { - { - 0, // no _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 - &_BuildInfo_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BuildInfo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes commit_hash = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.commit_hash_)}}, - // string repo_url = 1; - {::_pbi::TcParser::FastUS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.repo_url_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string repo_url = 1; - {PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.repo_url_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bytes commit_hash = 2; - {PROTOBUF_FIELD_OFFSET(BuildInfo, _impl_.commit_hash_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\22\10\0\0\0\0\0\0" - "tari.rpc.BuildInfo" - "repo_url" - }}, -}; - -::uint8_t* BuildInfo::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BuildInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // string repo_url = 1; - if (!this->_internal_repo_url().empty()) { - const std::string& _s = this->_internal_repo_url(); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - _s.data(), static_cast(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "tari.rpc.BuildInfo.repo_url"); - target = stream->WriteStringMaybeAliased(1, _s, target); - } - - // bytes commit_hash = 2; - if (!this->_internal_commit_hash().empty()) { - const std::string& _s = this->_internal_commit_hash(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BuildInfo) - return target; -} - -::size_t BuildInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BuildInfo) - ::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 repo_url = 1; - if (!this->_internal_repo_url().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this->_internal_repo_url()); - } - - // bytes commit_hash = 2; - if (!this->_internal_commit_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_commit_hash()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BuildInfo::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:tari.rpc.BuildInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_repo_url().empty()) { - _this->_internal_set_repo_url(from._internal_repo_url()); - } - if (!from._internal_commit_hash().empty()) { - _this->_internal_set_commit_hash(from._internal_commit_hash()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BuildInfo::CopyFrom(const BuildInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BuildInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BuildInfo::IsInitialized() const { - return true; -} - -void BuildInfo::InternalSwap(BuildInfo* 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_.repo_url_, &other->_impl_.repo_url_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.commit_hash_, &other->_impl_.commit_hash_, arena); -} - -::google::protobuf::Metadata BuildInfo::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_sidechain_5ftypes_2eproto_getter, - &descriptor_table_sidechain_5ftypes_2eproto_once, - file_level_metadata_sidechain_5ftypes_2eproto[8]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_sidechain_5ftypes_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb.h b/external/src/Tari/proto/gRPC/sidechain_types.pb.h deleted file mode 100644 index 249ba8db..00000000 --- a/external/src/Tari/proto/gRPC/sidechain_types.pb.h +++ /dev/null @@ -1,3197 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: sidechain_types.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026000 -#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/port_undef.inc" -#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/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "types.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_sidechain_5ftypes_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_sidechain_5ftypes_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_sidechain_5ftypes_2eproto; -namespace tari { -namespace rpc { -class BuildInfo; -struct BuildInfoDefaultTypeInternal; -extern BuildInfoDefaultTypeInternal _BuildInfo_default_instance_; -class ConfidentialOutputData; -struct ConfidentialOutputDataDefaultTypeInternal; -extern ConfidentialOutputDataDefaultTypeInternal _ConfidentialOutputData_default_instance_; -class FlowInfo; -struct FlowInfoDefaultTypeInternal; -extern FlowInfoDefaultTypeInternal _FlowInfo_default_instance_; -class ManifestInfo; -struct ManifestInfoDefaultTypeInternal; -extern ManifestInfoDefaultTypeInternal _ManifestInfo_default_instance_; -class SideChainFeature; -struct SideChainFeatureDefaultTypeInternal; -extern SideChainFeatureDefaultTypeInternal _SideChainFeature_default_instance_; -class TemplateRegistration; -struct TemplateRegistrationDefaultTypeInternal; -extern TemplateRegistrationDefaultTypeInternal _TemplateRegistration_default_instance_; -class TemplateType; -struct TemplateTypeDefaultTypeInternal; -extern TemplateTypeDefaultTypeInternal _TemplateType_default_instance_; -class ValidatorNodeRegistration; -struct ValidatorNodeRegistrationDefaultTypeInternal; -extern ValidatorNodeRegistrationDefaultTypeInternal _ValidatorNodeRegistration_default_instance_; -class WasmInfo; -struct WasmInfoDefaultTypeInternal; -extern WasmInfoDefaultTypeInternal _WasmInfo_default_instance_; -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace tari { -namespace rpc { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class WasmInfo final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.WasmInfo) */ { - public: - inline WasmInfo() : WasmInfo(nullptr) {} - ~WasmInfo() override; - template - explicit PROTOBUF_CONSTEXPR WasmInfo( - ::google::protobuf::internal::ConstantInitialized); - - inline WasmInfo(const WasmInfo& from) : WasmInfo(nullptr, from) {} - inline WasmInfo(WasmInfo&& from) noexcept - : WasmInfo(nullptr, std::move(from)) {} - inline WasmInfo& operator=(const WasmInfo& from) { - CopyFrom(from); - return *this; - } - inline WasmInfo& operator=(WasmInfo&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WasmInfo& default_instance() { - return *internal_default_instance(); - } - static inline const WasmInfo* internal_default_instance() { - return reinterpret_cast( - &_WasmInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(WasmInfo& a, WasmInfo& b) { a.Swap(&b); } - inline void Swap(WasmInfo* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WasmInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WasmInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const WasmInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const WasmInfo& from) { WasmInfo::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(WasmInfo* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.WasmInfo"; } - - protected: - explicit WasmInfo(::google::protobuf::Arena* arena); - WasmInfo(::google::protobuf::Arena* arena, const WasmInfo& from); - WasmInfo(::google::protobuf::Arena* arena, WasmInfo&& from) noexcept - : WasmInfo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAbiVersionFieldNumber = 1, - }; - // uint32 abi_version = 1; - void clear_abi_version() ; - ::uint32_t abi_version() const; - void set_abi_version(::uint32_t value); - - private: - ::uint32_t _internal_abi_version() const; - void _internal_set_abi_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.WasmInfo) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint32_t abi_version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class ManifestInfo final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:tari.rpc.ManifestInfo) */ { - public: - inline ManifestInfo() : ManifestInfo(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR ManifestInfo( - ::google::protobuf::internal::ConstantInitialized); - - inline ManifestInfo(const ManifestInfo& from) : ManifestInfo(nullptr, from) {} - inline ManifestInfo(ManifestInfo&& from) noexcept - : ManifestInfo(nullptr, std::move(from)) {} - inline ManifestInfo& operator=(const ManifestInfo& from) { - CopyFrom(from); - return *this; - } - inline ManifestInfo& operator=(ManifestInfo&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ManifestInfo& default_instance() { - return *internal_default_instance(); - } - static inline const ManifestInfo* internal_default_instance() { - return reinterpret_cast( - &_ManifestInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(ManifestInfo& a, ManifestInfo& b) { a.Swap(&b); } - inline void Swap(ManifestInfo* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ManifestInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ManifestInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const ManifestInfo& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const ManifestInfo& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ManifestInfo"; } - - protected: - explicit ManifestInfo(::google::protobuf::Arena* arena); - ManifestInfo(::google::protobuf::Arena* arena, const ManifestInfo& from); - ManifestInfo(::google::protobuf::Arena* arena, ManifestInfo&& from) noexcept - : ManifestInfo(arena) { - *this = ::std::move(from); - } - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.ManifestInfo) - private: - class _Internal; - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class FlowInfo final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:tari.rpc.FlowInfo) */ { - public: - inline FlowInfo() : FlowInfo(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR FlowInfo( - ::google::protobuf::internal::ConstantInitialized); - - inline FlowInfo(const FlowInfo& from) : FlowInfo(nullptr, from) {} - inline FlowInfo(FlowInfo&& from) noexcept - : FlowInfo(nullptr, std::move(from)) {} - inline FlowInfo& operator=(const FlowInfo& from) { - CopyFrom(from); - return *this; - } - inline FlowInfo& operator=(FlowInfo&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FlowInfo& default_instance() { - return *internal_default_instance(); - } - static inline const FlowInfo* internal_default_instance() { - return reinterpret_cast( - &_FlowInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(FlowInfo& a, FlowInfo& b) { a.Swap(&b); } - inline void Swap(FlowInfo* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FlowInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FlowInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const FlowInfo& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const FlowInfo& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.FlowInfo"; } - - protected: - explicit FlowInfo(::google::protobuf::Arena* arena); - FlowInfo(::google::protobuf::Arena* arena, const FlowInfo& from); - FlowInfo(::google::protobuf::Arena* arena, FlowInfo&& from) noexcept - : FlowInfo(arena) { - *this = ::std::move(from); - } - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.FlowInfo) - private: - class _Internal; - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class ConfidentialOutputData final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ConfidentialOutputData) */ { - public: - inline ConfidentialOutputData() : ConfidentialOutputData(nullptr) {} - ~ConfidentialOutputData() override; - template - explicit PROTOBUF_CONSTEXPR ConfidentialOutputData( - ::google::protobuf::internal::ConstantInitialized); - - inline ConfidentialOutputData(const ConfidentialOutputData& from) : ConfidentialOutputData(nullptr, from) {} - inline ConfidentialOutputData(ConfidentialOutputData&& from) noexcept - : ConfidentialOutputData(nullptr, std::move(from)) {} - inline ConfidentialOutputData& operator=(const ConfidentialOutputData& from) { - CopyFrom(from); - return *this; - } - inline ConfidentialOutputData& operator=(ConfidentialOutputData&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ConfidentialOutputData& default_instance() { - return *internal_default_instance(); - } - static inline const ConfidentialOutputData* internal_default_instance() { - return reinterpret_cast( - &_ConfidentialOutputData_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(ConfidentialOutputData& a, ConfidentialOutputData& b) { a.Swap(&b); } - inline void Swap(ConfidentialOutputData* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConfidentialOutputData* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConfidentialOutputData* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ConfidentialOutputData& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ConfidentialOutputData& from) { ConfidentialOutputData::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ConfidentialOutputData* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ConfidentialOutputData"; } - - protected: - explicit ConfidentialOutputData(::google::protobuf::Arena* arena); - ConfidentialOutputData(::google::protobuf::Arena* arena, const ConfidentialOutputData& from); - ConfidentialOutputData(::google::protobuf::Arena* arena, ConfidentialOutputData&& from) noexcept - : ConfidentialOutputData(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kClaimPublicKeyFieldNumber = 1, - }; - // bytes claim_public_key = 1; - void clear_claim_public_key() ; - const std::string& claim_public_key() const; - template - void set_claim_public_key(Arg_&& arg, Args_... args); - std::string* mutable_claim_public_key(); - PROTOBUF_NODISCARD std::string* release_claim_public_key(); - void set_allocated_claim_public_key(std::string* value); - - private: - const std::string& _internal_claim_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_claim_public_key( - const std::string& value); - std::string* _internal_mutable_claim_public_key(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ConfidentialOutputData) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr claim_public_key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class BuildInfo final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BuildInfo) */ { - public: - inline BuildInfo() : BuildInfo(nullptr) {} - ~BuildInfo() override; - template - explicit PROTOBUF_CONSTEXPR BuildInfo( - ::google::protobuf::internal::ConstantInitialized); - - inline BuildInfo(const BuildInfo& from) : BuildInfo(nullptr, from) {} - inline BuildInfo(BuildInfo&& from) noexcept - : BuildInfo(nullptr, std::move(from)) {} - inline BuildInfo& operator=(const BuildInfo& from) { - CopyFrom(from); - return *this; - } - inline BuildInfo& operator=(BuildInfo&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BuildInfo& default_instance() { - return *internal_default_instance(); - } - static inline const BuildInfo* internal_default_instance() { - return reinterpret_cast( - &_BuildInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 8; - friend void swap(BuildInfo& a, BuildInfo& b) { a.Swap(&b); } - inline void Swap(BuildInfo* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BuildInfo* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BuildInfo* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BuildInfo& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BuildInfo& from) { BuildInfo::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BuildInfo* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BuildInfo"; } - - protected: - explicit BuildInfo(::google::protobuf::Arena* arena); - BuildInfo(::google::protobuf::Arena* arena, const BuildInfo& from); - BuildInfo(::google::protobuf::Arena* arena, BuildInfo&& from) noexcept - : BuildInfo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kRepoUrlFieldNumber = 1, - kCommitHashFieldNumber = 2, - }; - // string repo_url = 1; - void clear_repo_url() ; - const std::string& repo_url() const; - template - void set_repo_url(Arg_&& arg, Args_... args); - std::string* mutable_repo_url(); - PROTOBUF_NODISCARD std::string* release_repo_url(); - void set_allocated_repo_url(std::string* value); - - private: - const std::string& _internal_repo_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_repo_url( - const std::string& value); - std::string* _internal_mutable_repo_url(); - - public: - // bytes commit_hash = 2; - void clear_commit_hash() ; - const std::string& commit_hash() const; - template - void set_commit_hash(Arg_&& arg, Args_... args); - std::string* mutable_commit_hash(); - PROTOBUF_NODISCARD std::string* release_commit_hash(); - void set_allocated_commit_hash(std::string* value); - - private: - const std::string& _internal_commit_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commit_hash( - const std::string& value); - std::string* _internal_mutable_commit_hash(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BuildInfo) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 0, - 35, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr repo_url_; - ::google::protobuf::internal::ArenaStringPtr commit_hash_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class ValidatorNodeRegistration final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ValidatorNodeRegistration) */ { - public: - inline ValidatorNodeRegistration() : ValidatorNodeRegistration(nullptr) {} - ~ValidatorNodeRegistration() override; - template - explicit PROTOBUF_CONSTEXPR ValidatorNodeRegistration( - ::google::protobuf::internal::ConstantInitialized); - - inline ValidatorNodeRegistration(const ValidatorNodeRegistration& from) : ValidatorNodeRegistration(nullptr, from) {} - inline ValidatorNodeRegistration(ValidatorNodeRegistration&& from) noexcept - : ValidatorNodeRegistration(nullptr, std::move(from)) {} - inline ValidatorNodeRegistration& operator=(const ValidatorNodeRegistration& from) { - CopyFrom(from); - return *this; - } - inline ValidatorNodeRegistration& operator=(ValidatorNodeRegistration&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ValidatorNodeRegistration& default_instance() { - return *internal_default_instance(); - } - static inline const ValidatorNodeRegistration* internal_default_instance() { - return reinterpret_cast( - &_ValidatorNodeRegistration_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(ValidatorNodeRegistration& a, ValidatorNodeRegistration& b) { a.Swap(&b); } - inline void Swap(ValidatorNodeRegistration* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ValidatorNodeRegistration* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ValidatorNodeRegistration* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ValidatorNodeRegistration& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ValidatorNodeRegistration& from) { ValidatorNodeRegistration::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ValidatorNodeRegistration* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ValidatorNodeRegistration"; } - - protected: - explicit ValidatorNodeRegistration(::google::protobuf::Arena* arena); - ValidatorNodeRegistration(::google::protobuf::Arena* arena, const ValidatorNodeRegistration& from); - ValidatorNodeRegistration(::google::protobuf::Arena* arena, ValidatorNodeRegistration&& from) noexcept - : ValidatorNodeRegistration(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 1, - kSignatureFieldNumber = 2, - }; - // bytes public_key = 1; - void clear_public_key() ; - const std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* value); - - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key( - const std::string& value); - std::string* _internal_mutable_public_key(); - - public: - // .tari.rpc.Signature signature = 2; - bool has_signature() const; - void clear_signature() ; - const ::tari::rpc::Signature& signature() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_signature(); - ::tari::rpc::Signature* mutable_signature(); - void set_allocated_signature(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_signature(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_signature(); - - private: - const ::tari::rpc::Signature& _internal_signature() const; - ::tari::rpc::Signature* _internal_mutable_signature(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ValidatorNodeRegistration) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr public_key_; - ::tari::rpc::Signature* signature_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class TemplateType final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateType) */ { - public: - inline TemplateType() : TemplateType(nullptr) {} - ~TemplateType() override; - template - explicit PROTOBUF_CONSTEXPR TemplateType( - ::google::protobuf::internal::ConstantInitialized); - - inline TemplateType(const TemplateType& from) : TemplateType(nullptr, from) {} - inline TemplateType(TemplateType&& from) noexcept - : TemplateType(nullptr, std::move(from)) {} - inline TemplateType& operator=(const TemplateType& from) { - CopyFrom(from); - return *this; - } - inline TemplateType& operator=(TemplateType&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TemplateType& default_instance() { - return *internal_default_instance(); - } - enum TemplateTypeCase { - kWasm = 1, - kFlow = 2, - kManifest = 3, - TEMPLATE_TYPE_NOT_SET = 0, - }; - static inline const TemplateType* internal_default_instance() { - return reinterpret_cast( - &_TemplateType_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(TemplateType& a, TemplateType& b) { a.Swap(&b); } - inline void Swap(TemplateType* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TemplateType* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TemplateType* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TemplateType& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TemplateType& from) { TemplateType::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TemplateType* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TemplateType"; } - - protected: - explicit TemplateType(::google::protobuf::Arena* arena); - TemplateType(::google::protobuf::Arena* arena, const TemplateType& from); - TemplateType(::google::protobuf::Arena* arena, TemplateType&& from) noexcept - : TemplateType(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kWasmFieldNumber = 1, - kFlowFieldNumber = 2, - kManifestFieldNumber = 3, - }; - // .tari.rpc.WasmInfo wasm = 1; - bool has_wasm() const; - private: - bool _internal_has_wasm() const; - - public: - void clear_wasm() ; - const ::tari::rpc::WasmInfo& wasm() const; - PROTOBUF_NODISCARD ::tari::rpc::WasmInfo* release_wasm(); - ::tari::rpc::WasmInfo* mutable_wasm(); - void set_allocated_wasm(::tari::rpc::WasmInfo* value); - void unsafe_arena_set_allocated_wasm(::tari::rpc::WasmInfo* value); - ::tari::rpc::WasmInfo* unsafe_arena_release_wasm(); - - private: - const ::tari::rpc::WasmInfo& _internal_wasm() const; - ::tari::rpc::WasmInfo* _internal_mutable_wasm(); - - public: - // .tari.rpc.FlowInfo flow = 2; - bool has_flow() const; - private: - bool _internal_has_flow() const; - - public: - void clear_flow() ; - const ::tari::rpc::FlowInfo& flow() const; - PROTOBUF_NODISCARD ::tari::rpc::FlowInfo* release_flow(); - ::tari::rpc::FlowInfo* mutable_flow(); - void set_allocated_flow(::tari::rpc::FlowInfo* value); - void unsafe_arena_set_allocated_flow(::tari::rpc::FlowInfo* value); - ::tari::rpc::FlowInfo* unsafe_arena_release_flow(); - - private: - const ::tari::rpc::FlowInfo& _internal_flow() const; - ::tari::rpc::FlowInfo* _internal_mutable_flow(); - - public: - // .tari.rpc.ManifestInfo manifest = 3; - bool has_manifest() const; - private: - bool _internal_has_manifest() const; - - public: - void clear_manifest() ; - const ::tari::rpc::ManifestInfo& manifest() const; - PROTOBUF_NODISCARD ::tari::rpc::ManifestInfo* release_manifest(); - ::tari::rpc::ManifestInfo* mutable_manifest(); - void set_allocated_manifest(::tari::rpc::ManifestInfo* value); - void unsafe_arena_set_allocated_manifest(::tari::rpc::ManifestInfo* value); - ::tari::rpc::ManifestInfo* unsafe_arena_release_manifest(); - - private: - const ::tari::rpc::ManifestInfo& _internal_manifest() const; - ::tari::rpc::ManifestInfo* _internal_mutable_manifest(); - - public: - void clear_template_type(); - TemplateTypeCase template_type_case() const; - // @@protoc_insertion_point(class_scope:tari.rpc.TemplateType) - private: - class _Internal; - void set_has_wasm(); - void set_has_flow(); - void set_has_manifest(); - inline bool has_template_type() const; - inline void clear_has_template_type(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union TemplateTypeUnion { - constexpr TemplateTypeUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::tari::rpc::WasmInfo* wasm_; - ::tari::rpc::FlowInfo* flow_; - ::tari::rpc::ManifestInfo* manifest_; - } template_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class TemplateRegistration final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TemplateRegistration) */ { - public: - inline TemplateRegistration() : TemplateRegistration(nullptr) {} - ~TemplateRegistration() override; - template - explicit PROTOBUF_CONSTEXPR TemplateRegistration( - ::google::protobuf::internal::ConstantInitialized); - - inline TemplateRegistration(const TemplateRegistration& from) : TemplateRegistration(nullptr, from) {} - inline TemplateRegistration(TemplateRegistration&& from) noexcept - : TemplateRegistration(nullptr, std::move(from)) {} - inline TemplateRegistration& operator=(const TemplateRegistration& from) { - CopyFrom(from); - return *this; - } - inline TemplateRegistration& operator=(TemplateRegistration&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TemplateRegistration& default_instance() { - return *internal_default_instance(); - } - static inline const TemplateRegistration* internal_default_instance() { - return reinterpret_cast( - &_TemplateRegistration_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(TemplateRegistration& a, TemplateRegistration& b) { a.Swap(&b); } - inline void Swap(TemplateRegistration* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TemplateRegistration* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TemplateRegistration* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TemplateRegistration& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TemplateRegistration& from) { TemplateRegistration::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TemplateRegistration* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TemplateRegistration"; } - - protected: - explicit TemplateRegistration(::google::protobuf::Arena* arena); - TemplateRegistration(::google::protobuf::Arena* arena, const TemplateRegistration& from); - TemplateRegistration(::google::protobuf::Arena* arena, TemplateRegistration&& from) noexcept - : TemplateRegistration(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kAuthorPublicKeyFieldNumber = 1, - kTemplateNameFieldNumber = 3, - kBinaryShaFieldNumber = 7, - kBinaryUrlFieldNumber = 8, - kAuthorSignatureFieldNumber = 2, - kTemplateTypeFieldNumber = 5, - kBuildInfoFieldNumber = 6, - kTemplateVersionFieldNumber = 4, - }; - // bytes author_public_key = 1; - void clear_author_public_key() ; - const std::string& author_public_key() const; - template - void set_author_public_key(Arg_&& arg, Args_... args); - std::string* mutable_author_public_key(); - PROTOBUF_NODISCARD std::string* release_author_public_key(); - void set_allocated_author_public_key(std::string* value); - - private: - const std::string& _internal_author_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_author_public_key( - const std::string& value); - std::string* _internal_mutable_author_public_key(); - - public: - // string template_name = 3; - void clear_template_name() ; - const std::string& template_name() const; - template - void set_template_name(Arg_&& arg, Args_... args); - std::string* mutable_template_name(); - PROTOBUF_NODISCARD std::string* release_template_name(); - void set_allocated_template_name(std::string* value); - - private: - const std::string& _internal_template_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_template_name( - const std::string& value); - std::string* _internal_mutable_template_name(); - - public: - // bytes binary_sha = 7; - void clear_binary_sha() ; - const std::string& binary_sha() const; - template - void set_binary_sha(Arg_&& arg, Args_... args); - std::string* mutable_binary_sha(); - PROTOBUF_NODISCARD std::string* release_binary_sha(); - void set_allocated_binary_sha(std::string* value); - - private: - const std::string& _internal_binary_sha() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_sha( - const std::string& value); - std::string* _internal_mutable_binary_sha(); - - public: - // string binary_url = 8; - void clear_binary_url() ; - const std::string& binary_url() const; - template - void set_binary_url(Arg_&& arg, Args_... args); - std::string* mutable_binary_url(); - PROTOBUF_NODISCARD std::string* release_binary_url(); - void set_allocated_binary_url(std::string* value); - - private: - const std::string& _internal_binary_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_binary_url( - const std::string& value); - std::string* _internal_mutable_binary_url(); - - public: - // .tari.rpc.Signature author_signature = 2; - bool has_author_signature() const; - void clear_author_signature() ; - const ::tari::rpc::Signature& author_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_author_signature(); - ::tari::rpc::Signature* mutable_author_signature(); - void set_allocated_author_signature(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_author_signature(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_author_signature(); - - private: - const ::tari::rpc::Signature& _internal_author_signature() const; - ::tari::rpc::Signature* _internal_mutable_author_signature(); - - public: - // .tari.rpc.TemplateType template_type = 5; - bool has_template_type() const; - void clear_template_type() ; - const ::tari::rpc::TemplateType& template_type() const; - PROTOBUF_NODISCARD ::tari::rpc::TemplateType* release_template_type(); - ::tari::rpc::TemplateType* mutable_template_type(); - void set_allocated_template_type(::tari::rpc::TemplateType* value); - void unsafe_arena_set_allocated_template_type(::tari::rpc::TemplateType* value); - ::tari::rpc::TemplateType* unsafe_arena_release_template_type(); - - private: - const ::tari::rpc::TemplateType& _internal_template_type() const; - ::tari::rpc::TemplateType* _internal_mutable_template_type(); - - public: - // .tari.rpc.BuildInfo build_info = 6; - bool has_build_info() const; - void clear_build_info() ; - const ::tari::rpc::BuildInfo& build_info() const; - PROTOBUF_NODISCARD ::tari::rpc::BuildInfo* release_build_info(); - ::tari::rpc::BuildInfo* mutable_build_info(); - void set_allocated_build_info(::tari::rpc::BuildInfo* value); - void unsafe_arena_set_allocated_build_info(::tari::rpc::BuildInfo* value); - ::tari::rpc::BuildInfo* unsafe_arena_release_build_info(); - - private: - const ::tari::rpc::BuildInfo& _internal_build_info() const; - ::tari::rpc::BuildInfo* _internal_mutable_build_info(); - - public: - // uint32 template_version = 4; - void clear_template_version() ; - ::uint32_t template_version() const; - void set_template_version(::uint32_t value); - - private: - ::uint32_t _internal_template_version() const; - void _internal_set_template_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.TemplateRegistration) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 8, 3, - 69, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr author_public_key_; - ::google::protobuf::internal::ArenaStringPtr template_name_; - ::google::protobuf::internal::ArenaStringPtr binary_sha_; - ::google::protobuf::internal::ArenaStringPtr binary_url_; - ::tari::rpc::Signature* author_signature_; - ::tari::rpc::TemplateType* template_type_; - ::tari::rpc::BuildInfo* build_info_; - ::uint32_t template_version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class SideChainFeature final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.SideChainFeature) */ { - public: - inline SideChainFeature() : SideChainFeature(nullptr) {} - ~SideChainFeature() override; - template - explicit PROTOBUF_CONSTEXPR SideChainFeature( - ::google::protobuf::internal::ConstantInitialized); - - inline SideChainFeature(const SideChainFeature& from) : SideChainFeature(nullptr, from) {} - inline SideChainFeature(SideChainFeature&& from) noexcept - : SideChainFeature(nullptr, std::move(from)) {} - inline SideChainFeature& operator=(const SideChainFeature& from) { - CopyFrom(from); - return *this; - } - inline SideChainFeature& operator=(SideChainFeature&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SideChainFeature& default_instance() { - return *internal_default_instance(); - } - enum SideChainFeatureCase { - kValidatorNodeRegistration = 1, - kTemplateRegistration = 2, - kConfidentialOutput = 3, - SIDE_CHAIN_FEATURE_NOT_SET = 0, - }; - static inline const SideChainFeature* internal_default_instance() { - return reinterpret_cast( - &_SideChainFeature_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(SideChainFeature& a, SideChainFeature& b) { a.Swap(&b); } - inline void Swap(SideChainFeature* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SideChainFeature* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SideChainFeature* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SideChainFeature& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const SideChainFeature& from) { SideChainFeature::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SideChainFeature* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.SideChainFeature"; } - - protected: - explicit SideChainFeature(::google::protobuf::Arena* arena); - SideChainFeature(::google::protobuf::Arena* arena, const SideChainFeature& from); - SideChainFeature(::google::protobuf::Arena* arena, SideChainFeature&& from) noexcept - : SideChainFeature(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kValidatorNodeRegistrationFieldNumber = 1, - kTemplateRegistrationFieldNumber = 2, - kConfidentialOutputFieldNumber = 3, - }; - // .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; - bool has_validator_node_registration() const; - private: - bool _internal_has_validator_node_registration() const; - - public: - void clear_validator_node_registration() ; - const ::tari::rpc::ValidatorNodeRegistration& validator_node_registration() const; - PROTOBUF_NODISCARD ::tari::rpc::ValidatorNodeRegistration* release_validator_node_registration(); - ::tari::rpc::ValidatorNodeRegistration* mutable_validator_node_registration(); - void set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* value); - void unsafe_arena_set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* value); - ::tari::rpc::ValidatorNodeRegistration* unsafe_arena_release_validator_node_registration(); - - private: - const ::tari::rpc::ValidatorNodeRegistration& _internal_validator_node_registration() const; - ::tari::rpc::ValidatorNodeRegistration* _internal_mutable_validator_node_registration(); - - public: - // .tari.rpc.TemplateRegistration template_registration = 2; - bool has_template_registration() const; - private: - bool _internal_has_template_registration() const; - - public: - void clear_template_registration() ; - const ::tari::rpc::TemplateRegistration& template_registration() const; - PROTOBUF_NODISCARD ::tari::rpc::TemplateRegistration* release_template_registration(); - ::tari::rpc::TemplateRegistration* mutable_template_registration(); - void set_allocated_template_registration(::tari::rpc::TemplateRegistration* value); - void unsafe_arena_set_allocated_template_registration(::tari::rpc::TemplateRegistration* value); - ::tari::rpc::TemplateRegistration* unsafe_arena_release_template_registration(); - - private: - const ::tari::rpc::TemplateRegistration& _internal_template_registration() const; - ::tari::rpc::TemplateRegistration* _internal_mutable_template_registration(); - - public: - // .tari.rpc.ConfidentialOutputData confidential_output = 3; - bool has_confidential_output() const; - private: - bool _internal_has_confidential_output() const; - - public: - void clear_confidential_output() ; - const ::tari::rpc::ConfidentialOutputData& confidential_output() const; - PROTOBUF_NODISCARD ::tari::rpc::ConfidentialOutputData* release_confidential_output(); - ::tari::rpc::ConfidentialOutputData* mutable_confidential_output(); - void set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* value); - void unsafe_arena_set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* value); - ::tari::rpc::ConfidentialOutputData* unsafe_arena_release_confidential_output(); - - private: - const ::tari::rpc::ConfidentialOutputData& _internal_confidential_output() const; - ::tari::rpc::ConfidentialOutputData* _internal_mutable_confidential_output(); - - public: - void clear_side_chain_feature(); - SideChainFeatureCase side_chain_feature_case() const; - // @@protoc_insertion_point(class_scope:tari.rpc.SideChainFeature) - private: - class _Internal; - void set_has_validator_node_registration(); - void set_has_template_registration(); - void set_has_confidential_output(); - inline bool has_side_chain_feature() const; - inline void clear_has_side_chain_feature(); - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 3, 3, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - union SideChainFeatureUnion { - constexpr SideChainFeatureUnion() : _constinit_{} {} - ::google::protobuf::internal::ConstantInitialized _constinit_; - ::tari::rpc::ValidatorNodeRegistration* validator_node_registration_; - ::tari::rpc::TemplateRegistration* template_registration_; - ::tari::rpc::ConfidentialOutputData* confidential_output_; - } side_chain_feature_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::uint32_t _oneof_case_[1]; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sidechain_5ftypes_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// SideChainFeature - -// .tari.rpc.ValidatorNodeRegistration validator_node_registration = 1; -inline bool SideChainFeature::has_validator_node_registration() const { - return side_chain_feature_case() == kValidatorNodeRegistration; -} -inline bool SideChainFeature::_internal_has_validator_node_registration() const { - return side_chain_feature_case() == kValidatorNodeRegistration; -} -inline void SideChainFeature::set_has_validator_node_registration() { - _impl_._oneof_case_[0] = kValidatorNodeRegistration; -} -inline void SideChainFeature::clear_validator_node_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (side_chain_feature_case() == kValidatorNodeRegistration) { - if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.validator_node_registration_; - } - clear_has_side_chain_feature(); - } -} -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::release_validator_node_registration() { - // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.validator_node_registration) - if (side_chain_feature_case() == kValidatorNodeRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.validator_node_registration_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.side_chain_feature_.validator_node_registration_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::tari::rpc::ValidatorNodeRegistration& SideChainFeature::_internal_validator_node_registration() const { - return side_chain_feature_case() == kValidatorNodeRegistration ? *_impl_.side_chain_feature_.validator_node_registration_ : reinterpret_cast<::tari::rpc::ValidatorNodeRegistration&>(::tari::rpc::_ValidatorNodeRegistration_default_instance_); -} -inline const ::tari::rpc::ValidatorNodeRegistration& SideChainFeature::validator_node_registration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.validator_node_registration) - return _internal_validator_node_registration(); -} -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::unsafe_arena_release_validator_node_registration() { - // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.validator_node_registration) - if (side_chain_feature_case() == kValidatorNodeRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.validator_node_registration_; - _impl_.side_chain_feature_.validator_node_registration_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void SideChainFeature::unsafe_arena_set_allocated_validator_node_registration(::tari::rpc::ValidatorNodeRegistration* 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_side_chain_feature(); - if (value) { - set_has_validator_node_registration(); - _impl_.side_chain_feature_.validator_node_registration_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.validator_node_registration) -} -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::_internal_mutable_validator_node_registration() { - if (side_chain_feature_case() != kValidatorNodeRegistration) { - clear_side_chain_feature(); - set_has_validator_node_registration(); - _impl_.side_chain_feature_.validator_node_registration_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ValidatorNodeRegistration>(GetArena()); - } - return _impl_.side_chain_feature_.validator_node_registration_; -} -inline ::tari::rpc::ValidatorNodeRegistration* SideChainFeature::mutable_validator_node_registration() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tari::rpc::ValidatorNodeRegistration* _msg = _internal_mutable_validator_node_registration(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.validator_node_registration) - return _msg; -} - -// .tari.rpc.TemplateRegistration template_registration = 2; -inline bool SideChainFeature::has_template_registration() const { - return side_chain_feature_case() == kTemplateRegistration; -} -inline bool SideChainFeature::_internal_has_template_registration() const { - return side_chain_feature_case() == kTemplateRegistration; -} -inline void SideChainFeature::set_has_template_registration() { - _impl_._oneof_case_[0] = kTemplateRegistration; -} -inline void SideChainFeature::clear_template_registration() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (side_chain_feature_case() == kTemplateRegistration) { - if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.template_registration_; - } - clear_has_side_chain_feature(); - } -} -inline ::tari::rpc::TemplateRegistration* SideChainFeature::release_template_registration() { - // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.template_registration) - if (side_chain_feature_case() == kTemplateRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.template_registration_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.side_chain_feature_.template_registration_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::tari::rpc::TemplateRegistration& SideChainFeature::_internal_template_registration() const { - return side_chain_feature_case() == kTemplateRegistration ? *_impl_.side_chain_feature_.template_registration_ : reinterpret_cast<::tari::rpc::TemplateRegistration&>(::tari::rpc::_TemplateRegistration_default_instance_); -} -inline const ::tari::rpc::TemplateRegistration& SideChainFeature::template_registration() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.template_registration) - return _internal_template_registration(); -} -inline ::tari::rpc::TemplateRegistration* SideChainFeature::unsafe_arena_release_template_registration() { - // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.template_registration) - if (side_chain_feature_case() == kTemplateRegistration) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.template_registration_; - _impl_.side_chain_feature_.template_registration_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void SideChainFeature::unsafe_arena_set_allocated_template_registration(::tari::rpc::TemplateRegistration* 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_side_chain_feature(); - if (value) { - set_has_template_registration(); - _impl_.side_chain_feature_.template_registration_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.template_registration) -} -inline ::tari::rpc::TemplateRegistration* SideChainFeature::_internal_mutable_template_registration() { - if (side_chain_feature_case() != kTemplateRegistration) { - clear_side_chain_feature(); - set_has_template_registration(); - _impl_.side_chain_feature_.template_registration_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateRegistration>(GetArena()); - } - return _impl_.side_chain_feature_.template_registration_; -} -inline ::tari::rpc::TemplateRegistration* SideChainFeature::mutable_template_registration() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tari::rpc::TemplateRegistration* _msg = _internal_mutable_template_registration(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.template_registration) - return _msg; -} - -// .tari.rpc.ConfidentialOutputData confidential_output = 3; -inline bool SideChainFeature::has_confidential_output() const { - return side_chain_feature_case() == kConfidentialOutput; -} -inline bool SideChainFeature::_internal_has_confidential_output() const { - return side_chain_feature_case() == kConfidentialOutput; -} -inline void SideChainFeature::set_has_confidential_output() { - _impl_._oneof_case_[0] = kConfidentialOutput; -} -inline void SideChainFeature::clear_confidential_output() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (side_chain_feature_case() == kConfidentialOutput) { - if (GetArena() == nullptr) { - delete _impl_.side_chain_feature_.confidential_output_; - } - clear_has_side_chain_feature(); - } -} -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::release_confidential_output() { - // @@protoc_insertion_point(field_release:tari.rpc.SideChainFeature.confidential_output) - if (side_chain_feature_case() == kConfidentialOutput) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.confidential_output_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.side_chain_feature_.confidential_output_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::tari::rpc::ConfidentialOutputData& SideChainFeature::_internal_confidential_output() const { - return side_chain_feature_case() == kConfidentialOutput ? *_impl_.side_chain_feature_.confidential_output_ : reinterpret_cast<::tari::rpc::ConfidentialOutputData&>(::tari::rpc::_ConfidentialOutputData_default_instance_); -} -inline const ::tari::rpc::ConfidentialOutputData& SideChainFeature::confidential_output() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.SideChainFeature.confidential_output) - return _internal_confidential_output(); -} -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::unsafe_arena_release_confidential_output() { - // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.SideChainFeature.confidential_output) - if (side_chain_feature_case() == kConfidentialOutput) { - clear_has_side_chain_feature(); - auto* temp = _impl_.side_chain_feature_.confidential_output_; - _impl_.side_chain_feature_.confidential_output_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void SideChainFeature::unsafe_arena_set_allocated_confidential_output(::tari::rpc::ConfidentialOutputData* 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_side_chain_feature(); - if (value) { - set_has_confidential_output(); - _impl_.side_chain_feature_.confidential_output_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.SideChainFeature.confidential_output) -} -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::_internal_mutable_confidential_output() { - if (side_chain_feature_case() != kConfidentialOutput) { - clear_side_chain_feature(); - set_has_confidential_output(); - _impl_.side_chain_feature_.confidential_output_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ConfidentialOutputData>(GetArena()); - } - return _impl_.side_chain_feature_.confidential_output_; -} -inline ::tari::rpc::ConfidentialOutputData* SideChainFeature::mutable_confidential_output() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tari::rpc::ConfidentialOutputData* _msg = _internal_mutable_confidential_output(); - // @@protoc_insertion_point(field_mutable:tari.rpc.SideChainFeature.confidential_output) - return _msg; -} - -inline bool SideChainFeature::has_side_chain_feature() const { - return side_chain_feature_case() != SIDE_CHAIN_FEATURE_NOT_SET; -} -inline void SideChainFeature::clear_has_side_chain_feature() { - _impl_._oneof_case_[0] = SIDE_CHAIN_FEATURE_NOT_SET; -} -inline SideChainFeature::SideChainFeatureCase SideChainFeature::side_chain_feature_case() const { - return SideChainFeature::SideChainFeatureCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ValidatorNodeRegistration - -// bytes public_key = 1; -inline void ValidatorNodeRegistration::clear_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.ClearToEmpty(); -} -inline const std::string& ValidatorNodeRegistration::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ValidatorNodeRegistration::set_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ValidatorNodeRegistration.public_key) -} -inline std::string* ValidatorNodeRegistration::mutable_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeRegistration.public_key) - return _s; -} -inline const std::string& ValidatorNodeRegistration::_internal_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_key_.Get(); -} -inline void ValidatorNodeRegistration::_internal_set_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.Set(value, GetArena()); -} -inline std::string* ValidatorNodeRegistration::_internal_mutable_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_key_.Mutable( GetArena()); -} -inline std::string* ValidatorNodeRegistration::release_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeRegistration.public_key) - return _impl_.public_key_.Release(); -} -inline void ValidatorNodeRegistration::set_allocated_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeRegistration.public_key) -} - -// .tari.rpc.Signature signature = 2; -inline bool ValidatorNodeRegistration::has_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.signature_ != nullptr); - return value; -} -inline const ::tari::rpc::Signature& ValidatorNodeRegistration::_internal_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Signature* p = _impl_.signature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); -} -inline const ::tari::rpc::Signature& ValidatorNodeRegistration::signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ValidatorNodeRegistration.signature) - return _internal_signature(); -} -inline void ValidatorNodeRegistration::unsafe_arena_set_allocated_signature(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); - } - _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ValidatorNodeRegistration.signature) -} -inline ::tari::rpc::Signature* ValidatorNodeRegistration::release_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* released = _impl_.signature_; - _impl_.signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Signature* ValidatorNodeRegistration::unsafe_arena_release_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ValidatorNodeRegistration.signature) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* temp = _impl_.signature_; - _impl_.signature_ = nullptr; - return temp; -} -inline ::tari::rpc::Signature* ValidatorNodeRegistration::_internal_mutable_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.signature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); - _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(p); - } - return _impl_.signature_; -} -inline ::tari::rpc::Signature* ValidatorNodeRegistration::mutable_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Signature* _msg = _internal_mutable_signature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ValidatorNodeRegistration.signature) - return _msg; -} -inline void ValidatorNodeRegistration::set_allocated_signature(::tari::rpc::Signature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.signature_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ValidatorNodeRegistration.signature) -} - -// ------------------------------------------------------------------- - -// TemplateRegistration - -// bytes author_public_key = 1; -inline void TemplateRegistration::clear_author_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.author_public_key_.ClearToEmpty(); -} -inline const std::string& TemplateRegistration::author_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.author_public_key) - return _internal_author_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_author_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.author_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.author_public_key) -} -inline std::string* TemplateRegistration::mutable_author_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_author_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.author_public_key) - return _s; -} -inline const std::string& TemplateRegistration::_internal_author_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.author_public_key_.Get(); -} -inline void TemplateRegistration::_internal_set_author_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.author_public_key_.Set(value, GetArena()); -} -inline std::string* TemplateRegistration::_internal_mutable_author_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.author_public_key_.Mutable( GetArena()); -} -inline std::string* TemplateRegistration::release_author_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.author_public_key) - return _impl_.author_public_key_.Release(); -} -inline void TemplateRegistration::set_allocated_author_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.author_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.author_public_key_.IsDefault()) { - _impl_.author_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.author_public_key) -} - -// .tari.rpc.Signature author_signature = 2; -inline bool TemplateRegistration::has_author_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.author_signature_ != nullptr); - return value; -} -inline const ::tari::rpc::Signature& TemplateRegistration::_internal_author_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Signature* p = _impl_.author_signature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); -} -inline const ::tari::rpc::Signature& TemplateRegistration::author_signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.author_signature) - return _internal_author_signature(); -} -inline void TemplateRegistration::unsafe_arena_set_allocated_author_signature(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.author_signature_); - } - _impl_.author_signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateRegistration.author_signature) -} -inline ::tari::rpc::Signature* TemplateRegistration::release_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* released = _impl_.author_signature_; - _impl_.author_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Signature* TemplateRegistration::unsafe_arena_release_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.author_signature) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* temp = _impl_.author_signature_; - _impl_.author_signature_ = nullptr; - return temp; -} -inline ::tari::rpc::Signature* TemplateRegistration::_internal_mutable_author_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.author_signature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); - _impl_.author_signature_ = reinterpret_cast<::tari::rpc::Signature*>(p); - } - return _impl_.author_signature_; -} -inline ::tari::rpc::Signature* TemplateRegistration::mutable_author_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Signature* _msg = _internal_mutable_author_signature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.author_signature) - return _msg; -} -inline void TemplateRegistration::set_allocated_author_signature(::tari::rpc::Signature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.author_signature_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.author_signature_ = reinterpret_cast<::tari::rpc::Signature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.author_signature) -} - -// string template_name = 3; -inline void TemplateRegistration::clear_template_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.template_name_.ClearToEmpty(); -} -inline const std::string& TemplateRegistration::template_name() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.template_name) - return _internal_template_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_template_name(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.template_name_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.template_name) -} -inline std::string* TemplateRegistration::mutable_template_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_template_name(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.template_name) - return _s; -} -inline const std::string& TemplateRegistration::_internal_template_name() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.template_name_.Get(); -} -inline void TemplateRegistration::_internal_set_template_name(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.template_name_.Set(value, GetArena()); -} -inline std::string* TemplateRegistration::_internal_mutable_template_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.template_name_.Mutable( GetArena()); -} -inline std::string* TemplateRegistration::release_template_name() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.template_name) - return _impl_.template_name_.Release(); -} -inline void TemplateRegistration::set_allocated_template_name(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.template_name_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.template_name_.IsDefault()) { - _impl_.template_name_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.template_name) -} - -// uint32 template_version = 4; -inline void TemplateRegistration::clear_template_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.template_version_ = 0u; -} -inline ::uint32_t TemplateRegistration::template_version() const { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.template_version) - return _internal_template_version(); -} -inline void TemplateRegistration::set_template_version(::uint32_t value) { - _internal_set_template_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.template_version) -} -inline ::uint32_t TemplateRegistration::_internal_template_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.template_version_; -} -inline void TemplateRegistration::_internal_set_template_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.template_version_ = value; -} - -// .tari.rpc.TemplateType template_type = 5; -inline bool TemplateRegistration::has_template_type() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.template_type_ != nullptr); - return value; -} -inline void TemplateRegistration::clear_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.template_type_ != nullptr) _impl_.template_type_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::tari::rpc::TemplateType& TemplateRegistration::_internal_template_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::TemplateType* p = _impl_.template_type_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_TemplateType_default_instance_); -} -inline const ::tari::rpc::TemplateType& TemplateRegistration::template_type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.template_type) - return _internal_template_type(); -} -inline void TemplateRegistration::unsafe_arena_set_allocated_template_type(::tari::rpc::TemplateType* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.template_type_); - } - _impl_.template_type_ = reinterpret_cast<::tari::rpc::TemplateType*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateRegistration.template_type) -} -inline ::tari::rpc::TemplateType* TemplateRegistration::release_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::TemplateType* released = _impl_.template_type_; - _impl_.template_type_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::TemplateType* TemplateRegistration::unsafe_arena_release_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.template_type) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::TemplateType* temp = _impl_.template_type_; - _impl_.template_type_ = nullptr; - return temp; -} -inline ::tari::rpc::TemplateType* TemplateRegistration::_internal_mutable_template_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.template_type_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::TemplateType>(GetArena()); - _impl_.template_type_ = reinterpret_cast<::tari::rpc::TemplateType*>(p); - } - return _impl_.template_type_; -} -inline ::tari::rpc::TemplateType* TemplateRegistration::mutable_template_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::TemplateType* _msg = _internal_mutable_template_type(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.template_type) - return _msg; -} -inline void TemplateRegistration::set_allocated_template_type(::tari::rpc::TemplateType* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.template_type_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.template_type_ = reinterpret_cast<::tari::rpc::TemplateType*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.template_type) -} - -// .tari.rpc.BuildInfo build_info = 6; -inline bool TemplateRegistration::has_build_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.build_info_ != nullptr); - return value; -} -inline void TemplateRegistration::clear_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.build_info_ != nullptr) _impl_.build_info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const ::tari::rpc::BuildInfo& TemplateRegistration::_internal_build_info() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::BuildInfo* p = _impl_.build_info_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_BuildInfo_default_instance_); -} -inline const ::tari::rpc::BuildInfo& TemplateRegistration::build_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.build_info) - return _internal_build_info(); -} -inline void TemplateRegistration::unsafe_arena_set_allocated_build_info(::tari::rpc::BuildInfo* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.build_info_); - } - _impl_.build_info_ = reinterpret_cast<::tari::rpc::BuildInfo*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateRegistration.build_info) -} -inline ::tari::rpc::BuildInfo* TemplateRegistration::release_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::BuildInfo* released = _impl_.build_info_; - _impl_.build_info_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::BuildInfo* TemplateRegistration::unsafe_arena_release_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.build_info) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::BuildInfo* temp = _impl_.build_info_; - _impl_.build_info_ = nullptr; - return temp; -} -inline ::tari::rpc::BuildInfo* TemplateRegistration::_internal_mutable_build_info() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.build_info_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::BuildInfo>(GetArena()); - _impl_.build_info_ = reinterpret_cast<::tari::rpc::BuildInfo*>(p); - } - return _impl_.build_info_; -} -inline ::tari::rpc::BuildInfo* TemplateRegistration::mutable_build_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; - ::tari::rpc::BuildInfo* _msg = _internal_mutable_build_info(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.build_info) - return _msg; -} -inline void TemplateRegistration::set_allocated_build_info(::tari::rpc::BuildInfo* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.build_info_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.build_info_ = reinterpret_cast<::tari::rpc::BuildInfo*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.build_info) -} - -// bytes binary_sha = 7; -inline void TemplateRegistration::clear_binary_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_sha_.ClearToEmpty(); -} -inline const std::string& TemplateRegistration::binary_sha() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.binary_sha) - return _internal_binary_sha(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_sha(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_sha_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.binary_sha) -} -inline std::string* TemplateRegistration::mutable_binary_sha() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_binary_sha(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.binary_sha) - return _s; -} -inline const std::string& TemplateRegistration::_internal_binary_sha() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.binary_sha_.Get(); -} -inline void TemplateRegistration::_internal_set_binary_sha(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_sha_.Set(value, GetArena()); -} -inline std::string* TemplateRegistration::_internal_mutable_binary_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.binary_sha_.Mutable( GetArena()); -} -inline std::string* TemplateRegistration::release_binary_sha() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.binary_sha) - return _impl_.binary_sha_.Release(); -} -inline void TemplateRegistration::set_allocated_binary_sha(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_sha_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.binary_sha_.IsDefault()) { - _impl_.binary_sha_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.binary_sha) -} - -// string binary_url = 8; -inline void TemplateRegistration::clear_binary_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_url_.ClearToEmpty(); -} -inline const std::string& TemplateRegistration::binary_url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateRegistration.binary_url) - return _internal_binary_url(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TemplateRegistration::set_binary_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TemplateRegistration.binary_url) -} -inline std::string* TemplateRegistration::mutable_binary_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_binary_url(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateRegistration.binary_url) - return _s; -} -inline const std::string& TemplateRegistration::_internal_binary_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.binary_url_.Get(); -} -inline void TemplateRegistration::_internal_set_binary_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_url_.Set(value, GetArena()); -} -inline std::string* TemplateRegistration::_internal_mutable_binary_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.binary_url_.Mutable( GetArena()); -} -inline std::string* TemplateRegistration::release_binary_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TemplateRegistration.binary_url) - return _impl_.binary_url_.Release(); -} -inline void TemplateRegistration::set_allocated_binary_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.binary_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.binary_url_.IsDefault()) { - _impl_.binary_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TemplateRegistration.binary_url) -} - -// ------------------------------------------------------------------- - -// ConfidentialOutputData - -// bytes claim_public_key = 1; -inline void ConfidentialOutputData::clear_claim_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.claim_public_key_.ClearToEmpty(); -} -inline const std::string& ConfidentialOutputData::claim_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ConfidentialOutputData.claim_public_key) - return _internal_claim_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ConfidentialOutputData::set_claim_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.claim_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ConfidentialOutputData.claim_public_key) -} -inline std::string* ConfidentialOutputData::mutable_claim_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_claim_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ConfidentialOutputData.claim_public_key) - return _s; -} -inline const std::string& ConfidentialOutputData::_internal_claim_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.claim_public_key_.Get(); -} -inline void ConfidentialOutputData::_internal_set_claim_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.claim_public_key_.Set(value, GetArena()); -} -inline std::string* ConfidentialOutputData::_internal_mutable_claim_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.claim_public_key_.Mutable( GetArena()); -} -inline std::string* ConfidentialOutputData::release_claim_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ConfidentialOutputData.claim_public_key) - return _impl_.claim_public_key_.Release(); -} -inline void ConfidentialOutputData::set_allocated_claim_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.claim_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.claim_public_key_.IsDefault()) { - _impl_.claim_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ConfidentialOutputData.claim_public_key) -} - -// ------------------------------------------------------------------- - -// TemplateType - -// .tari.rpc.WasmInfo wasm = 1; -inline bool TemplateType::has_wasm() const { - return template_type_case() == kWasm; -} -inline bool TemplateType::_internal_has_wasm() const { - return template_type_case() == kWasm; -} -inline void TemplateType::set_has_wasm() { - _impl_._oneof_case_[0] = kWasm; -} -inline void TemplateType::clear_wasm() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (template_type_case() == kWasm) { - if (GetArena() == nullptr) { - delete _impl_.template_type_.wasm_; - } - clear_has_template_type(); - } -} -inline ::tari::rpc::WasmInfo* TemplateType::release_wasm() { - // @@protoc_insertion_point(field_release:tari.rpc.TemplateType.wasm) - if (template_type_case() == kWasm) { - clear_has_template_type(); - auto* temp = _impl_.template_type_.wasm_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.template_type_.wasm_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::tari::rpc::WasmInfo& TemplateType::_internal_wasm() const { - return template_type_case() == kWasm ? *_impl_.template_type_.wasm_ : reinterpret_cast<::tari::rpc::WasmInfo&>(::tari::rpc::_WasmInfo_default_instance_); -} -inline const ::tari::rpc::WasmInfo& TemplateType::wasm() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateType.wasm) - return _internal_wasm(); -} -inline ::tari::rpc::WasmInfo* TemplateType::unsafe_arena_release_wasm() { - // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.TemplateType.wasm) - if (template_type_case() == kWasm) { - clear_has_template_type(); - auto* temp = _impl_.template_type_.wasm_; - _impl_.template_type_.wasm_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void TemplateType::unsafe_arena_set_allocated_wasm(::tari::rpc::WasmInfo* 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_template_type(); - if (value) { - set_has_wasm(); - _impl_.template_type_.wasm_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateType.wasm) -} -inline ::tari::rpc::WasmInfo* TemplateType::_internal_mutable_wasm() { - if (template_type_case() != kWasm) { - clear_template_type(); - set_has_wasm(); - _impl_.template_type_.wasm_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::WasmInfo>(GetArena()); - } - return _impl_.template_type_.wasm_; -} -inline ::tari::rpc::WasmInfo* TemplateType::mutable_wasm() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tari::rpc::WasmInfo* _msg = _internal_mutable_wasm(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateType.wasm) - return _msg; -} - -// .tari.rpc.FlowInfo flow = 2; -inline bool TemplateType::has_flow() const { - return template_type_case() == kFlow; -} -inline bool TemplateType::_internal_has_flow() const { - return template_type_case() == kFlow; -} -inline void TemplateType::set_has_flow() { - _impl_._oneof_case_[0] = kFlow; -} -inline void TemplateType::clear_flow() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (template_type_case() == kFlow) { - if (GetArena() == nullptr) { - delete _impl_.template_type_.flow_; - } - clear_has_template_type(); - } -} -inline ::tari::rpc::FlowInfo* TemplateType::release_flow() { - // @@protoc_insertion_point(field_release:tari.rpc.TemplateType.flow) - if (template_type_case() == kFlow) { - clear_has_template_type(); - auto* temp = _impl_.template_type_.flow_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.template_type_.flow_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::tari::rpc::FlowInfo& TemplateType::_internal_flow() const { - return template_type_case() == kFlow ? *_impl_.template_type_.flow_ : reinterpret_cast<::tari::rpc::FlowInfo&>(::tari::rpc::_FlowInfo_default_instance_); -} -inline const ::tari::rpc::FlowInfo& TemplateType::flow() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateType.flow) - return _internal_flow(); -} -inline ::tari::rpc::FlowInfo* TemplateType::unsafe_arena_release_flow() { - // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.TemplateType.flow) - if (template_type_case() == kFlow) { - clear_has_template_type(); - auto* temp = _impl_.template_type_.flow_; - _impl_.template_type_.flow_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void TemplateType::unsafe_arena_set_allocated_flow(::tari::rpc::FlowInfo* 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_template_type(); - if (value) { - set_has_flow(); - _impl_.template_type_.flow_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateType.flow) -} -inline ::tari::rpc::FlowInfo* TemplateType::_internal_mutable_flow() { - if (template_type_case() != kFlow) { - clear_template_type(); - set_has_flow(); - _impl_.template_type_.flow_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::FlowInfo>(GetArena()); - } - return _impl_.template_type_.flow_; -} -inline ::tari::rpc::FlowInfo* TemplateType::mutable_flow() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tari::rpc::FlowInfo* _msg = _internal_mutable_flow(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateType.flow) - return _msg; -} - -// .tari.rpc.ManifestInfo manifest = 3; -inline bool TemplateType::has_manifest() const { - return template_type_case() == kManifest; -} -inline bool TemplateType::_internal_has_manifest() const { - return template_type_case() == kManifest; -} -inline void TemplateType::set_has_manifest() { - _impl_._oneof_case_[0] = kManifest; -} -inline void TemplateType::clear_manifest() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (template_type_case() == kManifest) { - if (GetArena() == nullptr) { - delete _impl_.template_type_.manifest_; - } - clear_has_template_type(); - } -} -inline ::tari::rpc::ManifestInfo* TemplateType::release_manifest() { - // @@protoc_insertion_point(field_release:tari.rpc.TemplateType.manifest) - if (template_type_case() == kManifest) { - clear_has_template_type(); - auto* temp = _impl_.template_type_.manifest_; - if (GetArena() != nullptr) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - _impl_.template_type_.manifest_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::tari::rpc::ManifestInfo& TemplateType::_internal_manifest() const { - return template_type_case() == kManifest ? *_impl_.template_type_.manifest_ : reinterpret_cast<::tari::rpc::ManifestInfo&>(::tari::rpc::_ManifestInfo_default_instance_); -} -inline const ::tari::rpc::ManifestInfo& TemplateType::manifest() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TemplateType.manifest) - return _internal_manifest(); -} -inline ::tari::rpc::ManifestInfo* TemplateType::unsafe_arena_release_manifest() { - // @@protoc_insertion_point(field_unsafe_arena_release:tari.rpc.TemplateType.manifest) - if (template_type_case() == kManifest) { - clear_has_template_type(); - auto* temp = _impl_.template_type_.manifest_; - _impl_.template_type_.manifest_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void TemplateType::unsafe_arena_set_allocated_manifest(::tari::rpc::ManifestInfo* 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_template_type(); - if (value) { - set_has_manifest(); - _impl_.template_type_.manifest_ = value; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TemplateType.manifest) -} -inline ::tari::rpc::ManifestInfo* TemplateType::_internal_mutable_manifest() { - if (template_type_case() != kManifest) { - clear_template_type(); - set_has_manifest(); - _impl_.template_type_.manifest_ = - ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ManifestInfo>(GetArena()); - } - return _impl_.template_type_.manifest_; -} -inline ::tari::rpc::ManifestInfo* TemplateType::mutable_manifest() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::tari::rpc::ManifestInfo* _msg = _internal_mutable_manifest(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TemplateType.manifest) - return _msg; -} - -inline bool TemplateType::has_template_type() const { - return template_type_case() != TEMPLATE_TYPE_NOT_SET; -} -inline void TemplateType::clear_has_template_type() { - _impl_._oneof_case_[0] = TEMPLATE_TYPE_NOT_SET; -} -inline TemplateType::TemplateTypeCase TemplateType::template_type_case() const { - return TemplateType::TemplateTypeCase(_impl_._oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// WasmInfo - -// uint32 abi_version = 1; -inline void WasmInfo::clear_abi_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.abi_version_ = 0u; -} -inline ::uint32_t WasmInfo::abi_version() const { - // @@protoc_insertion_point(field_get:tari.rpc.WasmInfo.abi_version) - return _internal_abi_version(); -} -inline void WasmInfo::set_abi_version(::uint32_t value) { - _internal_set_abi_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.WasmInfo.abi_version) -} -inline ::uint32_t WasmInfo::_internal_abi_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.abi_version_; -} -inline void WasmInfo::_internal_set_abi_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.abi_version_ = value; -} - -// ------------------------------------------------------------------- - -// FlowInfo - -// ------------------------------------------------------------------- - -// ManifestInfo - -// ------------------------------------------------------------------- - -// BuildInfo - -// string repo_url = 1; -inline void BuildInfo::clear_repo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.repo_url_.ClearToEmpty(); -} -inline const std::string& BuildInfo::repo_url() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BuildInfo.repo_url) - return _internal_repo_url(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BuildInfo::set_repo_url(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.repo_url_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BuildInfo.repo_url) -} -inline std::string* BuildInfo::mutable_repo_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_repo_url(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BuildInfo.repo_url) - return _s; -} -inline const std::string& BuildInfo::_internal_repo_url() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.repo_url_.Get(); -} -inline void BuildInfo::_internal_set_repo_url(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.repo_url_.Set(value, GetArena()); -} -inline std::string* BuildInfo::_internal_mutable_repo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.repo_url_.Mutable( GetArena()); -} -inline std::string* BuildInfo::release_repo_url() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BuildInfo.repo_url) - return _impl_.repo_url_.Release(); -} -inline void BuildInfo::set_allocated_repo_url(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.repo_url_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.repo_url_.IsDefault()) { - _impl_.repo_url_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BuildInfo.repo_url) -} - -// bytes commit_hash = 2; -inline void BuildInfo::clear_commit_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commit_hash_.ClearToEmpty(); -} -inline const std::string& BuildInfo::commit_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.BuildInfo.commit_hash) - return _internal_commit_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void BuildInfo::set_commit_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commit_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.BuildInfo.commit_hash) -} -inline std::string* BuildInfo::mutable_commit_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_commit_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.BuildInfo.commit_hash) - return _s; -} -inline const std::string& BuildInfo::_internal_commit_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.commit_hash_.Get(); -} -inline void BuildInfo::_internal_set_commit_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commit_hash_.Set(value, GetArena()); -} -inline std::string* BuildInfo::_internal_mutable_commit_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.commit_hash_.Mutable( GetArena()); -} -inline std::string* BuildInfo::release_commit_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.BuildInfo.commit_hash) - return _impl_.commit_hash_.Release(); -} -inline void BuildInfo::set_allocated_commit_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commit_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.commit_hash_.IsDefault()) { - _impl_.commit_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.BuildInfo.commit_hash) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_sidechain_5ftypes_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/transaction.pb-c.c b/external/src/Tari/proto/gRPC/transaction.pb-c.c new file mode 100644 index 00000000..5e2afc15 --- /dev/null +++ b/external/src/Tari/proto/gRPC/transaction.pb-c.c @@ -0,0 +1,1243 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: transaction.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "transaction.pb-c.h" +void tari__rpc__transaction_kernel__init + (Tari__Rpc__TransactionKernel *message) +{ + static const Tari__Rpc__TransactionKernel init_value = TARI__RPC__TRANSACTION_KERNEL__INIT; + *message = init_value; +} +size_t tari__rpc__transaction_kernel__get_packed_size + (const Tari__Rpc__TransactionKernel *message) +{ + assert(message->base.descriptor == &tari__rpc__transaction_kernel__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__transaction_kernel__pack + (const Tari__Rpc__TransactionKernel *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__transaction_kernel__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__transaction_kernel__pack_to_buffer + (const Tari__Rpc__TransactionKernel *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__transaction_kernel__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TransactionKernel * + tari__rpc__transaction_kernel__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TransactionKernel *) + protobuf_c_message_unpack (&tari__rpc__transaction_kernel__descriptor, + allocator, len, data); +} +void tari__rpc__transaction_kernel__free_unpacked + (Tari__Rpc__TransactionKernel *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__transaction_kernel__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__transaction_input__init + (Tari__Rpc__TransactionInput *message) +{ + static const Tari__Rpc__TransactionInput init_value = TARI__RPC__TRANSACTION_INPUT__INIT; + *message = init_value; +} +size_t tari__rpc__transaction_input__get_packed_size + (const Tari__Rpc__TransactionInput *message) +{ + assert(message->base.descriptor == &tari__rpc__transaction_input__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__transaction_input__pack + (const Tari__Rpc__TransactionInput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__transaction_input__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__transaction_input__pack_to_buffer + (const Tari__Rpc__TransactionInput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__transaction_input__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TransactionInput * + tari__rpc__transaction_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TransactionInput *) + protobuf_c_message_unpack (&tari__rpc__transaction_input__descriptor, + allocator, len, data); +} +void tari__rpc__transaction_input__free_unpacked + (Tari__Rpc__TransactionInput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__transaction_input__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__transaction_output__init + (Tari__Rpc__TransactionOutput *message) +{ + static const Tari__Rpc__TransactionOutput init_value = TARI__RPC__TRANSACTION_OUTPUT__INIT; + *message = init_value; +} +size_t tari__rpc__transaction_output__get_packed_size + (const Tari__Rpc__TransactionOutput *message) +{ + assert(message->base.descriptor == &tari__rpc__transaction_output__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__transaction_output__pack + (const Tari__Rpc__TransactionOutput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__transaction_output__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__transaction_output__pack_to_buffer + (const Tari__Rpc__TransactionOutput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__transaction_output__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__TransactionOutput * + tari__rpc__transaction_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__TransactionOutput *) + protobuf_c_message_unpack (&tari__rpc__transaction_output__descriptor, + allocator, len, data); +} +void tari__rpc__transaction_output__free_unpacked + (Tari__Rpc__TransactionOutput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__transaction_output__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__output_features__init + (Tari__Rpc__OutputFeatures *message) +{ + static const Tari__Rpc__OutputFeatures init_value = TARI__RPC__OUTPUT_FEATURES__INIT; + *message = init_value; +} +size_t tari__rpc__output_features__get_packed_size + (const Tari__Rpc__OutputFeatures *message) +{ + assert(message->base.descriptor == &tari__rpc__output_features__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__output_features__pack + (const Tari__Rpc__OutputFeatures *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__output_features__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__output_features__pack_to_buffer + (const Tari__Rpc__OutputFeatures *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__output_features__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__OutputFeatures * + tari__rpc__output_features__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__OutputFeatures *) + protobuf_c_message_unpack (&tari__rpc__output_features__descriptor, + allocator, len, data); +} +void tari__rpc__output_features__free_unpacked + (Tari__Rpc__OutputFeatures *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__output_features__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__aggregate_body__init + (Tari__Rpc__AggregateBody *message) +{ + static const Tari__Rpc__AggregateBody init_value = TARI__RPC__AGGREGATE_BODY__INIT; + *message = init_value; +} +size_t tari__rpc__aggregate_body__get_packed_size + (const Tari__Rpc__AggregateBody *message) +{ + assert(message->base.descriptor == &tari__rpc__aggregate_body__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__aggregate_body__pack + (const Tari__Rpc__AggregateBody *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__aggregate_body__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__aggregate_body__pack_to_buffer + (const Tari__Rpc__AggregateBody *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__aggregate_body__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__AggregateBody * + tari__rpc__aggregate_body__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__AggregateBody *) + protobuf_c_message_unpack (&tari__rpc__aggregate_body__descriptor, + allocator, len, data); +} +void tari__rpc__aggregate_body__free_unpacked + (Tari__Rpc__AggregateBody *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__aggregate_body__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__transaction__init + (Tari__Rpc__Transaction *message) +{ + static const Tari__Rpc__Transaction init_value = TARI__RPC__TRANSACTION__INIT; + *message = init_value; +} +size_t tari__rpc__transaction__get_packed_size + (const Tari__Rpc__Transaction *message) +{ + assert(message->base.descriptor == &tari__rpc__transaction__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__transaction__pack + (const Tari__Rpc__Transaction *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__transaction__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__transaction__pack_to_buffer + (const Tari__Rpc__Transaction *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__transaction__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__Transaction * + tari__rpc__transaction__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__Transaction *) + protobuf_c_message_unpack (&tari__rpc__transaction__descriptor, + allocator, len, data); +} +void tari__rpc__transaction__free_unpacked + (Tari__Rpc__Transaction *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__transaction__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__unblinded_output__init + (Tari__Rpc__UnblindedOutput *message) +{ + static const Tari__Rpc__UnblindedOutput init_value = TARI__RPC__UNBLINDED_OUTPUT__INIT; + *message = init_value; +} +size_t tari__rpc__unblinded_output__get_packed_size + (const Tari__Rpc__UnblindedOutput *message) +{ + assert(message->base.descriptor == &tari__rpc__unblinded_output__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__unblinded_output__pack + (const Tari__Rpc__UnblindedOutput *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__unblinded_output__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__unblinded_output__pack_to_buffer + (const Tari__Rpc__UnblindedOutput *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__unblinded_output__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__UnblindedOutput * + tari__rpc__unblinded_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__UnblindedOutput *) + protobuf_c_message_unpack (&tari__rpc__unblinded_output__descriptor, + allocator, len, data); +} +void tari__rpc__unblinded_output__free_unpacked + (Tari__Rpc__UnblindedOutput *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__unblinded_output__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tari__rpc__transaction_kernel__field_descriptors[8] = +{ + { + "features", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, features), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "fee", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, fee), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "lock_height", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, lock_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "excess", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, excess), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "excess_sig", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, excess_sig), + &tari__rpc__signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "hash", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "version", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "burn_commitment", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionKernel, burn_commitment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__transaction_kernel__field_indices_by_name[] = { + 7, /* field[7] = burn_commitment */ + 3, /* field[3] = excess */ + 4, /* field[4] = excess_sig */ + 0, /* field[0] = features */ + 1, /* field[1] = fee */ + 5, /* field[5] = hash */ + 2, /* field[2] = lock_height */ + 6, /* field[6] = version */ +}; +static const ProtobufCIntRange tari__rpc__transaction_kernel__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 6, 3 }, + { 0, 8 } +}; +const ProtobufCMessageDescriptor tari__rpc__transaction_kernel__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TransactionKernel", + "TransactionKernel", + "Tari__Rpc__TransactionKernel", + "tari.rpc", + sizeof(Tari__Rpc__TransactionKernel), + 8, + tari__rpc__transaction_kernel__field_descriptors, + tari__rpc__transaction_kernel__field_indices_by_name, + 2, tari__rpc__transaction_kernel__number_ranges, + (ProtobufCMessageInit) tari__rpc__transaction_kernel__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__transaction_input__field_descriptors[14] = +{ + { + "features", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, features), + &tari__rpc__output_features__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "commitment", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, commitment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "hash", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, script), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "input_data", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, input_data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script_signature", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, script_signature), + &tari__rpc__com_and_pub_signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sender_offset_public_key", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, sender_offset_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "output_hash", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, output_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "covenant", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, covenant), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "version", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "encrypted_data", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, encrypted_data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "minimum_value_promise", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, minimum_value_promise), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "metadata_signature", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, metadata_signature), + &tari__rpc__com_and_pub_signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "rangeproof_hash", + 15, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionInput, rangeproof_hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__transaction_input__field_indices_by_name[] = { + 1, /* field[1] = commitment */ + 8, /* field[8] = covenant */ + 10, /* field[10] = encrypted_data */ + 0, /* field[0] = features */ + 2, /* field[2] = hash */ + 4, /* field[4] = input_data */ + 12, /* field[12] = metadata_signature */ + 11, /* field[11] = minimum_value_promise */ + 7, /* field[7] = output_hash */ + 13, /* field[13] = rangeproof_hash */ + 3, /* field[3] = script */ + 5, /* field[5] = script_signature */ + 6, /* field[6] = sender_offset_public_key */ + 9, /* field[9] = version */ +}; +static const ProtobufCIntRange tari__rpc__transaction_input__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 7, 5 }, + { 0, 14 } +}; +const ProtobufCMessageDescriptor tari__rpc__transaction_input__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TransactionInput", + "TransactionInput", + "Tari__Rpc__TransactionInput", + "tari.rpc", + sizeof(Tari__Rpc__TransactionInput), + 14, + tari__rpc__transaction_input__field_descriptors, + tari__rpc__transaction_input__field_indices_by_name, + 2, tari__rpc__transaction_input__number_ranges, + (ProtobufCMessageInit) tari__rpc__transaction_input__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__transaction_output__field_descriptors[11] = +{ + { + "features", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, features), + &tari__rpc__output_features__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "commitment", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, commitment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_proof", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, range_proof), + &tari__rpc__range_proof__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "hash", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, hash), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, script), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sender_offset_public_key", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, sender_offset_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "metadata_signature", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, metadata_signature), + &tari__rpc__com_and_pub_signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "covenant", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, covenant), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "version", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "encrypted_data", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, encrypted_data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "minimum_value_promise", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__TransactionOutput, minimum_value_promise), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__transaction_output__field_indices_by_name[] = { + 1, /* field[1] = commitment */ + 7, /* field[7] = covenant */ + 9, /* field[9] = encrypted_data */ + 0, /* field[0] = features */ + 3, /* field[3] = hash */ + 6, /* field[6] = metadata_signature */ + 10, /* field[10] = minimum_value_promise */ + 2, /* field[2] = range_proof */ + 4, /* field[4] = script */ + 5, /* field[5] = sender_offset_public_key */ + 8, /* field[8] = version */ +}; +static const ProtobufCIntRange tari__rpc__transaction_output__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 11 } +}; +const ProtobufCMessageDescriptor tari__rpc__transaction_output__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.TransactionOutput", + "TransactionOutput", + "Tari__Rpc__TransactionOutput", + "tari.rpc", + sizeof(Tari__Rpc__TransactionOutput), + 11, + tari__rpc__transaction_output__field_descriptors, + tari__rpc__transaction_output__field_indices_by_name, + 1, tari__rpc__transaction_output__number_ranges, + (ProtobufCMessageInit) tari__rpc__transaction_output__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__output_features__field_descriptors[6] = +{ + { + "version", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputFeatures, version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "output_type", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputFeatures, output_type), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "maturity", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputFeatures, maturity), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "coinbase_extra", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputFeatures, coinbase_extra), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sidechain_feature", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputFeatures, sidechain_feature), + &tari__rpc__side_chain_feature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_proof_type", + 6, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputFeatures, range_proof_type), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__output_features__field_indices_by_name[] = { + 3, /* field[3] = coinbase_extra */ + 2, /* field[2] = maturity */ + 1, /* field[1] = output_type */ + 5, /* field[5] = range_proof_type */ + 4, /* field[4] = sidechain_feature */ + 0, /* field[0] = version */ +}; +static const ProtobufCIntRange tari__rpc__output_features__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 6 } +}; +const ProtobufCMessageDescriptor tari__rpc__output_features__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.OutputFeatures", + "OutputFeatures", + "Tari__Rpc__OutputFeatures", + "tari.rpc", + sizeof(Tari__Rpc__OutputFeatures), + 6, + tari__rpc__output_features__field_descriptors, + tari__rpc__output_features__field_indices_by_name, + 1, tari__rpc__output_features__number_ranges, + (ProtobufCMessageInit) tari__rpc__output_features__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__aggregate_body__field_descriptors[3] = +{ + { + "inputs", + 1, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__AggregateBody, n_inputs), + offsetof(Tari__Rpc__AggregateBody, inputs), + &tari__rpc__transaction_input__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "outputs", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__AggregateBody, n_outputs), + offsetof(Tari__Rpc__AggregateBody, outputs), + &tari__rpc__transaction_output__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "kernels", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__AggregateBody, n_kernels), + offsetof(Tari__Rpc__AggregateBody, kernels), + &tari__rpc__transaction_kernel__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__aggregate_body__field_indices_by_name[] = { + 0, /* field[0] = inputs */ + 2, /* field[2] = kernels */ + 1, /* field[1] = outputs */ +}; +static const ProtobufCIntRange tari__rpc__aggregate_body__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__aggregate_body__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.AggregateBody", + "AggregateBody", + "Tari__Rpc__AggregateBody", + "tari.rpc", + sizeof(Tari__Rpc__AggregateBody), + 3, + tari__rpc__aggregate_body__field_descriptors, + tari__rpc__aggregate_body__field_indices_by_name, + 1, tari__rpc__aggregate_body__number_ranges, + (ProtobufCMessageInit) tari__rpc__aggregate_body__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__transaction__field_descriptors[3] = +{ + { + "offset", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Transaction, offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "body", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Transaction, body), + &tari__rpc__aggregate_body__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script_offset", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Transaction, script_offset), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__transaction__field_indices_by_name[] = { + 1, /* field[1] = body */ + 0, /* field[0] = offset */ + 2, /* field[2] = script_offset */ +}; +static const ProtobufCIntRange tari__rpc__transaction__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__transaction__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.Transaction", + "Transaction", + "Tari__Rpc__Transaction", + "tari.rpc", + sizeof(Tari__Rpc__Transaction), + 3, + tari__rpc__transaction__field_descriptors, + tari__rpc__transaction__field_indices_by_name, + 1, tari__rpc__transaction__number_ranges, + (ProtobufCMessageInit) tari__rpc__transaction__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__unblinded_output__field_descriptors[12] = +{ + { + "value", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "spending_key", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, spending_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "features", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, features), + &tari__rpc__output_features__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, script), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "input_data", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, input_data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script_private_key", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, script_private_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "sender_offset_public_key", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, sender_offset_public_key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "metadata_signature", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, metadata_signature), + &tari__rpc__com_and_pub_signature__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "script_lock_height", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, script_lock_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "covenant", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, covenant), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "encrypted_data", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, encrypted_data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "minimum_value_promise", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__UnblindedOutput, minimum_value_promise), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__unblinded_output__field_indices_by_name[] = { + 9, /* field[9] = covenant */ + 10, /* field[10] = encrypted_data */ + 2, /* field[2] = features */ + 4, /* field[4] = input_data */ + 7, /* field[7] = metadata_signature */ + 11, /* field[11] = minimum_value_promise */ + 3, /* field[3] = script */ + 8, /* field[8] = script_lock_height */ + 5, /* field[5] = script_private_key */ + 6, /* field[6] = sender_offset_public_key */ + 1, /* field[1] = spending_key */ + 0, /* field[0] = value */ +}; +static const ProtobufCIntRange tari__rpc__unblinded_output__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 7, 5 }, + { 0, 12 } +}; +const ProtobufCMessageDescriptor tari__rpc__unblinded_output__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.UnblindedOutput", + "UnblindedOutput", + "Tari__Rpc__UnblindedOutput", + "tari.rpc", + sizeof(Tari__Rpc__UnblindedOutput), + 12, + tari__rpc__unblinded_output__field_descriptors, + tari__rpc__unblinded_output__field_indices_by_name, + 2, tari__rpc__unblinded_output__number_ranges, + (ProtobufCMessageInit) tari__rpc__unblinded_output__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/external/src/Tari/proto/gRPC/transaction.pb-c.h b/external/src/Tari/proto/gRPC/transaction.pb-c.h new file mode 100644 index 00000000..7070cdd5 --- /dev/null +++ b/external/src/Tari/proto/gRPC/transaction.pb-c.h @@ -0,0 +1,525 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: transaction.proto */ + +#ifndef PROTOBUF_C_transaction_2eproto__INCLUDED +#define PROTOBUF_C_transaction_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "types.pb-c.h" +#include "sidechain_types.pb-c.h" + +typedef struct _Tari__Rpc__TransactionKernel Tari__Rpc__TransactionKernel; +typedef struct _Tari__Rpc__TransactionInput Tari__Rpc__TransactionInput; +typedef struct _Tari__Rpc__TransactionOutput Tari__Rpc__TransactionOutput; +typedef struct _Tari__Rpc__OutputFeatures Tari__Rpc__OutputFeatures; +typedef struct _Tari__Rpc__AggregateBody Tari__Rpc__AggregateBody; +typedef struct _Tari__Rpc__Transaction Tari__Rpc__Transaction; +typedef struct _Tari__Rpc__UnblindedOutput Tari__Rpc__UnblindedOutput; + + +/* --- enums --- */ + + +/* --- messages --- */ + +/* + * The transaction kernel tracks the excess for a given transaction. For an explanation of what the excess is, and + * why it is necessary, refer to the + * [Mimblewimble TLU post](https://tlu.tarilabs.com/protocols/mimblewimble-1/sources/PITCHME.link.html?highlight=mimblewimble#mimblewimble). + * The kernel also tracks other transaction metadata, such as the lock height for the transaction (i.e. the earliest + * this transaction can be mined) and the transaction fee, in cleartext. + */ +struct _Tari__Rpc__TransactionKernel +{ + ProtobufCMessage base; + /* + * Options for a kernel's structure or use + */ + uint32_t features; + /* + * / Fee originally included in the transaction this proof is for (in MicroMinotari) + */ + uint64_t fee; + /* + * This kernel is not valid earlier than lock_height blocks + * The max lock_height of all *inputs* to this transaction + */ + uint64_t lock_height; + /* + * Remainder of the sum of all transaction commitments. If the transaction + * is well formed, amounts components should sum to zero and the excess + * is hence a valid public key. + */ + ProtobufCBinaryData excess; + /* + * The signature proving the excess is a valid public key, which signs + * the transaction fee. + */ + Tari__Rpc__Signature *excess_sig; + /* + * The hash of the kernel, as it appears in the MMR + */ + ProtobufCBinaryData hash; + /* + * Version + */ + uint32_t version; + /* + * Optional burned commitment + */ + ProtobufCBinaryData burn_commitment; +}; +#define TARI__RPC__TRANSACTION_KERNEL__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__transaction_kernel__descriptor) \ + , 0, 0, 0, {0,NULL}, NULL, {0,NULL}, 0, {0,NULL} } + + +/* + * A transaction input. + * Primarily a reference to an output being spent by the transaction. + */ +struct _Tari__Rpc__TransactionInput +{ + ProtobufCMessage base; + /* + * The features of the output being spent. We will check maturity for all outputs. + */ + Tari__Rpc__OutputFeatures *features; + /* + * The commitment referencing the output being spent. + */ + ProtobufCBinaryData commitment; + /* + * Hash of the input, as it appears in the MMR + */ + ProtobufCBinaryData hash; + /* + * The serialised script + */ + ProtobufCBinaryData script; + /* + * The script input data, if any + */ + ProtobufCBinaryData input_data; + /* + * A signature with k_s, signing the script, input data, and mined height + */ + Tari__Rpc__ComAndPubSignature *script_signature; + /* + * The offset public key, K_O + */ + ProtobufCBinaryData sender_offset_public_key; + /* + * The hash of the output this input is spending + */ + ProtobufCBinaryData output_hash; + /* + * Covenant + */ + ProtobufCBinaryData covenant; + /* + * Version + */ + uint32_t version; + /* + * The encrypted data + */ + ProtobufCBinaryData encrypted_data; + /* + * The minimum value of the commitment that is proven by the range proof (in MicroMinotari) + */ + uint64_t minimum_value_promise; + /* + * The metadata signature for output this input is spending + */ + Tari__Rpc__ComAndPubSignature *metadata_signature; + /* + * The rangeproof hash for output this input is spending + */ + ProtobufCBinaryData rangeproof_hash; +}; +#define TARI__RPC__TRANSACTION_INPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__transaction_input__descriptor) \ + , NULL, {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL}, NULL, {0,NULL}, {0,NULL}, {0,NULL}, 0, {0,NULL}, 0, NULL, {0,NULL} } + + +/* + * Output for a transaction, defining the new ownership of coins that are being transferred. The commitment is a + * blinded value for the output while the range proof guarantees the commitment includes a positive value without + * overflow and the ownership of the private key. + */ +struct _Tari__Rpc__TransactionOutput +{ + ProtobufCMessage base; + /* + * Options for an output's structure or use + */ + Tari__Rpc__OutputFeatures *features; + /* + * The homomorphic commitment representing the output amount + */ + ProtobufCBinaryData commitment; + /* + * A proof that the commitment is in the right range + */ + Tari__Rpc__RangeProof *range_proof; + /* + * The hash of the output, as it appears in the MMR + */ + ProtobufCBinaryData hash; + /* + * Tari script serialised script + */ + ProtobufCBinaryData script; + /* + * Tari script offset public key, K_O + */ + ProtobufCBinaryData sender_offset_public_key; + /* + * Metadata signature with the homomorphic commitment private values (amount and blinding factor) and the sender + * offset private key + */ + Tari__Rpc__ComAndPubSignature *metadata_signature; + /* + * Covenant + */ + ProtobufCBinaryData covenant; + /* + * Version + */ + uint32_t version; + /* + * Encrypted Pedersen commitment openings (value and mask) for the output + */ + ProtobufCBinaryData encrypted_data; + /* + * The minimum value of the commitment that is proven by the range proof (in MicroMinotari) + */ + uint64_t minimum_value_promise; +}; +#define TARI__RPC__TRANSACTION_OUTPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__transaction_output__descriptor) \ + , NULL, {0,NULL}, NULL, {0,NULL}, {0,NULL}, {0,NULL}, NULL, {0,NULL}, 0, {0,NULL}, 0 } + + +/* + * Options for UTXOs + */ +struct _Tari__Rpc__OutputFeatures +{ + ProtobufCMessage base; + /* + * Version + */ + uint32_t version; + /* + * The type of output, eg Coinbase, all of which have different consensus rules + */ + uint32_t output_type; + /* + * The maturity of the specific UTXO. This is the min lock height at which an UTXO can be spend. Coinbase UTXO + * require a min maturity of the Coinbase_lock_height, this should be checked on receiving new blocks. + */ + uint64_t maturity; + /* + * Additional arbitrary info in coinbase transactions supplied by miners + */ + ProtobufCBinaryData coinbase_extra; + /* + * Features that are specific to a side chain + */ + Tari__Rpc__SideChainFeature *sidechain_feature; + /* + * The type of range proof used in the output + */ + uint32_t range_proof_type; +}; +#define TARI__RPC__OUTPUT_FEATURES__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__output_features__descriptor) \ + , 0, 0, 0, {0,NULL}, NULL, 0 } + + +/* + * The components of the block or transaction. The same struct can be used for either, since in Mimblewimble, + * cut-through means that blocks and transactions have the same structure. The inputs, outputs and kernels should + * be sorted by their Blake2b-256bit digest hash + */ +struct _Tari__Rpc__AggregateBody +{ + ProtobufCMessage base; + /* + * List of inputs spent by the transaction. + */ + size_t n_inputs; + Tari__Rpc__TransactionInput **inputs; + /* + * List of outputs the transaction produces. + */ + size_t n_outputs; + Tari__Rpc__TransactionOutput **outputs; + /* + * Kernels contain the excesses and their signatures for transaction + */ + size_t n_kernels; + Tari__Rpc__TransactionKernel **kernels; +}; +#define TARI__RPC__AGGREGATE_BODY__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__aggregate_body__descriptor) \ + , 0,NULL, 0,NULL, 0,NULL } + + +/* + * A transaction which consists of a kernel offset and an aggregate body made up of inputs, outputs and kernels. + */ +struct _Tari__Rpc__Transaction +{ + ProtobufCMessage base; + ProtobufCBinaryData offset; + Tari__Rpc__AggregateBody *body; + ProtobufCBinaryData script_offset; +}; +#define TARI__RPC__TRANSACTION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__transaction__descriptor) \ + , {0,NULL}, NULL, {0,NULL} } + + +struct _Tari__Rpc__UnblindedOutput +{ + ProtobufCMessage base; + /* + * Value of the output + */ + uint64_t value; + /* + * Spending key of the output + */ + ProtobufCBinaryData spending_key; + /* + * Options for an output's structure or use + */ + Tari__Rpc__OutputFeatures *features; + /* + * Tari script serialised script + */ + ProtobufCBinaryData script; + /* + * Tari script input data for spending + */ + ProtobufCBinaryData input_data; + /* + * Tari script private key + */ + ProtobufCBinaryData script_private_key; + /* + * Tari script offset pubkey, K_O + */ + ProtobufCBinaryData sender_offset_public_key; + /* + * UTXO signature with the script offset private key, k_O + */ + Tari__Rpc__ComAndPubSignature *metadata_signature; + /* + * The minimum height the script allows this output to be spent + */ + uint64_t script_lock_height; + /* + * Covenant + */ + ProtobufCBinaryData covenant; + /* + * Encrypted data + */ + ProtobufCBinaryData encrypted_data; + /* + * The minimum value of the commitment that is proven by the range proof (in MicroMinotari) + */ + uint64_t minimum_value_promise; +}; +#define TARI__RPC__UNBLINDED_OUTPUT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__unblinded_output__descriptor) \ + , 0, {0,NULL}, NULL, {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL}, NULL, 0, {0,NULL}, {0,NULL}, 0 } + + +/* Tari__Rpc__TransactionKernel methods */ +void tari__rpc__transaction_kernel__init + (Tari__Rpc__TransactionKernel *message); +size_t tari__rpc__transaction_kernel__get_packed_size + (const Tari__Rpc__TransactionKernel *message); +size_t tari__rpc__transaction_kernel__pack + (const Tari__Rpc__TransactionKernel *message, + uint8_t *out); +size_t tari__rpc__transaction_kernel__pack_to_buffer + (const Tari__Rpc__TransactionKernel *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TransactionKernel * + tari__rpc__transaction_kernel__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__transaction_kernel__free_unpacked + (Tari__Rpc__TransactionKernel *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__TransactionInput methods */ +void tari__rpc__transaction_input__init + (Tari__Rpc__TransactionInput *message); +size_t tari__rpc__transaction_input__get_packed_size + (const Tari__Rpc__TransactionInput *message); +size_t tari__rpc__transaction_input__pack + (const Tari__Rpc__TransactionInput *message, + uint8_t *out); +size_t tari__rpc__transaction_input__pack_to_buffer + (const Tari__Rpc__TransactionInput *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TransactionInput * + tari__rpc__transaction_input__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__transaction_input__free_unpacked + (Tari__Rpc__TransactionInput *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__TransactionOutput methods */ +void tari__rpc__transaction_output__init + (Tari__Rpc__TransactionOutput *message); +size_t tari__rpc__transaction_output__get_packed_size + (const Tari__Rpc__TransactionOutput *message); +size_t tari__rpc__transaction_output__pack + (const Tari__Rpc__TransactionOutput *message, + uint8_t *out); +size_t tari__rpc__transaction_output__pack_to_buffer + (const Tari__Rpc__TransactionOutput *message, + ProtobufCBuffer *buffer); +Tari__Rpc__TransactionOutput * + tari__rpc__transaction_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__transaction_output__free_unpacked + (Tari__Rpc__TransactionOutput *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__OutputFeatures methods */ +void tari__rpc__output_features__init + (Tari__Rpc__OutputFeatures *message); +size_t tari__rpc__output_features__get_packed_size + (const Tari__Rpc__OutputFeatures *message); +size_t tari__rpc__output_features__pack + (const Tari__Rpc__OutputFeatures *message, + uint8_t *out); +size_t tari__rpc__output_features__pack_to_buffer + (const Tari__Rpc__OutputFeatures *message, + ProtobufCBuffer *buffer); +Tari__Rpc__OutputFeatures * + tari__rpc__output_features__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__output_features__free_unpacked + (Tari__Rpc__OutputFeatures *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__AggregateBody methods */ +void tari__rpc__aggregate_body__init + (Tari__Rpc__AggregateBody *message); +size_t tari__rpc__aggregate_body__get_packed_size + (const Tari__Rpc__AggregateBody *message); +size_t tari__rpc__aggregate_body__pack + (const Tari__Rpc__AggregateBody *message, + uint8_t *out); +size_t tari__rpc__aggregate_body__pack_to_buffer + (const Tari__Rpc__AggregateBody *message, + ProtobufCBuffer *buffer); +Tari__Rpc__AggregateBody * + tari__rpc__aggregate_body__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__aggregate_body__free_unpacked + (Tari__Rpc__AggregateBody *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__Transaction methods */ +void tari__rpc__transaction__init + (Tari__Rpc__Transaction *message); +size_t tari__rpc__transaction__get_packed_size + (const Tari__Rpc__Transaction *message); +size_t tari__rpc__transaction__pack + (const Tari__Rpc__Transaction *message, + uint8_t *out); +size_t tari__rpc__transaction__pack_to_buffer + (const Tari__Rpc__Transaction *message, + ProtobufCBuffer *buffer); +Tari__Rpc__Transaction * + tari__rpc__transaction__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__transaction__free_unpacked + (Tari__Rpc__Transaction *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__UnblindedOutput methods */ +void tari__rpc__unblinded_output__init + (Tari__Rpc__UnblindedOutput *message); +size_t tari__rpc__unblinded_output__get_packed_size + (const Tari__Rpc__UnblindedOutput *message); +size_t tari__rpc__unblinded_output__pack + (const Tari__Rpc__UnblindedOutput *message, + uint8_t *out); +size_t tari__rpc__unblinded_output__pack_to_buffer + (const Tari__Rpc__UnblindedOutput *message, + ProtobufCBuffer *buffer); +Tari__Rpc__UnblindedOutput * + tari__rpc__unblinded_output__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__unblinded_output__free_unpacked + (Tari__Rpc__UnblindedOutput *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tari__Rpc__TransactionKernel_Closure) + (const Tari__Rpc__TransactionKernel *message, + void *closure_data); +typedef void (*Tari__Rpc__TransactionInput_Closure) + (const Tari__Rpc__TransactionInput *message, + void *closure_data); +typedef void (*Tari__Rpc__TransactionOutput_Closure) + (const Tari__Rpc__TransactionOutput *message, + void *closure_data); +typedef void (*Tari__Rpc__OutputFeatures_Closure) + (const Tari__Rpc__OutputFeatures *message, + void *closure_data); +typedef void (*Tari__Rpc__AggregateBody_Closure) + (const Tari__Rpc__AggregateBody *message, + void *closure_data); +typedef void (*Tari__Rpc__Transaction_Closure) + (const Tari__Rpc__Transaction *message, + void *closure_data); +typedef void (*Tari__Rpc__UnblindedOutput_Closure) + (const Tari__Rpc__UnblindedOutput *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tari__rpc__transaction_kernel__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__transaction_input__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__transaction_output__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__output_features__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__aggregate_body__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__transaction__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__unblinded_output__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_transaction_2eproto__INCLUDED */ diff --git a/external/src/Tari/proto/gRPC/transaction.pb.cc b/external/src/Tari/proto/gRPC/transaction.pb.cc deleted file mode 100644 index 0fb2bebc..00000000 --- a/external/src/Tari/proto/gRPC/transaction.pb.cc +++ /dev/null @@ -1,3524 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: transaction.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#include "transaction.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.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" -#include "google/protobuf/generated_message_tctable_impl.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 tari { -namespace rpc { - -inline constexpr TransactionKernel::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - excess_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - burn_commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - excess_sig_{nullptr}, - fee_{::uint64_t{0u}}, - lock_height_{::uint64_t{0u}}, - features_{0u}, - version_{0u} {} - -template -PROTOBUF_CONSTEXPR TransactionKernel::TransactionKernel(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransactionKernelDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransactionKernelDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransactionKernelDefaultTypeInternal() {} - union { - TransactionKernel _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionKernelDefaultTypeInternal _TransactionKernel_default_instance_; - -inline constexpr OutputFeatures::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - coinbase_extra_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sidechain_feature_{nullptr}, - version_{0u}, - output_type_{0u}, - maturity_{::uint64_t{0u}}, - range_proof_type_{0u} {} - -template -PROTOBUF_CONSTEXPR OutputFeatures::OutputFeatures(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OutputFeaturesDefaultTypeInternal { - PROTOBUF_CONSTEXPR OutputFeaturesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OutputFeaturesDefaultTypeInternal() {} - union { - OutputFeatures _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OutputFeaturesDefaultTypeInternal _OutputFeatures_default_instance_; - -inline constexpr UnblindedOutput::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - spending_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - script_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - input_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - script_private_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sender_offset_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - covenant_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - encrypted_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - features_{nullptr}, - metadata_signature_{nullptr}, - value_{::uint64_t{0u}}, - script_lock_height_{::uint64_t{0u}}, - minimum_value_promise_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR UnblindedOutput::UnblindedOutput(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct UnblindedOutputDefaultTypeInternal { - PROTOBUF_CONSTEXPR UnblindedOutputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~UnblindedOutputDefaultTypeInternal() {} - union { - UnblindedOutput _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnblindedOutputDefaultTypeInternal _UnblindedOutput_default_instance_; - -inline constexpr TransactionOutput::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - script_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sender_offset_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - covenant_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - encrypted_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - features_{nullptr}, - range_proof_{nullptr}, - metadata_signature_{nullptr}, - minimum_value_promise_{::uint64_t{0u}}, - version_{0u} {} - -template -PROTOBUF_CONSTEXPR TransactionOutput::TransactionOutput(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransactionOutputDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransactionOutputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransactionOutputDefaultTypeInternal() {} - union { - TransactionOutput _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionOutputDefaultTypeInternal _TransactionOutput_default_instance_; - -inline constexpr TransactionInput::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - script_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - input_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sender_offset_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - output_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - covenant_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - encrypted_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - rangeproof_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - features_{nullptr}, - script_signature_{nullptr}, - metadata_signature_{nullptr}, - minimum_value_promise_{::uint64_t{0u}}, - version_{0u} {} - -template -PROTOBUF_CONSTEXPR TransactionInput::TransactionInput(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransactionInputDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransactionInputDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransactionInputDefaultTypeInternal() {} - union { - TransactionInput _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionInputDefaultTypeInternal _TransactionInput_default_instance_; - -inline constexpr AggregateBody::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : inputs_{}, - outputs_{}, - kernels_{}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR AggregateBody::AggregateBody(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct AggregateBodyDefaultTypeInternal { - PROTOBUF_CONSTEXPR AggregateBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AggregateBodyDefaultTypeInternal() {} - union { - AggregateBody _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AggregateBodyDefaultTypeInternal _AggregateBody_default_instance_; - -inline constexpr Transaction::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - offset_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - script_offset_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - body_{nullptr} {} - -template -PROTOBUF_CONSTEXPR Transaction::Transaction(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct TransactionDefaultTypeInternal { - PROTOBUF_CONSTEXPR TransactionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TransactionDefaultTypeInternal() {} - union { - Transaction _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TransactionDefaultTypeInternal _Transaction_default_instance_; -} // namespace rpc -} // namespace tari -static ::_pb::Metadata file_level_metadata_transaction_2eproto[7]; -static constexpr const ::_pb::EnumDescriptor** - file_level_enum_descriptors_transaction_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_transaction_2eproto = nullptr; -const ::uint32_t - TableStruct_transaction_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _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(::tari::rpc::TransactionKernel, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.fee_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.lock_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.excess_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.excess_sig_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionKernel, _impl_.burn_commitment_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _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(::tari::rpc::TransactionInput, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.script_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.input_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.script_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.sender_offset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.output_hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.covenant_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.encrypted_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.minimum_value_promise_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.metadata_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionInput, _impl_.rangeproof_hash_), - 0, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 2, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _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(::tari::rpc::TransactionOutput, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.range_proof_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.hash_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.script_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.sender_offset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.metadata_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.covenant_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.encrypted_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::TransactionOutput, _impl_.minimum_value_promise_), - 0, - ~0u, - 1, - ~0u, - ~0u, - ~0u, - 2, - ~0u, - ~0u, - ~0u, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _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(::tari::rpc::OutputFeatures, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.output_type_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.maturity_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.coinbase_extra_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.sidechain_feature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputFeatures, _impl_.range_proof_type_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _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(::tari::rpc::AggregateBody, _impl_.inputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.outputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::AggregateBody, _impl_.kernels_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _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(::tari::rpc::Transaction, _impl_.offset_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.body_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Transaction, _impl_.script_offset_), - ~0u, - 0, - ~0u, - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _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(::tari::rpc::UnblindedOutput, _impl_.value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.spending_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.features_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.input_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_private_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.sender_offset_public_key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.metadata_signature_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.script_lock_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.covenant_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.encrypted_data_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::UnblindedOutput, _impl_.minimum_value_promise_), - ~0u, - ~0u, - 0, - ~0u, - ~0u, - ~0u, - ~0u, - 1, - ~0u, - ~0u, - ~0u, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 16, -1, sizeof(::tari::rpc::TransactionKernel)}, - {24, 46, -1, sizeof(::tari::rpc::TransactionInput)}, - {60, 79, -1, sizeof(::tari::rpc::TransactionOutput)}, - {90, 104, -1, sizeof(::tari::rpc::OutputFeatures)}, - {110, -1, -1, sizeof(::tari::rpc::AggregateBody)}, - {121, 132, -1, sizeof(::tari::rpc::Transaction)}, - {135, 155, -1, sizeof(::tari::rpc::UnblindedOutput)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::tari::rpc::_TransactionKernel_default_instance_._instance, - &::tari::rpc::_TransactionInput_default_instance_._instance, - &::tari::rpc::_TransactionOutput_default_instance_._instance, - &::tari::rpc::_OutputFeatures_default_instance_._instance, - &::tari::rpc::_AggregateBody_default_instance_._instance, - &::tari::rpc::_Transaction_default_instance_._instance, - &::tari::rpc::_UnblindedOutput_default_instance_._instance, -}; -const char descriptor_table_protodef_transaction_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\021transaction.proto\022\010tari.rpc\032\013types.pro" - "to\032\025sidechain_types.proto\"\270\001\n\021Transactio" - "nKernel\022\020\n\010features\030\001 \001(\r\022\013\n\003fee\030\002 \001(\004\022\023" - "\n\013lock_height\030\003 \001(\004\022\016\n\006excess\030\006 \001(\014\022\'\n\ne" - "xcess_sig\030\007 \001(\0132\023.tari.rpc.Signature\022\014\n\004" - "hash\030\010 \001(\014\022\017\n\007version\030\t \001(\r\022\027\n\017burn_comm" - "itment\030\n \001(\014\"\240\003\n\020TransactionInput\022*\n\010fea" - "tures\030\001 \001(\0132\030.tari.rpc.OutputFeatures\022\022\n" - "\ncommitment\030\002 \001(\014\022\014\n\004hash\030\003 \001(\014\022\016\n\006scrip" - "t\030\004 \001(\014\022\022\n\ninput_data\030\005 \001(\014\0226\n\020script_si" - "gnature\030\007 \001(\0132\034.tari.rpc.ComAndPubSignat" - "ure\022 \n\030sender_offset_public_key\030\010 \001(\014\022\023\n" - "\013output_hash\030\t \001(\014\022\020\n\010covenant\030\n \001(\014\022\017\n\007" - "version\030\013 \001(\r\022\026\n\016encrypted_data\030\014 \001(\014\022\035\n" - "\025minimum_value_promise\030\r \001(\004\0228\n\022metadata" - "_signature\030\016 \001(\0132\034.tari.rpc.ComAndPubSig" - "nature\022\027\n\017rangeproof_hash\030\017 \001(\014\"\322\002\n\021Tran" - "sactionOutput\022*\n\010features\030\001 \001(\0132\030.tari.r" - "pc.OutputFeatures\022\022\n\ncommitment\030\002 \001(\014\022)\n" - "\013range_proof\030\003 \001(\0132\024.tari.rpc.RangeProof" - "\022\014\n\004hash\030\004 \001(\014\022\016\n\006script\030\005 \001(\014\022 \n\030sender" - "_offset_public_key\030\006 \001(\014\0228\n\022metadata_sig" - "nature\030\007 \001(\0132\034.tari.rpc.ComAndPubSignatu" - "re\022\020\n\010covenant\030\010 \001(\014\022\017\n\007version\030\t \001(\r\022\026\n" - "\016encrypted_data\030\n \001(\014\022\035\n\025minimum_value_p" - "romise\030\013 \001(\004\"\261\001\n\016OutputFeatures\022\017\n\007versi" - "on\030\001 \001(\r\022\023\n\013output_type\030\002 \001(\r\022\020\n\010maturit" - "y\030\003 \001(\004\022\026\n\016coinbase_extra\030\004 \001(\014\0225\n\021sidec" - "hain_feature\030\005 \001(\0132\032.tari.rpc.SideChainF" - "eature\022\030\n\020range_proof_type\030\006 \001(\r\"\227\001\n\rAgg" - "regateBody\022*\n\006inputs\030\001 \003(\0132\032.tari.rpc.Tr" - "ansactionInput\022,\n\007outputs\030\002 \003(\0132\033.tari.r" - "pc.TransactionOutput\022,\n\007kernels\030\003 \003(\0132\033." - "tari.rpc.TransactionKernel\"[\n\013Transactio" - "n\022\016\n\006offset\030\001 \001(\014\022%\n\004body\030\002 \001(\0132\027.tari.r" - "pc.AggregateBody\022\025\n\rscript_offset\030\003 \001(\014\"" - "\343\002\n\017UnblindedOutput\022\r\n\005value\030\001 \001(\004\022\024\n\014sp" - "ending_key\030\002 \001(\014\022*\n\010features\030\003 \001(\0132\030.tar" - "i.rpc.OutputFeatures\022\016\n\006script\030\004 \001(\014\022\022\n\n" - "input_data\030\005 \001(\014\022\032\n\022script_private_key\030\007" - " \001(\014\022 \n\030sender_offset_public_key\030\010 \001(\014\0228" - "\n\022metadata_signature\030\t \001(\0132\034.tari.rpc.Co" - "mAndPubSignature\022\032\n\022script_lock_height\030\n" - " \001(\004\022\020\n\010covenant\030\013 \001(\014\022\026\n\016encrypted_data" - "\030\014 \001(\014\022\035\n\025minimum_value_promise\030\r \001(\004b\006p" - "roto3" -}; -static const ::_pbi::DescriptorTable* const descriptor_table_transaction_2eproto_deps[2] = - { - &::descriptor_table_sidechain_5ftypes_2eproto, - &::descriptor_table_types_2eproto, -}; -static ::absl::once_flag descriptor_table_transaction_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_transaction_2eproto = { - false, - false, - 1805, - descriptor_table_protodef_transaction_2eproto, - "transaction.proto", - &descriptor_table_transaction_2eproto_once, - descriptor_table_transaction_2eproto_deps, - 2, - 7, - schemas, - file_default_instances, - TableStruct_transaction_2eproto::offsets, - file_level_metadata_transaction_2eproto, - file_level_enum_descriptors_transaction_2eproto, - file_level_service_descriptors_transaction_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_transaction_2eproto_getter() { - return &descriptor_table_transaction_2eproto; -} -namespace tari { -namespace rpc { -// =================================================================== - -class TransactionKernel::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._has_bits_); -}; - -void TransactionKernel::clear_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.excess_sig_ != nullptr) _impl_.excess_sig_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -TransactionKernel::TransactionKernel(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionKernel) -} -inline PROTOBUF_NDEBUG_INLINE TransactionKernel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - excess_(arena, from.excess_), - hash_(arena, from.hash_), - burn_commitment_(arena, from.burn_commitment_) {} - -TransactionKernel::TransactionKernel( - ::google::protobuf::Arena* arena, - const TransactionKernel& from) - : ::google::protobuf::Message(arena) { - TransactionKernel* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.excess_sig_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>( - arena, *from._impl_.excess_sig_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, fee_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, fee_), - offsetof(Impl_, version_) - - offsetof(Impl_, fee_) + - sizeof(Impl_::version_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionKernel) -} -inline PROTOBUF_NDEBUG_INLINE TransactionKernel::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - excess_(arena), - hash_(arena), - burn_commitment_(arena) {} - -inline void TransactionKernel::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, excess_sig_), - 0, - offsetof(Impl_, version_) - - offsetof(Impl_, excess_sig_) + - sizeof(Impl_::version_)); -} -TransactionKernel::~TransactionKernel() { - // @@protoc_insertion_point(destructor:tari.rpc.TransactionKernel) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransactionKernel::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.excess_.Destroy(); - _impl_.hash_.Destroy(); - _impl_.burn_commitment_.Destroy(); - delete _impl_.excess_sig_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TransactionKernel::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._cached_size_), - false, - }, - &TransactionKernel::MergeImpl, - &TransactionKernel::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TransactionKernel::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionKernel) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.excess_.ClearToEmpty(); - _impl_.hash_.ClearToEmpty(); - _impl_.burn_commitment_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.excess_sig_ != nullptr); - _impl_.excess_sig_->Clear(); - } - ::memset(&_impl_.fee_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.fee_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransactionKernel::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 8, 1, 0, 2> TransactionKernel::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_._has_bits_), - 0, // no _extensions_ - 10, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294966296, // skipmap - offsetof(decltype(_table_), field_entries), - 8, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransactionKernel_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TransactionKernel>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint32 features = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionKernel, _impl_.features_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.features_)}}, - // uint64 fee = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionKernel, _impl_.fee_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.fee_)}}, - // uint64 lock_height = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionKernel, _impl_.lock_height_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.lock_height_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // bytes excess = 6; - {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_)}}, - // .tari.rpc.Signature excess_sig = 7; - {::_pbi::TcParser::FastMtS1, - {58, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_sig_)}}, - // bytes hash = 8; - {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.hash_)}}, - // uint32 version = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionKernel, _impl_.version_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.version_)}}, - // bytes burn_commitment = 10; - {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.burn_commitment_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 features = 1; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.features_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 fee = 2; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.fee_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 lock_height = 3; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.lock_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes excess = 6; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.Signature excess_sig = 7; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_sig_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes hash = 8; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint32 version = 9; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // bytes burn_commitment = 10; - {PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.burn_commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Signature>()}, - }}, {{ - }}, -}; - -::uint8_t* TransactionKernel::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionKernel) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 features = 1; - if (this->_internal_features() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_features(), target); - } - - // uint64 fee = 2; - if (this->_internal_fee() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_fee(), target); - } - - // uint64 lock_height = 3; - if (this->_internal_lock_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_lock_height(), target); - } - - // bytes excess = 6; - if (!this->_internal_excess().empty()) { - const std::string& _s = this->_internal_excess(); - target = stream->WriteBytesMaybeAliased(6, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Signature excess_sig = 7; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.excess_sig_, _impl_.excess_sig_->GetCachedSize(), target, stream); - } - - // bytes hash = 8; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(8, _s, target); - } - - // uint32 version = 9; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_version(), target); - } - - // bytes burn_commitment = 10; - if (!this->_internal_burn_commitment().empty()) { - const std::string& _s = this->_internal_burn_commitment(); - target = stream->WriteBytesMaybeAliased(10, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionKernel) - return target; -} - -::size_t TransactionKernel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionKernel) - ::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 excess = 6; - if (!this->_internal_excess().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_excess()); - } - - // bytes hash = 8; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes burn_commitment = 10; - if (!this->_internal_burn_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_burn_commitment()); - } - - // .tari.rpc.Signature excess_sig = 7; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.excess_sig_); - } - - // uint64 fee = 2; - if (this->_internal_fee() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_fee()); - } - - // uint64 lock_height = 3; - if (this->_internal_lock_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_lock_height()); - } - - // uint32 features = 1; - if (this->_internal_features() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_features()); - } - - // uint32 version = 9; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TransactionKernel::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:tari.rpc.TransactionKernel) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_excess().empty()) { - _this->_internal_set_excess(from._internal_excess()); - } - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_burn_commitment().empty()) { - _this->_internal_set_burn_commitment(from._internal_burn_commitment()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.excess_sig_ != nullptr); - if (_this->_impl_.excess_sig_ == nullptr) { - _this->_impl_.excess_sig_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Signature>(arena, *from._impl_.excess_sig_); - } else { - _this->_impl_.excess_sig_->MergeFrom(*from._impl_.excess_sig_); - } - } - if (from._internal_fee() != 0) { - _this->_impl_.fee_ = from._impl_.fee_; - } - if (from._internal_lock_height() != 0) { - _this->_impl_.lock_height_ = from._impl_.lock_height_; - } - if (from._internal_features() != 0) { - _this->_impl_.features_ = from._impl_.features_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TransactionKernel::CopyFrom(const TransactionKernel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TransactionKernel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TransactionKernel::IsInitialized() const { - return true; -} - -void TransactionKernel::InternalSwap(TransactionKernel* PROTOBUF_RESTRICT 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_.excess_, &other->_impl_.excess_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_, &other->_impl_.hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.burn_commitment_, &other->_impl_.burn_commitment_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.version_) - + sizeof(TransactionKernel::_impl_.version_) - - PROTOBUF_FIELD_OFFSET(TransactionKernel, _impl_.excess_sig_)>( - reinterpret_cast(&_impl_.excess_sig_), - reinterpret_cast(&other->_impl_.excess_sig_)); -} - -::google::protobuf::Metadata TransactionKernel::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, - &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[0]); -} -// =================================================================== - -class TransactionInput::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._has_bits_); -}; - -void TransactionInput::clear_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.script_signature_ != nullptr) _impl_.script_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -void TransactionInput::clear_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_signature_ != nullptr) _impl_.metadata_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -TransactionInput::TransactionInput(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionInput) -} -inline PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - commitment_(arena, from.commitment_), - hash_(arena, from.hash_), - script_(arena, from.script_), - input_data_(arena, from.input_data_), - sender_offset_public_key_(arena, from.sender_offset_public_key_), - output_hash_(arena, from.output_hash_), - covenant_(arena, from.covenant_), - encrypted_data_(arena, from.encrypted_data_), - rangeproof_hash_(arena, from.rangeproof_hash_) {} - -TransactionInput::TransactionInput( - ::google::protobuf::Arena* arena, - const TransactionInput& from) - : ::google::protobuf::Message(arena) { - TransactionInput* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; - _impl_.script_signature_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( - arena, *from._impl_.script_signature_) - : nullptr; - _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( - arena, *from._impl_.metadata_signature_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, minimum_value_promise_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, minimum_value_promise_), - offsetof(Impl_, version_) - - offsetof(Impl_, minimum_value_promise_) + - sizeof(Impl_::version_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionInput) -} -inline PROTOBUF_NDEBUG_INLINE TransactionInput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - commitment_(arena), - hash_(arena), - script_(arena), - input_data_(arena), - sender_offset_public_key_(arena), - output_hash_(arena), - covenant_(arena), - encrypted_data_(arena), - rangeproof_hash_(arena) {} - -inline void TransactionInput::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, features_), - 0, - offsetof(Impl_, version_) - - offsetof(Impl_, features_) + - sizeof(Impl_::version_)); -} -TransactionInput::~TransactionInput() { - // @@protoc_insertion_point(destructor:tari.rpc.TransactionInput) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransactionInput::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.commitment_.Destroy(); - _impl_.hash_.Destroy(); - _impl_.script_.Destroy(); - _impl_.input_data_.Destroy(); - _impl_.sender_offset_public_key_.Destroy(); - _impl_.output_hash_.Destroy(); - _impl_.covenant_.Destroy(); - _impl_.encrypted_data_.Destroy(); - _impl_.rangeproof_hash_.Destroy(); - delete _impl_.features_; - delete _impl_.script_signature_; - delete _impl_.metadata_signature_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TransactionInput::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._cached_size_), - false, - }, - &TransactionInput::MergeImpl, - &TransactionInput::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TransactionInput::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionInput) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.commitment_.ClearToEmpty(); - _impl_.hash_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - _impl_.input_data_.ClearToEmpty(); - _impl_.sender_offset_public_key_.ClearToEmpty(); - _impl_.output_hash_.ClearToEmpty(); - _impl_.covenant_.ClearToEmpty(); - _impl_.encrypted_data_.ClearToEmpty(); - _impl_.rangeproof_hash_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.script_signature_ != nullptr); - _impl_.script_signature_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); - _impl_.metadata_signature_->Clear(); - } - } - ::memset(&_impl_.minimum_value_promise_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.minimum_value_promise_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransactionInput::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 14, 3, 0, 2> TransactionInput::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_._has_bits_), - 0, // no _extensions_ - 15, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294934560, // skipmap - offsetof(decltype(_table_), field_entries), - 14, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransactionInput_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TransactionInput>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.OutputFeatures features = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.features_)}}, - // bytes commitment = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.commitment_)}}, - // bytes hash = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.hash_)}}, - // bytes script = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_)}}, - // bytes input_data = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.input_data_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.ComAndPubSignature script_signature = 7; - {::_pbi::TcParser::FastMtS1, - {58, 1, 1, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_signature_)}}, - // bytes sender_offset_public_key = 8; - {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.sender_offset_public_key_)}}, - // bytes output_hash = 9; - {::_pbi::TcParser::FastBS1, - {74, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.output_hash_)}}, - // bytes covenant = 10; - {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.covenant_)}}, - // uint32 version = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionInput, _impl_.version_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.version_)}}, - // bytes encrypted_data = 12; - {::_pbi::TcParser::FastBS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.encrypted_data_)}}, - // uint64 minimum_value_promise = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionInput, _impl_.minimum_value_promise_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.minimum_value_promise_)}}, - // .tari.rpc.ComAndPubSignature metadata_signature = 14; - {::_pbi::TcParser::FastMtS1, - {114, 2, 2, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.metadata_signature_)}}, - // bytes rangeproof_hash = 15; - {::_pbi::TcParser::FastBS1, - {122, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.rangeproof_hash_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.OutputFeatures features = 1; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes commitment = 2; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes hash = 3; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes script = 4; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes input_data = 5; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.input_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.ComAndPubSignature script_signature = 7; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.script_signature_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes sender_offset_public_key = 8; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.sender_offset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes output_hash = 9; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.output_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes covenant = 10; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.covenant_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint32 version = 11; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // bytes encrypted_data = 12; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.encrypted_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 minimum_value_promise = 13; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.minimum_value_promise_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.ComAndPubSignature metadata_signature = 14; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes rangeproof_hash = 15; - {PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.rangeproof_hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - }}, {{ - }}, -}; - -::uint8_t* TransactionInput::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionInput) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - // bytes commitment = 2; - if (!this->_internal_commitment().empty()) { - const std::string& _s = this->_internal_commitment(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes hash = 3; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // bytes script = 4; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - const std::string& _s = this->_internal_input_data(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // .tari.rpc.ComAndPubSignature script_signature = 7; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.script_signature_, _impl_.script_signature_->GetCachedSize(), target, stream); - } - - // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - const std::string& _s = this->_internal_sender_offset_public_key(); - target = stream->WriteBytesMaybeAliased(8, _s, target); - } - - // bytes output_hash = 9; - if (!this->_internal_output_hash().empty()) { - const std::string& _s = this->_internal_output_hash(); - target = stream->WriteBytesMaybeAliased(9, _s, target); - } - - // bytes covenant = 10; - if (!this->_internal_covenant().empty()) { - const std::string& _s = this->_internal_covenant(); - target = stream->WriteBytesMaybeAliased(10, _s, target); - } - - // uint32 version = 11; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 11, this->_internal_version(), target); - } - - // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - const std::string& _s = this->_internal_encrypted_data(); - target = stream->WriteBytesMaybeAliased(12, _s, target); - } - - // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_minimum_value_promise(), target); - } - - // .tari.rpc.ComAndPubSignature metadata_signature = 14; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 14, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); - } - - // bytes rangeproof_hash = 15; - if (!this->_internal_rangeproof_hash().empty()) { - const std::string& _s = this->_internal_rangeproof_hash(); - target = stream->WriteBytesMaybeAliased(15, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionInput) - return target; -} - -::size_t TransactionInput::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionInput) - ::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 commitment = 2; - if (!this->_internal_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_commitment()); - } - - // bytes hash = 3; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes script = 4; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_input_data()); - } - - // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_sender_offset_public_key()); - } - - // bytes output_hash = 9; - if (!this->_internal_output_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_output_hash()); - } - - // bytes covenant = 10; - if (!this->_internal_covenant().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_covenant()); - } - - // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_encrypted_data()); - } - - // bytes rangeproof_hash = 15; - if (!this->_internal_rangeproof_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_rangeproof_hash()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // .tari.rpc.ComAndPubSignature script_signature = 7; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.script_signature_); - } - - // .tari.rpc.ComAndPubSignature metadata_signature = 14; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_signature_); - } - - } - // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_minimum_value_promise()); - } - - // uint32 version = 11; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TransactionInput::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:tari.rpc.TransactionInput) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_commitment().empty()) { - _this->_internal_set_commitment(from._internal_commitment()); - } - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - if (!from._internal_input_data().empty()) { - _this->_internal_set_input_data(from._internal_input_data()); - } - if (!from._internal_sender_offset_public_key().empty()) { - _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); - } - if (!from._internal_output_hash().empty()) { - _this->_internal_set_output_hash(from._internal_output_hash()); - } - if (!from._internal_covenant().empty()) { - _this->_internal_set_covenant(from._internal_covenant()); - } - if (!from._internal_encrypted_data().empty()) { - _this->_internal_set_encrypted_data(from._internal_encrypted_data()); - } - if (!from._internal_rangeproof_hash().empty()) { - _this->_internal_set_rangeproof_hash(from._internal_rangeproof_hash()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.features_ != nullptr); - if (_this->_impl_.features_ == nullptr) { - _this->_impl_.features_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); - } else { - _this->_impl_.features_->MergeFrom(*from._impl_.features_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.script_signature_ != nullptr); - if (_this->_impl_.script_signature_ == nullptr) { - _this->_impl_.script_signature_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.script_signature_); - } else { - _this->_impl_.script_signature_->MergeFrom(*from._impl_.script_signature_); - } - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(from._impl_.metadata_signature_ != nullptr); - if (_this->_impl_.metadata_signature_ == nullptr) { - _this->_impl_.metadata_signature_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_); - } else { - _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); - } - } - } - if (from._internal_minimum_value_promise() != 0) { - _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TransactionInput::CopyFrom(const TransactionInput& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TransactionInput) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TransactionInput::IsInitialized() const { - return true; -} - -void TransactionInput::InternalSwap(TransactionInput* PROTOBUF_RESTRICT 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_.commitment_, &other->_impl_.commitment_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_, &other->_impl_.hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.script_, &other->_impl_.script_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.input_data_, &other->_impl_.input_data_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sender_offset_public_key_, &other->_impl_.sender_offset_public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.output_hash_, &other->_impl_.output_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.covenant_, &other->_impl_.covenant_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_data_, &other->_impl_.encrypted_data_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.rangeproof_hash_, &other->_impl_.rangeproof_hash_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.version_) - + sizeof(TransactionInput::_impl_.version_) - - PROTOBUF_FIELD_OFFSET(TransactionInput, _impl_.features_)>( - reinterpret_cast(&_impl_.features_), - reinterpret_cast(&other->_impl_.features_)); -} - -::google::protobuf::Metadata TransactionInput::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, - &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[1]); -} -// =================================================================== - -class TransactionOutput::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._has_bits_); -}; - -void TransactionOutput::clear_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.range_proof_ != nullptr) _impl_.range_proof_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -void TransactionOutput::clear_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_signature_ != nullptr) _impl_.metadata_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -TransactionOutput::TransactionOutput(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.TransactionOutput) -} -inline PROTOBUF_NDEBUG_INLINE TransactionOutput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - commitment_(arena, from.commitment_), - hash_(arena, from.hash_), - script_(arena, from.script_), - sender_offset_public_key_(arena, from.sender_offset_public_key_), - covenant_(arena, from.covenant_), - encrypted_data_(arena, from.encrypted_data_) {} - -TransactionOutput::TransactionOutput( - ::google::protobuf::Arena* arena, - const TransactionOutput& from) - : ::google::protobuf::Message(arena) { - TransactionOutput* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; - _impl_.range_proof_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::RangeProof>( - arena, *from._impl_.range_proof_) - : nullptr; - _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( - arena, *from._impl_.metadata_signature_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, minimum_value_promise_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, minimum_value_promise_), - offsetof(Impl_, version_) - - offsetof(Impl_, minimum_value_promise_) + - sizeof(Impl_::version_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.TransactionOutput) -} -inline PROTOBUF_NDEBUG_INLINE TransactionOutput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - commitment_(arena), - hash_(arena), - script_(arena), - sender_offset_public_key_(arena), - covenant_(arena), - encrypted_data_(arena) {} - -inline void TransactionOutput::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, features_), - 0, - offsetof(Impl_, version_) - - offsetof(Impl_, features_) + - sizeof(Impl_::version_)); -} -TransactionOutput::~TransactionOutput() { - // @@protoc_insertion_point(destructor:tari.rpc.TransactionOutput) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void TransactionOutput::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.commitment_.Destroy(); - _impl_.hash_.Destroy(); - _impl_.script_.Destroy(); - _impl_.sender_offset_public_key_.Destroy(); - _impl_.covenant_.Destroy(); - _impl_.encrypted_data_.Destroy(); - delete _impl_.features_; - delete _impl_.range_proof_; - delete _impl_.metadata_signature_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -TransactionOutput::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_._cached_size_), - false, - }, - &TransactionOutput::MergeImpl, - &TransactionOutput::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void TransactionOutput::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.TransactionOutput) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.commitment_.ClearToEmpty(); - _impl_.hash_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - _impl_.sender_offset_public_key_.ClearToEmpty(); - _impl_.covenant_.ClearToEmpty(); - _impl_.encrypted_data_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.range_proof_ != nullptr); - _impl_.range_proof_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); - _impl_.metadata_signature_->Clear(); - } - } - ::memset(&_impl_.minimum_value_promise_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.minimum_value_promise_)) + sizeof(_impl_.version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* TransactionOutput::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 11, 3, 0, 2> TransactionOutput::_table_ = { - { - PROTOBUF_FIELD_OFFSET(TransactionOutput, _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 - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_TransactionOutput_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.OutputFeatures features = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.features_)}}, - // bytes commitment = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.commitment_)}}, - // .tari.rpc.RangeProof range_proof = 3; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.range_proof_)}}, - // bytes hash = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.hash_)}}, - // bytes script = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.script_)}}, - // bytes sender_offset_public_key = 6; - {::_pbi::TcParser::FastBS1, - {50, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.sender_offset_public_key_)}}, - // .tari.rpc.ComAndPubSignature metadata_signature = 7; - {::_pbi::TcParser::FastMtS1, - {58, 2, 2, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.metadata_signature_)}}, - // bytes covenant = 8; - {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.covenant_)}}, - // uint32 version = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(TransactionOutput, _impl_.version_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_)}}, - // bytes encrypted_data = 10; - {::_pbi::TcParser::FastBS1, - {82, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.encrypted_data_)}}, - // uint64 minimum_value_promise = 11; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(TransactionOutput, _impl_.minimum_value_promise_), 63>(), - {88, 63, 0, PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.minimum_value_promise_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.OutputFeatures features = 1; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes commitment = 2; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.commitment_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.RangeProof range_proof = 3; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.range_proof_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes hash = 4; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.hash_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes script = 5; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes sender_offset_public_key = 6; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.sender_offset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.ComAndPubSignature metadata_signature = 7; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 2, 2, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes covenant = 8; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.covenant_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint32 version = 9; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // bytes encrypted_data = 10; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.encrypted_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 minimum_value_promise = 11; - {PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.minimum_value_promise_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - }}, {{ - }}, -}; - -::uint8_t* TransactionOutput::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.TransactionOutput) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - // bytes commitment = 2; - if (!this->_internal_commitment().empty()) { - const std::string& _s = this->_internal_commitment(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // .tari.rpc.RangeProof range_proof = 3; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.range_proof_, _impl_.range_proof_->GetCachedSize(), target, stream); - } - - // bytes hash = 4; - if (!this->_internal_hash().empty()) { - const std::string& _s = this->_internal_hash(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // bytes script = 5; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // bytes sender_offset_public_key = 6; - if (!this->_internal_sender_offset_public_key().empty()) { - const std::string& _s = this->_internal_sender_offset_public_key(); - target = stream->WriteBytesMaybeAliased(6, _s, target); - } - - // .tari.rpc.ComAndPubSignature metadata_signature = 7; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); - } - - // bytes covenant = 8; - if (!this->_internal_covenant().empty()) { - const std::string& _s = this->_internal_covenant(); - target = stream->WriteBytesMaybeAliased(8, _s, target); - } - - // uint32 version = 9; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 9, this->_internal_version(), target); - } - - // bytes encrypted_data = 10; - if (!this->_internal_encrypted_data().empty()) { - const std::string& _s = this->_internal_encrypted_data(); - target = stream->WriteBytesMaybeAliased(10, _s, target); - } - - // uint64 minimum_value_promise = 11; - if (this->_internal_minimum_value_promise() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 11, this->_internal_minimum_value_promise(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.TransactionOutput) - return target; -} - -::size_t TransactionOutput::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.TransactionOutput) - ::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 commitment = 2; - if (!this->_internal_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_commitment()); - } - - // bytes hash = 4; - if (!this->_internal_hash().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_hash()); - } - - // bytes script = 5; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // bytes sender_offset_public_key = 6; - if (!this->_internal_sender_offset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_sender_offset_public_key()); - } - - // bytes covenant = 8; - if (!this->_internal_covenant().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_covenant()); - } - - // bytes encrypted_data = 10; - if (!this->_internal_encrypted_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_encrypted_data()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // .tari.rpc.OutputFeatures features = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // .tari.rpc.RangeProof range_proof = 3; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.range_proof_); - } - - // .tari.rpc.ComAndPubSignature metadata_signature = 7; - if (cached_has_bits & 0x00000004u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_signature_); - } - - } - // uint64 minimum_value_promise = 11; - if (this->_internal_minimum_value_promise() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_minimum_value_promise()); - } - - // uint32 version = 9; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void TransactionOutput::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:tari.rpc.TransactionOutput) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_commitment().empty()) { - _this->_internal_set_commitment(from._internal_commitment()); - } - if (!from._internal_hash().empty()) { - _this->_internal_set_hash(from._internal_hash()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - if (!from._internal_sender_offset_public_key().empty()) { - _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); - } - if (!from._internal_covenant().empty()) { - _this->_internal_set_covenant(from._internal_covenant()); - } - if (!from._internal_encrypted_data().empty()) { - _this->_internal_set_encrypted_data(from._internal_encrypted_data()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.features_ != nullptr); - if (_this->_impl_.features_ == nullptr) { - _this->_impl_.features_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); - } else { - _this->_impl_.features_->MergeFrom(*from._impl_.features_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.range_proof_ != nullptr); - if (_this->_impl_.range_proof_ == nullptr) { - _this->_impl_.range_proof_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::RangeProof>(arena, *from._impl_.range_proof_); - } else { - _this->_impl_.range_proof_->MergeFrom(*from._impl_.range_proof_); - } - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(from._impl_.metadata_signature_ != nullptr); - if (_this->_impl_.metadata_signature_ == nullptr) { - _this->_impl_.metadata_signature_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_); - } else { - _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); - } - } - } - if (from._internal_minimum_value_promise() != 0) { - _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void TransactionOutput::CopyFrom(const TransactionOutput& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.TransactionOutput) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool TransactionOutput::IsInitialized() const { - return true; -} - -void TransactionOutput::InternalSwap(TransactionOutput* PROTOBUF_RESTRICT 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_.commitment_, &other->_impl_.commitment_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_, &other->_impl_.hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.script_, &other->_impl_.script_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sender_offset_public_key_, &other->_impl_.sender_offset_public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.covenant_, &other->_impl_.covenant_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_data_, &other->_impl_.encrypted_data_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.version_) - + sizeof(TransactionOutput::_impl_.version_) - - PROTOBUF_FIELD_OFFSET(TransactionOutput, _impl_.features_)>( - reinterpret_cast(&_impl_.features_), - reinterpret_cast(&other->_impl_.features_)); -} - -::google::protobuf::Metadata TransactionOutput::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, - &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[2]); -} -// =================================================================== - -class OutputFeatures::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._has_bits_); -}; - -void OutputFeatures::clear_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.sidechain_feature_ != nullptr) _impl_.sidechain_feature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -OutputFeatures::OutputFeatures(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.OutputFeatures) -} -inline PROTOBUF_NDEBUG_INLINE OutputFeatures::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - coinbase_extra_(arena, from.coinbase_extra_) {} - -OutputFeatures::OutputFeatures( - ::google::protobuf::Arena* arena, - const OutputFeatures& from) - : ::google::protobuf::Message(arena) { - OutputFeatures* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.sidechain_feature_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::SideChainFeature>( - arena, *from._impl_.sidechain_feature_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, version_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, version_), - offsetof(Impl_, range_proof_type_) - - offsetof(Impl_, version_) + - sizeof(Impl_::range_proof_type_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.OutputFeatures) -} -inline PROTOBUF_NDEBUG_INLINE OutputFeatures::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - coinbase_extra_(arena) {} - -inline void OutputFeatures::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, sidechain_feature_), - 0, - offsetof(Impl_, range_proof_type_) - - offsetof(Impl_, sidechain_feature_) + - sizeof(Impl_::range_proof_type_)); -} -OutputFeatures::~OutputFeatures() { - // @@protoc_insertion_point(destructor:tari.rpc.OutputFeatures) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void OutputFeatures::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.coinbase_extra_.Destroy(); - delete _impl_.sidechain_feature_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -OutputFeatures::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_._cached_size_), - false, - }, - &OutputFeatures::MergeImpl, - &OutputFeatures::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void OutputFeatures::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.OutputFeatures) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.coinbase_extra_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.sidechain_feature_ != nullptr); - _impl_.sidechain_feature_->Clear(); - } - ::memset(&_impl_.version_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.range_proof_type_) - - reinterpret_cast(&_impl_.version_)) + sizeof(_impl_.range_proof_type_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* OutputFeatures::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 1, 0, 2> OutputFeatures::_table_ = { - { - PROTOBUF_FIELD_OFFSET(OutputFeatures, _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 - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_OutputFeatures_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint32 version = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.version_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.version_)}}, - // uint32 output_type = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.output_type_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.output_type_)}}, - // uint64 maturity = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(OutputFeatures, _impl_.maturity_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.maturity_)}}, - // bytes coinbase_extra = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.coinbase_extra_)}}, - // .tari.rpc.SideChainFeature sidechain_feature = 5; - {::_pbi::TcParser::FastMtS1, - {42, 0, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.sidechain_feature_)}}, - // uint32 range_proof_type = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(OutputFeatures, _impl_.range_proof_type_), 63>(), - {48, 63, 0, PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.range_proof_type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint32 version = 1; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint32 output_type = 2; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.output_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 maturity = 3; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.maturity_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes coinbase_extra = 4; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.coinbase_extra_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.SideChainFeature sidechain_feature = 5; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.sidechain_feature_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint32 range_proof_type = 6; - {PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.range_proof_type_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::SideChainFeature>()}, - }}, {{ - }}, -}; - -::uint8_t* OutputFeatures::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.OutputFeatures) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint32 version = 1; - if (this->_internal_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 1, this->_internal_version(), target); - } - - // uint32 output_type = 2; - if (this->_internal_output_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_output_type(), target); - } - - // uint64 maturity = 3; - if (this->_internal_maturity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_maturity(), target); - } - - // bytes coinbase_extra = 4; - if (!this->_internal_coinbase_extra().empty()) { - const std::string& _s = this->_internal_coinbase_extra(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.SideChainFeature sidechain_feature = 5; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 5, *_impl_.sidechain_feature_, _impl_.sidechain_feature_->GetCachedSize(), target, stream); - } - - // uint32 range_proof_type = 6; - if (this->_internal_range_proof_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 6, this->_internal_range_proof_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.OutputFeatures) - return target; -} - -::size_t OutputFeatures::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.OutputFeatures) - ::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 coinbase_extra = 4; - if (!this->_internal_coinbase_extra().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_coinbase_extra()); - } - - // .tari.rpc.SideChainFeature sidechain_feature = 5; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.sidechain_feature_); - } - - // uint32 version = 1; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_version()); - } - - // uint32 output_type = 2; - if (this->_internal_output_type() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_output_type()); - } - - // uint64 maturity = 3; - if (this->_internal_maturity() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_maturity()); - } - - // uint32 range_proof_type = 6; - if (this->_internal_range_proof_type() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_range_proof_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void OutputFeatures::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:tari.rpc.OutputFeatures) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_coinbase_extra().empty()) { - _this->_internal_set_coinbase_extra(from._internal_coinbase_extra()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.sidechain_feature_ != nullptr); - if (_this->_impl_.sidechain_feature_ == nullptr) { - _this->_impl_.sidechain_feature_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::SideChainFeature>(arena, *from._impl_.sidechain_feature_); - } else { - _this->_impl_.sidechain_feature_->MergeFrom(*from._impl_.sidechain_feature_); - } - } - if (from._internal_version() != 0) { - _this->_impl_.version_ = from._impl_.version_; - } - if (from._internal_output_type() != 0) { - _this->_impl_.output_type_ = from._impl_.output_type_; - } - if (from._internal_maturity() != 0) { - _this->_impl_.maturity_ = from._impl_.maturity_; - } - if (from._internal_range_proof_type() != 0) { - _this->_impl_.range_proof_type_ = from._impl_.range_proof_type_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void OutputFeatures::CopyFrom(const OutputFeatures& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.OutputFeatures) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool OutputFeatures::IsInitialized() const { - return true; -} - -void OutputFeatures::InternalSwap(OutputFeatures* PROTOBUF_RESTRICT 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_.coinbase_extra_, &other->_impl_.coinbase_extra_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.range_proof_type_) - + sizeof(OutputFeatures::_impl_.range_proof_type_) - - PROTOBUF_FIELD_OFFSET(OutputFeatures, _impl_.sidechain_feature_)>( - reinterpret_cast(&_impl_.sidechain_feature_), - reinterpret_cast(&other->_impl_.sidechain_feature_)); -} - -::google::protobuf::Metadata OutputFeatures::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, - &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[3]); -} -// =================================================================== - -class AggregateBody::_Internal { - public: -}; - -AggregateBody::AggregateBody(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.AggregateBody) -} -inline PROTOBUF_NDEBUG_INLINE AggregateBody::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : inputs_{visibility, arena, from.inputs_}, - outputs_{visibility, arena, from.outputs_}, - kernels_{visibility, arena, from.kernels_}, - _cached_size_{0} {} - -AggregateBody::AggregateBody( - ::google::protobuf::Arena* arena, - const AggregateBody& from) - : ::google::protobuf::Message(arena) { - AggregateBody* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.AggregateBody) -} -inline PROTOBUF_NDEBUG_INLINE AggregateBody::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : inputs_{visibility, arena}, - outputs_{visibility, arena}, - kernels_{visibility, arena}, - _cached_size_{0} {} - -inline void AggregateBody::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -AggregateBody::~AggregateBody() { - // @@protoc_insertion_point(destructor:tari.rpc.AggregateBody) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void AggregateBody::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -AggregateBody::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_._cached_size_), - false, - }, - &AggregateBody::MergeImpl, - &AggregateBody::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void AggregateBody::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.AggregateBody) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.inputs_.Clear(); - _impl_.outputs_.Clear(); - _impl_.kernels_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* AggregateBody::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 3, 0, 2> AggregateBody::_table_ = { - { - 0, // no _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 - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_AggregateBody_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // repeated .tari.rpc.TransactionInput inputs = 1; - {::_pbi::TcParser::FastMtR1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.inputs_)}}, - // repeated .tari.rpc.TransactionOutput outputs = 2; - {::_pbi::TcParser::FastMtR1, - {18, 63, 1, PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.outputs_)}}, - // repeated .tari.rpc.TransactionKernel kernels = 3; - {::_pbi::TcParser::FastMtR1, - {26, 63, 2, PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.kernels_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .tari.rpc.TransactionInput inputs = 1; - {PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.inputs_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .tari.rpc.TransactionOutput outputs = 2; - {PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.outputs_), 0, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .tari.rpc.TransactionKernel kernels = 3; - {PROTOBUF_FIELD_OFFSET(AggregateBody, _impl_.kernels_), 0, 2, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionInput>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionOutput>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::TransactionKernel>()}, - }}, {{ - }}, -}; - -::uint8_t* AggregateBody::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.AggregateBody) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // repeated .tari.rpc.TransactionInput inputs = 1; - for (unsigned i = 0, n = static_cast( - this->_internal_inputs_size()); - i < n; i++) { - const auto& repfield = this->_internal_inputs().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, repfield, repfield.GetCachedSize(), - target, stream); - } - - // repeated .tari.rpc.TransactionOutput outputs = 2; - for (unsigned i = 0, n = static_cast( - this->_internal_outputs_size()); - i < n; i++) { - const auto& repfield = this->_internal_outputs().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, repfield, repfield.GetCachedSize(), - target, stream); - } - - // repeated .tari.rpc.TransactionKernel kernels = 3; - for (unsigned i = 0, n = static_cast( - this->_internal_kernels_size()); - i < n; i++) { - const auto& repfield = this->_internal_kernels().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.AggregateBody) - return target; -} - -::size_t AggregateBody::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.AggregateBody) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .tari.rpc.TransactionInput inputs = 1; - total_size += 1UL * this->_internal_inputs_size(); - for (const auto& msg : this->_internal_inputs()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .tari.rpc.TransactionOutput outputs = 2; - total_size += 1UL * this->_internal_outputs_size(); - for (const auto& msg : this->_internal_outputs()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - // repeated .tari.rpc.TransactionKernel kernels = 3; - total_size += 1UL * this->_internal_kernels_size(); - for (const auto& msg : this->_internal_kernels()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void AggregateBody::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:tari.rpc.AggregateBody) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_inputs()->MergeFrom( - from._internal_inputs()); - _this->_internal_mutable_outputs()->MergeFrom( - from._internal_outputs()); - _this->_internal_mutable_kernels()->MergeFrom( - from._internal_kernels()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void AggregateBody::CopyFrom(const AggregateBody& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.AggregateBody) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool AggregateBody::IsInitialized() const { - return true; -} - -void AggregateBody::InternalSwap(AggregateBody* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.inputs_.InternalSwap(&other->_impl_.inputs_); - _impl_.outputs_.InternalSwap(&other->_impl_.outputs_); - _impl_.kernels_.InternalSwap(&other->_impl_.kernels_); -} - -::google::protobuf::Metadata AggregateBody::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, - &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[4]); -} -// =================================================================== - -class Transaction::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Transaction, _impl_._has_bits_); -}; - -Transaction::Transaction(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.Transaction) -} -inline PROTOBUF_NDEBUG_INLINE Transaction::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - offset_(arena, from.offset_), - script_offset_(arena, from.script_offset_) {} - -Transaction::Transaction( - ::google::protobuf::Arena* arena, - const Transaction& from) - : ::google::protobuf::Message(arena) { - Transaction* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.body_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>( - arena, *from._impl_.body_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.Transaction) -} -inline PROTOBUF_NDEBUG_INLINE Transaction::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - offset_(arena), - script_offset_(arena) {} - -inline void Transaction::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.body_ = {}; -} -Transaction::~Transaction() { - // @@protoc_insertion_point(destructor:tari.rpc.Transaction) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Transaction::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.offset_.Destroy(); - _impl_.script_offset_.Destroy(); - delete _impl_.body_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Transaction::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Transaction, _impl_._cached_size_), - false, - }, - &Transaction::MergeImpl, - &Transaction::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Transaction::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.Transaction) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.offset_.ClearToEmpty(); - _impl_.script_offset_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.body_ != nullptr); - _impl_.body_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Transaction::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> Transaction::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Transaction, _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), - &_Transaction_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::Transaction>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes offset = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.offset_)}}, - // .tari.rpc.AggregateBody body = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.body_)}}, - // bytes script_offset = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(Transaction, _impl_.script_offset_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes offset = 1; - {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.AggregateBody body = 2; - {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.body_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes script_offset = 3; - {PROTOBUF_FIELD_OFFSET(Transaction, _impl_.script_offset_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::AggregateBody>()}, - }}, {{ - }}, -}; - -::uint8_t* Transaction::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Transaction) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes offset = 1; - if (!this->_internal_offset().empty()) { - const std::string& _s = this->_internal_offset(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.AggregateBody body = 2; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.body_, _impl_.body_->GetCachedSize(), target, stream); - } - - // bytes script_offset = 3; - if (!this->_internal_script_offset().empty()) { - const std::string& _s = this->_internal_script_offset(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Transaction) - return target; -} - -::size_t Transaction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Transaction) - ::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 offset = 1; - if (!this->_internal_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_offset()); - } - - // bytes script_offset = 3; - if (!this->_internal_script_offset().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script_offset()); - } - - // .tari.rpc.AggregateBody body = 2; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.body_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Transaction::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:tari.rpc.Transaction) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_offset().empty()) { - _this->_internal_set_offset(from._internal_offset()); - } - if (!from._internal_script_offset().empty()) { - _this->_internal_set_script_offset(from._internal_script_offset()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.body_ != nullptr); - if (_this->_impl_.body_ == nullptr) { - _this->_impl_.body_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::AggregateBody>(arena, *from._impl_.body_); - } else { - _this->_impl_.body_->MergeFrom(*from._impl_.body_); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Transaction::CopyFrom(const Transaction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.Transaction) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Transaction::IsInitialized() const { - return true; -} - -void Transaction::InternalSwap(Transaction* PROTOBUF_RESTRICT 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_.offset_, &other->_impl_.offset_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.script_offset_, &other->_impl_.script_offset_, arena); - swap(_impl_.body_, other->_impl_.body_); -} - -::google::protobuf::Metadata Transaction::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, - &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[5]); -} -// =================================================================== - -class UnblindedOutput::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._has_bits_); -}; - -void UnblindedOutput::clear_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_signature_ != nullptr) _impl_.metadata_signature_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -UnblindedOutput::UnblindedOutput(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.UnblindedOutput) -} -inline PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - spending_key_(arena, from.spending_key_), - script_(arena, from.script_), - input_data_(arena, from.input_data_), - script_private_key_(arena, from.script_private_key_), - sender_offset_public_key_(arena, from.sender_offset_public_key_), - covenant_(arena, from.covenant_), - encrypted_data_(arena, from.encrypted_data_) {} - -UnblindedOutput::UnblindedOutput( - ::google::protobuf::Arena* arena, - const UnblindedOutput& from) - : ::google::protobuf::Message(arena) { - UnblindedOutput* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.features_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>( - arena, *from._impl_.features_) - : nullptr; - _impl_.metadata_signature_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>( - arena, *from._impl_.metadata_signature_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, value_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, value_), - offsetof(Impl_, minimum_value_promise_) - - offsetof(Impl_, value_) + - sizeof(Impl_::minimum_value_promise_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.UnblindedOutput) -} -inline PROTOBUF_NDEBUG_INLINE UnblindedOutput::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - spending_key_(arena), - script_(arena), - input_data_(arena), - script_private_key_(arena), - sender_offset_public_key_(arena), - covenant_(arena), - encrypted_data_(arena) {} - -inline void UnblindedOutput::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, features_), - 0, - offsetof(Impl_, minimum_value_promise_) - - offsetof(Impl_, features_) + - sizeof(Impl_::minimum_value_promise_)); -} -UnblindedOutput::~UnblindedOutput() { - // @@protoc_insertion_point(destructor:tari.rpc.UnblindedOutput) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void UnblindedOutput::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.spending_key_.Destroy(); - _impl_.script_.Destroy(); - _impl_.input_data_.Destroy(); - _impl_.script_private_key_.Destroy(); - _impl_.sender_offset_public_key_.Destroy(); - _impl_.covenant_.Destroy(); - _impl_.encrypted_data_.Destroy(); - delete _impl_.features_; - delete _impl_.metadata_signature_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -UnblindedOutput::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._cached_size_), - false, - }, - &UnblindedOutput::MergeImpl, - &UnblindedOutput::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void UnblindedOutput::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.UnblindedOutput) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.spending_key_.ClearToEmpty(); - _impl_.script_.ClearToEmpty(); - _impl_.input_data_.ClearToEmpty(); - _impl_.script_private_key_.ClearToEmpty(); - _impl_.sender_offset_public_key_.ClearToEmpty(); - _impl_.covenant_.ClearToEmpty(); - _impl_.encrypted_data_.ClearToEmpty(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.metadata_signature_ != nullptr); - _impl_.metadata_signature_->Clear(); - } - } - ::memset(&_impl_.value_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.minimum_value_promise_) - - reinterpret_cast(&_impl_.value_)) + sizeof(_impl_.minimum_value_promise_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* UnblindedOutput::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<4, 12, 2, 0, 2> UnblindedOutput::_table_ = { - { - PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_._has_bits_), - 0, // no _extensions_ - 13, 120, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294959136, // skipmap - offsetof(decltype(_table_), field_entries), - 12, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_UnblindedOutput_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::UnblindedOutput>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 value = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.value_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.value_)}}, - // bytes spending_key = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.spending_key_)}}, - // .tari.rpc.OutputFeatures features = 3; - {::_pbi::TcParser::FastMtS1, - {26, 0, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.features_)}}, - // bytes script = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_)}}, - // bytes input_data = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.input_data_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // bytes script_private_key = 7; - {::_pbi::TcParser::FastBS1, - {58, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_private_key_)}}, - // bytes sender_offset_public_key = 8; - {::_pbi::TcParser::FastBS1, - {66, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.sender_offset_public_key_)}}, - // .tari.rpc.ComAndPubSignature metadata_signature = 9; - {::_pbi::TcParser::FastMtS1, - {74, 1, 1, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.metadata_signature_)}}, - // uint64 script_lock_height = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.script_lock_height_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_lock_height_)}}, - // bytes covenant = 11; - {::_pbi::TcParser::FastBS1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.covenant_)}}, - // bytes encrypted_data = 12; - {::_pbi::TcParser::FastBS1, - {98, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.encrypted_data_)}}, - // uint64 minimum_value_promise = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UnblindedOutput, _impl_.minimum_value_promise_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.minimum_value_promise_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 value = 1; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes spending_key = 2; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.spending_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.OutputFeatures features = 3; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.features_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // bytes script = 4; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes input_data = 5; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.input_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes script_private_key = 7; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_private_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes sender_offset_public_key = 8; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.sender_offset_public_key_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // .tari.rpc.ComAndPubSignature metadata_signature = 9; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.metadata_signature_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 script_lock_height = 10; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.script_lock_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // bytes covenant = 11; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.covenant_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes encrypted_data = 12; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.encrypted_data_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // uint64 minimum_value_promise = 13; - {PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.minimum_value_promise_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::OutputFeatures>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>()}, - }}, {{ - }}, -}; - -::uint8_t* UnblindedOutput::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.UnblindedOutput) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 value = 1; - if (this->_internal_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_value(), target); - } - - // bytes spending_key = 2; - if (!this->_internal_spending_key().empty()) { - const std::string& _s = this->_internal_spending_key(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.OutputFeatures features = 3; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - // bytes script = 4; - if (!this->_internal_script().empty()) { - const std::string& _s = this->_internal_script(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - const std::string& _s = this->_internal_input_data(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // bytes script_private_key = 7; - if (!this->_internal_script_private_key().empty()) { - const std::string& _s = this->_internal_script_private_key(); - target = stream->WriteBytesMaybeAliased(7, _s, target); - } - - // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - const std::string& _s = this->_internal_sender_offset_public_key(); - target = stream->WriteBytesMaybeAliased(8, _s, target); - } - - // .tari.rpc.ComAndPubSignature metadata_signature = 9; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 9, *_impl_.metadata_signature_, _impl_.metadata_signature_->GetCachedSize(), target, stream); - } - - // uint64 script_lock_height = 10; - if (this->_internal_script_lock_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 10, this->_internal_script_lock_height(), target); - } - - // bytes covenant = 11; - if (!this->_internal_covenant().empty()) { - const std::string& _s = this->_internal_covenant(); - target = stream->WriteBytesMaybeAliased(11, _s, target); - } - - // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - const std::string& _s = this->_internal_encrypted_data(); - target = stream->WriteBytesMaybeAliased(12, _s, target); - } - - // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_minimum_value_promise(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.UnblindedOutput) - return target; -} - -::size_t UnblindedOutput::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.UnblindedOutput) - ::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 spending_key = 2; - if (!this->_internal_spending_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_spending_key()); - } - - // bytes script = 4; - if (!this->_internal_script().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script()); - } - - // bytes input_data = 5; - if (!this->_internal_input_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_input_data()); - } - - // bytes script_private_key = 7; - if (!this->_internal_script_private_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_script_private_key()); - } - - // bytes sender_offset_public_key = 8; - if (!this->_internal_sender_offset_public_key().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_sender_offset_public_key()); - } - - // bytes covenant = 11; - if (!this->_internal_covenant().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_covenant()); - } - - // bytes encrypted_data = 12; - if (!this->_internal_encrypted_data().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_encrypted_data()); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // .tari.rpc.OutputFeatures features = 3; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - // .tari.rpc.ComAndPubSignature metadata_signature = 9; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.metadata_signature_); - } - - } - // uint64 value = 1; - if (this->_internal_value() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_value()); - } - - // uint64 script_lock_height = 10; - if (this->_internal_script_lock_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_script_lock_height()); - } - - // uint64 minimum_value_promise = 13; - if (this->_internal_minimum_value_promise() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_minimum_value_promise()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void UnblindedOutput::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:tari.rpc.UnblindedOutput) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_spending_key().empty()) { - _this->_internal_set_spending_key(from._internal_spending_key()); - } - if (!from._internal_script().empty()) { - _this->_internal_set_script(from._internal_script()); - } - if (!from._internal_input_data().empty()) { - _this->_internal_set_input_data(from._internal_input_data()); - } - if (!from._internal_script_private_key().empty()) { - _this->_internal_set_script_private_key(from._internal_script_private_key()); - } - if (!from._internal_sender_offset_public_key().empty()) { - _this->_internal_set_sender_offset_public_key(from._internal_sender_offset_public_key()); - } - if (!from._internal_covenant().empty()) { - _this->_internal_set_covenant(from._internal_covenant()); - } - if (!from._internal_encrypted_data().empty()) { - _this->_internal_set_encrypted_data(from._internal_encrypted_data()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.features_ != nullptr); - if (_this->_impl_.features_ == nullptr) { - _this->_impl_.features_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_); - } else { - _this->_impl_.features_->MergeFrom(*from._impl_.features_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.metadata_signature_ != nullptr); - if (_this->_impl_.metadata_signature_ == nullptr) { - _this->_impl_.metadata_signature_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.metadata_signature_); - } else { - _this->_impl_.metadata_signature_->MergeFrom(*from._impl_.metadata_signature_); - } - } - } - if (from._internal_value() != 0) { - _this->_impl_.value_ = from._impl_.value_; - } - if (from._internal_script_lock_height() != 0) { - _this->_impl_.script_lock_height_ = from._impl_.script_lock_height_; - } - if (from._internal_minimum_value_promise() != 0) { - _this->_impl_.minimum_value_promise_ = from._impl_.minimum_value_promise_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void UnblindedOutput::CopyFrom(const UnblindedOutput& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.UnblindedOutput) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool UnblindedOutput::IsInitialized() const { - return true; -} - -void UnblindedOutput::InternalSwap(UnblindedOutput* PROTOBUF_RESTRICT 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_.spending_key_, &other->_impl_.spending_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.script_, &other->_impl_.script_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.input_data_, &other->_impl_.input_data_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.script_private_key_, &other->_impl_.script_private_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.sender_offset_public_key_, &other->_impl_.sender_offset_public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.covenant_, &other->_impl_.covenant_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.encrypted_data_, &other->_impl_.encrypted_data_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.minimum_value_promise_) - + sizeof(UnblindedOutput::_impl_.minimum_value_promise_) - - PROTOBUF_FIELD_OFFSET(UnblindedOutput, _impl_.features_)>( - reinterpret_cast(&_impl_.features_), - reinterpret_cast(&other->_impl_.features_)); -} - -::google::protobuf::Metadata UnblindedOutput::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_transaction_2eproto_getter, - &descriptor_table_transaction_2eproto_once, - file_level_metadata_transaction_2eproto[6]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_transaction_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/transaction.pb.h b/external/src/Tari/proto/gRPC/transaction.pb.h deleted file mode 100644 index 6105b91c..00000000 --- a/external/src/Tari/proto/gRPC/transaction.pb.h +++ /dev/null @@ -1,5061 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: transaction.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026000 -#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/port_undef.inc" -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.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/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/unknown_field_set.h" -#include "types.pb.h" -#include "sidechain_types.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_transaction_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_transaction_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_transaction_2eproto; -namespace tari { -namespace rpc { -class AggregateBody; -struct AggregateBodyDefaultTypeInternal; -extern AggregateBodyDefaultTypeInternal _AggregateBody_default_instance_; -class OutputFeatures; -struct OutputFeaturesDefaultTypeInternal; -extern OutputFeaturesDefaultTypeInternal _OutputFeatures_default_instance_; -class Transaction; -struct TransactionDefaultTypeInternal; -extern TransactionDefaultTypeInternal _Transaction_default_instance_; -class TransactionInput; -struct TransactionInputDefaultTypeInternal; -extern TransactionInputDefaultTypeInternal _TransactionInput_default_instance_; -class TransactionKernel; -struct TransactionKernelDefaultTypeInternal; -extern TransactionKernelDefaultTypeInternal _TransactionKernel_default_instance_; -class TransactionOutput; -struct TransactionOutputDefaultTypeInternal; -extern TransactionOutputDefaultTypeInternal _TransactionOutput_default_instance_; -class UnblindedOutput; -struct UnblindedOutputDefaultTypeInternal; -extern UnblindedOutputDefaultTypeInternal _UnblindedOutput_default_instance_; -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace tari { -namespace rpc { - -// =================================================================== - - -// ------------------------------------------------------------------- - -class TransactionKernel final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionKernel) */ { - public: - inline TransactionKernel() : TransactionKernel(nullptr) {} - ~TransactionKernel() override; - template - explicit PROTOBUF_CONSTEXPR TransactionKernel( - ::google::protobuf::internal::ConstantInitialized); - - inline TransactionKernel(const TransactionKernel& from) : TransactionKernel(nullptr, from) {} - inline TransactionKernel(TransactionKernel&& from) noexcept - : TransactionKernel(nullptr, std::move(from)) {} - inline TransactionKernel& operator=(const TransactionKernel& from) { - CopyFrom(from); - return *this; - } - inline TransactionKernel& operator=(TransactionKernel&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransactionKernel& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionKernel* internal_default_instance() { - return reinterpret_cast( - &_TransactionKernel_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(TransactionKernel& a, TransactionKernel& b) { a.Swap(&b); } - inline void Swap(TransactionKernel* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransactionKernel* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransactionKernel* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransactionKernel& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TransactionKernel& from) { TransactionKernel::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionKernel* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionKernel"; } - - protected: - explicit TransactionKernel(::google::protobuf::Arena* arena); - TransactionKernel(::google::protobuf::Arena* arena, const TransactionKernel& from); - TransactionKernel(::google::protobuf::Arena* arena, TransactionKernel&& from) noexcept - : TransactionKernel(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kExcessFieldNumber = 6, - kHashFieldNumber = 8, - kBurnCommitmentFieldNumber = 10, - kExcessSigFieldNumber = 7, - kFeeFieldNumber = 2, - kLockHeightFieldNumber = 3, - kFeaturesFieldNumber = 1, - kVersionFieldNumber = 9, - }; - // bytes excess = 6; - void clear_excess() ; - const std::string& excess() const; - template - void set_excess(Arg_&& arg, Args_... args); - std::string* mutable_excess(); - PROTOBUF_NODISCARD std::string* release_excess(); - void set_allocated_excess(std::string* value); - - private: - const std::string& _internal_excess() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_excess( - const std::string& value); - std::string* _internal_mutable_excess(); - - public: - // bytes hash = 8; - void clear_hash() ; - const std::string& hash() const; - template - void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); - - private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); - - public: - // bytes burn_commitment = 10; - void clear_burn_commitment() ; - const std::string& burn_commitment() const; - template - void set_burn_commitment(Arg_&& arg, Args_... args); - std::string* mutable_burn_commitment(); - PROTOBUF_NODISCARD std::string* release_burn_commitment(); - void set_allocated_burn_commitment(std::string* value); - - private: - const std::string& _internal_burn_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_burn_commitment( - const std::string& value); - std::string* _internal_mutable_burn_commitment(); - - public: - // .tari.rpc.Signature excess_sig = 7; - bool has_excess_sig() const; - void clear_excess_sig() ; - const ::tari::rpc::Signature& excess_sig() const; - PROTOBUF_NODISCARD ::tari::rpc::Signature* release_excess_sig(); - ::tari::rpc::Signature* mutable_excess_sig(); - void set_allocated_excess_sig(::tari::rpc::Signature* value); - void unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value); - ::tari::rpc::Signature* unsafe_arena_release_excess_sig(); - - private: - const ::tari::rpc::Signature& _internal_excess_sig() const; - ::tari::rpc::Signature* _internal_mutable_excess_sig(); - - public: - // uint64 fee = 2; - void clear_fee() ; - ::uint64_t fee() const; - void set_fee(::uint64_t value); - - private: - ::uint64_t _internal_fee() const; - void _internal_set_fee(::uint64_t value); - - public: - // uint64 lock_height = 3; - void clear_lock_height() ; - ::uint64_t lock_height() const; - void set_lock_height(::uint64_t value); - - private: - ::uint64_t _internal_lock_height() const; - void _internal_set_lock_height(::uint64_t value); - - public: - // uint32 features = 1; - void clear_features() ; - ::uint32_t features() const; - void set_features(::uint32_t value); - - private: - ::uint32_t _internal_features() const; - void _internal_set_features(::uint32_t value); - - public: - // uint32 version = 9; - void clear_version() ; - ::uint32_t version() const; - void set_version(::uint32_t value); - - private: - ::uint32_t _internal_version() const; - void _internal_set_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.TransactionKernel) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 8, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr excess_; - ::google::protobuf::internal::ArenaStringPtr hash_; - ::google::protobuf::internal::ArenaStringPtr burn_commitment_; - ::tari::rpc::Signature* excess_sig_; - ::uint64_t fee_; - ::uint64_t lock_height_; - ::uint32_t features_; - ::uint32_t version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_transaction_2eproto; -}; -// ------------------------------------------------------------------- - -class OutputFeatures final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.OutputFeatures) */ { - public: - inline OutputFeatures() : OutputFeatures(nullptr) {} - ~OutputFeatures() override; - template - explicit PROTOBUF_CONSTEXPR OutputFeatures( - ::google::protobuf::internal::ConstantInitialized); - - inline OutputFeatures(const OutputFeatures& from) : OutputFeatures(nullptr, from) {} - inline OutputFeatures(OutputFeatures&& from) noexcept - : OutputFeatures(nullptr, std::move(from)) {} - inline OutputFeatures& operator=(const OutputFeatures& from) { - CopyFrom(from); - return *this; - } - inline OutputFeatures& operator=(OutputFeatures&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const OutputFeatures& default_instance() { - return *internal_default_instance(); - } - static inline const OutputFeatures* internal_default_instance() { - return reinterpret_cast( - &_OutputFeatures_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(OutputFeatures& a, OutputFeatures& b) { a.Swap(&b); } - inline void Swap(OutputFeatures* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OutputFeatures* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OutputFeatures* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OutputFeatures& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const OutputFeatures& from) { OutputFeatures::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(OutputFeatures* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.OutputFeatures"; } - - protected: - explicit OutputFeatures(::google::protobuf::Arena* arena); - OutputFeatures(::google::protobuf::Arena* arena, const OutputFeatures& from); - OutputFeatures(::google::protobuf::Arena* arena, OutputFeatures&& from) noexcept - : OutputFeatures(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kCoinbaseExtraFieldNumber = 4, - kSidechainFeatureFieldNumber = 5, - kVersionFieldNumber = 1, - kOutputTypeFieldNumber = 2, - kMaturityFieldNumber = 3, - kRangeProofTypeFieldNumber = 6, - }; - // bytes coinbase_extra = 4; - void clear_coinbase_extra() ; - const std::string& coinbase_extra() const; - template - void set_coinbase_extra(Arg_&& arg, Args_... args); - std::string* mutable_coinbase_extra(); - PROTOBUF_NODISCARD std::string* release_coinbase_extra(); - void set_allocated_coinbase_extra(std::string* value); - - private: - const std::string& _internal_coinbase_extra() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_coinbase_extra( - const std::string& value); - std::string* _internal_mutable_coinbase_extra(); - - public: - // .tari.rpc.SideChainFeature sidechain_feature = 5; - bool has_sidechain_feature() const; - void clear_sidechain_feature() ; - const ::tari::rpc::SideChainFeature& sidechain_feature() const; - PROTOBUF_NODISCARD ::tari::rpc::SideChainFeature* release_sidechain_feature(); - ::tari::rpc::SideChainFeature* mutable_sidechain_feature(); - void set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value); - void unsafe_arena_set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value); - ::tari::rpc::SideChainFeature* unsafe_arena_release_sidechain_feature(); - - private: - const ::tari::rpc::SideChainFeature& _internal_sidechain_feature() const; - ::tari::rpc::SideChainFeature* _internal_mutable_sidechain_feature(); - - public: - // uint32 version = 1; - void clear_version() ; - ::uint32_t version() const; - void set_version(::uint32_t value); - - private: - ::uint32_t _internal_version() const; - void _internal_set_version(::uint32_t value); - - public: - // uint32 output_type = 2; - void clear_output_type() ; - ::uint32_t output_type() const; - void set_output_type(::uint32_t value); - - private: - ::uint32_t _internal_output_type() const; - void _internal_set_output_type(::uint32_t value); - - public: - // uint64 maturity = 3; - void clear_maturity() ; - ::uint64_t maturity() const; - void set_maturity(::uint64_t value); - - private: - ::uint64_t _internal_maturity() const; - void _internal_set_maturity(::uint64_t value); - - public: - // uint32 range_proof_type = 6; - void clear_range_proof_type() ; - ::uint32_t range_proof_type() const; - void set_range_proof_type(::uint32_t value); - - private: - ::uint32_t _internal_range_proof_type() const; - void _internal_set_range_proof_type(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.OutputFeatures) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 6, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr coinbase_extra_; - ::tari::rpc::SideChainFeature* sidechain_feature_; - ::uint32_t version_; - ::uint32_t output_type_; - ::uint64_t maturity_; - ::uint32_t range_proof_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_transaction_2eproto; -}; -// ------------------------------------------------------------------- - -class UnblindedOutput final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.UnblindedOutput) */ { - public: - inline UnblindedOutput() : UnblindedOutput(nullptr) {} - ~UnblindedOutput() override; - template - explicit PROTOBUF_CONSTEXPR UnblindedOutput( - ::google::protobuf::internal::ConstantInitialized); - - inline UnblindedOutput(const UnblindedOutput& from) : UnblindedOutput(nullptr, from) {} - inline UnblindedOutput(UnblindedOutput&& from) noexcept - : UnblindedOutput(nullptr, std::move(from)) {} - inline UnblindedOutput& operator=(const UnblindedOutput& from) { - CopyFrom(from); - return *this; - } - inline UnblindedOutput& operator=(UnblindedOutput&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UnblindedOutput& default_instance() { - return *internal_default_instance(); - } - static inline const UnblindedOutput* internal_default_instance() { - return reinterpret_cast( - &_UnblindedOutput_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(UnblindedOutput& a, UnblindedOutput& b) { a.Swap(&b); } - inline void Swap(UnblindedOutput* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UnblindedOutput* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UnblindedOutput* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const UnblindedOutput& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const UnblindedOutput& from) { UnblindedOutput::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(UnblindedOutput* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.UnblindedOutput"; } - - protected: - explicit UnblindedOutput(::google::protobuf::Arena* arena); - UnblindedOutput(::google::protobuf::Arena* arena, const UnblindedOutput& from); - UnblindedOutput(::google::protobuf::Arena* arena, UnblindedOutput&& from) noexcept - : UnblindedOutput(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kSpendingKeyFieldNumber = 2, - kScriptFieldNumber = 4, - kInputDataFieldNumber = 5, - kScriptPrivateKeyFieldNumber = 7, - kSenderOffsetPublicKeyFieldNumber = 8, - kCovenantFieldNumber = 11, - kEncryptedDataFieldNumber = 12, - kFeaturesFieldNumber = 3, - kMetadataSignatureFieldNumber = 9, - kValueFieldNumber = 1, - kScriptLockHeightFieldNumber = 10, - kMinimumValuePromiseFieldNumber = 13, - }; - // bytes spending_key = 2; - void clear_spending_key() ; - const std::string& spending_key() const; - template - void set_spending_key(Arg_&& arg, Args_... args); - std::string* mutable_spending_key(); - PROTOBUF_NODISCARD std::string* release_spending_key(); - void set_allocated_spending_key(std::string* value); - - private: - const std::string& _internal_spending_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_spending_key( - const std::string& value); - std::string* _internal_mutable_spending_key(); - - public: - // bytes script = 4; - void clear_script() ; - const std::string& script() const; - template - void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); - - private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); - - public: - // bytes input_data = 5; - void clear_input_data() ; - const std::string& input_data() const; - template - void set_input_data(Arg_&& arg, Args_... args); - std::string* mutable_input_data(); - PROTOBUF_NODISCARD std::string* release_input_data(); - void set_allocated_input_data(std::string* value); - - private: - const std::string& _internal_input_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_data( - const std::string& value); - std::string* _internal_mutable_input_data(); - - public: - // bytes script_private_key = 7; - void clear_script_private_key() ; - const std::string& script_private_key() const; - template - void set_script_private_key(Arg_&& arg, Args_... args); - std::string* mutable_script_private_key(); - PROTOBUF_NODISCARD std::string* release_script_private_key(); - void set_allocated_script_private_key(std::string* value); - - private: - const std::string& _internal_script_private_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script_private_key( - const std::string& value); - std::string* _internal_mutable_script_private_key(); - - public: - // bytes sender_offset_public_key = 8; - void clear_sender_offset_public_key() ; - const std::string& sender_offset_public_key() const; - template - void set_sender_offset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_sender_offset_public_key(); - PROTOBUF_NODISCARD std::string* release_sender_offset_public_key(); - void set_allocated_sender_offset_public_key(std::string* value); - - private: - const std::string& _internal_sender_offset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key( - const std::string& value); - std::string* _internal_mutable_sender_offset_public_key(); - - public: - // bytes covenant = 11; - void clear_covenant() ; - const std::string& covenant() const; - template - void set_covenant(Arg_&& arg, Args_... args); - std::string* mutable_covenant(); - PROTOBUF_NODISCARD std::string* release_covenant(); - void set_allocated_covenant(std::string* value); - - private: - const std::string& _internal_covenant() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_covenant( - const std::string& value); - std::string* _internal_mutable_covenant(); - - public: - // bytes encrypted_data = 12; - void clear_encrypted_data() ; - const std::string& encrypted_data() const; - template - void set_encrypted_data(Arg_&& arg, Args_... args); - std::string* mutable_encrypted_data(); - PROTOBUF_NODISCARD std::string* release_encrypted_data(); - void set_allocated_encrypted_data(std::string* value); - - private: - const std::string& _internal_encrypted_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data( - const std::string& value); - std::string* _internal_mutable_encrypted_data(); - - public: - // .tari.rpc.OutputFeatures features = 3; - bool has_features() const; - void clear_features() ; - const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); - - private: - const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); - - public: - // .tari.rpc.ComAndPubSignature metadata_signature = 9; - bool has_metadata_signature() const; - void clear_metadata_signature() ; - const ::tari::rpc::ComAndPubSignature& metadata_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_metadata_signature(); - ::tari::rpc::ComAndPubSignature* mutable_metadata_signature(); - void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_metadata_signature(); - - private: - const ::tari::rpc::ComAndPubSignature& _internal_metadata_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_metadata_signature(); - - public: - // uint64 value = 1; - void clear_value() ; - ::uint64_t value() const; - void set_value(::uint64_t value); - - private: - ::uint64_t _internal_value() const; - void _internal_set_value(::uint64_t value); - - public: - // uint64 script_lock_height = 10; - void clear_script_lock_height() ; - ::uint64_t script_lock_height() const; - void set_script_lock_height(::uint64_t value); - - private: - ::uint64_t _internal_script_lock_height() const; - void _internal_set_script_lock_height(::uint64_t value); - - public: - // uint64 minimum_value_promise = 13; - void clear_minimum_value_promise() ; - ::uint64_t minimum_value_promise() const; - void set_minimum_value_promise(::uint64_t value); - - private: - ::uint64_t _internal_minimum_value_promise() const; - void _internal_set_minimum_value_promise(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.UnblindedOutput) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 12, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr spending_key_; - ::google::protobuf::internal::ArenaStringPtr script_; - ::google::protobuf::internal::ArenaStringPtr input_data_; - ::google::protobuf::internal::ArenaStringPtr script_private_key_; - ::google::protobuf::internal::ArenaStringPtr sender_offset_public_key_; - ::google::protobuf::internal::ArenaStringPtr covenant_; - ::google::protobuf::internal::ArenaStringPtr encrypted_data_; - ::tari::rpc::OutputFeatures* features_; - ::tari::rpc::ComAndPubSignature* metadata_signature_; - ::uint64_t value_; - ::uint64_t script_lock_height_; - ::uint64_t minimum_value_promise_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_transaction_2eproto; -}; -// ------------------------------------------------------------------- - -class TransactionOutput final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionOutput) */ { - public: - inline TransactionOutput() : TransactionOutput(nullptr) {} - ~TransactionOutput() override; - template - explicit PROTOBUF_CONSTEXPR TransactionOutput( - ::google::protobuf::internal::ConstantInitialized); - - inline TransactionOutput(const TransactionOutput& from) : TransactionOutput(nullptr, from) {} - inline TransactionOutput(TransactionOutput&& from) noexcept - : TransactionOutput(nullptr, std::move(from)) {} - inline TransactionOutput& operator=(const TransactionOutput& from) { - CopyFrom(from); - return *this; - } - inline TransactionOutput& operator=(TransactionOutput&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransactionOutput& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionOutput* internal_default_instance() { - return reinterpret_cast( - &_TransactionOutput_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(TransactionOutput& a, TransactionOutput& b) { a.Swap(&b); } - inline void Swap(TransactionOutput* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransactionOutput* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransactionOutput* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransactionOutput& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TransactionOutput& from) { TransactionOutput::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionOutput* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionOutput"; } - - protected: - explicit TransactionOutput(::google::protobuf::Arena* arena); - TransactionOutput(::google::protobuf::Arena* arena, const TransactionOutput& from); - TransactionOutput(::google::protobuf::Arena* arena, TransactionOutput&& from) noexcept - : TransactionOutput(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kCommitmentFieldNumber = 2, - kHashFieldNumber = 4, - kScriptFieldNumber = 5, - kSenderOffsetPublicKeyFieldNumber = 6, - kCovenantFieldNumber = 8, - kEncryptedDataFieldNumber = 10, - kFeaturesFieldNumber = 1, - kRangeProofFieldNumber = 3, - kMetadataSignatureFieldNumber = 7, - kMinimumValuePromiseFieldNumber = 11, - kVersionFieldNumber = 9, - }; - // bytes commitment = 2; - void clear_commitment() ; - const std::string& commitment() const; - template - void set_commitment(Arg_&& arg, Args_... args); - std::string* mutable_commitment(); - PROTOBUF_NODISCARD std::string* release_commitment(); - void set_allocated_commitment(std::string* value); - - private: - const std::string& _internal_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commitment( - const std::string& value); - std::string* _internal_mutable_commitment(); - - public: - // bytes hash = 4; - void clear_hash() ; - const std::string& hash() const; - template - void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); - - private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); - - public: - // bytes script = 5; - void clear_script() ; - const std::string& script() const; - template - void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); - - private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); - - public: - // bytes sender_offset_public_key = 6; - void clear_sender_offset_public_key() ; - const std::string& sender_offset_public_key() const; - template - void set_sender_offset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_sender_offset_public_key(); - PROTOBUF_NODISCARD std::string* release_sender_offset_public_key(); - void set_allocated_sender_offset_public_key(std::string* value); - - private: - const std::string& _internal_sender_offset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key( - const std::string& value); - std::string* _internal_mutable_sender_offset_public_key(); - - public: - // bytes covenant = 8; - void clear_covenant() ; - const std::string& covenant() const; - template - void set_covenant(Arg_&& arg, Args_... args); - std::string* mutable_covenant(); - PROTOBUF_NODISCARD std::string* release_covenant(); - void set_allocated_covenant(std::string* value); - - private: - const std::string& _internal_covenant() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_covenant( - const std::string& value); - std::string* _internal_mutable_covenant(); - - public: - // bytes encrypted_data = 10; - void clear_encrypted_data() ; - const std::string& encrypted_data() const; - template - void set_encrypted_data(Arg_&& arg, Args_... args); - std::string* mutable_encrypted_data(); - PROTOBUF_NODISCARD std::string* release_encrypted_data(); - void set_allocated_encrypted_data(std::string* value); - - private: - const std::string& _internal_encrypted_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data( - const std::string& value); - std::string* _internal_mutable_encrypted_data(); - - public: - // .tari.rpc.OutputFeatures features = 1; - bool has_features() const; - void clear_features() ; - const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); - - private: - const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); - - public: - // .tari.rpc.RangeProof range_proof = 3; - bool has_range_proof() const; - void clear_range_proof() ; - const ::tari::rpc::RangeProof& range_proof() const; - PROTOBUF_NODISCARD ::tari::rpc::RangeProof* release_range_proof(); - ::tari::rpc::RangeProof* mutable_range_proof(); - void set_allocated_range_proof(::tari::rpc::RangeProof* value); - void unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* value); - ::tari::rpc::RangeProof* unsafe_arena_release_range_proof(); - - private: - const ::tari::rpc::RangeProof& _internal_range_proof() const; - ::tari::rpc::RangeProof* _internal_mutable_range_proof(); - - public: - // .tari.rpc.ComAndPubSignature metadata_signature = 7; - bool has_metadata_signature() const; - void clear_metadata_signature() ; - const ::tari::rpc::ComAndPubSignature& metadata_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_metadata_signature(); - ::tari::rpc::ComAndPubSignature* mutable_metadata_signature(); - void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_metadata_signature(); - - private: - const ::tari::rpc::ComAndPubSignature& _internal_metadata_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_metadata_signature(); - - public: - // uint64 minimum_value_promise = 11; - void clear_minimum_value_promise() ; - ::uint64_t minimum_value_promise() const; - void set_minimum_value_promise(::uint64_t value); - - private: - ::uint64_t _internal_minimum_value_promise() const; - void _internal_set_minimum_value_promise(::uint64_t value); - - public: - // uint32 version = 9; - void clear_version() ; - ::uint32_t version() const; - void set_version(::uint32_t value); - - private: - ::uint32_t _internal_version() const; - void _internal_set_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.TransactionOutput) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 11, 3, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr commitment_; - ::google::protobuf::internal::ArenaStringPtr hash_; - ::google::protobuf::internal::ArenaStringPtr script_; - ::google::protobuf::internal::ArenaStringPtr sender_offset_public_key_; - ::google::protobuf::internal::ArenaStringPtr covenant_; - ::google::protobuf::internal::ArenaStringPtr encrypted_data_; - ::tari::rpc::OutputFeatures* features_; - ::tari::rpc::RangeProof* range_proof_; - ::tari::rpc::ComAndPubSignature* metadata_signature_; - ::uint64_t minimum_value_promise_; - ::uint32_t version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_transaction_2eproto; -}; -// ------------------------------------------------------------------- - -class TransactionInput final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.TransactionInput) */ { - public: - inline TransactionInput() : TransactionInput(nullptr) {} - ~TransactionInput() override; - template - explicit PROTOBUF_CONSTEXPR TransactionInput( - ::google::protobuf::internal::ConstantInitialized); - - inline TransactionInput(const TransactionInput& from) : TransactionInput(nullptr, from) {} - inline TransactionInput(TransactionInput&& from) noexcept - : TransactionInput(nullptr, std::move(from)) {} - inline TransactionInput& operator=(const TransactionInput& from) { - CopyFrom(from); - return *this; - } - inline TransactionInput& operator=(TransactionInput&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const TransactionInput& default_instance() { - return *internal_default_instance(); - } - static inline const TransactionInput* internal_default_instance() { - return reinterpret_cast( - &_TransactionInput_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(TransactionInput& a, TransactionInput& b) { a.Swap(&b); } - inline void Swap(TransactionInput* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(TransactionInput* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TransactionInput* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const TransactionInput& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const TransactionInput& from) { TransactionInput::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(TransactionInput* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.TransactionInput"; } - - protected: - explicit TransactionInput(::google::protobuf::Arena* arena); - TransactionInput(::google::protobuf::Arena* arena, const TransactionInput& from); - TransactionInput(::google::protobuf::Arena* arena, TransactionInput&& from) noexcept - : TransactionInput(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kCommitmentFieldNumber = 2, - kHashFieldNumber = 3, - kScriptFieldNumber = 4, - kInputDataFieldNumber = 5, - kSenderOffsetPublicKeyFieldNumber = 8, - kOutputHashFieldNumber = 9, - kCovenantFieldNumber = 10, - kEncryptedDataFieldNumber = 12, - kRangeproofHashFieldNumber = 15, - kFeaturesFieldNumber = 1, - kScriptSignatureFieldNumber = 7, - kMetadataSignatureFieldNumber = 14, - kMinimumValuePromiseFieldNumber = 13, - kVersionFieldNumber = 11, - }; - // bytes commitment = 2; - void clear_commitment() ; - const std::string& commitment() const; - template - void set_commitment(Arg_&& arg, Args_... args); - std::string* mutable_commitment(); - PROTOBUF_NODISCARD std::string* release_commitment(); - void set_allocated_commitment(std::string* value); - - private: - const std::string& _internal_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commitment( - const std::string& value); - std::string* _internal_mutable_commitment(); - - public: - // bytes hash = 3; - void clear_hash() ; - const std::string& hash() const; - template - void set_hash(Arg_&& arg, Args_... args); - std::string* mutable_hash(); - PROTOBUF_NODISCARD std::string* release_hash(); - void set_allocated_hash(std::string* value); - - private: - const std::string& _internal_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_hash( - const std::string& value); - std::string* _internal_mutable_hash(); - - public: - // bytes script = 4; - void clear_script() ; - const std::string& script() const; - template - void set_script(Arg_&& arg, Args_... args); - std::string* mutable_script(); - PROTOBUF_NODISCARD std::string* release_script(); - void set_allocated_script(std::string* value); - - private: - const std::string& _internal_script() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script( - const std::string& value); - std::string* _internal_mutable_script(); - - public: - // bytes input_data = 5; - void clear_input_data() ; - const std::string& input_data() const; - template - void set_input_data(Arg_&& arg, Args_... args); - std::string* mutable_input_data(); - PROTOBUF_NODISCARD std::string* release_input_data(); - void set_allocated_input_data(std::string* value); - - private: - const std::string& _internal_input_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_data( - const std::string& value); - std::string* _internal_mutable_input_data(); - - public: - // bytes sender_offset_public_key = 8; - void clear_sender_offset_public_key() ; - const std::string& sender_offset_public_key() const; - template - void set_sender_offset_public_key(Arg_&& arg, Args_... args); - std::string* mutable_sender_offset_public_key(); - PROTOBUF_NODISCARD std::string* release_sender_offset_public_key(); - void set_allocated_sender_offset_public_key(std::string* value); - - private: - const std::string& _internal_sender_offset_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sender_offset_public_key( - const std::string& value); - std::string* _internal_mutable_sender_offset_public_key(); - - public: - // bytes output_hash = 9; - void clear_output_hash() ; - const std::string& output_hash() const; - template - void set_output_hash(Arg_&& arg, Args_... args); - std::string* mutable_output_hash(); - PROTOBUF_NODISCARD std::string* release_output_hash(); - void set_allocated_output_hash(std::string* value); - - private: - const std::string& _internal_output_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_hash( - const std::string& value); - std::string* _internal_mutable_output_hash(); - - public: - // bytes covenant = 10; - void clear_covenant() ; - const std::string& covenant() const; - template - void set_covenant(Arg_&& arg, Args_... args); - std::string* mutable_covenant(); - PROTOBUF_NODISCARD std::string* release_covenant(); - void set_allocated_covenant(std::string* value); - - private: - const std::string& _internal_covenant() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_covenant( - const std::string& value); - std::string* _internal_mutable_covenant(); - - public: - // bytes encrypted_data = 12; - void clear_encrypted_data() ; - const std::string& encrypted_data() const; - template - void set_encrypted_data(Arg_&& arg, Args_... args); - std::string* mutable_encrypted_data(); - PROTOBUF_NODISCARD std::string* release_encrypted_data(); - void set_allocated_encrypted_data(std::string* value); - - private: - const std::string& _internal_encrypted_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_data( - const std::string& value); - std::string* _internal_mutable_encrypted_data(); - - public: - // bytes rangeproof_hash = 15; - void clear_rangeproof_hash() ; - const std::string& rangeproof_hash() const; - template - void set_rangeproof_hash(Arg_&& arg, Args_... args); - std::string* mutable_rangeproof_hash(); - PROTOBUF_NODISCARD std::string* release_rangeproof_hash(); - void set_allocated_rangeproof_hash(std::string* value); - - private: - const std::string& _internal_rangeproof_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_rangeproof_hash( - const std::string& value); - std::string* _internal_mutable_rangeproof_hash(); - - public: - // .tari.rpc.OutputFeatures features = 1; - bool has_features() const; - void clear_features() ; - const ::tari::rpc::OutputFeatures& features() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputFeatures* release_features(); - ::tari::rpc::OutputFeatures* mutable_features(); - void set_allocated_features(::tari::rpc::OutputFeatures* value); - void unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value); - ::tari::rpc::OutputFeatures* unsafe_arena_release_features(); - - private: - const ::tari::rpc::OutputFeatures& _internal_features() const; - ::tari::rpc::OutputFeatures* _internal_mutable_features(); - - public: - // .tari.rpc.ComAndPubSignature script_signature = 7; - bool has_script_signature() const; - void clear_script_signature() ; - const ::tari::rpc::ComAndPubSignature& script_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_script_signature(); - ::tari::rpc::ComAndPubSignature* mutable_script_signature(); - void set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_script_signature(); - - private: - const ::tari::rpc::ComAndPubSignature& _internal_script_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_script_signature(); - - public: - // .tari.rpc.ComAndPubSignature metadata_signature = 14; - bool has_metadata_signature() const; - void clear_metadata_signature() ; - const ::tari::rpc::ComAndPubSignature& metadata_signature() const; - PROTOBUF_NODISCARD ::tari::rpc::ComAndPubSignature* release_metadata_signature(); - ::tari::rpc::ComAndPubSignature* mutable_metadata_signature(); - void set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - void unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value); - ::tari::rpc::ComAndPubSignature* unsafe_arena_release_metadata_signature(); - - private: - const ::tari::rpc::ComAndPubSignature& _internal_metadata_signature() const; - ::tari::rpc::ComAndPubSignature* _internal_mutable_metadata_signature(); - - public: - // uint64 minimum_value_promise = 13; - void clear_minimum_value_promise() ; - ::uint64_t minimum_value_promise() const; - void set_minimum_value_promise(::uint64_t value); - - private: - ::uint64_t _internal_minimum_value_promise() const; - void _internal_set_minimum_value_promise(::uint64_t value); - - public: - // uint32 version = 11; - void clear_version() ; - ::uint32_t version() const; - void set_version(::uint32_t value); - - private: - ::uint32_t _internal_version() const; - void _internal_set_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.TransactionInput) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 4, 14, 3, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr commitment_; - ::google::protobuf::internal::ArenaStringPtr hash_; - ::google::protobuf::internal::ArenaStringPtr script_; - ::google::protobuf::internal::ArenaStringPtr input_data_; - ::google::protobuf::internal::ArenaStringPtr sender_offset_public_key_; - ::google::protobuf::internal::ArenaStringPtr output_hash_; - ::google::protobuf::internal::ArenaStringPtr covenant_; - ::google::protobuf::internal::ArenaStringPtr encrypted_data_; - ::google::protobuf::internal::ArenaStringPtr rangeproof_hash_; - ::tari::rpc::OutputFeatures* features_; - ::tari::rpc::ComAndPubSignature* script_signature_; - ::tari::rpc::ComAndPubSignature* metadata_signature_; - ::uint64_t minimum_value_promise_; - ::uint32_t version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_transaction_2eproto; -}; -// ------------------------------------------------------------------- - -class AggregateBody final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.AggregateBody) */ { - public: - inline AggregateBody() : AggregateBody(nullptr) {} - ~AggregateBody() override; - template - explicit PROTOBUF_CONSTEXPR AggregateBody( - ::google::protobuf::internal::ConstantInitialized); - - inline AggregateBody(const AggregateBody& from) : AggregateBody(nullptr, from) {} - inline AggregateBody(AggregateBody&& from) noexcept - : AggregateBody(nullptr, std::move(from)) {} - inline AggregateBody& operator=(const AggregateBody& from) { - CopyFrom(from); - return *this; - } - inline AggregateBody& operator=(AggregateBody&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const AggregateBody& default_instance() { - return *internal_default_instance(); - } - static inline const AggregateBody* internal_default_instance() { - return reinterpret_cast( - &_AggregateBody_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(AggregateBody& a, AggregateBody& b) { a.Swap(&b); } - inline void Swap(AggregateBody* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AggregateBody* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AggregateBody* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const AggregateBody& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const AggregateBody& from) { AggregateBody::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(AggregateBody* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.AggregateBody"; } - - protected: - explicit AggregateBody(::google::protobuf::Arena* arena); - AggregateBody(::google::protobuf::Arena* arena, const AggregateBody& from); - AggregateBody(::google::protobuf::Arena* arena, AggregateBody&& from) noexcept - : AggregateBody(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kInputsFieldNumber = 1, - kOutputsFieldNumber = 2, - kKernelsFieldNumber = 3, - }; - // repeated .tari.rpc.TransactionInput inputs = 1; - int inputs_size() const; - private: - int _internal_inputs_size() const; - - public: - void clear_inputs() ; - ::tari::rpc::TransactionInput* mutable_inputs(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* mutable_inputs(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& _internal_inputs() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* _internal_mutable_inputs(); - public: - const ::tari::rpc::TransactionInput& inputs(int index) const; - ::tari::rpc::TransactionInput* add_inputs(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& inputs() const; - // repeated .tari.rpc.TransactionOutput outputs = 2; - int outputs_size() const; - private: - int _internal_outputs_size() const; - - public: - void clear_outputs() ; - ::tari::rpc::TransactionOutput* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* mutable_outputs(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& _internal_outputs() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* _internal_mutable_outputs(); - public: - const ::tari::rpc::TransactionOutput& outputs(int index) const; - ::tari::rpc::TransactionOutput* add_outputs(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& outputs() const; - // repeated .tari.rpc.TransactionKernel kernels = 3; - int kernels_size() const; - private: - int _internal_kernels_size() const; - - public: - void clear_kernels() ; - ::tari::rpc::TransactionKernel* mutable_kernels(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* mutable_kernels(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& _internal_kernels() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* _internal_mutable_kernels(); - public: - const ::tari::rpc::TransactionKernel& kernels(int index) const; - ::tari::rpc::TransactionKernel* add_kernels(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& kernels() const; - // @@protoc_insertion_point(class_scope:tari.rpc.AggregateBody) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 2, 3, 3, - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionInput > inputs_; - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionOutput > outputs_; - ::google::protobuf::RepeatedPtrField< ::tari::rpc::TransactionKernel > kernels_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_transaction_2eproto; -}; -// ------------------------------------------------------------------- - -class Transaction final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.Transaction) */ { - public: - inline Transaction() : Transaction(nullptr) {} - ~Transaction() override; - template - explicit PROTOBUF_CONSTEXPR Transaction( - ::google::protobuf::internal::ConstantInitialized); - - inline Transaction(const Transaction& from) : Transaction(nullptr, from) {} - inline Transaction(Transaction&& from) noexcept - : Transaction(nullptr, std::move(from)) {} - inline Transaction& operator=(const Transaction& from) { - CopyFrom(from); - return *this; - } - inline Transaction& operator=(Transaction&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Transaction& default_instance() { - return *internal_default_instance(); - } - static inline const Transaction* internal_default_instance() { - return reinterpret_cast( - &_Transaction_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(Transaction& a, Transaction& b) { a.Swap(&b); } - inline void Swap(Transaction* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Transaction* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Transaction* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Transaction& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Transaction& from) { Transaction::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Transaction* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.Transaction"; } - - protected: - explicit Transaction(::google::protobuf::Arena* arena); - Transaction(::google::protobuf::Arena* arena, const Transaction& from); - Transaction(::google::protobuf::Arena* arena, Transaction&& from) noexcept - : Transaction(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kOffsetFieldNumber = 1, - kScriptOffsetFieldNumber = 3, - kBodyFieldNumber = 2, - }; - // bytes offset = 1; - void clear_offset() ; - const std::string& offset() const; - template - void set_offset(Arg_&& arg, Args_... args); - std::string* mutable_offset(); - PROTOBUF_NODISCARD std::string* release_offset(); - void set_allocated_offset(std::string* value); - - private: - const std::string& _internal_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_offset( - const std::string& value); - std::string* _internal_mutable_offset(); - - public: - // bytes script_offset = 3; - void clear_script_offset() ; - const std::string& script_offset() const; - template - void set_script_offset(Arg_&& arg, Args_... args); - std::string* mutable_script_offset(); - PROTOBUF_NODISCARD std::string* release_script_offset(); - void set_allocated_script_offset(std::string* value); - - private: - const std::string& _internal_script_offset() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_script_offset( - const std::string& value); - std::string* _internal_mutable_script_offset(); - - public: - // .tari.rpc.AggregateBody body = 2; - bool has_body() const; - void clear_body() ; - const ::tari::rpc::AggregateBody& body() const; - PROTOBUF_NODISCARD ::tari::rpc::AggregateBody* release_body(); - ::tari::rpc::AggregateBody* mutable_body(); - void set_allocated_body(::tari::rpc::AggregateBody* value); - void unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value); - ::tari::rpc::AggregateBody* unsafe_arena_release_body(); - - private: - const ::tari::rpc::AggregateBody& _internal_body() const; - ::tari::rpc::AggregateBody* _internal_mutable_body(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.Transaction) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr offset_; - ::google::protobuf::internal::ArenaStringPtr script_offset_; - ::tari::rpc::AggregateBody* body_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_transaction_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// TransactionKernel - -// uint32 features = 1; -inline void TransactionKernel::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.features_ = 0u; -} -inline ::uint32_t TransactionKernel::features() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.features) - return _internal_features(); -} -inline void TransactionKernel::set_features(::uint32_t value) { - _internal_set_features(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.features) -} -inline ::uint32_t TransactionKernel::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.features_; -} -inline void TransactionKernel::_internal_set_features(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.features_ = value; -} - -// uint64 fee = 2; -inline void TransactionKernel::clear_fee() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fee_ = ::uint64_t{0u}; -} -inline ::uint64_t TransactionKernel::fee() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.fee) - return _internal_fee(); -} -inline void TransactionKernel::set_fee(::uint64_t value) { - _internal_set_fee(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.fee) -} -inline ::uint64_t TransactionKernel::_internal_fee() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.fee_; -} -inline void TransactionKernel::_internal_set_fee(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.fee_ = value; -} - -// uint64 lock_height = 3; -inline void TransactionKernel::clear_lock_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.lock_height_ = ::uint64_t{0u}; -} -inline ::uint64_t TransactionKernel::lock_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.lock_height) - return _internal_lock_height(); -} -inline void TransactionKernel::set_lock_height(::uint64_t value) { - _internal_set_lock_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.lock_height) -} -inline ::uint64_t TransactionKernel::_internal_lock_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.lock_height_; -} -inline void TransactionKernel::_internal_set_lock_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.lock_height_ = value; -} - -// bytes excess = 6; -inline void TransactionKernel::clear_excess() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.excess_.ClearToEmpty(); -} -inline const std::string& TransactionKernel::excess() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.excess) - return _internal_excess(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_excess(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.excess_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.excess) -} -inline std::string* TransactionKernel::mutable_excess() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_excess(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.excess) - return _s; -} -inline const std::string& TransactionKernel::_internal_excess() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.excess_.Get(); -} -inline void TransactionKernel::_internal_set_excess(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.excess_.Set(value, GetArena()); -} -inline std::string* TransactionKernel::_internal_mutable_excess() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.excess_.Mutable( GetArena()); -} -inline std::string* TransactionKernel::release_excess() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.excess) - return _impl_.excess_.Release(); -} -inline void TransactionKernel::set_allocated_excess(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.excess_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.excess_.IsDefault()) { - _impl_.excess_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionKernel.excess) -} - -// .tari.rpc.Signature excess_sig = 7; -inline bool TransactionKernel::has_excess_sig() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.excess_sig_ != nullptr); - return value; -} -inline const ::tari::rpc::Signature& TransactionKernel::_internal_excess_sig() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Signature* p = _impl_.excess_sig_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Signature_default_instance_); -} -inline const ::tari::rpc::Signature& TransactionKernel::excess_sig() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.excess_sig) - return _internal_excess_sig(); -} -inline void TransactionKernel::unsafe_arena_set_allocated_excess_sig(::tari::rpc::Signature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); - } - _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionKernel.excess_sig) -} -inline ::tari::rpc::Signature* TransactionKernel::release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* released = _impl_.excess_sig_; - _impl_.excess_sig_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Signature* TransactionKernel::unsafe_arena_release_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.excess_sig) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Signature* temp = _impl_.excess_sig_; - _impl_.excess_sig_ = nullptr; - return temp; -} -inline ::tari::rpc::Signature* TransactionKernel::_internal_mutable_excess_sig() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.excess_sig_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Signature>(GetArena()); - _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(p); - } - return _impl_.excess_sig_; -} -inline ::tari::rpc::Signature* TransactionKernel::mutable_excess_sig() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Signature* _msg = _internal_mutable_excess_sig(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.excess_sig) - return _msg; -} -inline void TransactionKernel::set_allocated_excess_sig(::tari::rpc::Signature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.excess_sig_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.excess_sig_ = reinterpret_cast<::tari::rpc::Signature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionKernel.excess_sig) -} - -// bytes hash = 8; -inline void TransactionKernel::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.ClearToEmpty(); -} -inline const std::string& TransactionKernel::hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.hash) - return _internal_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.hash) -} -inline std::string* TransactionKernel::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.hash) - return _s; -} -inline const std::string& TransactionKernel::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hash_.Get(); -} -inline void TransactionKernel::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.Set(value, GetArena()); -} -inline std::string* TransactionKernel::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.hash_.Mutable( GetArena()); -} -inline std::string* TransactionKernel::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.hash) - return _impl_.hash_.Release(); -} -inline void TransactionKernel::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionKernel.hash) -} - -// uint32 version = 9; -inline void TransactionKernel::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = 0u; -} -inline ::uint32_t TransactionKernel::version() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.version) - return _internal_version(); -} -inline void TransactionKernel::set_version(::uint32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.version) -} -inline ::uint32_t TransactionKernel::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_; -} -inline void TransactionKernel::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = value; -} - -// bytes burn_commitment = 10; -inline void TransactionKernel::clear_burn_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.burn_commitment_.ClearToEmpty(); -} -inline const std::string& TransactionKernel::burn_commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionKernel.burn_commitment) - return _internal_burn_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionKernel::set_burn_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.burn_commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionKernel.burn_commitment) -} -inline std::string* TransactionKernel::mutable_burn_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_burn_commitment(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionKernel.burn_commitment) - return _s; -} -inline const std::string& TransactionKernel::_internal_burn_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.burn_commitment_.Get(); -} -inline void TransactionKernel::_internal_set_burn_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.burn_commitment_.Set(value, GetArena()); -} -inline std::string* TransactionKernel::_internal_mutable_burn_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.burn_commitment_.Mutable( GetArena()); -} -inline std::string* TransactionKernel::release_burn_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionKernel.burn_commitment) - return _impl_.burn_commitment_.Release(); -} -inline void TransactionKernel::set_allocated_burn_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.burn_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.burn_commitment_.IsDefault()) { - _impl_.burn_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionKernel.burn_commitment) -} - -// ------------------------------------------------------------------- - -// TransactionInput - -// .tari.rpc.OutputFeatures features = 1; -inline bool TransactionInput::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); - return value; -} -inline void TransactionInput::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::OutputFeatures& TransactionInput::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::OutputFeatures* p = _impl_.features_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); -} -inline const ::tari::rpc::OutputFeatures& TransactionInput::features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.features) - return _internal_features(); -} -inline void TransactionInput::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionInput.features) -} -inline ::tari::rpc::OutputFeatures* TransactionInput::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* released = _impl_.features_; - _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::OutputFeatures* TransactionInput::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.features) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* temp = _impl_.features_; - _impl_.features_ = nullptr; - return temp; -} -inline ::tari::rpc::OutputFeatures* TransactionInput::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); - } - return _impl_.features_; -} -inline ::tari::rpc::OutputFeatures* TransactionInput::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.features) - return _msg; -} -inline void TransactionInput::set_allocated_features(::tari::rpc::OutputFeatures* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.features_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.features) -} - -// bytes commitment = 2; -inline void TransactionInput::clear_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.ClearToEmpty(); -} -inline const std::string& TransactionInput::commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.commitment) - return _internal_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.commitment) -} -inline std::string* TransactionInput::mutable_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_commitment(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.commitment) - return _s; -} -inline const std::string& TransactionInput::_internal_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.commitment_.Get(); -} -inline void TransactionInput::_internal_set_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.commitment_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.commitment) - return _impl_.commitment_.Release(); -} -inline void TransactionInput::set_allocated_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.commitment_.IsDefault()) { - _impl_.commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.commitment) -} - -// bytes hash = 3; -inline void TransactionInput::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.ClearToEmpty(); -} -inline const std::string& TransactionInput::hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.hash) - return _internal_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.hash) -} -inline std::string* TransactionInput::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.hash) - return _s; -} -inline const std::string& TransactionInput::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hash_.Get(); -} -inline void TransactionInput::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.hash_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.hash) - return _impl_.hash_.Release(); -} -inline void TransactionInput::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.hash) -} - -// bytes script = 4; -inline void TransactionInput::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.ClearToEmpty(); -} -inline const std::string& TransactionInput::script() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.script) - return _internal_script(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.script) -} -inline std::string* TransactionInput::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.script) - return _s; -} -inline const std::string& TransactionInput::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_.Get(); -} -inline void TransactionInput::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.script_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.script) - return _impl_.script_.Release(); -} -inline void TransactionInput::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.script) -} - -// bytes input_data = 5; -inline void TransactionInput::clear_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.ClearToEmpty(); -} -inline const std::string& TransactionInput::input_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.input_data) - return _internal_input_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_input_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.input_data) -} -inline std::string* TransactionInput::mutable_input_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_input_data(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.input_data) - return _s; -} -inline const std::string& TransactionInput::_internal_input_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.input_data_.Get(); -} -inline void TransactionInput::_internal_set_input_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.input_data_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.input_data) - return _impl_.input_data_.Release(); -} -inline void TransactionInput::set_allocated_input_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.input_data_.IsDefault()) { - _impl_.input_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.input_data) -} - -// .tari.rpc.ComAndPubSignature script_signature = 7; -inline bool TransactionInput::has_script_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.script_signature_ != nullptr); - return value; -} -inline const ::tari::rpc::ComAndPubSignature& TransactionInput::_internal_script_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::ComAndPubSignature* p = _impl_.script_signature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); -} -inline const ::tari::rpc::ComAndPubSignature& TransactionInput::script_signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.script_signature) - return _internal_script_signature(); -} -inline void TransactionInput::unsafe_arena_set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.script_signature_); - } - _impl_.script_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionInput.script_signature) -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::release_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::ComAndPubSignature* released = _impl_.script_signature_; - _impl_.script_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::unsafe_arena_release_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.script_signature) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::ComAndPubSignature* temp = _impl_.script_signature_; - _impl_.script_signature_ = nullptr; - return temp; -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::_internal_mutable_script_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.script_signature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); - _impl_.script_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); - } - return _impl_.script_signature_; -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::mutable_script_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_script_signature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.script_signature) - return _msg; -} -inline void TransactionInput::set_allocated_script_signature(::tari::rpc::ComAndPubSignature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.script_signature_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.script_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.script_signature) -} - -// bytes sender_offset_public_key = 8; -inline void TransactionInput::clear_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.ClearToEmpty(); -} -inline const std::string& TransactionInput::sender_offset_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.sender_offset_public_key) - return _internal_sender_offset_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_sender_offset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.sender_offset_public_key) -} -inline std::string* TransactionInput::mutable_sender_offset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sender_offset_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.sender_offset_public_key) - return _s; -} -inline const std::string& TransactionInput::_internal_sender_offset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sender_offset_public_key_.Get(); -} -inline void TransactionInput::_internal_set_sender_offset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.sender_offset_public_key_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.sender_offset_public_key) - return _impl_.sender_offset_public_key_.Release(); -} -inline void TransactionInput::set_allocated_sender_offset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sender_offset_public_key_.IsDefault()) { - _impl_.sender_offset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.sender_offset_public_key) -} - -// bytes output_hash = 9; -inline void TransactionInput::clear_output_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_hash_.ClearToEmpty(); -} -inline const std::string& TransactionInput::output_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.output_hash) - return _internal_output_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_output_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.output_hash) -} -inline std::string* TransactionInput::mutable_output_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_output_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.output_hash) - return _s; -} -inline const std::string& TransactionInput::_internal_output_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.output_hash_.Get(); -} -inline void TransactionInput::_internal_set_output_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_hash_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_output_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.output_hash_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_output_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.output_hash) - return _impl_.output_hash_.Release(); -} -inline void TransactionInput::set_allocated_output_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.output_hash_.IsDefault()) { - _impl_.output_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.output_hash) -} - -// bytes covenant = 10; -inline void TransactionInput::clear_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.ClearToEmpty(); -} -inline const std::string& TransactionInput::covenant() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.covenant) - return _internal_covenant(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_covenant(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.covenant) -} -inline std::string* TransactionInput::mutable_covenant() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_covenant(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.covenant) - return _s; -} -inline const std::string& TransactionInput::_internal_covenant() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.covenant_.Get(); -} -inline void TransactionInput::_internal_set_covenant(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.covenant_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.covenant) - return _impl_.covenant_.Release(); -} -inline void TransactionInput::set_allocated_covenant(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.covenant_.IsDefault()) { - _impl_.covenant_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.covenant) -} - -// uint32 version = 11; -inline void TransactionInput::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = 0u; -} -inline ::uint32_t TransactionInput::version() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.version) - return _internal_version(); -} -inline void TransactionInput::set_version(::uint32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.version) -} -inline ::uint32_t TransactionInput::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_; -} -inline void TransactionInput::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = value; -} - -// bytes encrypted_data = 12; -inline void TransactionInput::clear_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.ClearToEmpty(); -} -inline const std::string& TransactionInput::encrypted_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.encrypted_data) - return _internal_encrypted_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_encrypted_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.encrypted_data) -} -inline std::string* TransactionInput::mutable_encrypted_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_encrypted_data(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.encrypted_data) - return _s; -} -inline const std::string& TransactionInput::_internal_encrypted_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.encrypted_data_.Get(); -} -inline void TransactionInput::_internal_set_encrypted_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.encrypted_data_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.encrypted_data) - return _impl_.encrypted_data_.Release(); -} -inline void TransactionInput::set_allocated_encrypted_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.encrypted_data_.IsDefault()) { - _impl_.encrypted_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.encrypted_data) -} - -// uint64 minimum_value_promise = 13; -inline void TransactionInput::clear_minimum_value_promise() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minimum_value_promise_ = ::uint64_t{0u}; -} -inline ::uint64_t TransactionInput::minimum_value_promise() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.minimum_value_promise) - return _internal_minimum_value_promise(); -} -inline void TransactionInput::set_minimum_value_promise(::uint64_t value) { - _internal_set_minimum_value_promise(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.minimum_value_promise) -} -inline ::uint64_t TransactionInput::_internal_minimum_value_promise() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.minimum_value_promise_; -} -inline void TransactionInput::_internal_set_minimum_value_promise(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minimum_value_promise_ = value; -} - -// .tari.rpc.ComAndPubSignature metadata_signature = 14; -inline bool TransactionInput::has_metadata_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_signature_ != nullptr); - return value; -} -inline const ::tari::rpc::ComAndPubSignature& TransactionInput::_internal_metadata_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::ComAndPubSignature* p = _impl_.metadata_signature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); -} -inline const ::tari::rpc::ComAndPubSignature& TransactionInput::metadata_signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.metadata_signature) - return _internal_metadata_signature(); -} -inline void TransactionInput::unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); - } - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionInput.metadata_signature) -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::ComAndPubSignature* released = _impl_.metadata_signature_; - _impl_.metadata_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::unsafe_arena_release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.metadata_signature) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::ComAndPubSignature* temp = _impl_.metadata_signature_; - _impl_.metadata_signature_ = nullptr; - return temp; -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::_internal_mutable_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_signature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); - } - return _impl_.metadata_signature_; -} -inline ::tari::rpc::ComAndPubSignature* TransactionInput::mutable_metadata_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; - ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.metadata_signature) - return _msg; -} -inline void TransactionInput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.metadata_signature) -} - -// bytes rangeproof_hash = 15; -inline void TransactionInput::clear_rangeproof_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rangeproof_hash_.ClearToEmpty(); -} -inline const std::string& TransactionInput::rangeproof_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionInput.rangeproof_hash) - return _internal_rangeproof_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionInput::set_rangeproof_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rangeproof_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionInput.rangeproof_hash) -} -inline std::string* TransactionInput::mutable_rangeproof_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_rangeproof_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionInput.rangeproof_hash) - return _s; -} -inline const std::string& TransactionInput::_internal_rangeproof_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.rangeproof_hash_.Get(); -} -inline void TransactionInput::_internal_set_rangeproof_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rangeproof_hash_.Set(value, GetArena()); -} -inline std::string* TransactionInput::_internal_mutable_rangeproof_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.rangeproof_hash_.Mutable( GetArena()); -} -inline std::string* TransactionInput::release_rangeproof_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionInput.rangeproof_hash) - return _impl_.rangeproof_hash_.Release(); -} -inline void TransactionInput::set_allocated_rangeproof_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.rangeproof_hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.rangeproof_hash_.IsDefault()) { - _impl_.rangeproof_hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionInput.rangeproof_hash) -} - -// ------------------------------------------------------------------- - -// TransactionOutput - -// .tari.rpc.OutputFeatures features = 1; -inline bool TransactionOutput::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); - return value; -} -inline void TransactionOutput::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::OutputFeatures& TransactionOutput::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::OutputFeatures* p = _impl_.features_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); -} -inline const ::tari::rpc::OutputFeatures& TransactionOutput::features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.features) - return _internal_features(); -} -inline void TransactionOutput::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionOutput.features) -} -inline ::tari::rpc::OutputFeatures* TransactionOutput::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* released = _impl_.features_; - _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::OutputFeatures* TransactionOutput::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.features) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* temp = _impl_.features_; - _impl_.features_ = nullptr; - return temp; -} -inline ::tari::rpc::OutputFeatures* TransactionOutput::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); - } - return _impl_.features_; -} -inline ::tari::rpc::OutputFeatures* TransactionOutput::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.features) - return _msg; -} -inline void TransactionOutput::set_allocated_features(::tari::rpc::OutputFeatures* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.features_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.features) -} - -// bytes commitment = 2; -inline void TransactionOutput::clear_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.ClearToEmpty(); -} -inline const std::string& TransactionOutput::commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.commitment) - return _internal_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.commitment) -} -inline std::string* TransactionOutput::mutable_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_commitment(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.commitment) - return _s; -} -inline const std::string& TransactionOutput::_internal_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.commitment_.Get(); -} -inline void TransactionOutput::_internal_set_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.Set(value, GetArena()); -} -inline std::string* TransactionOutput::_internal_mutable_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.commitment_.Mutable( GetArena()); -} -inline std::string* TransactionOutput::release_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.commitment) - return _impl_.commitment_.Release(); -} -inline void TransactionOutput::set_allocated_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.commitment_.IsDefault()) { - _impl_.commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.commitment) -} - -// .tari.rpc.RangeProof range_proof = 3; -inline bool TransactionOutput::has_range_proof() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.range_proof_ != nullptr); - return value; -} -inline const ::tari::rpc::RangeProof& TransactionOutput::_internal_range_proof() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::RangeProof* p = _impl_.range_proof_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_RangeProof_default_instance_); -} -inline const ::tari::rpc::RangeProof& TransactionOutput::range_proof() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.range_proof) - return _internal_range_proof(); -} -inline void TransactionOutput::unsafe_arena_set_allocated_range_proof(::tari::rpc::RangeProof* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.range_proof_); - } - _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionOutput.range_proof) -} -inline ::tari::rpc::RangeProof* TransactionOutput::release_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::RangeProof* released = _impl_.range_proof_; - _impl_.range_proof_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::RangeProof* TransactionOutput::unsafe_arena_release_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.range_proof) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::RangeProof* temp = _impl_.range_proof_; - _impl_.range_proof_ = nullptr; - return temp; -} -inline ::tari::rpc::RangeProof* TransactionOutput::_internal_mutable_range_proof() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.range_proof_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::RangeProof>(GetArena()); - _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(p); - } - return _impl_.range_proof_; -} -inline ::tari::rpc::RangeProof* TransactionOutput::mutable_range_proof() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::RangeProof* _msg = _internal_mutable_range_proof(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.range_proof) - return _msg; -} -inline void TransactionOutput::set_allocated_range_proof(::tari::rpc::RangeProof* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.range_proof_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.range_proof_ = reinterpret_cast<::tari::rpc::RangeProof*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.range_proof) -} - -// bytes hash = 4; -inline void TransactionOutput::clear_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.ClearToEmpty(); -} -inline const std::string& TransactionOutput::hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.hash) - return _internal_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_hash(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.hash) -} -inline std::string* TransactionOutput::mutable_hash() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_hash(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.hash) - return _s; -} -inline const std::string& TransactionOutput::_internal_hash() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.hash_.Get(); -} -inline void TransactionOutput::_internal_set_hash(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.Set(value, GetArena()); -} -inline std::string* TransactionOutput::_internal_mutable_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.hash_.Mutable( GetArena()); -} -inline std::string* TransactionOutput::release_hash() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.hash) - return _impl_.hash_.Release(); -} -inline void TransactionOutput::set_allocated_hash(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.hash_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.hash_.IsDefault()) { - _impl_.hash_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.hash) -} - -// bytes script = 5; -inline void TransactionOutput::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.ClearToEmpty(); -} -inline const std::string& TransactionOutput::script() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.script) - return _internal_script(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.script) -} -inline std::string* TransactionOutput::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.script) - return _s; -} -inline const std::string& TransactionOutput::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_.Get(); -} -inline void TransactionOutput::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.Set(value, GetArena()); -} -inline std::string* TransactionOutput::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.script_.Mutable( GetArena()); -} -inline std::string* TransactionOutput::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.script) - return _impl_.script_.Release(); -} -inline void TransactionOutput::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.script) -} - -// bytes sender_offset_public_key = 6; -inline void TransactionOutput::clear_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.ClearToEmpty(); -} -inline const std::string& TransactionOutput::sender_offset_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.sender_offset_public_key) - return _internal_sender_offset_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_sender_offset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.sender_offset_public_key) -} -inline std::string* TransactionOutput::mutable_sender_offset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sender_offset_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.sender_offset_public_key) - return _s; -} -inline const std::string& TransactionOutput::_internal_sender_offset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sender_offset_public_key_.Get(); -} -inline void TransactionOutput::_internal_set_sender_offset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.Set(value, GetArena()); -} -inline std::string* TransactionOutput::_internal_mutable_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.sender_offset_public_key_.Mutable( GetArena()); -} -inline std::string* TransactionOutput::release_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.sender_offset_public_key) - return _impl_.sender_offset_public_key_.Release(); -} -inline void TransactionOutput::set_allocated_sender_offset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sender_offset_public_key_.IsDefault()) { - _impl_.sender_offset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.sender_offset_public_key) -} - -// .tari.rpc.ComAndPubSignature metadata_signature = 7; -inline bool TransactionOutput::has_metadata_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_signature_ != nullptr); - return value; -} -inline const ::tari::rpc::ComAndPubSignature& TransactionOutput::_internal_metadata_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::ComAndPubSignature* p = _impl_.metadata_signature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); -} -inline const ::tari::rpc::ComAndPubSignature& TransactionOutput::metadata_signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.metadata_signature) - return _internal_metadata_signature(); -} -inline void TransactionOutput::unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); - } - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.TransactionOutput.metadata_signature) -} -inline ::tari::rpc::ComAndPubSignature* TransactionOutput::release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::ComAndPubSignature* released = _impl_.metadata_signature_; - _impl_.metadata_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::ComAndPubSignature* TransactionOutput::unsafe_arena_release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.metadata_signature) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::ComAndPubSignature* temp = _impl_.metadata_signature_; - _impl_.metadata_signature_ = nullptr; - return temp; -} -inline ::tari::rpc::ComAndPubSignature* TransactionOutput::_internal_mutable_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_signature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); - } - return _impl_.metadata_signature_; -} -inline ::tari::rpc::ComAndPubSignature* TransactionOutput::mutable_metadata_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; - ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.metadata_signature) - return _msg; -} -inline void TransactionOutput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.metadata_signature) -} - -// bytes covenant = 8; -inline void TransactionOutput::clear_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.ClearToEmpty(); -} -inline const std::string& TransactionOutput::covenant() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.covenant) - return _internal_covenant(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_covenant(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.covenant) -} -inline std::string* TransactionOutput::mutable_covenant() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_covenant(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.covenant) - return _s; -} -inline const std::string& TransactionOutput::_internal_covenant() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.covenant_.Get(); -} -inline void TransactionOutput::_internal_set_covenant(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.Set(value, GetArena()); -} -inline std::string* TransactionOutput::_internal_mutable_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.covenant_.Mutable( GetArena()); -} -inline std::string* TransactionOutput::release_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.covenant) - return _impl_.covenant_.Release(); -} -inline void TransactionOutput::set_allocated_covenant(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.covenant_.IsDefault()) { - _impl_.covenant_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.covenant) -} - -// uint32 version = 9; -inline void TransactionOutput::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = 0u; -} -inline ::uint32_t TransactionOutput::version() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.version) - return _internal_version(); -} -inline void TransactionOutput::set_version(::uint32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.version) -} -inline ::uint32_t TransactionOutput::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_; -} -inline void TransactionOutput::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = value; -} - -// bytes encrypted_data = 10; -inline void TransactionOutput::clear_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.ClearToEmpty(); -} -inline const std::string& TransactionOutput::encrypted_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.encrypted_data) - return _internal_encrypted_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE void TransactionOutput::set_encrypted_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.encrypted_data) -} -inline std::string* TransactionOutput::mutable_encrypted_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_encrypted_data(); - // @@protoc_insertion_point(field_mutable:tari.rpc.TransactionOutput.encrypted_data) - return _s; -} -inline const std::string& TransactionOutput::_internal_encrypted_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.encrypted_data_.Get(); -} -inline void TransactionOutput::_internal_set_encrypted_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.Set(value, GetArena()); -} -inline std::string* TransactionOutput::_internal_mutable_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.encrypted_data_.Mutable( GetArena()); -} -inline std::string* TransactionOutput::release_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.TransactionOutput.encrypted_data) - return _impl_.encrypted_data_.Release(); -} -inline void TransactionOutput::set_allocated_encrypted_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.encrypted_data_.IsDefault()) { - _impl_.encrypted_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.TransactionOutput.encrypted_data) -} - -// uint64 minimum_value_promise = 11; -inline void TransactionOutput::clear_minimum_value_promise() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minimum_value_promise_ = ::uint64_t{0u}; -} -inline ::uint64_t TransactionOutput::minimum_value_promise() const { - // @@protoc_insertion_point(field_get:tari.rpc.TransactionOutput.minimum_value_promise) - return _internal_minimum_value_promise(); -} -inline void TransactionOutput::set_minimum_value_promise(::uint64_t value) { - _internal_set_minimum_value_promise(value); - // @@protoc_insertion_point(field_set:tari.rpc.TransactionOutput.minimum_value_promise) -} -inline ::uint64_t TransactionOutput::_internal_minimum_value_promise() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.minimum_value_promise_; -} -inline void TransactionOutput::_internal_set_minimum_value_promise(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minimum_value_promise_ = value; -} - -// ------------------------------------------------------------------- - -// OutputFeatures - -// uint32 version = 1; -inline void OutputFeatures::clear_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = 0u; -} -inline ::uint32_t OutputFeatures::version() const { - // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.version) - return _internal_version(); -} -inline void OutputFeatures::set_version(::uint32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.version) -} -inline ::uint32_t OutputFeatures::_internal_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.version_; -} -inline void OutputFeatures::_internal_set_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.version_ = value; -} - -// uint32 output_type = 2; -inline void OutputFeatures::clear_output_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_type_ = 0u; -} -inline ::uint32_t OutputFeatures::output_type() const { - // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.output_type) - return _internal_output_type(); -} -inline void OutputFeatures::set_output_type(::uint32_t value) { - _internal_set_output_type(value); - // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.output_type) -} -inline ::uint32_t OutputFeatures::_internal_output_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.output_type_; -} -inline void OutputFeatures::_internal_set_output_type(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_type_ = value; -} - -// uint64 maturity = 3; -inline void OutputFeatures::clear_maturity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.maturity_ = ::uint64_t{0u}; -} -inline ::uint64_t OutputFeatures::maturity() const { - // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.maturity) - return _internal_maturity(); -} -inline void OutputFeatures::set_maturity(::uint64_t value) { - _internal_set_maturity(value); - // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.maturity) -} -inline ::uint64_t OutputFeatures::_internal_maturity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.maturity_; -} -inline void OutputFeatures::_internal_set_maturity(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.maturity_ = value; -} - -// bytes coinbase_extra = 4; -inline void OutputFeatures::clear_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.coinbase_extra_.ClearToEmpty(); -} -inline const std::string& OutputFeatures::coinbase_extra() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.coinbase_extra) - return _internal_coinbase_extra(); -} -template -inline PROTOBUF_ALWAYS_INLINE void OutputFeatures::set_coinbase_extra(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.coinbase_extra_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.coinbase_extra) -} -inline std::string* OutputFeatures::mutable_coinbase_extra() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_coinbase_extra(); - // @@protoc_insertion_point(field_mutable:tari.rpc.OutputFeatures.coinbase_extra) - return _s; -} -inline const std::string& OutputFeatures::_internal_coinbase_extra() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.coinbase_extra_.Get(); -} -inline void OutputFeatures::_internal_set_coinbase_extra(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.coinbase_extra_.Set(value, GetArena()); -} -inline std::string* OutputFeatures::_internal_mutable_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.coinbase_extra_.Mutable( GetArena()); -} -inline std::string* OutputFeatures::release_coinbase_extra() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.OutputFeatures.coinbase_extra) - return _impl_.coinbase_extra_.Release(); -} -inline void OutputFeatures::set_allocated_coinbase_extra(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.coinbase_extra_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.coinbase_extra_.IsDefault()) { - _impl_.coinbase_extra_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.OutputFeatures.coinbase_extra) -} - -// .tari.rpc.SideChainFeature sidechain_feature = 5; -inline bool OutputFeatures::has_sidechain_feature() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.sidechain_feature_ != nullptr); - return value; -} -inline const ::tari::rpc::SideChainFeature& OutputFeatures::_internal_sidechain_feature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::SideChainFeature* p = _impl_.sidechain_feature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_SideChainFeature_default_instance_); -} -inline const ::tari::rpc::SideChainFeature& OutputFeatures::sidechain_feature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.sidechain_feature) - return _internal_sidechain_feature(); -} -inline void OutputFeatures::unsafe_arena_set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sidechain_feature_); - } - _impl_.sidechain_feature_ = reinterpret_cast<::tari::rpc::SideChainFeature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.OutputFeatures.sidechain_feature) -} -inline ::tari::rpc::SideChainFeature* OutputFeatures::release_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::SideChainFeature* released = _impl_.sidechain_feature_; - _impl_.sidechain_feature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::SideChainFeature* OutputFeatures::unsafe_arena_release_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.OutputFeatures.sidechain_feature) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::SideChainFeature* temp = _impl_.sidechain_feature_; - _impl_.sidechain_feature_ = nullptr; - return temp; -} -inline ::tari::rpc::SideChainFeature* OutputFeatures::_internal_mutable_sidechain_feature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.sidechain_feature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::SideChainFeature>(GetArena()); - _impl_.sidechain_feature_ = reinterpret_cast<::tari::rpc::SideChainFeature*>(p); - } - return _impl_.sidechain_feature_; -} -inline ::tari::rpc::SideChainFeature* OutputFeatures::mutable_sidechain_feature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::SideChainFeature* _msg = _internal_mutable_sidechain_feature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.OutputFeatures.sidechain_feature) - return _msg; -} -inline void OutputFeatures::set_allocated_sidechain_feature(::tari::rpc::SideChainFeature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.sidechain_feature_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.sidechain_feature_ = reinterpret_cast<::tari::rpc::SideChainFeature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.OutputFeatures.sidechain_feature) -} - -// uint32 range_proof_type = 6; -inline void OutputFeatures::clear_range_proof_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_proof_type_ = 0u; -} -inline ::uint32_t OutputFeatures::range_proof_type() const { - // @@protoc_insertion_point(field_get:tari.rpc.OutputFeatures.range_proof_type) - return _internal_range_proof_type(); -} -inline void OutputFeatures::set_range_proof_type(::uint32_t value) { - _internal_set_range_proof_type(value); - // @@protoc_insertion_point(field_set:tari.rpc.OutputFeatures.range_proof_type) -} -inline ::uint32_t OutputFeatures::_internal_range_proof_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.range_proof_type_; -} -inline void OutputFeatures::_internal_set_range_proof_type(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_proof_type_ = value; -} - -// ------------------------------------------------------------------- - -// AggregateBody - -// repeated .tari.rpc.TransactionInput inputs = 1; -inline int AggregateBody::_internal_inputs_size() const { - return _internal_inputs().size(); -} -inline int AggregateBody::inputs_size() const { - return _internal_inputs_size(); -} -inline void AggregateBody::clear_inputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.inputs_.Clear(); -} -inline ::tari::rpc::TransactionInput* AggregateBody::mutable_inputs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.AggregateBody.inputs) - return _internal_mutable_inputs()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* AggregateBody::mutable_inputs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.AggregateBody.inputs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_inputs(); -} -inline const ::tari::rpc::TransactionInput& AggregateBody::inputs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.AggregateBody.inputs) - return _internal_inputs().Get(index); -} -inline ::tari::rpc::TransactionInput* AggregateBody::add_inputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::TransactionInput* _add = _internal_mutable_inputs()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.AggregateBody.inputs) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& AggregateBody::inputs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.AggregateBody.inputs) - return _internal_inputs(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>& -AggregateBody::_internal_inputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.inputs_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionInput>* -AggregateBody::_internal_mutable_inputs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.inputs_; -} - -// repeated .tari.rpc.TransactionOutput outputs = 2; -inline int AggregateBody::_internal_outputs_size() const { - return _internal_outputs().size(); -} -inline int AggregateBody::outputs_size() const { - return _internal_outputs_size(); -} -inline void AggregateBody::clear_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.outputs_.Clear(); -} -inline ::tari::rpc::TransactionOutput* AggregateBody::mutable_outputs(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.AggregateBody.outputs) - return _internal_mutable_outputs()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* AggregateBody::mutable_outputs() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.AggregateBody.outputs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_outputs(); -} -inline const ::tari::rpc::TransactionOutput& AggregateBody::outputs(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.AggregateBody.outputs) - return _internal_outputs().Get(index); -} -inline ::tari::rpc::TransactionOutput* AggregateBody::add_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::TransactionOutput* _add = _internal_mutable_outputs()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.AggregateBody.outputs) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& AggregateBody::outputs() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.AggregateBody.outputs) - return _internal_outputs(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>& -AggregateBody::_internal_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.outputs_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionOutput>* -AggregateBody::_internal_mutable_outputs() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.outputs_; -} - -// repeated .tari.rpc.TransactionKernel kernels = 3; -inline int AggregateBody::_internal_kernels_size() const { - return _internal_kernels().size(); -} -inline int AggregateBody::kernels_size() const { - return _internal_kernels_size(); -} -inline void AggregateBody::clear_kernels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernels_.Clear(); -} -inline ::tari::rpc::TransactionKernel* AggregateBody::mutable_kernels(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.AggregateBody.kernels) - return _internal_mutable_kernels()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* AggregateBody::mutable_kernels() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.AggregateBody.kernels) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_kernels(); -} -inline const ::tari::rpc::TransactionKernel& AggregateBody::kernels(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.AggregateBody.kernels) - return _internal_kernels().Get(index); -} -inline ::tari::rpc::TransactionKernel* AggregateBody::add_kernels() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::TransactionKernel* _add = _internal_mutable_kernels()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.AggregateBody.kernels) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& AggregateBody::kernels() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.AggregateBody.kernels) - return _internal_kernels(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>& -AggregateBody::_internal_kernels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.kernels_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::TransactionKernel>* -AggregateBody::_internal_mutable_kernels() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.kernels_; -} - -// ------------------------------------------------------------------- - -// Transaction - -// bytes offset = 1; -inline void Transaction::clear_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_.ClearToEmpty(); -} -inline const std::string& Transaction::offset() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Transaction.offset) - return _internal_offset(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Transaction::set_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Transaction.offset) -} -inline std::string* Transaction::mutable_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_offset(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Transaction.offset) - return _s; -} -inline const std::string& Transaction::_internal_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.offset_.Get(); -} -inline void Transaction::_internal_set_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_.Set(value, GetArena()); -} -inline std::string* Transaction::_internal_mutable_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.offset_.Mutable( GetArena()); -} -inline std::string* Transaction::release_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Transaction.offset) - return _impl_.offset_.Release(); -} -inline void Transaction::set_allocated_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.offset_.IsDefault()) { - _impl_.offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Transaction.offset) -} - -// .tari.rpc.AggregateBody body = 2; -inline bool Transaction::has_body() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.body_ != nullptr); - return value; -} -inline void Transaction::clear_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.body_ != nullptr) _impl_.body_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::AggregateBody& Transaction::_internal_body() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::AggregateBody* p = _impl_.body_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_AggregateBody_default_instance_); -} -inline const ::tari::rpc::AggregateBody& Transaction::body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Transaction.body) - return _internal_body(); -} -inline void Transaction::unsafe_arena_set_allocated_body(::tari::rpc::AggregateBody* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.body_); - } - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.Transaction.body) -} -inline ::tari::rpc::AggregateBody* Transaction::release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::AggregateBody* released = _impl_.body_; - _impl_.body_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::AggregateBody* Transaction::unsafe_arena_release_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Transaction.body) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::AggregateBody* temp = _impl_.body_; - _impl_.body_ = nullptr; - return temp; -} -inline ::tari::rpc::AggregateBody* Transaction::_internal_mutable_body() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.body_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::AggregateBody>(GetArena()); - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(p); - } - return _impl_.body_; -} -inline ::tari::rpc::AggregateBody* Transaction::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::AggregateBody* _msg = _internal_mutable_body(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Transaction.body) - return _msg; -} -inline void Transaction::set_allocated_body(::tari::rpc::AggregateBody* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.body_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.body_ = reinterpret_cast<::tari::rpc::AggregateBody*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Transaction.body) -} - -// bytes script_offset = 3; -inline void Transaction::clear_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_offset_.ClearToEmpty(); -} -inline const std::string& Transaction::script_offset() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Transaction.script_offset) - return _internal_script_offset(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Transaction::set_script_offset(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_offset_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Transaction.script_offset) -} -inline std::string* Transaction::mutable_script_offset() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script_offset(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Transaction.script_offset) - return _s; -} -inline const std::string& Transaction::_internal_script_offset() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_offset_.Get(); -} -inline void Transaction::_internal_set_script_offset(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_offset_.Set(value, GetArena()); -} -inline std::string* Transaction::_internal_mutable_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.script_offset_.Mutable( GetArena()); -} -inline std::string* Transaction::release_script_offset() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Transaction.script_offset) - return _impl_.script_offset_.Release(); -} -inline void Transaction::set_allocated_script_offset(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_offset_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_offset_.IsDefault()) { - _impl_.script_offset_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Transaction.script_offset) -} - -// ------------------------------------------------------------------- - -// UnblindedOutput - -// uint64 value = 1; -inline void UnblindedOutput::clear_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = ::uint64_t{0u}; -} -inline ::uint64_t UnblindedOutput::value() const { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.value) - return _internal_value(); -} -inline void UnblindedOutput::set_value(::uint64_t value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.value) -} -inline ::uint64_t UnblindedOutput::_internal_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.value_; -} -inline void UnblindedOutput::_internal_set_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.value_ = value; -} - -// bytes spending_key = 2; -inline void UnblindedOutput::clear_spending_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.spending_key_.ClearToEmpty(); -} -inline const std::string& UnblindedOutput::spending_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.spending_key) - return _internal_spending_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_spending_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.spending_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.spending_key) -} -inline std::string* UnblindedOutput::mutable_spending_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_spending_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.spending_key) - return _s; -} -inline const std::string& UnblindedOutput::_internal_spending_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.spending_key_.Get(); -} -inline void UnblindedOutput::_internal_set_spending_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.spending_key_.Set(value, GetArena()); -} -inline std::string* UnblindedOutput::_internal_mutable_spending_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.spending_key_.Mutable( GetArena()); -} -inline std::string* UnblindedOutput::release_spending_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.spending_key) - return _impl_.spending_key_.Release(); -} -inline void UnblindedOutput::set_allocated_spending_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.spending_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.spending_key_.IsDefault()) { - _impl_.spending_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.spending_key) -} - -// .tari.rpc.OutputFeatures features = 3; -inline bool UnblindedOutput::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); - return value; -} -inline void UnblindedOutput::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::OutputFeatures& UnblindedOutput::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::OutputFeatures* p = _impl_.features_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputFeatures_default_instance_); -} -inline const ::tari::rpc::OutputFeatures& UnblindedOutput::features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.features) - return _internal_features(); -} -inline void UnblindedOutput::unsafe_arena_set_allocated_features(::tari::rpc::OutputFeatures* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.UnblindedOutput.features) -} -inline ::tari::rpc::OutputFeatures* UnblindedOutput::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* released = _impl_.features_; - _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::OutputFeatures* UnblindedOutput::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.features) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::OutputFeatures* temp = _impl_.features_; - _impl_.features_ = nullptr; - return temp; -} -inline ::tari::rpc::OutputFeatures* UnblindedOutput::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputFeatures>(GetArena()); - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(p); - } - return _impl_.features_; -} -inline ::tari::rpc::OutputFeatures* UnblindedOutput::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::OutputFeatures* _msg = _internal_mutable_features(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.features) - return _msg; -} -inline void UnblindedOutput::set_allocated_features(::tari::rpc::OutputFeatures* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.features_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.features_ = reinterpret_cast<::tari::rpc::OutputFeatures*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.features) -} - -// bytes script = 4; -inline void UnblindedOutput::clear_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.ClearToEmpty(); -} -inline const std::string& UnblindedOutput::script() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.script) - return _internal_script(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script) -} -inline std::string* UnblindedOutput::mutable_script() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.script) - return _s; -} -inline const std::string& UnblindedOutput::_internal_script() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_.Get(); -} -inline void UnblindedOutput::_internal_set_script(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.Set(value, GetArena()); -} -inline std::string* UnblindedOutput::_internal_mutable_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.script_.Mutable( GetArena()); -} -inline std::string* UnblindedOutput::release_script() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.script) - return _impl_.script_.Release(); -} -inline void UnblindedOutput::set_allocated_script(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_.IsDefault()) { - _impl_.script_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.script) -} - -// bytes input_data = 5; -inline void UnblindedOutput::clear_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.ClearToEmpty(); -} -inline const std::string& UnblindedOutput::input_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.input_data) - return _internal_input_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_input_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.input_data) -} -inline std::string* UnblindedOutput::mutable_input_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_input_data(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.input_data) - return _s; -} -inline const std::string& UnblindedOutput::_internal_input_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.input_data_.Get(); -} -inline void UnblindedOutput::_internal_set_input_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.Set(value, GetArena()); -} -inline std::string* UnblindedOutput::_internal_mutable_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.input_data_.Mutable( GetArena()); -} -inline std::string* UnblindedOutput::release_input_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.input_data) - return _impl_.input_data_.Release(); -} -inline void UnblindedOutput::set_allocated_input_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.input_data_.IsDefault()) { - _impl_.input_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.input_data) -} - -// bytes script_private_key = 7; -inline void UnblindedOutput::clear_script_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_private_key_.ClearToEmpty(); -} -inline const std::string& UnblindedOutput::script_private_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.script_private_key) - return _internal_script_private_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_script_private_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_private_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script_private_key) -} -inline std::string* UnblindedOutput::mutable_script_private_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_script_private_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.script_private_key) - return _s; -} -inline const std::string& UnblindedOutput::_internal_script_private_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_private_key_.Get(); -} -inline void UnblindedOutput::_internal_set_script_private_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_private_key_.Set(value, GetArena()); -} -inline std::string* UnblindedOutput::_internal_mutable_script_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.script_private_key_.Mutable( GetArena()); -} -inline std::string* UnblindedOutput::release_script_private_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.script_private_key) - return _impl_.script_private_key_.Release(); -} -inline void UnblindedOutput::set_allocated_script_private_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_private_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.script_private_key_.IsDefault()) { - _impl_.script_private_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.script_private_key) -} - -// bytes sender_offset_public_key = 8; -inline void UnblindedOutput::clear_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.ClearToEmpty(); -} -inline const std::string& UnblindedOutput::sender_offset_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.sender_offset_public_key) - return _internal_sender_offset_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_sender_offset_public_key(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.sender_offset_public_key) -} -inline std::string* UnblindedOutput::mutable_sender_offset_public_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_sender_offset_public_key(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.sender_offset_public_key) - return _s; -} -inline const std::string& UnblindedOutput::_internal_sender_offset_public_key() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.sender_offset_public_key_.Get(); -} -inline void UnblindedOutput::_internal_set_sender_offset_public_key(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.Set(value, GetArena()); -} -inline std::string* UnblindedOutput::_internal_mutable_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.sender_offset_public_key_.Mutable( GetArena()); -} -inline std::string* UnblindedOutput::release_sender_offset_public_key() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.sender_offset_public_key) - return _impl_.sender_offset_public_key_.Release(); -} -inline void UnblindedOutput::set_allocated_sender_offset_public_key(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.sender_offset_public_key_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.sender_offset_public_key_.IsDefault()) { - _impl_.sender_offset_public_key_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.sender_offset_public_key) -} - -// .tari.rpc.ComAndPubSignature metadata_signature = 9; -inline bool UnblindedOutput::has_metadata_signature() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.metadata_signature_ != nullptr); - return value; -} -inline const ::tari::rpc::ComAndPubSignature& UnblindedOutput::_internal_metadata_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::ComAndPubSignature* p = _impl_.metadata_signature_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_ComAndPubSignature_default_instance_); -} -inline const ::tari::rpc::ComAndPubSignature& UnblindedOutput::metadata_signature() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.metadata_signature) - return _internal_metadata_signature(); -} -inline void UnblindedOutput::unsafe_arena_set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); - } - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.UnblindedOutput.metadata_signature) -} -inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::ComAndPubSignature* released = _impl_.metadata_signature_; - _impl_.metadata_signature_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::unsafe_arena_release_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.metadata_signature) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::ComAndPubSignature* temp = _impl_.metadata_signature_; - _impl_.metadata_signature_ = nullptr; - return temp; -} -inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::_internal_mutable_metadata_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.metadata_signature_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::ComAndPubSignature>(GetArena()); - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(p); - } - return _impl_.metadata_signature_; -} -inline ::tari::rpc::ComAndPubSignature* UnblindedOutput::mutable_metadata_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::ComAndPubSignature* _msg = _internal_mutable_metadata_signature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.metadata_signature) - return _msg; -} -inline void UnblindedOutput::set_allocated_metadata_signature(::tari::rpc::ComAndPubSignature* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.metadata_signature_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.metadata_signature_ = reinterpret_cast<::tari::rpc::ComAndPubSignature*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.metadata_signature) -} - -// uint64 script_lock_height = 10; -inline void UnblindedOutput::clear_script_lock_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_lock_height_ = ::uint64_t{0u}; -} -inline ::uint64_t UnblindedOutput::script_lock_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.script_lock_height) - return _internal_script_lock_height(); -} -inline void UnblindedOutput::set_script_lock_height(::uint64_t value) { - _internal_set_script_lock_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.script_lock_height) -} -inline ::uint64_t UnblindedOutput::_internal_script_lock_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.script_lock_height_; -} -inline void UnblindedOutput::_internal_set_script_lock_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.script_lock_height_ = value; -} - -// bytes covenant = 11; -inline void UnblindedOutput::clear_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.ClearToEmpty(); -} -inline const std::string& UnblindedOutput::covenant() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.covenant) - return _internal_covenant(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_covenant(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.covenant) -} -inline std::string* UnblindedOutput::mutable_covenant() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_covenant(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.covenant) - return _s; -} -inline const std::string& UnblindedOutput::_internal_covenant() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.covenant_.Get(); -} -inline void UnblindedOutput::_internal_set_covenant(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.Set(value, GetArena()); -} -inline std::string* UnblindedOutput::_internal_mutable_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.covenant_.Mutable( GetArena()); -} -inline std::string* UnblindedOutput::release_covenant() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.covenant) - return _impl_.covenant_.Release(); -} -inline void UnblindedOutput::set_allocated_covenant(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.covenant_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.covenant_.IsDefault()) { - _impl_.covenant_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.covenant) -} - -// bytes encrypted_data = 12; -inline void UnblindedOutput::clear_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.ClearToEmpty(); -} -inline const std::string& UnblindedOutput::encrypted_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.encrypted_data) - return _internal_encrypted_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE void UnblindedOutput::set_encrypted_data(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.encrypted_data) -} -inline std::string* UnblindedOutput::mutable_encrypted_data() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_encrypted_data(); - // @@protoc_insertion_point(field_mutable:tari.rpc.UnblindedOutput.encrypted_data) - return _s; -} -inline const std::string& UnblindedOutput::_internal_encrypted_data() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.encrypted_data_.Get(); -} -inline void UnblindedOutput::_internal_set_encrypted_data(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.Set(value, GetArena()); -} -inline std::string* UnblindedOutput::_internal_mutable_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.encrypted_data_.Mutable( GetArena()); -} -inline std::string* UnblindedOutput::release_encrypted_data() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.UnblindedOutput.encrypted_data) - return _impl_.encrypted_data_.Release(); -} -inline void UnblindedOutput::set_allocated_encrypted_data(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.encrypted_data_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.encrypted_data_.IsDefault()) { - _impl_.encrypted_data_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.UnblindedOutput.encrypted_data) -} - -// uint64 minimum_value_promise = 13; -inline void UnblindedOutput::clear_minimum_value_promise() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minimum_value_promise_ = ::uint64_t{0u}; -} -inline ::uint64_t UnblindedOutput::minimum_value_promise() const { - // @@protoc_insertion_point(field_get:tari.rpc.UnblindedOutput.minimum_value_promise) - return _internal_minimum_value_promise(); -} -inline void UnblindedOutput::set_minimum_value_promise(::uint64_t value) { - _internal_set_minimum_value_promise(value); - // @@protoc_insertion_point(field_set:tari.rpc.UnblindedOutput.minimum_value_promise) -} -inline ::uint64_t UnblindedOutput::_internal_minimum_value_promise() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.minimum_value_promise_; -} -inline void UnblindedOutput::_internal_set_minimum_value_promise(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.minimum_value_promise_ = value; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari - - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_transaction_2eproto_2epb_2eh diff --git a/external/src/Tari/proto/gRPC/types.pb-c.c b/external/src/Tari/proto/gRPC/types.pb-c.c new file mode 100644 index 00000000..b5f09f51 --- /dev/null +++ b/external/src/Tari/proto/gRPC/types.pb-c.c @@ -0,0 +1,1692 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: types.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "types.pb-c.h" +void tari__rpc__range__init + (Tari__Rpc__Range *message) +{ + static const Tari__Rpc__Range init_value = TARI__RPC__RANGE__INIT; + *message = init_value; +} +size_t tari__rpc__range__get_packed_size + (const Tari__Rpc__Range *message) +{ + assert(message->base.descriptor == &tari__rpc__range__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__range__pack + (const Tari__Rpc__Range *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__range__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__range__pack_to_buffer + (const Tari__Rpc__Range *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__range__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__Range * + tari__rpc__range__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__Range *) + protobuf_c_message_unpack (&tari__rpc__range__descriptor, + allocator, len, data); +} +void tari__rpc__range__free_unpacked + (Tari__Rpc__Range *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__range__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__empty__init + (Tari__Rpc__Empty *message) +{ + static const Tari__Rpc__Empty init_value = TARI__RPC__EMPTY__INIT; + *message = init_value; +} +size_t tari__rpc__empty__get_packed_size + (const Tari__Rpc__Empty *message) +{ + assert(message->base.descriptor == &tari__rpc__empty__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__empty__pack + (const Tari__Rpc__Empty *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__empty__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__empty__pack_to_buffer + (const Tari__Rpc__Empty *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__empty__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__Empty * + tari__rpc__empty__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__Empty *) + protobuf_c_message_unpack (&tari__rpc__empty__descriptor, + allocator, len, data); +} +void tari__rpc__empty__free_unpacked + (Tari__Rpc__Empty *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__empty__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__block_height__init + (Tari__Rpc__BlockHeight *message) +{ + static const Tari__Rpc__BlockHeight init_value = TARI__RPC__BLOCK_HEIGHT__INIT; + *message = init_value; +} +size_t tari__rpc__block_height__get_packed_size + (const Tari__Rpc__BlockHeight *message) +{ + assert(message->base.descriptor == &tari__rpc__block_height__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__block_height__pack + (const Tari__Rpc__BlockHeight *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__block_height__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__block_height__pack_to_buffer + (const Tari__Rpc__BlockHeight *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__block_height__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__BlockHeight * + tari__rpc__block_height__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__BlockHeight *) + protobuf_c_message_unpack (&tari__rpc__block_height__descriptor, + allocator, len, data); +} +void tari__rpc__block_height__free_unpacked + (Tari__Rpc__BlockHeight *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__block_height__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__signature__init + (Tari__Rpc__Signature *message) +{ + static const Tari__Rpc__Signature init_value = TARI__RPC__SIGNATURE__INIT; + *message = init_value; +} +size_t tari__rpc__signature__get_packed_size + (const Tari__Rpc__Signature *message) +{ + assert(message->base.descriptor == &tari__rpc__signature__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__signature__pack + (const Tari__Rpc__Signature *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__signature__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__signature__pack_to_buffer + (const Tari__Rpc__Signature *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__signature__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__Signature * + tari__rpc__signature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__Signature *) + protobuf_c_message_unpack (&tari__rpc__signature__descriptor, + allocator, len, data); +} +void tari__rpc__signature__free_unpacked + (Tari__Rpc__Signature *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__signature__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__com_and_pub_signature__init + (Tari__Rpc__ComAndPubSignature *message) +{ + static const Tari__Rpc__ComAndPubSignature init_value = TARI__RPC__COM_AND_PUB_SIGNATURE__INIT; + *message = init_value; +} +size_t tari__rpc__com_and_pub_signature__get_packed_size + (const Tari__Rpc__ComAndPubSignature *message) +{ + assert(message->base.descriptor == &tari__rpc__com_and_pub_signature__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__com_and_pub_signature__pack + (const Tari__Rpc__ComAndPubSignature *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__com_and_pub_signature__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__com_and_pub_signature__pack_to_buffer + (const Tari__Rpc__ComAndPubSignature *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__com_and_pub_signature__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ComAndPubSignature * + tari__rpc__com_and_pub_signature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ComAndPubSignature *) + protobuf_c_message_unpack (&tari__rpc__com_and_pub_signature__descriptor, + allocator, len, data); +} +void tari__rpc__com_and_pub_signature__free_unpacked + (Tari__Rpc__ComAndPubSignature *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__com_and_pub_signature__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__commitment_signature__init + (Tari__Rpc__CommitmentSignature *message) +{ + static const Tari__Rpc__CommitmentSignature init_value = TARI__RPC__COMMITMENT_SIGNATURE__INIT; + *message = init_value; +} +size_t tari__rpc__commitment_signature__get_packed_size + (const Tari__Rpc__CommitmentSignature *message) +{ + assert(message->base.descriptor == &tari__rpc__commitment_signature__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__commitment_signature__pack + (const Tari__Rpc__CommitmentSignature *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__commitment_signature__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__commitment_signature__pack_to_buffer + (const Tari__Rpc__CommitmentSignature *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__commitment_signature__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__CommitmentSignature * + tari__rpc__commitment_signature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__CommitmentSignature *) + protobuf_c_message_unpack (&tari__rpc__commitment_signature__descriptor, + allocator, len, data); +} +void tari__rpc__commitment_signature__free_unpacked + (Tari__Rpc__CommitmentSignature *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__commitment_signature__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__pow_algorithm_constants__init + (Tari__Rpc__PowAlgorithmConstants *message) +{ + static const Tari__Rpc__PowAlgorithmConstants init_value = TARI__RPC__POW_ALGORITHM_CONSTANTS__INIT; + *message = init_value; +} +size_t tari__rpc__pow_algorithm_constants__get_packed_size + (const Tari__Rpc__PowAlgorithmConstants *message) +{ + assert(message->base.descriptor == &tari__rpc__pow_algorithm_constants__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__pow_algorithm_constants__pack + (const Tari__Rpc__PowAlgorithmConstants *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__pow_algorithm_constants__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__pow_algorithm_constants__pack_to_buffer + (const Tari__Rpc__PowAlgorithmConstants *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__pow_algorithm_constants__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__PowAlgorithmConstants * + tari__rpc__pow_algorithm_constants__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__PowAlgorithmConstants *) + protobuf_c_message_unpack (&tari__rpc__pow_algorithm_constants__descriptor, + allocator, len, data); +} +void tari__rpc__pow_algorithm_constants__free_unpacked + (Tari__Rpc__PowAlgorithmConstants *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__pow_algorithm_constants__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__weight_params__init + (Tari__Rpc__WeightParams *message) +{ + static const Tari__Rpc__WeightParams init_value = TARI__RPC__WEIGHT_PARAMS__INIT; + *message = init_value; +} +size_t tari__rpc__weight_params__get_packed_size + (const Tari__Rpc__WeightParams *message) +{ + assert(message->base.descriptor == &tari__rpc__weight_params__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__weight_params__pack + (const Tari__Rpc__WeightParams *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__weight_params__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__weight_params__pack_to_buffer + (const Tari__Rpc__WeightParams *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__weight_params__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__WeightParams * + tari__rpc__weight_params__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__WeightParams *) + protobuf_c_message_unpack (&tari__rpc__weight_params__descriptor, + allocator, len, data); +} +void tari__rpc__weight_params__free_unpacked + (Tari__Rpc__WeightParams *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__weight_params__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__outputs_version__init + (Tari__Rpc__OutputsVersion *message) +{ + static const Tari__Rpc__OutputsVersion init_value = TARI__RPC__OUTPUTS_VERSION__INIT; + *message = init_value; +} +size_t tari__rpc__outputs_version__get_packed_size + (const Tari__Rpc__OutputsVersion *message) +{ + assert(message->base.descriptor == &tari__rpc__outputs_version__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__outputs_version__pack + (const Tari__Rpc__OutputsVersion *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__outputs_version__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__outputs_version__pack_to_buffer + (const Tari__Rpc__OutputsVersion *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__outputs_version__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__OutputsVersion * + tari__rpc__outputs_version__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__OutputsVersion *) + protobuf_c_message_unpack (&tari__rpc__outputs_version__descriptor, + allocator, len, data); +} +void tari__rpc__outputs_version__free_unpacked + (Tari__Rpc__OutputsVersion *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__outputs_version__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__permitted_range_proofs__init + (Tari__Rpc__PermittedRangeProofs *message) +{ + static const Tari__Rpc__PermittedRangeProofs init_value = TARI__RPC__PERMITTED_RANGE_PROOFS__INIT; + *message = init_value; +} +size_t tari__rpc__permitted_range_proofs__get_packed_size + (const Tari__Rpc__PermittedRangeProofs *message) +{ + assert(message->base.descriptor == &tari__rpc__permitted_range_proofs__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__permitted_range_proofs__pack + (const Tari__Rpc__PermittedRangeProofs *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__permitted_range_proofs__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__permitted_range_proofs__pack_to_buffer + (const Tari__Rpc__PermittedRangeProofs *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__permitted_range_proofs__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__PermittedRangeProofs * + tari__rpc__permitted_range_proofs__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__PermittedRangeProofs *) + protobuf_c_message_unpack (&tari__rpc__permitted_range_proofs__descriptor, + allocator, len, data); +} +void tari__rpc__permitted_range_proofs__free_unpacked + (Tari__Rpc__PermittedRangeProofs *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__permitted_range_proofs__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__range_proof__init + (Tari__Rpc__RangeProof *message) +{ + static const Tari__Rpc__RangeProof init_value = TARI__RPC__RANGE_PROOF__INIT; + *message = init_value; +} +size_t tari__rpc__range_proof__get_packed_size + (const Tari__Rpc__RangeProof *message) +{ + assert(message->base.descriptor == &tari__rpc__range_proof__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__range_proof__pack + (const Tari__Rpc__RangeProof *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__range_proof__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__range_proof__pack_to_buffer + (const Tari__Rpc__RangeProof *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__range_proof__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__RangeProof * + tari__rpc__range_proof__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__RangeProof *) + protobuf_c_message_unpack (&tari__rpc__range_proof__descriptor, + allocator, len, data); +} +void tari__rpc__range_proof__free_unpacked + (Tari__Rpc__RangeProof *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__range_proof__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void tari__rpc__consensus_constants__proof_of_work_entry__init + (Tari__Rpc__ConsensusConstants__ProofOfWorkEntry *message) +{ + static const Tari__Rpc__ConsensusConstants__ProofOfWorkEntry init_value = TARI__RPC__CONSENSUS_CONSTANTS__PROOF_OF_WORK_ENTRY__INIT; + *message = init_value; +} +void tari__rpc__consensus_constants__init + (Tari__Rpc__ConsensusConstants *message) +{ + static const Tari__Rpc__ConsensusConstants init_value = TARI__RPC__CONSENSUS_CONSTANTS__INIT; + *message = init_value; +} +size_t tari__rpc__consensus_constants__get_packed_size + (const Tari__Rpc__ConsensusConstants *message) +{ + assert(message->base.descriptor == &tari__rpc__consensus_constants__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tari__rpc__consensus_constants__pack + (const Tari__Rpc__ConsensusConstants *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tari__rpc__consensus_constants__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tari__rpc__consensus_constants__pack_to_buffer + (const Tari__Rpc__ConsensusConstants *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tari__rpc__consensus_constants__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tari__Rpc__ConsensusConstants * + tari__rpc__consensus_constants__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tari__Rpc__ConsensusConstants *) + protobuf_c_message_unpack (&tari__rpc__consensus_constants__descriptor, + allocator, len, data); +} +void tari__rpc__consensus_constants__free_unpacked + (Tari__Rpc__ConsensusConstants *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tari__rpc__consensus_constants__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tari__rpc__range__field_descriptors[2] = +{ + { + "min", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Range, min), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "max", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Range, max), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__range__field_indices_by_name[] = { + 1, /* field[1] = max */ + 0, /* field[0] = min */ +}; +static const ProtobufCIntRange tari__rpc__range__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__range__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.Range", + "Range", + "Tari__Rpc__Range", + "tari.rpc", + sizeof(Tari__Rpc__Range), + 2, + tari__rpc__range__field_descriptors, + tari__rpc__range__field_indices_by_name, + 1, tari__rpc__range__number_ranges, + (ProtobufCMessageInit) tari__rpc__range__init, + NULL,NULL,NULL /* reserved[123] */ +}; +#define tari__rpc__empty__field_descriptors NULL +#define tari__rpc__empty__field_indices_by_name NULL +#define tari__rpc__empty__number_ranges NULL +const ProtobufCMessageDescriptor tari__rpc__empty__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.Empty", + "Empty", + "Tari__Rpc__Empty", + "tari.rpc", + sizeof(Tari__Rpc__Empty), + 0, + tari__rpc__empty__field_descriptors, + tari__rpc__empty__field_indices_by_name, + 0, tari__rpc__empty__number_ranges, + (ProtobufCMessageInit) tari__rpc__empty__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__block_height__field_descriptors[1] = +{ + { + "block_height", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__BlockHeight, block_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__block_height__field_indices_by_name[] = { + 0, /* field[0] = block_height */ +}; +static const ProtobufCIntRange tari__rpc__block_height__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__block_height__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.BlockHeight", + "BlockHeight", + "Tari__Rpc__BlockHeight", + "tari.rpc", + sizeof(Tari__Rpc__BlockHeight), + 1, + tari__rpc__block_height__field_descriptors, + tari__rpc__block_height__field_indices_by_name, + 1, tari__rpc__block_height__number_ranges, + (ProtobufCMessageInit) tari__rpc__block_height__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__signature__field_descriptors[2] = +{ + { + "public_nonce", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Signature, public_nonce), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "signature", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__Signature, signature), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__signature__field_indices_by_name[] = { + 0, /* field[0] = public_nonce */ + 1, /* field[1] = signature */ +}; +static const ProtobufCIntRange tari__rpc__signature__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__signature__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.Signature", + "Signature", + "Tari__Rpc__Signature", + "tari.rpc", + sizeof(Tari__Rpc__Signature), + 2, + tari__rpc__signature__field_descriptors, + tari__rpc__signature__field_indices_by_name, + 1, tari__rpc__signature__number_ranges, + (ProtobufCMessageInit) tari__rpc__signature__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__com_and_pub_signature__field_descriptors[5] = +{ + { + "ephemeral_commitment", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ComAndPubSignature, ephemeral_commitment), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ephemeral_pubkey", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ComAndPubSignature, ephemeral_pubkey), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "u_a", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ComAndPubSignature, u_a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "u_x", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ComAndPubSignature, u_x), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "u_y", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ComAndPubSignature, u_y), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__com_and_pub_signature__field_indices_by_name[] = { + 0, /* field[0] = ephemeral_commitment */ + 1, /* field[1] = ephemeral_pubkey */ + 2, /* field[2] = u_a */ + 3, /* field[3] = u_x */ + 4, /* field[4] = u_y */ +}; +static const ProtobufCIntRange tari__rpc__com_and_pub_signature__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor tari__rpc__com_and_pub_signature__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ComAndPubSignature", + "ComAndPubSignature", + "Tari__Rpc__ComAndPubSignature", + "tari.rpc", + sizeof(Tari__Rpc__ComAndPubSignature), + 5, + tari__rpc__com_and_pub_signature__field_descriptors, + tari__rpc__com_and_pub_signature__field_indices_by_name, + 1, tari__rpc__com_and_pub_signature__number_ranges, + (ProtobufCMessageInit) tari__rpc__com_and_pub_signature__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__commitment_signature__field_descriptors[3] = +{ + { + "public_nonce", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__CommitmentSignature, public_nonce), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "u", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__CommitmentSignature, u), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "v", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__CommitmentSignature, v), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__commitment_signature__field_indices_by_name[] = { + 0, /* field[0] = public_nonce */ + 1, /* field[1] = u */ + 2, /* field[2] = v */ +}; +static const ProtobufCIntRange tari__rpc__commitment_signature__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__commitment_signature__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.CommitmentSignature", + "CommitmentSignature", + "Tari__Rpc__CommitmentSignature", + "tari.rpc", + sizeof(Tari__Rpc__CommitmentSignature), + 3, + tari__rpc__commitment_signature__field_descriptors, + tari__rpc__commitment_signature__field_indices_by_name, + 1, tari__rpc__commitment_signature__number_ranges, + (ProtobufCMessageInit) tari__rpc__commitment_signature__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__pow_algorithm_constants__field_descriptors[3] = +{ + { + "min_difficulty", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__PowAlgorithmConstants, min_difficulty), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "max_difficulty", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__PowAlgorithmConstants, max_difficulty), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "target_time", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__PowAlgorithmConstants, target_time), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__pow_algorithm_constants__field_indices_by_name[] = { + 1, /* field[1] = max_difficulty */ + 0, /* field[0] = min_difficulty */ + 2, /* field[2] = target_time */ +}; +static const ProtobufCIntRange tari__rpc__pow_algorithm_constants__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tari__rpc__pow_algorithm_constants__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.PowAlgorithmConstants", + "PowAlgorithmConstants", + "Tari__Rpc__PowAlgorithmConstants", + "tari.rpc", + sizeof(Tari__Rpc__PowAlgorithmConstants), + 3, + tari__rpc__pow_algorithm_constants__field_descriptors, + tari__rpc__pow_algorithm_constants__field_indices_by_name, + 1, tari__rpc__pow_algorithm_constants__number_ranges, + (ProtobufCMessageInit) tari__rpc__pow_algorithm_constants__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__weight_params__field_descriptors[4] = +{ + { + "kernel_weight", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__WeightParams, kernel_weight), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "input_weight", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__WeightParams, input_weight), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "output_weight", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__WeightParams, output_weight), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "features_and_scripts_bytes_per_gram", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__WeightParams, features_and_scripts_bytes_per_gram), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__weight_params__field_indices_by_name[] = { + 3, /* field[3] = features_and_scripts_bytes_per_gram */ + 1, /* field[1] = input_weight */ + 0, /* field[0] = kernel_weight */ + 2, /* field[2] = output_weight */ +}; +static const ProtobufCIntRange tari__rpc__weight_params__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor tari__rpc__weight_params__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.WeightParams", + "WeightParams", + "Tari__Rpc__WeightParams", + "tari.rpc", + sizeof(Tari__Rpc__WeightParams), + 4, + tari__rpc__weight_params__field_descriptors, + tari__rpc__weight_params__field_indices_by_name, + 1, tari__rpc__weight_params__number_ranges, + (ProtobufCMessageInit) tari__rpc__weight_params__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__outputs_version__field_descriptors[2] = +{ + { + "outputs", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputsVersion, outputs), + &tari__rpc__range__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "features", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__OutputsVersion, features), + &tari__rpc__range__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__outputs_version__field_indices_by_name[] = { + 1, /* field[1] = features */ + 0, /* field[0] = outputs */ +}; +static const ProtobufCIntRange tari__rpc__outputs_version__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__outputs_version__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.OutputsVersion", + "OutputsVersion", + "Tari__Rpc__OutputsVersion", + "tari.rpc", + sizeof(Tari__Rpc__OutputsVersion), + 2, + tari__rpc__outputs_version__field_descriptors, + tari__rpc__outputs_version__field_indices_by_name, + 1, tari__rpc__outputs_version__number_ranges, + (ProtobufCMessageInit) tari__rpc__outputs_version__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__permitted_range_proofs__field_descriptors[2] = +{ + { + "output_type", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__PermittedRangeProofs, output_type), + &tari__rpc__output_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "range_proof_types", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_ENUM, + offsetof(Tari__Rpc__PermittedRangeProofs, n_range_proof_types), + offsetof(Tari__Rpc__PermittedRangeProofs, range_proof_types), + &tari__rpc__range_proof_type__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__permitted_range_proofs__field_indices_by_name[] = { + 0, /* field[0] = output_type */ + 1, /* field[1] = range_proof_types */ +}; +static const ProtobufCIntRange tari__rpc__permitted_range_proofs__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__permitted_range_proofs__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.PermittedRangeProofs", + "PermittedRangeProofs", + "Tari__Rpc__PermittedRangeProofs", + "tari.rpc", + sizeof(Tari__Rpc__PermittedRangeProofs), + 2, + tari__rpc__permitted_range_proofs__field_descriptors, + tari__rpc__permitted_range_proofs__field_indices_by_name, + 1, tari__rpc__permitted_range_proofs__number_ranges, + (ProtobufCMessageInit) tari__rpc__permitted_range_proofs__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__range_proof__field_descriptors[1] = +{ + { + "proof_bytes", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BYTES, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__RangeProof, proof_bytes), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__range_proof__field_indices_by_name[] = { + 0, /* field[0] = proof_bytes */ +}; +static const ProtobufCIntRange tari__rpc__range_proof__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tari__rpc__range_proof__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.RangeProof", + "RangeProof", + "Tari__Rpc__RangeProof", + "tari.rpc", + sizeof(Tari__Rpc__RangeProof), + 1, + tari__rpc__range_proof__field_descriptors, + tari__rpc__range_proof__field_indices_by_name, + 1, tari__rpc__range_proof__number_ranges, + (ProtobufCMessageInit) tari__rpc__range_proof__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__consensus_constants__proof_of_work_entry__field_descriptors[2] = +{ + { + "key", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants__ProofOfWorkEntry, key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "value", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants__ProofOfWorkEntry, value), + &tari__rpc__pow_algorithm_constants__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__consensus_constants__proof_of_work_entry__field_indices_by_name[] = { + 0, /* field[0] = key */ + 1, /* field[1] = value */ +}; +static const ProtobufCIntRange tari__rpc__consensus_constants__proof_of_work_entry__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tari__rpc__consensus_constants__proof_of_work_entry__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ConsensusConstants.ProofOfWorkEntry", + "ProofOfWorkEntry", + "Tari__Rpc__ConsensusConstants__ProofOfWorkEntry", + "tari.rpc", + sizeof(Tari__Rpc__ConsensusConstants__ProofOfWorkEntry), + 2, + tari__rpc__consensus_constants__proof_of_work_entry__field_descriptors, + tari__rpc__consensus_constants__proof_of_work_entry__field_indices_by_name, + 1, tari__rpc__consensus_constants__proof_of_work_entry__number_ranges, + (ProtobufCMessageInit) tari__rpc__consensus_constants__proof_of_work_entry__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor tari__rpc__consensus_constants__field_descriptors[31] = +{ + { + "coinbase_min_maturity", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, coinbase_min_maturity), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "blockchain_version", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT32, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, blockchain_version), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "future_time_limit", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, future_time_limit), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "difficulty_block_window", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, difficulty_block_window), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "max_block_transaction_weight", + 7, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, max_block_transaction_weight), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "pow_algo_count", + 8, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, pow_algo_count), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "median_timestamp_count", + 9, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, median_timestamp_count), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "emission_initial", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, emission_initial), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "emission_decay", + 11, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_UINT64, + offsetof(Tari__Rpc__ConsensusConstants, n_emission_decay), + offsetof(Tari__Rpc__ConsensusConstants, emission_decay), + NULL, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "emission_tail", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, emission_tail), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "min_sha3x_pow_difficulty", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, min_sha3x_pow_difficulty), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "block_weight_inputs", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, block_weight_inputs), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "block_weight_outputs", + 15, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, block_weight_outputs), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "block_weight_kernels", + 16, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, block_weight_kernels), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "faucet_value", + 17, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, faucet_value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "max_script_byte_size", + 18, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, max_script_byte_size), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "validator_node_validity_period", + 19, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, validator_node_validity_period), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "effective_from_height", + 20, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, effective_from_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "valid_blockchain_version_range", + 21, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, valid_blockchain_version_range), + &tari__rpc__range__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "max_randomx_seed_height", + 22, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, max_randomx_seed_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "proof_of_work", + 23, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__ConsensusConstants, n_proof_of_work), + offsetof(Tari__Rpc__ConsensusConstants, proof_of_work), + &tari__rpc__consensus_constants__proof_of_work_entry__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "transaction_weight", + 24, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, transaction_weight), + &tari__rpc__weight_params__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "input_version_range", + 26, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, input_version_range), + &tari__rpc__range__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "output_version_range", + 27, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, output_version_range), + &tari__rpc__outputs_version__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "kernel_version_range", + 28, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, kernel_version_range), + &tari__rpc__range__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "permitted_output_types", + 29, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_ENUM, + offsetof(Tari__Rpc__ConsensusConstants, n_permitted_output_types), + offsetof(Tari__Rpc__ConsensusConstants, permitted_output_types), + &tari__rpc__output_type__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_PACKED, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "epoch_length", + 30, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, epoch_length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "validator_node_registration_min_deposit_amount", + 31, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, validator_node_registration_min_deposit_amount), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "validator_node_registration_min_lock_height", + 32, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, validator_node_registration_min_lock_height), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "validator_node_registration_shuffle_interval_epoch", + 33, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_UINT64, + 0, /* quantifier_offset */ + offsetof(Tari__Rpc__ConsensusConstants, validator_node_registration_shuffle_interval_epoch), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "permitted_range_proof_types", + 34, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tari__Rpc__ConsensusConstants, n_permitted_range_proof_types), + offsetof(Tari__Rpc__ConsensusConstants, permitted_range_proof_types), + &tari__rpc__permitted_range_proofs__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tari__rpc__consensus_constants__field_indices_by_name[] = { + 11, /* field[11] = block_weight_inputs */ + 13, /* field[13] = block_weight_kernels */ + 12, /* field[12] = block_weight_outputs */ + 1, /* field[1] = blockchain_version */ + 0, /* field[0] = coinbase_min_maturity */ + 3, /* field[3] = difficulty_block_window */ + 17, /* field[17] = effective_from_height */ + 8, /* field[8] = emission_decay */ + 7, /* field[7] = emission_initial */ + 9, /* field[9] = emission_tail */ + 26, /* field[26] = epoch_length */ + 14, /* field[14] = faucet_value */ + 2, /* field[2] = future_time_limit */ + 22, /* field[22] = input_version_range */ + 24, /* field[24] = kernel_version_range */ + 4, /* field[4] = max_block_transaction_weight */ + 19, /* field[19] = max_randomx_seed_height */ + 15, /* field[15] = max_script_byte_size */ + 6, /* field[6] = median_timestamp_count */ + 10, /* field[10] = min_sha3x_pow_difficulty */ + 23, /* field[23] = output_version_range */ + 25, /* field[25] = permitted_output_types */ + 30, /* field[30] = permitted_range_proof_types */ + 5, /* field[5] = pow_algo_count */ + 20, /* field[20] = proof_of_work */ + 21, /* field[21] = transaction_weight */ + 18, /* field[18] = valid_blockchain_version_range */ + 27, /* field[27] = validator_node_registration_min_deposit_amount */ + 28, /* field[28] = validator_node_registration_min_lock_height */ + 29, /* field[29] = validator_node_registration_shuffle_interval_epoch */ + 16, /* field[16] = validator_node_validity_period */ +}; +static const ProtobufCIntRange tari__rpc__consensus_constants__number_ranges[4 + 1] = +{ + { 1, 0 }, + { 5, 3 }, + { 7, 4 }, + { 26, 22 }, + { 0, 31 } +}; +const ProtobufCMessageDescriptor tari__rpc__consensus_constants__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "tari.rpc.ConsensusConstants", + "ConsensusConstants", + "Tari__Rpc__ConsensusConstants", + "tari.rpc", + sizeof(Tari__Rpc__ConsensusConstants), + 31, + tari__rpc__consensus_constants__field_descriptors, + tari__rpc__consensus_constants__field_indices_by_name, + 4, tari__rpc__consensus_constants__number_ranges, + (ProtobufCMessageInit) tari__rpc__consensus_constants__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCEnumValue tari__rpc__output_type__enum_values_by_number[5] = +{ + { "STANDARD", "TARI__RPC__OUTPUT_TYPE__STANDARD", 0 }, + { "COINBASE", "TARI__RPC__OUTPUT_TYPE__COINBASE", 1 }, + { "BURN", "TARI__RPC__OUTPUT_TYPE__BURN", 2 }, + { "VALIDATOR_NODE_REGISTRATION", "TARI__RPC__OUTPUT_TYPE__VALIDATOR_NODE_REGISTRATION", 3 }, + { "CODE_TEMPLATE_REGISTRATION", "TARI__RPC__OUTPUT_TYPE__CODE_TEMPLATE_REGISTRATION", 4 }, +}; +static const ProtobufCIntRange tari__rpc__output_type__value_ranges[] = { +{0, 0},{0, 5} +}; +static const ProtobufCEnumValueIndex tari__rpc__output_type__enum_values_by_name[5] = +{ + { "BURN", 2 }, + { "CODE_TEMPLATE_REGISTRATION", 4 }, + { "COINBASE", 1 }, + { "STANDARD", 0 }, + { "VALIDATOR_NODE_REGISTRATION", 3 }, +}; +const ProtobufCEnumDescriptor tari__rpc__output_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.OutputType", + "OutputType", + "Tari__Rpc__OutputType", + "tari.rpc", + 5, + tari__rpc__output_type__enum_values_by_number, + 5, + tari__rpc__output_type__enum_values_by_name, + 1, + tari__rpc__output_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCEnumValue tari__rpc__range_proof_type__enum_values_by_number[2] = +{ + { "BULLETPROOF_PLUS", "TARI__RPC__RANGE_PROOF_TYPE__BULLETPROOF_PLUS", 0 }, + { "REVEALED_VALUE", "TARI__RPC__RANGE_PROOF_TYPE__REVEALED_VALUE", 1 }, +}; +static const ProtobufCIntRange tari__rpc__range_proof_type__value_ranges[] = { +{0, 0},{0, 2} +}; +static const ProtobufCEnumValueIndex tari__rpc__range_proof_type__enum_values_by_name[2] = +{ + { "BULLETPROOF_PLUS", 0 }, + { "REVEALED_VALUE", 1 }, +}; +const ProtobufCEnumDescriptor tari__rpc__range_proof_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "tari.rpc.RangeProofType", + "RangeProofType", + "Tari__Rpc__RangeProofType", + "tari.rpc", + 2, + tari__rpc__range_proof_type__enum_values_by_number, + 2, + tari__rpc__range_proof_type__enum_values_by_name, + 1, + tari__rpc__range_proof_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/external/src/Tari/proto/gRPC/types.pb-c.h b/external/src/Tari/proto/gRPC/types.pb-c.h new file mode 100644 index 00000000..4b446ad1 --- /dev/null +++ b/external/src/Tari/proto/gRPC/types.pb-c.h @@ -0,0 +1,570 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: types.proto */ + +#ifndef PROTOBUF_C_types_2eproto__INCLUDED +#define PROTOBUF_C_types_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Tari__Rpc__Range Tari__Rpc__Range; +typedef struct _Tari__Rpc__Empty Tari__Rpc__Empty; +typedef struct _Tari__Rpc__BlockHeight Tari__Rpc__BlockHeight; +typedef struct _Tari__Rpc__Signature Tari__Rpc__Signature; +typedef struct _Tari__Rpc__ComAndPubSignature Tari__Rpc__ComAndPubSignature; +typedef struct _Tari__Rpc__CommitmentSignature Tari__Rpc__CommitmentSignature; +typedef struct _Tari__Rpc__PowAlgorithmConstants Tari__Rpc__PowAlgorithmConstants; +typedef struct _Tari__Rpc__WeightParams Tari__Rpc__WeightParams; +typedef struct _Tari__Rpc__OutputsVersion Tari__Rpc__OutputsVersion; +typedef struct _Tari__Rpc__PermittedRangeProofs Tari__Rpc__PermittedRangeProofs; +typedef struct _Tari__Rpc__RangeProof Tari__Rpc__RangeProof; +typedef struct _Tari__Rpc__ConsensusConstants Tari__Rpc__ConsensusConstants; +typedef struct _Tari__Rpc__ConsensusConstants__ProofOfWorkEntry Tari__Rpc__ConsensusConstants__ProofOfWorkEntry; + + +/* --- enums --- */ + +/* + * / Output types + */ +typedef enum _Tari__Rpc__OutputType { + TARI__RPC__OUTPUT_TYPE__STANDARD = 0, + TARI__RPC__OUTPUT_TYPE__COINBASE = 1, + TARI__RPC__OUTPUT_TYPE__BURN = 2, + TARI__RPC__OUTPUT_TYPE__VALIDATOR_NODE_REGISTRATION = 3, + TARI__RPC__OUTPUT_TYPE__CODE_TEMPLATE_REGISTRATION = 4 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__OUTPUT_TYPE) +} Tari__Rpc__OutputType; +/* + * / Range proof types + */ +typedef enum _Tari__Rpc__RangeProofType { + TARI__RPC__RANGE_PROOF_TYPE__BULLETPROOF_PLUS = 0, + TARI__RPC__RANGE_PROOF_TYPE__REVEALED_VALUE = 1 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TARI__RPC__RANGE_PROOF_TYPE) +} Tari__Rpc__RangeProofType; + +/* --- messages --- */ + +/* + * / An unsigned range interface to more accurately represent Rust native Range's + */ +struct _Tari__Rpc__Range +{ + ProtobufCMessage base; + uint64_t min; + uint64_t max; +}; +#define TARI__RPC__RANGE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__range__descriptor) \ + , 0, 0 } + + +/* + * / An Empty placeholder for endpoints without request parameters + */ +struct _Tari__Rpc__Empty +{ + ProtobufCMessage base; +}; +#define TARI__RPC__EMPTY__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__empty__descriptor) \ + } + + +/* + * / Define an interface for block height + */ +struct _Tari__Rpc__BlockHeight +{ + ProtobufCMessage base; + uint64_t block_height; +}; +#define TARI__RPC__BLOCK_HEIGHT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__block_height__descriptor) \ + , 0 } + + +/* + * Define the explicit Signature implementation for the Minotari base layer. A different signature scheme can be + * employed by redefining this type. + */ +struct _Tari__Rpc__Signature +{ + ProtobufCMessage base; + ProtobufCBinaryData public_nonce; + ProtobufCBinaryData signature; +}; +#define TARI__RPC__SIGNATURE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__signature__descriptor) \ + , {0,NULL}, {0,NULL} } + + +/* + * Define the explicit ComAndPubSignature implementation for the Minotari base layer. A different signature scheme can be + * employed by redefining this type. + */ +struct _Tari__Rpc__ComAndPubSignature +{ + ProtobufCMessage base; + ProtobufCBinaryData ephemeral_commitment; + ProtobufCBinaryData ephemeral_pubkey; + ProtobufCBinaryData u_a; + ProtobufCBinaryData u_x; + ProtobufCBinaryData u_y; +}; +#define TARI__RPC__COM_AND_PUB_SIGNATURE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__com_and_pub_signature__descriptor) \ + , {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL}, {0,NULL} } + + +/* + * Define the explicit CommitmentSignature implementation for the Minotari base layer. A different signature scheme can be + * employed by redefining this type + */ +struct _Tari__Rpc__CommitmentSignature +{ + ProtobufCMessage base; + ProtobufCBinaryData public_nonce; + ProtobufCBinaryData u; + ProtobufCBinaryData v; +}; +#define TARI__RPC__COMMITMENT_SIGNATURE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__commitment_signature__descriptor) \ + , {0,NULL}, {0,NULL}, {0,NULL} } + + +/* + * / PoW Algorithm constants + */ +struct _Tari__Rpc__PowAlgorithmConstants +{ + ProtobufCMessage base; + uint64_t min_difficulty; + uint64_t max_difficulty; + uint64_t target_time; +}; +#define TARI__RPC__POW_ALGORITHM_CONSTANTS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__pow_algorithm_constants__descriptor) \ + , 0, 0, 0 } + + +/* + * / Weight params + */ +struct _Tari__Rpc__WeightParams +{ + ProtobufCMessage base; + uint64_t kernel_weight; + uint64_t input_weight; + uint64_t output_weight; + uint64_t features_and_scripts_bytes_per_gram; +}; +#define TARI__RPC__WEIGHT_PARAMS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__weight_params__descriptor) \ + , 0, 0, 0, 0 } + + +/* + * / Output version + */ +struct _Tari__Rpc__OutputsVersion +{ + ProtobufCMessage base; + Tari__Rpc__Range *outputs; + Tari__Rpc__Range *features; +}; +#define TARI__RPC__OUTPUTS_VERSION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__outputs_version__descriptor) \ + , NULL, NULL } + + +struct _Tari__Rpc__PermittedRangeProofs +{ + ProtobufCMessage base; + Tari__Rpc__OutputType output_type; + size_t n_range_proof_types; + Tari__Rpc__RangeProofType *range_proof_types; +}; +#define TARI__RPC__PERMITTED_RANGE_PROOFS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__permitted_range_proofs__descriptor) \ + , TARI__RPC__OUTPUT_TYPE__STANDARD, 0,NULL } + + +/* + * / Range proof + */ +struct _Tari__Rpc__RangeProof +{ + ProtobufCMessage base; + ProtobufCBinaryData proof_bytes; +}; +#define TARI__RPC__RANGE_PROOF__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__range_proof__descriptor) \ + , {0,NULL} } + + +struct _Tari__Rpc__ConsensusConstants__ProofOfWorkEntry +{ + ProtobufCMessage base; + uint32_t key; + Tari__Rpc__PowAlgorithmConstants *value; +}; +#define TARI__RPC__CONSENSUS_CONSTANTS__PROOF_OF_WORK_ENTRY__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__consensus_constants__proof_of_work_entry__descriptor) \ + , 0, NULL } + + +/* + * / Consensus Constants response + */ +struct _Tari__Rpc__ConsensusConstants +{ + ProtobufCMessage base; + uint64_t coinbase_min_maturity; + uint32_t blockchain_version; + uint64_t future_time_limit; + uint64_t difficulty_block_window; + uint64_t max_block_transaction_weight; + uint64_t pow_algo_count; + uint64_t median_timestamp_count; + uint64_t emission_initial; + size_t n_emission_decay; + uint64_t *emission_decay; + uint64_t emission_tail; + uint64_t min_sha3x_pow_difficulty; + uint64_t block_weight_inputs; + uint64_t block_weight_outputs; + uint64_t block_weight_kernels; + uint64_t faucet_value; + uint64_t max_script_byte_size; + uint64_t validator_node_validity_period; + uint64_t effective_from_height; + Tari__Rpc__Range *valid_blockchain_version_range; + uint64_t max_randomx_seed_height; + size_t n_proof_of_work; + Tari__Rpc__ConsensusConstants__ProofOfWorkEntry **proof_of_work; + Tari__Rpc__WeightParams *transaction_weight; + Tari__Rpc__Range *input_version_range; + Tari__Rpc__OutputsVersion *output_version_range; + Tari__Rpc__Range *kernel_version_range; + size_t n_permitted_output_types; + Tari__Rpc__OutputType *permitted_output_types; + uint64_t epoch_length; + uint64_t validator_node_registration_min_deposit_amount; + uint64_t validator_node_registration_min_lock_height; + uint64_t validator_node_registration_shuffle_interval_epoch; + size_t n_permitted_range_proof_types; + Tari__Rpc__PermittedRangeProofs **permitted_range_proof_types; +}; +#define TARI__RPC__CONSENSUS_CONSTANTS__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tari__rpc__consensus_constants__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0,NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, 0,NULL, NULL, NULL, NULL, NULL, 0,NULL, 0, 0, 0, 0, 0,NULL } + + +/* Tari__Rpc__Range methods */ +void tari__rpc__range__init + (Tari__Rpc__Range *message); +size_t tari__rpc__range__get_packed_size + (const Tari__Rpc__Range *message); +size_t tari__rpc__range__pack + (const Tari__Rpc__Range *message, + uint8_t *out); +size_t tari__rpc__range__pack_to_buffer + (const Tari__Rpc__Range *message, + ProtobufCBuffer *buffer); +Tari__Rpc__Range * + tari__rpc__range__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__range__free_unpacked + (Tari__Rpc__Range *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__Empty methods */ +void tari__rpc__empty__init + (Tari__Rpc__Empty *message); +size_t tari__rpc__empty__get_packed_size + (const Tari__Rpc__Empty *message); +size_t tari__rpc__empty__pack + (const Tari__Rpc__Empty *message, + uint8_t *out); +size_t tari__rpc__empty__pack_to_buffer + (const Tari__Rpc__Empty *message, + ProtobufCBuffer *buffer); +Tari__Rpc__Empty * + tari__rpc__empty__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__empty__free_unpacked + (Tari__Rpc__Empty *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__BlockHeight methods */ +void tari__rpc__block_height__init + (Tari__Rpc__BlockHeight *message); +size_t tari__rpc__block_height__get_packed_size + (const Tari__Rpc__BlockHeight *message); +size_t tari__rpc__block_height__pack + (const Tari__Rpc__BlockHeight *message, + uint8_t *out); +size_t tari__rpc__block_height__pack_to_buffer + (const Tari__Rpc__BlockHeight *message, + ProtobufCBuffer *buffer); +Tari__Rpc__BlockHeight * + tari__rpc__block_height__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__block_height__free_unpacked + (Tari__Rpc__BlockHeight *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__Signature methods */ +void tari__rpc__signature__init + (Tari__Rpc__Signature *message); +size_t tari__rpc__signature__get_packed_size + (const Tari__Rpc__Signature *message); +size_t tari__rpc__signature__pack + (const Tari__Rpc__Signature *message, + uint8_t *out); +size_t tari__rpc__signature__pack_to_buffer + (const Tari__Rpc__Signature *message, + ProtobufCBuffer *buffer); +Tari__Rpc__Signature * + tari__rpc__signature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__signature__free_unpacked + (Tari__Rpc__Signature *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ComAndPubSignature methods */ +void tari__rpc__com_and_pub_signature__init + (Tari__Rpc__ComAndPubSignature *message); +size_t tari__rpc__com_and_pub_signature__get_packed_size + (const Tari__Rpc__ComAndPubSignature *message); +size_t tari__rpc__com_and_pub_signature__pack + (const Tari__Rpc__ComAndPubSignature *message, + uint8_t *out); +size_t tari__rpc__com_and_pub_signature__pack_to_buffer + (const Tari__Rpc__ComAndPubSignature *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ComAndPubSignature * + tari__rpc__com_and_pub_signature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__com_and_pub_signature__free_unpacked + (Tari__Rpc__ComAndPubSignature *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__CommitmentSignature methods */ +void tari__rpc__commitment_signature__init + (Tari__Rpc__CommitmentSignature *message); +size_t tari__rpc__commitment_signature__get_packed_size + (const Tari__Rpc__CommitmentSignature *message); +size_t tari__rpc__commitment_signature__pack + (const Tari__Rpc__CommitmentSignature *message, + uint8_t *out); +size_t tari__rpc__commitment_signature__pack_to_buffer + (const Tari__Rpc__CommitmentSignature *message, + ProtobufCBuffer *buffer); +Tari__Rpc__CommitmentSignature * + tari__rpc__commitment_signature__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__commitment_signature__free_unpacked + (Tari__Rpc__CommitmentSignature *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__PowAlgorithmConstants methods */ +void tari__rpc__pow_algorithm_constants__init + (Tari__Rpc__PowAlgorithmConstants *message); +size_t tari__rpc__pow_algorithm_constants__get_packed_size + (const Tari__Rpc__PowAlgorithmConstants *message); +size_t tari__rpc__pow_algorithm_constants__pack + (const Tari__Rpc__PowAlgorithmConstants *message, + uint8_t *out); +size_t tari__rpc__pow_algorithm_constants__pack_to_buffer + (const Tari__Rpc__PowAlgorithmConstants *message, + ProtobufCBuffer *buffer); +Tari__Rpc__PowAlgorithmConstants * + tari__rpc__pow_algorithm_constants__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__pow_algorithm_constants__free_unpacked + (Tari__Rpc__PowAlgorithmConstants *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__WeightParams methods */ +void tari__rpc__weight_params__init + (Tari__Rpc__WeightParams *message); +size_t tari__rpc__weight_params__get_packed_size + (const Tari__Rpc__WeightParams *message); +size_t tari__rpc__weight_params__pack + (const Tari__Rpc__WeightParams *message, + uint8_t *out); +size_t tari__rpc__weight_params__pack_to_buffer + (const Tari__Rpc__WeightParams *message, + ProtobufCBuffer *buffer); +Tari__Rpc__WeightParams * + tari__rpc__weight_params__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__weight_params__free_unpacked + (Tari__Rpc__WeightParams *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__OutputsVersion methods */ +void tari__rpc__outputs_version__init + (Tari__Rpc__OutputsVersion *message); +size_t tari__rpc__outputs_version__get_packed_size + (const Tari__Rpc__OutputsVersion *message); +size_t tari__rpc__outputs_version__pack + (const Tari__Rpc__OutputsVersion *message, + uint8_t *out); +size_t tari__rpc__outputs_version__pack_to_buffer + (const Tari__Rpc__OutputsVersion *message, + ProtobufCBuffer *buffer); +Tari__Rpc__OutputsVersion * + tari__rpc__outputs_version__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__outputs_version__free_unpacked + (Tari__Rpc__OutputsVersion *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__PermittedRangeProofs methods */ +void tari__rpc__permitted_range_proofs__init + (Tari__Rpc__PermittedRangeProofs *message); +size_t tari__rpc__permitted_range_proofs__get_packed_size + (const Tari__Rpc__PermittedRangeProofs *message); +size_t tari__rpc__permitted_range_proofs__pack + (const Tari__Rpc__PermittedRangeProofs *message, + uint8_t *out); +size_t tari__rpc__permitted_range_proofs__pack_to_buffer + (const Tari__Rpc__PermittedRangeProofs *message, + ProtobufCBuffer *buffer); +Tari__Rpc__PermittedRangeProofs * + tari__rpc__permitted_range_proofs__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__permitted_range_proofs__free_unpacked + (Tari__Rpc__PermittedRangeProofs *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__RangeProof methods */ +void tari__rpc__range_proof__init + (Tari__Rpc__RangeProof *message); +size_t tari__rpc__range_proof__get_packed_size + (const Tari__Rpc__RangeProof *message); +size_t tari__rpc__range_proof__pack + (const Tari__Rpc__RangeProof *message, + uint8_t *out); +size_t tari__rpc__range_proof__pack_to_buffer + (const Tari__Rpc__RangeProof *message, + ProtobufCBuffer *buffer); +Tari__Rpc__RangeProof * + tari__rpc__range_proof__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__range_proof__free_unpacked + (Tari__Rpc__RangeProof *message, + ProtobufCAllocator *allocator); +/* Tari__Rpc__ConsensusConstants__ProofOfWorkEntry methods */ +void tari__rpc__consensus_constants__proof_of_work_entry__init + (Tari__Rpc__ConsensusConstants__ProofOfWorkEntry *message); +/* Tari__Rpc__ConsensusConstants methods */ +void tari__rpc__consensus_constants__init + (Tari__Rpc__ConsensusConstants *message); +size_t tari__rpc__consensus_constants__get_packed_size + (const Tari__Rpc__ConsensusConstants *message); +size_t tari__rpc__consensus_constants__pack + (const Tari__Rpc__ConsensusConstants *message, + uint8_t *out); +size_t tari__rpc__consensus_constants__pack_to_buffer + (const Tari__Rpc__ConsensusConstants *message, + ProtobufCBuffer *buffer); +Tari__Rpc__ConsensusConstants * + tari__rpc__consensus_constants__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tari__rpc__consensus_constants__free_unpacked + (Tari__Rpc__ConsensusConstants *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tari__Rpc__Range_Closure) + (const Tari__Rpc__Range *message, + void *closure_data); +typedef void (*Tari__Rpc__Empty_Closure) + (const Tari__Rpc__Empty *message, + void *closure_data); +typedef void (*Tari__Rpc__BlockHeight_Closure) + (const Tari__Rpc__BlockHeight *message, + void *closure_data); +typedef void (*Tari__Rpc__Signature_Closure) + (const Tari__Rpc__Signature *message, + void *closure_data); +typedef void (*Tari__Rpc__ComAndPubSignature_Closure) + (const Tari__Rpc__ComAndPubSignature *message, + void *closure_data); +typedef void (*Tari__Rpc__CommitmentSignature_Closure) + (const Tari__Rpc__CommitmentSignature *message, + void *closure_data); +typedef void (*Tari__Rpc__PowAlgorithmConstants_Closure) + (const Tari__Rpc__PowAlgorithmConstants *message, + void *closure_data); +typedef void (*Tari__Rpc__WeightParams_Closure) + (const Tari__Rpc__WeightParams *message, + void *closure_data); +typedef void (*Tari__Rpc__OutputsVersion_Closure) + (const Tari__Rpc__OutputsVersion *message, + void *closure_data); +typedef void (*Tari__Rpc__PermittedRangeProofs_Closure) + (const Tari__Rpc__PermittedRangeProofs *message, + void *closure_data); +typedef void (*Tari__Rpc__RangeProof_Closure) + (const Tari__Rpc__RangeProof *message, + void *closure_data); +typedef void (*Tari__Rpc__ConsensusConstants__ProofOfWorkEntry_Closure) + (const Tari__Rpc__ConsensusConstants__ProofOfWorkEntry *message, + void *closure_data); +typedef void (*Tari__Rpc__ConsensusConstants_Closure) + (const Tari__Rpc__ConsensusConstants *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor tari__rpc__output_type__descriptor; +extern const ProtobufCEnumDescriptor tari__rpc__range_proof_type__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__range__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__empty__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__block_height__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__signature__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__com_and_pub_signature__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__commitment_signature__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__pow_algorithm_constants__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__weight_params__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__outputs_version__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__permitted_range_proofs__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__range_proof__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__consensus_constants__descriptor; +extern const ProtobufCMessageDescriptor tari__rpc__consensus_constants__proof_of_work_entry__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_types_2eproto__INCLUDED */ diff --git a/external/src/Tari/proto/gRPC/types.pb.cc b/external/src/Tari/proto/gRPC/types.pb.cc deleted file mode 100644 index 7dd586ab..00000000 --- a/external/src/Tari/proto/gRPC/types.pb.cc +++ /dev/null @@ -1,4075 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: types.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#include "types.pb.h" - -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/extension_set.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" -#include "google/protobuf/generated_message_tctable_impl.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 tari { -namespace rpc { - -inline constexpr WeightParams::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : kernel_weight_{::uint64_t{0u}}, - input_weight_{::uint64_t{0u}}, - output_weight_{::uint64_t{0u}}, - features_and_scripts_bytes_per_gram_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR WeightParams::WeightParams(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct WeightParamsDefaultTypeInternal { - PROTOBUF_CONSTEXPR WeightParamsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~WeightParamsDefaultTypeInternal() {} - union { - WeightParams _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 WeightParamsDefaultTypeInternal _WeightParams_default_instance_; - -inline constexpr Signature::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : public_nonce_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - signature_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Signature::Signature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SignatureDefaultTypeInternal { - PROTOBUF_CONSTEXPR SignatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SignatureDefaultTypeInternal() {} - union { - Signature _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SignatureDefaultTypeInternal _Signature_default_instance_; - -inline constexpr RangeProof::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : proof_bytes_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR RangeProof::RangeProof(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RangeProofDefaultTypeInternal { - PROTOBUF_CONSTEXPR RangeProofDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RangeProofDefaultTypeInternal() {} - union { - RangeProof _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RangeProofDefaultTypeInternal _RangeProof_default_instance_; - -inline constexpr Range::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : min_{::uint64_t{0u}}, - max_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR Range::Range(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct RangeDefaultTypeInternal { - PROTOBUF_CONSTEXPR RangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~RangeDefaultTypeInternal() {} - union { - Range _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RangeDefaultTypeInternal _Range_default_instance_; - -inline constexpr PowAlgorithmConstants::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : min_difficulty_{::uint64_t{0u}}, - max_difficulty_{::uint64_t{0u}}, - target_time_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PowAlgorithmConstants::PowAlgorithmConstants(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PowAlgorithmConstantsDefaultTypeInternal { - PROTOBUF_CONSTEXPR PowAlgorithmConstantsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PowAlgorithmConstantsDefaultTypeInternal() {} - union { - PowAlgorithmConstants _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PowAlgorithmConstantsDefaultTypeInternal _PowAlgorithmConstants_default_instance_; - -inline constexpr PermittedRangeProofs::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : range_proof_types_{}, - _range_proof_types_cached_byte_size_{0}, - output_type_{static_cast< ::tari::rpc::OutputType >(0)}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR PermittedRangeProofs::PermittedRangeProofs(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct PermittedRangeProofsDefaultTypeInternal { - PROTOBUF_CONSTEXPR PermittedRangeProofsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~PermittedRangeProofsDefaultTypeInternal() {} - union { - PermittedRangeProofs _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PermittedRangeProofsDefaultTypeInternal _PermittedRangeProofs_default_instance_; - template -PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) {} -struct EmptyDefaultTypeInternal { - PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EmptyDefaultTypeInternal() {} - union { - Empty _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_; - -inline constexpr CommitmentSignature::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : public_nonce_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - u_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - v_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR CommitmentSignature::CommitmentSignature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct CommitmentSignatureDefaultTypeInternal { - PROTOBUF_CONSTEXPR CommitmentSignatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CommitmentSignatureDefaultTypeInternal() {} - union { - CommitmentSignature _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CommitmentSignatureDefaultTypeInternal _CommitmentSignature_default_instance_; - -inline constexpr ComAndPubSignature::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : ephemeral_commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - ephemeral_pubkey_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - u_a_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - u_x_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - u_y_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR ComAndPubSignature::ComAndPubSignature(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ComAndPubSignatureDefaultTypeInternal { - PROTOBUF_CONSTEXPR ComAndPubSignatureDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ComAndPubSignatureDefaultTypeInternal() {} - union { - ComAndPubSignature _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ComAndPubSignatureDefaultTypeInternal _ComAndPubSignature_default_instance_; - -inline constexpr BlockHeight::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : block_height_{::uint64_t{0u}}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR BlockHeight::BlockHeight(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct BlockHeightDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlockHeightDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~BlockHeightDefaultTypeInternal() {} - union { - BlockHeight _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlockHeightDefaultTypeInternal _BlockHeight_default_instance_; - -inline constexpr OutputsVersion::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - outputs_{nullptr}, - features_{nullptr} {} - -template -PROTOBUF_CONSTEXPR OutputsVersion::OutputsVersion(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct OutputsVersionDefaultTypeInternal { - PROTOBUF_CONSTEXPR OutputsVersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OutputsVersionDefaultTypeInternal() {} - union { - OutputsVersion _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OutputsVersionDefaultTypeInternal _OutputsVersion_default_instance_; - template -PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse(::_pbi::ConstantInitialized) {} -struct ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal() {} - union { - ConsensusConstants_ProofOfWorkEntry_DoNotUse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal _ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_; - -inline constexpr ConsensusConstants::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - emission_decay_{}, - _emission_decay_cached_byte_size_{0}, - proof_of_work_{}, - permitted_output_types_{}, - _permitted_output_types_cached_byte_size_{0}, - permitted_range_proof_types_{}, - valid_blockchain_version_range_{nullptr}, - transaction_weight_{nullptr}, - input_version_range_{nullptr}, - output_version_range_{nullptr}, - kernel_version_range_{nullptr}, - coinbase_min_maturity_{::uint64_t{0u}}, - future_time_limit_{::uint64_t{0u}}, - difficulty_block_window_{::uint64_t{0u}}, - max_block_transaction_weight_{::uint64_t{0u}}, - pow_algo_count_{::uint64_t{0u}}, - median_timestamp_count_{::uint64_t{0u}}, - emission_initial_{::uint64_t{0u}}, - emission_tail_{::uint64_t{0u}}, - min_sha3x_pow_difficulty_{::uint64_t{0u}}, - block_weight_inputs_{::uint64_t{0u}}, - block_weight_outputs_{::uint64_t{0u}}, - block_weight_kernels_{::uint64_t{0u}}, - faucet_value_{::uint64_t{0u}}, - max_script_byte_size_{::uint64_t{0u}}, - validator_node_validity_period_{::uint64_t{0u}}, - effective_from_height_{::uint64_t{0u}}, - max_randomx_seed_height_{::uint64_t{0u}}, - epoch_length_{::uint64_t{0u}}, - validator_node_registration_min_deposit_amount_{::uint64_t{0u}}, - validator_node_registration_min_lock_height_{::uint64_t{0u}}, - validator_node_registration_shuffle_interval_epoch_{::uint64_t{0u}}, - blockchain_version_{0u} {} - -template -PROTOBUF_CONSTEXPR ConsensusConstants::ConsensusConstants(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct ConsensusConstantsDefaultTypeInternal { - PROTOBUF_CONSTEXPR ConsensusConstantsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ConsensusConstantsDefaultTypeInternal() {} - union { - ConsensusConstants _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConsensusConstantsDefaultTypeInternal _ConsensusConstants_default_instance_; -} // namespace rpc -} // namespace tari -static ::_pb::Metadata file_level_metadata_types_2eproto[13]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_types_2eproto[2]; -static constexpr const ::_pb::ServiceDescriptor** - file_level_service_descriptors_types_2eproto = nullptr; -const ::uint32_t - TableStruct_types_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _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(::tari::rpc::Range, _impl_.min_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Range, _impl_.max_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Empty, _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(::tari::rpc::BlockHeight, _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(::tari::rpc::BlockHeight, _impl_.block_height_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _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(::tari::rpc::Signature, _impl_.public_nonce_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::Signature, _impl_.signature_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _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(::tari::rpc::ComAndPubSignature, _impl_.ephemeral_commitment_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.ephemeral_pubkey_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_a_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_x_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ComAndPubSignature, _impl_.u_y_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _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(::tari::rpc::CommitmentSignature, _impl_.public_nonce_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.u_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::CommitmentSignature, _impl_.v_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _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(::tari::rpc::PowAlgorithmConstants, _impl_.min_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.max_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::PowAlgorithmConstants, _impl_.target_time_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _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(::tari::rpc::WeightParams, _impl_.kernel_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.input_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.output_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::WeightParams, _impl_.features_and_scripts_bytes_per_gram_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _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(::tari::rpc::OutputsVersion, _impl_.outputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::OutputsVersion, _impl_.features_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _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(::tari::rpc::PermittedRangeProofs, _impl_.output_type_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::PermittedRangeProofs, _impl_.range_proof_types_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::tari::rpc::RangeProof, _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(::tari::rpc::RangeProof, _impl_.proof_bytes_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, _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(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _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(::tari::rpc::ConsensusConstants, _impl_.coinbase_min_maturity_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.blockchain_version_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.future_time_limit_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.difficulty_block_window_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_block_transaction_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.pow_algo_count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.median_timestamp_count_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_initial_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_decay_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.emission_tail_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_inputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_outputs_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.block_weight_kernels_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.faucet_value_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_script_byte_size_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_validity_period_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.effective_from_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.valid_blockchain_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.max_randomx_seed_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.proof_of_work_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.transaction_weight_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.input_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.output_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.kernel_version_range_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.permitted_output_types_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.epoch_length_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_min_lock_height_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.validator_node_registration_shuffle_interval_epoch_), - PROTOBUF_FIELD_OFFSET(::tari::rpc::ConsensusConstants, _impl_.permitted_range_proof_types_), - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - 0, - ~0u, - ~0u, - 1, - 2, - 3, - 4, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, - ~0u, -}; - -static const ::_pbi::MigrationSchema - schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, -1, -1, sizeof(::tari::rpc::Range)}, - {10, -1, -1, sizeof(::tari::rpc::Empty)}, - {18, -1, -1, sizeof(::tari::rpc::BlockHeight)}, - {27, -1, -1, sizeof(::tari::rpc::Signature)}, - {37, -1, -1, sizeof(::tari::rpc::ComAndPubSignature)}, - {50, -1, -1, sizeof(::tari::rpc::CommitmentSignature)}, - {61, -1, -1, sizeof(::tari::rpc::PowAlgorithmConstants)}, - {72, -1, -1, sizeof(::tari::rpc::WeightParams)}, - {84, 94, -1, sizeof(::tari::rpc::OutputsVersion)}, - {96, -1, -1, sizeof(::tari::rpc::PermittedRangeProofs)}, - {106, -1, -1, sizeof(::tari::rpc::RangeProof)}, - {115, 125, -1, sizeof(::tari::rpc::ConsensusConstants_ProofOfWorkEntry_DoNotUse)}, - {127, 166, -1, sizeof(::tari::rpc::ConsensusConstants)}, -}; -static const ::_pb::Message* const file_default_instances[] = { - &::tari::rpc::_Range_default_instance_._instance, - &::tari::rpc::_Empty_default_instance_._instance, - &::tari::rpc::_BlockHeight_default_instance_._instance, - &::tari::rpc::_Signature_default_instance_._instance, - &::tari::rpc::_ComAndPubSignature_default_instance_._instance, - &::tari::rpc::_CommitmentSignature_default_instance_._instance, - &::tari::rpc::_PowAlgorithmConstants_default_instance_._instance, - &::tari::rpc::_WeightParams_default_instance_._instance, - &::tari::rpc::_OutputsVersion_default_instance_._instance, - &::tari::rpc::_PermittedRangeProofs_default_instance_._instance, - &::tari::rpc::_RangeProof_default_instance_._instance, - &::tari::rpc::_ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_._instance, - &::tari::rpc::_ConsensusConstants_default_instance_._instance, -}; -const char descriptor_table_protodef_types_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( - protodesc_cold) = { - "\n\013types.proto\022\010tari.rpc\"!\n\005Range\022\013\n\003min\030" - "\001 \001(\004\022\013\n\003max\030\002 \001(\004\"\007\n\005Empty\"#\n\013BlockHeig" - "ht\022\024\n\014block_height\030\001 \001(\004\"4\n\tSignature\022\024\n" - "\014public_nonce\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014\"s" - "\n\022ComAndPubSignature\022\034\n\024ephemeral_commit" - "ment\030\001 \001(\014\022\030\n\020ephemeral_pubkey\030\002 \001(\014\022\013\n\003" - "u_a\030\003 \001(\014\022\013\n\003u_x\030\004 \001(\014\022\013\n\003u_y\030\005 \001(\014\"A\n\023C" - "ommitmentSignature\022\024\n\014public_nonce\030\001 \001(\014" - "\022\t\n\001u\030\002 \001(\014\022\t\n\001v\030\003 \001(\014\"\\\n\025PowAlgorithmCo" - "nstants\022\026\n\016min_difficulty\030\002 \001(\004\022\026\n\016max_d" - "ifficulty\030\003 \001(\004\022\023\n\013target_time\030\004 \001(\004\"\177\n\014" - "WeightParams\022\025\n\rkernel_weight\030\001 \001(\004\022\024\n\014i" - "nput_weight\030\002 \001(\004\022\025\n\routput_weight\030\003 \001(\004" - "\022+\n#features_and_scripts_bytes_per_gram\030" - "\004 \001(\004\"U\n\016OutputsVersion\022 \n\007outputs\030\001 \001(\013" - "2\017.tari.rpc.Range\022!\n\010features\030\002 \001(\0132\017.ta" - "ri.rpc.Range\"v\n\024PermittedRangeProofs\022)\n\013" - "output_type\030\001 \001(\0162\024.tari.rpc.OutputType\022" - "3\n\021range_proof_types\030\002 \003(\0162\030.tari.rpc.Ra" - "ngeProofType\"!\n\nRangeProof\022\023\n\013proof_byte" - "s\030\001 \001(\014\"\240\n\n\022ConsensusConstants\022\035\n\025coinba" - "se_min_maturity\030\001 \001(\004\022\032\n\022blockchain_vers" - "ion\030\002 \001(\r\022\031\n\021future_time_limit\030\003 \001(\004\022\037\n\027" - "difficulty_block_window\030\005 \001(\004\022$\n\034max_blo" - "ck_transaction_weight\030\007 \001(\004\022\026\n\016pow_algo_" - "count\030\010 \001(\004\022\036\n\026median_timestamp_count\030\t " - "\001(\004\022\030\n\020emission_initial\030\n \001(\004\022\026\n\016emissio" - "n_decay\030\013 \003(\004\022\025\n\remission_tail\030\014 \001(\004\022 \n\030" - "min_sha3x_pow_difficulty\030\r \001(\004\022\033\n\023block_" - "weight_inputs\030\016 \001(\004\022\034\n\024block_weight_outp" - "uts\030\017 \001(\004\022\034\n\024block_weight_kernels\030\020 \001(\004\022" - "\024\n\014faucet_value\030\021 \001(\004\022\034\n\024max_script_byte" - "_size\030\022 \001(\004\022&\n\036validator_node_validity_p" - "eriod\030\023 \001(\004\022\035\n\025effective_from_height\030\024 \001" - "(\004\0227\n\036valid_blockchain_version_range\030\025 \001" - "(\0132\017.tari.rpc.Range\022\037\n\027max_randomx_seed_" - "height\030\026 \001(\004\022D\n\rproof_of_work\030\027 \003(\0132-.ta" - "ri.rpc.ConsensusConstants.ProofOfWorkEnt" - "ry\0222\n\022transaction_weight\030\030 \001(\0132\026.tari.rp" - "c.WeightParams\022,\n\023input_version_range\030\032 " - "\001(\0132\017.tari.rpc.Range\0226\n\024output_version_r" - "ange\030\033 \001(\0132\030.tari.rpc.OutputsVersion\022-\n\024" - "kernel_version_range\030\034 \001(\0132\017.tari.rpc.Ra" - "nge\0224\n\026permitted_output_types\030\035 \003(\0162\024.ta" - "ri.rpc.OutputType\022\024\n\014epoch_length\030\036 \001(\004\022" - "6\n.validator_node_registration_min_depos" - "it_amount\030\037 \001(\004\0223\n+validator_node_regist" - "ration_min_lock_height\030 \001(\004\022:\n2validato" - "r_node_registration_shuffle_interval_epo" - "ch\030! \001(\004\022C\n\033permitted_range_proof_types\030" - "\" \003(\0132\036.tari.rpc.PermittedRangeProofs\032S\n" - "\020ProofOfWorkEntry\022\013\n\003key\030\001 \001(\r\022.\n\005value\030" - "\002 \001(\0132\037.tari.rpc.PowAlgorithmConstants:\002" - "8\001*s\n\nOutputType\022\014\n\010STANDARD\020\000\022\014\n\010COINBA" - "SE\020\001\022\010\n\004BURN\020\002\022\037\n\033VALIDATOR_NODE_REGISTR" - "ATION\020\003\022\036\n\032CODE_TEMPLATE_REGISTRATION\020\004*" - ":\n\016RangeProofType\022\024\n\020BULLETPROOF_PLUS\020\000\022" - "\022\n\016REVEALED_VALUE\020\001b\006proto3" -}; -static ::absl::once_flag descriptor_table_types_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_types_2eproto = { - false, - false, - 2307, - descriptor_table_protodef_types_2eproto, - "types.proto", - &descriptor_table_types_2eproto_once, - nullptr, - 0, - 13, - schemas, - file_default_instances, - TableStruct_types_2eproto::offsets, - file_level_metadata_types_2eproto, - file_level_enum_descriptors_types_2eproto, - file_level_service_descriptors_types_2eproto, -}; - -// This function exists to be marked as weak. -// It can significantly speed up compilation by breaking up LLVM's SCC -// in the .pb.cc translation units. Large translation units see a -// reduction of more than 35% of walltime for optimized builds. Without -// the weak attribute all the messages in the file, including all the -// vtables and everything they use become part of the same SCC through -// a cycle like: -// GetMetadata -> descriptor table -> default instances -> -// vtables -> GetMetadata -// By adding a weak function here we break the connection from the -// individual vtables back into the descriptor table. -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_types_2eproto_getter() { - return &descriptor_table_types_2eproto; -} -namespace tari { -namespace rpc { -const ::google::protobuf::EnumDescriptor* OutputType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_types_2eproto); - return file_level_enum_descriptors_types_2eproto[0]; -} -PROTOBUF_CONSTINIT const uint32_t OutputType_internal_data_[] = { - 327680u, 0u, }; -bool OutputType_IsValid(int value) { - return 0 <= value && value <= 4; -} -const ::google::protobuf::EnumDescriptor* RangeProofType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&descriptor_table_types_2eproto); - return file_level_enum_descriptors_types_2eproto[1]; -} -PROTOBUF_CONSTINIT const uint32_t RangeProofType_internal_data_[] = { - 131072u, 0u, }; -bool RangeProofType_IsValid(int value) { - return 0 <= value && value <= 1; -} -// =================================================================== - -class Range::_Internal { - public: -}; - -Range::Range(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.Range) -} -Range::Range( - ::google::protobuf::Arena* arena, const Range& from) - : Range(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE Range::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void Range::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, min_), - 0, - offsetof(Impl_, max_) - - offsetof(Impl_, min_) + - sizeof(Impl_::max_)); -} -Range::~Range() { - // @@protoc_insertion_point(destructor:tari.rpc.Range) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Range::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Range::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Range, _impl_._cached_size_), - false, - }, - &Range::MergeImpl, - &Range::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Range::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.Range) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.min_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_) - - reinterpret_cast(&_impl_.min_)) + sizeof(_impl_.max_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Range::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Range::_table_ = { - { - 0, // no _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 - &_Range_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::Range>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 max = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Range, _impl_.max_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(Range, _impl_.max_)}}, - // uint64 min = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Range, _impl_.min_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(Range, _impl_.min_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 min = 1; - {PROTOBUF_FIELD_OFFSET(Range, _impl_.min_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 max = 2; - {PROTOBUF_FIELD_OFFSET(Range, _impl_.max_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Range::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Range) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 min = 1; - if (this->_internal_min() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_min(), target); - } - - // uint64 max = 2; - if (this->_internal_max() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_max(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Range) - return target; -} - -::size_t Range::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Range) - ::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 min = 1; - if (this->_internal_min() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min()); - } - - // uint64 max = 2; - if (this->_internal_max() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Range::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:tari.rpc.Range) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_min() != 0) { - _this->_impl_.min_ = from._impl_.min_; - } - if (from._internal_max() != 0) { - _this->_impl_.max_ = from._impl_.max_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Range::CopyFrom(const Range& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.Range) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Range::IsInitialized() const { - return true; -} - -void Range::InternalSwap(Range* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Range, _impl_.max_) - + sizeof(Range::_impl_.max_) - - PROTOBUF_FIELD_OFFSET(Range, _impl_.min_)>( - reinterpret_cast(&_impl_.min_), - reinterpret_cast(&other->_impl_.min_)); -} - -::google::protobuf::Metadata Range::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[0]); -} -// =================================================================== - -class Empty::_Internal { - public: -}; - -Empty::Empty(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:tari.rpc.Empty) -} -Empty::Empty( - ::google::protobuf::Arena* arena, - const Empty& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - Empty* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.Empty) -} - - - - - - - - - -::google::protobuf::Metadata Empty::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[1]); -} -// =================================================================== - -class BlockHeight::_Internal { - public: -}; - -BlockHeight::BlockHeight(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.BlockHeight) -} -BlockHeight::BlockHeight( - ::google::protobuf::Arena* arena, const BlockHeight& from) - : BlockHeight(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE BlockHeight::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void BlockHeight::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.block_height_ = {}; -} -BlockHeight::~BlockHeight() { - // @@protoc_insertion_point(destructor:tari.rpc.BlockHeight) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void BlockHeight::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -BlockHeight::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_._cached_size_), - false, - }, - &BlockHeight::MergeImpl, - &BlockHeight::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void BlockHeight::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.BlockHeight) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.block_height_ = ::uint64_t{0u}; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* BlockHeight::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> BlockHeight::_table_ = { - { - 0, // no _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 - &_BlockHeight_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::BlockHeight>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 block_height = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(BlockHeight, _impl_.block_height_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_.block_height_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 block_height = 1; - {PROTOBUF_FIELD_OFFSET(BlockHeight, _impl_.block_height_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* BlockHeight::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.BlockHeight) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 block_height = 1; - if (this->_internal_block_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_block_height(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.BlockHeight) - return target; -} - -::size_t BlockHeight::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.BlockHeight) - ::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 block_height = 1; - if (this->_internal_block_height() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_block_height()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void BlockHeight::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:tari.rpc.BlockHeight) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_block_height() != 0) { - _this->_impl_.block_height_ = from._impl_.block_height_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void BlockHeight::CopyFrom(const BlockHeight& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.BlockHeight) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool BlockHeight::IsInitialized() const { - return true; -} - -void BlockHeight::InternalSwap(BlockHeight* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.block_height_, other->_impl_.block_height_); -} - -::google::protobuf::Metadata BlockHeight::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[2]); -} -// =================================================================== - -class Signature::_Internal { - public: -}; - -Signature::Signature(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.Signature) -} -inline PROTOBUF_NDEBUG_INLINE Signature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_nonce_(arena, from.public_nonce_), - signature_(arena, from.signature_), - _cached_size_{0} {} - -Signature::Signature( - ::google::protobuf::Arena* arena, - const Signature& from) - : ::google::protobuf::Message(arena) { - Signature* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.Signature) -} -inline PROTOBUF_NDEBUG_INLINE Signature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_nonce_(arena), - signature_(arena), - _cached_size_{0} {} - -inline void Signature::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Signature::~Signature() { - // @@protoc_insertion_point(destructor:tari.rpc.Signature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void Signature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_nonce_.Destroy(); - _impl_.signature_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -Signature::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(Signature, _impl_._cached_size_), - false, - }, - &Signature::MergeImpl, - &Signature::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void Signature::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.Signature) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_nonce_.ClearToEmpty(); - _impl_.signature_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* Signature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> Signature::_table_ = { - { - 0, // no _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 - &_Signature_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::Signature>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes signature = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(Signature, _impl_.signature_)}}, - // bytes public_nonce = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(Signature, _impl_.public_nonce_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes public_nonce = 1; - {PROTOBUF_FIELD_OFFSET(Signature, _impl_.public_nonce_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes signature = 2; - {PROTOBUF_FIELD_OFFSET(Signature, _impl_.signature_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* Signature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.Signature) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - const std::string& _s = this->_internal_public_nonce(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes signature = 2; - if (!this->_internal_signature().empty()) { - const std::string& _s = this->_internal_signature(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.Signature) - return target; -} - -::size_t Signature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.Signature) - ::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 public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_nonce()); - } - - // bytes signature = 2; - if (!this->_internal_signature().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_signature()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void Signature::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:tari.rpc.Signature) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_public_nonce().empty()) { - _this->_internal_set_public_nonce(from._internal_public_nonce()); - } - if (!from._internal_signature().empty()) { - _this->_internal_set_signature(from._internal_signature()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void Signature::CopyFrom(const Signature& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.Signature) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Signature::IsInitialized() const { - return true; -} - -void Signature::InternalSwap(Signature* 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_.public_nonce_, &other->_impl_.public_nonce_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_, &other->_impl_.signature_, arena); -} - -::google::protobuf::Metadata Signature::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[3]); -} -// =================================================================== - -class ComAndPubSignature::_Internal { - public: -}; - -ComAndPubSignature::ComAndPubSignature(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ComAndPubSignature) -} -inline PROTOBUF_NDEBUG_INLINE ComAndPubSignature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : ephemeral_commitment_(arena, from.ephemeral_commitment_), - ephemeral_pubkey_(arena, from.ephemeral_pubkey_), - u_a_(arena, from.u_a_), - u_x_(arena, from.u_x_), - u_y_(arena, from.u_y_), - _cached_size_{0} {} - -ComAndPubSignature::ComAndPubSignature( - ::google::protobuf::Arena* arena, - const ComAndPubSignature& from) - : ::google::protobuf::Message(arena) { - ComAndPubSignature* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ComAndPubSignature) -} -inline PROTOBUF_NDEBUG_INLINE ComAndPubSignature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : ephemeral_commitment_(arena), - ephemeral_pubkey_(arena), - u_a_(arena), - u_x_(arena), - u_y_(arena), - _cached_size_{0} {} - -inline void ComAndPubSignature::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -ComAndPubSignature::~ComAndPubSignature() { - // @@protoc_insertion_point(destructor:tari.rpc.ComAndPubSignature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ComAndPubSignature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.ephemeral_commitment_.Destroy(); - _impl_.ephemeral_pubkey_.Destroy(); - _impl_.u_a_.Destroy(); - _impl_.u_x_.Destroy(); - _impl_.u_y_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ComAndPubSignature::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_._cached_size_), - false, - }, - &ComAndPubSignature::MergeImpl, - &ComAndPubSignature::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ComAndPubSignature::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ComAndPubSignature) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.ephemeral_commitment_.ClearToEmpty(); - _impl_.ephemeral_pubkey_.ClearToEmpty(); - _impl_.u_a_.ClearToEmpty(); - _impl_.u_x_.ClearToEmpty(); - _impl_.u_y_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ComAndPubSignature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 0, 2> ComAndPubSignature::_table_ = { - { - 0, // no _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 - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_ComAndPubSignature_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ComAndPubSignature>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes ephemeral_commitment = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_commitment_)}}, - // bytes ephemeral_pubkey = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_pubkey_)}}, - // bytes u_a = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_a_)}}, - // bytes u_x = 4; - {::_pbi::TcParser::FastBS1, - {34, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_x_)}}, - // bytes u_y = 5; - {::_pbi::TcParser::FastBS1, - {42, 63, 0, PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_y_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes ephemeral_commitment = 1; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_commitment_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes ephemeral_pubkey = 2; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.ephemeral_pubkey_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes u_a = 3; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_a_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes u_x = 4; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_x_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes u_y = 5; - {PROTOBUF_FIELD_OFFSET(ComAndPubSignature, _impl_.u_y_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* ComAndPubSignature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ComAndPubSignature) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes ephemeral_commitment = 1; - if (!this->_internal_ephemeral_commitment().empty()) { - const std::string& _s = this->_internal_ephemeral_commitment(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes ephemeral_pubkey = 2; - if (!this->_internal_ephemeral_pubkey().empty()) { - const std::string& _s = this->_internal_ephemeral_pubkey(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes u_a = 3; - if (!this->_internal_u_a().empty()) { - const std::string& _s = this->_internal_u_a(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // bytes u_x = 4; - if (!this->_internal_u_x().empty()) { - const std::string& _s = this->_internal_u_x(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // bytes u_y = 5; - if (!this->_internal_u_y().empty()) { - const std::string& _s = this->_internal_u_y(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ComAndPubSignature) - return target; -} - -::size_t ComAndPubSignature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ComAndPubSignature) - ::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 ephemeral_commitment = 1; - if (!this->_internal_ephemeral_commitment().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_ephemeral_commitment()); - } - - // bytes ephemeral_pubkey = 2; - if (!this->_internal_ephemeral_pubkey().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_ephemeral_pubkey()); - } - - // bytes u_a = 3; - if (!this->_internal_u_a().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u_a()); - } - - // bytes u_x = 4; - if (!this->_internal_u_x().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u_x()); - } - - // bytes u_y = 5; - if (!this->_internal_u_y().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u_y()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ComAndPubSignature::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:tari.rpc.ComAndPubSignature) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_ephemeral_commitment().empty()) { - _this->_internal_set_ephemeral_commitment(from._internal_ephemeral_commitment()); - } - if (!from._internal_ephemeral_pubkey().empty()) { - _this->_internal_set_ephemeral_pubkey(from._internal_ephemeral_pubkey()); - } - if (!from._internal_u_a().empty()) { - _this->_internal_set_u_a(from._internal_u_a()); - } - if (!from._internal_u_x().empty()) { - _this->_internal_set_u_x(from._internal_u_x()); - } - if (!from._internal_u_y().empty()) { - _this->_internal_set_u_y(from._internal_u_y()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ComAndPubSignature::CopyFrom(const ComAndPubSignature& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ComAndPubSignature) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ComAndPubSignature::IsInitialized() const { - return true; -} - -void ComAndPubSignature::InternalSwap(ComAndPubSignature* 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_.ephemeral_commitment_, &other->_impl_.ephemeral_commitment_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.ephemeral_pubkey_, &other->_impl_.ephemeral_pubkey_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.u_a_, &other->_impl_.u_a_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.u_x_, &other->_impl_.u_x_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.u_y_, &other->_impl_.u_y_, arena); -} - -::google::protobuf::Metadata ComAndPubSignature::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[4]); -} -// =================================================================== - -class CommitmentSignature::_Internal { - public: -}; - -CommitmentSignature::CommitmentSignature(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.CommitmentSignature) -} -inline PROTOBUF_NDEBUG_INLINE CommitmentSignature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : public_nonce_(arena, from.public_nonce_), - u_(arena, from.u_), - v_(arena, from.v_), - _cached_size_{0} {} - -CommitmentSignature::CommitmentSignature( - ::google::protobuf::Arena* arena, - const CommitmentSignature& from) - : ::google::protobuf::Message(arena) { - CommitmentSignature* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.CommitmentSignature) -} -inline PROTOBUF_NDEBUG_INLINE CommitmentSignature::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : public_nonce_(arena), - u_(arena), - v_(arena), - _cached_size_{0} {} - -inline void CommitmentSignature::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -CommitmentSignature::~CommitmentSignature() { - // @@protoc_insertion_point(destructor:tari.rpc.CommitmentSignature) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void CommitmentSignature::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.public_nonce_.Destroy(); - _impl_.u_.Destroy(); - _impl_.v_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -CommitmentSignature::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_._cached_size_), - false, - }, - &CommitmentSignature::MergeImpl, - &CommitmentSignature::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void CommitmentSignature::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.CommitmentSignature) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.public_nonce_.ClearToEmpty(); - _impl_.u_.ClearToEmpty(); - _impl_.v_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* CommitmentSignature::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> CommitmentSignature::_table_ = { - { - 0, // no _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 - &_CommitmentSignature_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::CommitmentSignature>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // bytes public_nonce = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.public_nonce_)}}, - // bytes u = 2; - {::_pbi::TcParser::FastBS1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.u_)}}, - // bytes v = 3; - {::_pbi::TcParser::FastBS1, - {26, 63, 0, PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.v_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes public_nonce = 1; - {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.public_nonce_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes u = 2; - {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.u_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - // bytes v = 3; - {PROTOBUF_FIELD_OFFSET(CommitmentSignature, _impl_.v_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* CommitmentSignature::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.CommitmentSignature) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - const std::string& _s = this->_internal_public_nonce(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // bytes u = 2; - if (!this->_internal_u().empty()) { - const std::string& _s = this->_internal_u(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // bytes v = 3; - if (!this->_internal_v().empty()) { - const std::string& _s = this->_internal_v(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.CommitmentSignature) - return target; -} - -::size_t CommitmentSignature::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.CommitmentSignature) - ::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 public_nonce = 1; - if (!this->_internal_public_nonce().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_public_nonce()); - } - - // bytes u = 2; - if (!this->_internal_u().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_u()); - } - - // bytes v = 3; - if (!this->_internal_v().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_v()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void CommitmentSignature::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:tari.rpc.CommitmentSignature) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_public_nonce().empty()) { - _this->_internal_set_public_nonce(from._internal_public_nonce()); - } - if (!from._internal_u().empty()) { - _this->_internal_set_u(from._internal_u()); - } - if (!from._internal_v().empty()) { - _this->_internal_set_v(from._internal_v()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void CommitmentSignature::CopyFrom(const CommitmentSignature& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.CommitmentSignature) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool CommitmentSignature::IsInitialized() const { - return true; -} - -void CommitmentSignature::InternalSwap(CommitmentSignature* 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_.public_nonce_, &other->_impl_.public_nonce_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.u_, &other->_impl_.u_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.v_, &other->_impl_.v_, arena); -} - -::google::protobuf::Metadata CommitmentSignature::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[5]); -} -// =================================================================== - -class PowAlgorithmConstants::_Internal { - public: -}; - -PowAlgorithmConstants::PowAlgorithmConstants(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.PowAlgorithmConstants) -} -PowAlgorithmConstants::PowAlgorithmConstants( - ::google::protobuf::Arena* arena, const PowAlgorithmConstants& from) - : PowAlgorithmConstants(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE PowAlgorithmConstants::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void PowAlgorithmConstants::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, min_difficulty_), - 0, - offsetof(Impl_, target_time_) - - offsetof(Impl_, min_difficulty_) + - sizeof(Impl_::target_time_)); -} -PowAlgorithmConstants::~PowAlgorithmConstants() { - // @@protoc_insertion_point(destructor:tari.rpc.PowAlgorithmConstants) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void PowAlgorithmConstants::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -PowAlgorithmConstants::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_._cached_size_), - false, - }, - &PowAlgorithmConstants::MergeImpl, - &PowAlgorithmConstants::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void PowAlgorithmConstants::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.PowAlgorithmConstants) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.min_difficulty_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.target_time_) - - reinterpret_cast(&_impl_.min_difficulty_)) + sizeof(_impl_.target_time_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PowAlgorithmConstants::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 0, 2> PowAlgorithmConstants::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967281, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_PowAlgorithmConstants_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::PowAlgorithmConstants>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 target_time = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.target_time_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 min_difficulty = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.min_difficulty_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.min_difficulty_)}}, - // uint64 max_difficulty = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(PowAlgorithmConstants, _impl_.max_difficulty_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.max_difficulty_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 min_difficulty = 2; - {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.min_difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 max_difficulty = 3; - {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.max_difficulty_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 target_time = 4; - {PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* PowAlgorithmConstants::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.PowAlgorithmConstants) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 min_difficulty = 2; - if (this->_internal_min_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_min_difficulty(), target); - } - - // uint64 max_difficulty = 3; - if (this->_internal_max_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_max_difficulty(), target); - } - - // uint64 target_time = 4; - if (this->_internal_target_time() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_target_time(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.PowAlgorithmConstants) - return target; -} - -::size_t PowAlgorithmConstants::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.PowAlgorithmConstants) - ::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 min_difficulty = 2; - if (this->_internal_min_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min_difficulty()); - } - - // uint64 max_difficulty = 3; - if (this->_internal_max_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max_difficulty()); - } - - // uint64 target_time = 4; - if (this->_internal_target_time() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_target_time()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void PowAlgorithmConstants::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:tari.rpc.PowAlgorithmConstants) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_min_difficulty() != 0) { - _this->_impl_.min_difficulty_ = from._impl_.min_difficulty_; - } - if (from._internal_max_difficulty() != 0) { - _this->_impl_.max_difficulty_ = from._impl_.max_difficulty_; - } - if (from._internal_target_time() != 0) { - _this->_impl_.target_time_ = from._impl_.target_time_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void PowAlgorithmConstants::CopyFrom(const PowAlgorithmConstants& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.PowAlgorithmConstants) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool PowAlgorithmConstants::IsInitialized() const { - return true; -} - -void PowAlgorithmConstants::InternalSwap(PowAlgorithmConstants* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.target_time_) - + sizeof(PowAlgorithmConstants::_impl_.target_time_) - - PROTOBUF_FIELD_OFFSET(PowAlgorithmConstants, _impl_.min_difficulty_)>( - reinterpret_cast(&_impl_.min_difficulty_), - reinterpret_cast(&other->_impl_.min_difficulty_)); -} - -::google::protobuf::Metadata PowAlgorithmConstants::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[6]); -} -// =================================================================== - -class WeightParams::_Internal { - public: -}; - -WeightParams::WeightParams(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.WeightParams) -} -WeightParams::WeightParams( - ::google::protobuf::Arena* arena, const WeightParams& from) - : WeightParams(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE WeightParams::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void WeightParams::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, kernel_weight_), - 0, - offsetof(Impl_, features_and_scripts_bytes_per_gram_) - - offsetof(Impl_, kernel_weight_) + - sizeof(Impl_::features_and_scripts_bytes_per_gram_)); -} -WeightParams::~WeightParams() { - // @@protoc_insertion_point(destructor:tari.rpc.WeightParams) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void WeightParams::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -WeightParams::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(WeightParams, _impl_._cached_size_), - false, - }, - &WeightParams::MergeImpl, - &WeightParams::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void WeightParams::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.WeightParams) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.kernel_weight_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.features_and_scripts_bytes_per_gram_) - - reinterpret_cast(&_impl_.kernel_weight_)) + sizeof(_impl_.features_and_scripts_bytes_per_gram_)); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* WeightParams::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> WeightParams::_table_ = { - { - 0, // no _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 - &_WeightParams_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::WeightParams>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // uint64 features_and_scripts_bytes_per_gram = 4; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.features_and_scripts_bytes_per_gram_), 63>(), - {32, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_)}}, - // uint64 kernel_weight = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.kernel_weight_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.kernel_weight_)}}, - // uint64 input_weight = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.input_weight_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.input_weight_)}}, - // uint64 output_weight = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(WeightParams, _impl_.output_weight_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.output_weight_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // uint64 kernel_weight = 1; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.kernel_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 input_weight = 2; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.input_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 output_weight = 3; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.output_weight_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 features_and_scripts_bytes_per_gram = 4; - {PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* WeightParams::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.WeightParams) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 kernel_weight = 1; - if (this->_internal_kernel_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_kernel_weight(), target); - } - - // uint64 input_weight = 2; - if (this->_internal_input_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 2, this->_internal_input_weight(), target); - } - - // uint64 output_weight = 3; - if (this->_internal_output_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_output_weight(), target); - } - - // uint64 features_and_scripts_bytes_per_gram = 4; - if (this->_internal_features_and_scripts_bytes_per_gram() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 4, this->_internal_features_and_scripts_bytes_per_gram(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.WeightParams) - return target; -} - -::size_t WeightParams::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.WeightParams) - ::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 kernel_weight = 1; - if (this->_internal_kernel_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_kernel_weight()); - } - - // uint64 input_weight = 2; - if (this->_internal_input_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_input_weight()); - } - - // uint64 output_weight = 3; - if (this->_internal_output_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_output_weight()); - } - - // uint64 features_and_scripts_bytes_per_gram = 4; - if (this->_internal_features_and_scripts_bytes_per_gram() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_features_and_scripts_bytes_per_gram()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void WeightParams::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:tari.rpc.WeightParams) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_kernel_weight() != 0) { - _this->_impl_.kernel_weight_ = from._impl_.kernel_weight_; - } - if (from._internal_input_weight() != 0) { - _this->_impl_.input_weight_ = from._impl_.input_weight_; - } - if (from._internal_output_weight() != 0) { - _this->_impl_.output_weight_ = from._impl_.output_weight_; - } - if (from._internal_features_and_scripts_bytes_per_gram() != 0) { - _this->_impl_.features_and_scripts_bytes_per_gram_ = from._impl_.features_and_scripts_bytes_per_gram_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void WeightParams::CopyFrom(const WeightParams& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.WeightParams) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool WeightParams::IsInitialized() const { - return true; -} - -void WeightParams::InternalSwap(WeightParams* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.features_and_scripts_bytes_per_gram_) - + sizeof(WeightParams::_impl_.features_and_scripts_bytes_per_gram_) - - PROTOBUF_FIELD_OFFSET(WeightParams, _impl_.kernel_weight_)>( - reinterpret_cast(&_impl_.kernel_weight_), - reinterpret_cast(&other->_impl_.kernel_weight_)); -} - -::google::protobuf::Metadata WeightParams::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[7]); -} -// =================================================================== - -class OutputsVersion::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._has_bits_); -}; - -OutputsVersion::OutputsVersion(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.OutputsVersion) -} -inline PROTOBUF_NDEBUG_INLINE OutputsVersion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -OutputsVersion::OutputsVersion( - ::google::protobuf::Arena* arena, - const OutputsVersion& from) - : ::google::protobuf::Message(arena) { - OutputsVersion* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.outputs_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( - arena, *from._impl_.outputs_) - : nullptr; - _impl_.features_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( - arena, *from._impl_.features_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.OutputsVersion) -} -inline PROTOBUF_NDEBUG_INLINE OutputsVersion::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void OutputsVersion::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, outputs_), - 0, - offsetof(Impl_, features_) - - offsetof(Impl_, outputs_) + - sizeof(Impl_::features_)); -} -OutputsVersion::~OutputsVersion() { - // @@protoc_insertion_point(destructor:tari.rpc.OutputsVersion) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void OutputsVersion::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.outputs_; - delete _impl_.features_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -OutputsVersion::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_._cached_size_), - false, - }, - &OutputsVersion::MergeImpl, - &OutputsVersion::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void OutputsVersion::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.OutputsVersion) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::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 (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.outputs_ != nullptr); - _impl_.outputs_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.features_ != nullptr); - _impl_.features_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* OutputsVersion::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 2, 0, 2> OutputsVersion::_table_ = { - { - PROTOBUF_FIELD_OFFSET(OutputsVersion, _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 - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_OutputsVersion_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::OutputsVersion>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .tari.rpc.Range features = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 1, PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_.features_)}}, - // .tari.rpc.Range outputs = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_.outputs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.Range outputs = 1; - {PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_.outputs_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.Range features = 2; - {PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_.features_), _Internal::kHasBitsOffset + 1, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - }}, {{ - }}, -}; - -::uint8_t* OutputsVersion::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.OutputsVersion) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Range outputs = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *_impl_.outputs_, _impl_.outputs_->GetCachedSize(), target, stream); - } - - // .tari.rpc.Range features = 2; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *_impl_.features_, _impl_.features_->GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.OutputsVersion) - return target; -} - -::size_t OutputsVersion::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.OutputsVersion) - ::size_t total_size = 0; - - ::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 (cached_has_bits & 0x00000003u) { - // .tari.rpc.Range outputs = 1; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.outputs_); - } - - // .tari.rpc.Range features = 2; - if (cached_has_bits & 0x00000002u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.features_); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void OutputsVersion::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:tari.rpc.OutputsVersion) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.outputs_ != nullptr); - if (_this->_impl_.outputs_ == nullptr) { - _this->_impl_.outputs_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.outputs_); - } else { - _this->_impl_.outputs_->MergeFrom(*from._impl_.outputs_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.features_ != nullptr); - if (_this->_impl_.features_ == nullptr) { - _this->_impl_.features_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.features_); - } else { - _this->_impl_.features_->MergeFrom(*from._impl_.features_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void OutputsVersion::CopyFrom(const OutputsVersion& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.OutputsVersion) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool OutputsVersion::IsInitialized() const { - return true; -} - -void OutputsVersion::InternalSwap(OutputsVersion* PROTOBUF_RESTRICT 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(OutputsVersion, _impl_.features_) - + sizeof(OutputsVersion::_impl_.features_) - - PROTOBUF_FIELD_OFFSET(OutputsVersion, _impl_.outputs_)>( - reinterpret_cast(&_impl_.outputs_), - reinterpret_cast(&other->_impl_.outputs_)); -} - -::google::protobuf::Metadata OutputsVersion::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[8]); -} -// =================================================================== - -class PermittedRangeProofs::_Internal { - public: -}; - -PermittedRangeProofs::PermittedRangeProofs(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.PermittedRangeProofs) -} -inline PROTOBUF_NDEBUG_INLINE PermittedRangeProofs::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : range_proof_types_{visibility, arena, from.range_proof_types_}, - _range_proof_types_cached_byte_size_{0}, - _cached_size_{0} {} - -PermittedRangeProofs::PermittedRangeProofs( - ::google::protobuf::Arena* arena, - const PermittedRangeProofs& from) - : ::google::protobuf::Message(arena) { - PermittedRangeProofs* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - _impl_.output_type_ = from._impl_.output_type_; - - // @@protoc_insertion_point(copy_constructor:tari.rpc.PermittedRangeProofs) -} -inline PROTOBUF_NDEBUG_INLINE PermittedRangeProofs::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : range_proof_types_{visibility, arena}, - _range_proof_types_cached_byte_size_{0}, - _cached_size_{0} {} - -inline void PermittedRangeProofs::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.output_type_ = {}; -} -PermittedRangeProofs::~PermittedRangeProofs() { - // @@protoc_insertion_point(destructor:tari.rpc.PermittedRangeProofs) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void PermittedRangeProofs::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -PermittedRangeProofs::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_._cached_size_), - false, - }, - &PermittedRangeProofs::MergeImpl, - &PermittedRangeProofs::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void PermittedRangeProofs::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.PermittedRangeProofs) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.range_proof_types_.Clear(); - _impl_.output_type_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* PermittedRangeProofs::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> PermittedRangeProofs::_table_ = { - { - 0, // no _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 - &_PermittedRangeProofs_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::PermittedRangeProofs>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // repeated .tari.rpc.RangeProofType range_proof_types = 2; - {::_pbi::TcParser::FastV32P1, - {18, 63, 0, PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.range_proof_types_)}}, - // .tari.rpc.OutputType output_type = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(PermittedRangeProofs, _impl_.output_type_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.output_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .tari.rpc.OutputType output_type = 1; - {PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.output_type_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, - // repeated .tari.rpc.RangeProofType range_proof_types = 2; - {PROTOBUF_FIELD_OFFSET(PermittedRangeProofs, _impl_.range_proof_types_), 0, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* PermittedRangeProofs::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.PermittedRangeProofs) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // .tari.rpc.OutputType output_type = 1; - if (this->_internal_output_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_output_type(), target); - } - - // repeated .tari.rpc.RangeProofType range_proof_types = 2; - { - std::size_t byte_size = _impl_._range_proof_types_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked(2, _internal_range_proof_types(), - byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.PermittedRangeProofs) - return target; -} - -::size_t PermittedRangeProofs::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.PermittedRangeProofs) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .tari.rpc.RangeProofType range_proof_types = 2; - { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_range_proof_types_size()); - - for (std::size_t i = 0; i < count; ++i) { - data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_range_proof_types().Get(static_cast(i))); - } - total_size += data_size; - if (data_size > 0) { - total_size += 1; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); - } - _impl_._range_proof_types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - } - // .tari.rpc.OutputType output_type = 1; - if (this->_internal_output_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_output_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void PermittedRangeProofs::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:tari.rpc.PermittedRangeProofs) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_range_proof_types()->MergeFrom(from._internal_range_proof_types()); - if (from._internal_output_type() != 0) { - _this->_impl_.output_type_ = from._impl_.output_type_; - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void PermittedRangeProofs::CopyFrom(const PermittedRangeProofs& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.PermittedRangeProofs) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool PermittedRangeProofs::IsInitialized() const { - return true; -} - -void PermittedRangeProofs::InternalSwap(PermittedRangeProofs* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.range_proof_types_.InternalSwap(&other->_impl_.range_proof_types_); - swap(_impl_.output_type_, other->_impl_.output_type_); -} - -::google::protobuf::Metadata PermittedRangeProofs::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[9]); -} -// =================================================================== - -class RangeProof::_Internal { - public: -}; - -RangeProof::RangeProof(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.RangeProof) -} -inline PROTOBUF_NDEBUG_INLINE RangeProof::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : proof_bytes_(arena, from.proof_bytes_), - _cached_size_{0} {} - -RangeProof::RangeProof( - ::google::protobuf::Arena* arena, - const RangeProof& from) - : ::google::protobuf::Message(arena) { - RangeProof* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.RangeProof) -} -inline PROTOBUF_NDEBUG_INLINE RangeProof::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : proof_bytes_(arena), - _cached_size_{0} {} - -inline void RangeProof::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -RangeProof::~RangeProof() { - // @@protoc_insertion_point(destructor:tari.rpc.RangeProof) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void RangeProof::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.proof_bytes_.Destroy(); - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -RangeProof::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(RangeProof, _impl_._cached_size_), - false, - }, - &RangeProof::MergeImpl, - &RangeProof::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void RangeProof::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.RangeProof) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.proof_bytes_.ClearToEmpty(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* RangeProof::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> RangeProof::_table_ = { - { - 0, // no _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 - &_RangeProof_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::RangeProof>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // bytes proof_bytes = 1; - {::_pbi::TcParser::FastBS1, - {10, 63, 0, PROTOBUF_FIELD_OFFSET(RangeProof, _impl_.proof_bytes_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // bytes proof_bytes = 1; - {PROTOBUF_FIELD_OFFSET(RangeProof, _impl_.proof_bytes_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* RangeProof::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.RangeProof) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // bytes proof_bytes = 1; - if (!this->_internal_proof_bytes().empty()) { - const std::string& _s = this->_internal_proof_bytes(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.RangeProof) - return target; -} - -::size_t RangeProof::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.RangeProof) - ::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 proof_bytes = 1; - if (!this->_internal_proof_bytes().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this->_internal_proof_bytes()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void RangeProof::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:tari.rpc.RangeProof) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_proof_bytes().empty()) { - _this->_internal_set_proof_bytes(from._internal_proof_bytes()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void RangeProof::CopyFrom(const RangeProof& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.RangeProof) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool RangeProof::IsInitialized() const { - return true; -} - -void RangeProof::InternalSwap(RangeProof* 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_.proof_bytes_, &other->_impl_.proof_bytes_, arena); -} - -::google::protobuf::Metadata RangeProof::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[10]); -} -// =================================================================== - -ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse() {} -ConsensusConstants_ProofOfWorkEntry_DoNotUse::ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -::google::protobuf::Metadata ConsensusConstants_ProofOfWorkEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[11]); -} -// =================================================================== - -class ConsensusConstants::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._has_bits_); -}; - -ConsensusConstants::ConsensusConstants(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:tari.rpc.ConsensusConstants) -} -inline PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - emission_decay_{visibility, arena, from.emission_decay_}, - _emission_decay_cached_byte_size_{0}, - proof_of_work_{visibility, arena, from.proof_of_work_}, - permitted_output_types_{visibility, arena, from.permitted_output_types_}, - _permitted_output_types_cached_byte_size_{0}, - permitted_range_proof_types_{visibility, arena, from.permitted_range_proof_types_} {} - -ConsensusConstants::ConsensusConstants( - ::google::protobuf::Arena* arena, - const ConsensusConstants& from) - : ::google::protobuf::Message(arena) { - ConsensusConstants* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.valid_blockchain_version_range_ = (cached_has_bits & 0x00000001u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( - arena, *from._impl_.valid_blockchain_version_range_) - : nullptr; - _impl_.transaction_weight_ = (cached_has_bits & 0x00000002u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::WeightParams>( - arena, *from._impl_.transaction_weight_) - : nullptr; - _impl_.input_version_range_ = (cached_has_bits & 0x00000004u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( - arena, *from._impl_.input_version_range_) - : nullptr; - _impl_.output_version_range_ = (cached_has_bits & 0x00000008u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputsVersion>( - arena, *from._impl_.output_version_range_) - : nullptr; - _impl_.kernel_version_range_ = (cached_has_bits & 0x00000010u) ? ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>( - arena, *from._impl_.kernel_version_range_) - : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, coinbase_min_maturity_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, coinbase_min_maturity_), - offsetof(Impl_, blockchain_version_) - - offsetof(Impl_, coinbase_min_maturity_) + - sizeof(Impl_::blockchain_version_)); - - // @@protoc_insertion_point(copy_constructor:tari.rpc.ConsensusConstants) -} -inline PROTOBUF_NDEBUG_INLINE ConsensusConstants::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0}, - emission_decay_{visibility, arena}, - _emission_decay_cached_byte_size_{0}, - proof_of_work_{visibility, arena}, - permitted_output_types_{visibility, arena}, - _permitted_output_types_cached_byte_size_{0}, - permitted_range_proof_types_{visibility, arena} {} - -inline void ConsensusConstants::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, valid_blockchain_version_range_), - 0, - offsetof(Impl_, blockchain_version_) - - offsetof(Impl_, valid_blockchain_version_range_) + - sizeof(Impl_::blockchain_version_)); -} -ConsensusConstants::~ConsensusConstants() { - // @@protoc_insertion_point(destructor:tari.rpc.ConsensusConstants) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void ConsensusConstants::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.valid_blockchain_version_range_; - delete _impl_.transaction_weight_; - delete _impl_.input_version_range_; - delete _impl_.output_version_range_; - delete _impl_.kernel_version_range_; - _impl_.~Impl_(); -} - -const ::google::protobuf::MessageLite::ClassData* -ConsensusConstants::GetClassData() const { - PROTOBUF_CONSTINIT static const ::google::protobuf::MessageLite:: - ClassDataFull _data_ = { - { - nullptr, // OnDemandRegisterArenaDtor - PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._cached_size_), - false, - }, - &ConsensusConstants::MergeImpl, - &ConsensusConstants::kDescriptorMethods, - }; - return &_data_; -} -PROTOBUF_NOINLINE void ConsensusConstants::Clear() { -// @@protoc_insertion_point(message_clear_start:tari.rpc.ConsensusConstants) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.emission_decay_.Clear(); - _impl_.proof_of_work_.Clear(); - _impl_.permitted_output_types_.Clear(); - _impl_.permitted_range_proof_types_.Clear(); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.valid_blockchain_version_range_ != nullptr); - _impl_.valid_blockchain_version_range_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(_impl_.transaction_weight_ != nullptr); - _impl_.transaction_weight_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(_impl_.input_version_range_ != nullptr); - _impl_.input_version_range_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(_impl_.output_version_range_ != nullptr); - _impl_.output_version_range_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(_impl_.kernel_version_range_ != nullptr); - _impl_.kernel_version_range_->Clear(); - } - } - ::memset(&_impl_.coinbase_min_maturity_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.blockchain_version_) - - reinterpret_cast(&_impl_.coinbase_min_maturity_)) + sizeof(_impl_.blockchain_version_)); - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* ConsensusConstants::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 31, 8, 0, 7> ConsensusConstants::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_._has_bits_), - 0, // no _extensions_ - 34, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 16777256, // skipmap - offsetof(decltype(_table_), field_entries), - 31, // num_field_entries - 8, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_ConsensusConstants_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::tari::rpc::ConsensusConstants>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // uint64 coinbase_min_maturity = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.coinbase_min_maturity_), 63>(), - {8, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.coinbase_min_maturity_)}}, - // uint32 blockchain_version = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ConsensusConstants, _impl_.blockchain_version_), 63>(), - {16, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_)}}, - // uint64 future_time_limit = 3; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.future_time_limit_), 63>(), - {24, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.future_time_limit_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 difficulty_block_window = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.difficulty_block_window_), 63>(), - {40, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.difficulty_block_window_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 max_block_transaction_weight = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.max_block_transaction_weight_), 63>(), - {56, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_transaction_weight_)}}, - // uint64 pow_algo_count = 8; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.pow_algo_count_), 63>(), - {64, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pow_algo_count_)}}, - // uint64 median_timestamp_count = 9; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.median_timestamp_count_), 63>(), - {72, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.median_timestamp_count_)}}, - // uint64 emission_initial = 10; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.emission_initial_), 63>(), - {80, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_initial_)}}, - // repeated uint64 emission_decay = 11; - {::_pbi::TcParser::FastV64P1, - {90, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_decay_)}}, - // uint64 emission_tail = 12; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.emission_tail_), 63>(), - {96, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_tail_)}}, - // uint64 min_sha3x_pow_difficulty = 13; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), 63>(), - {104, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_)}}, - // uint64 block_weight_inputs = 14; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.block_weight_inputs_), 63>(), - {112, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_inputs_)}}, - // uint64 block_weight_outputs = 15; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(ConsensusConstants, _impl_.block_weight_outputs_), 63>(), - {120, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_outputs_)}}, - // uint64 block_weight_kernels = 16; - {::_pbi::TcParser::FastV64S2, - {384, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_kernels_)}}, - // uint64 faucet_value = 17; - {::_pbi::TcParser::FastV64S2, - {392, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.faucet_value_)}}, - // uint64 max_script_byte_size = 18; - {::_pbi::TcParser::FastV64S2, - {400, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_script_byte_size_)}}, - // uint64 validator_node_validity_period = 19; - {::_pbi::TcParser::FastV64S2, - {408, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_validity_period_)}}, - // uint64 effective_from_height = 20; - {::_pbi::TcParser::FastV64S2, - {416, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.effective_from_height_)}}, - // .tari.rpc.Range valid_blockchain_version_range = 21; - {::_pbi::TcParser::FastMtS2, - {426, 0, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_)}}, - // uint64 max_randomx_seed_height = 22; - {::_pbi::TcParser::FastV64S2, - {432, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_randomx_seed_height_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.WeightParams transaction_weight = 24; - {::_pbi::TcParser::FastMtS2, - {450, 1, 3, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.transaction_weight_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .tari.rpc.Range input_version_range = 26; - {::_pbi::TcParser::FastMtS2, - {466, 2, 4, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.input_version_range_)}}, - // .tari.rpc.OutputsVersion output_version_range = 27; - {::_pbi::TcParser::FastMtS2, - {474, 3, 5, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.output_version_range_)}}, - // .tari.rpc.Range kernel_version_range = 28; - {::_pbi::TcParser::FastMtS2, - {482, 4, 6, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.kernel_version_range_)}}, - // repeated .tari.rpc.OutputType permitted_output_types = 29; - {::_pbi::TcParser::FastV32P2, - {490, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_output_types_)}}, - // uint64 epoch_length = 30; - {::_pbi::TcParser::FastV64S2, - {496, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.epoch_length_)}}, - // uint64 validator_node_registration_min_deposit_amount = 31; - {::_pbi::TcParser::FastV64S2, - {504, 63, 0, PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_)}}, - }}, {{ - 33, 0, 1, - 65532, 29, - 65535, 65535 - }}, {{ - // uint64 coinbase_min_maturity = 1; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.coinbase_min_maturity_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint32 blockchain_version = 2; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, - // uint64 future_time_limit = 3; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.future_time_limit_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 difficulty_block_window = 5; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.difficulty_block_window_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 max_block_transaction_weight = 7; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_block_transaction_weight_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 pow_algo_count = 8; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.pow_algo_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 median_timestamp_count = 9; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.median_timestamp_count_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 emission_initial = 10; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_initial_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // repeated uint64 emission_decay = 11; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_decay_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedUInt64)}, - // uint64 emission_tail = 12; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.emission_tail_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 min_sha3x_pow_difficulty = 13; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.min_sha3x_pow_difficulty_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 block_weight_inputs = 14; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_inputs_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 block_weight_outputs = 15; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_outputs_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 block_weight_kernels = 16; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.block_weight_kernels_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 faucet_value = 17; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.faucet_value_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 max_script_byte_size = 18; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_script_byte_size_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_validity_period = 19; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_validity_period_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 effective_from_height = 20; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.effective_from_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // .tari.rpc.Range valid_blockchain_version_range = 21; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // uint64 max_randomx_seed_height = 22; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.max_randomx_seed_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // map proof_of_work = 23; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.proof_of_work_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .tari.rpc.WeightParams transaction_weight = 24; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.transaction_weight_), _Internal::kHasBitsOffset + 1, 3, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.Range input_version_range = 26; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.input_version_range_), _Internal::kHasBitsOffset + 2, 4, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.OutputsVersion output_version_range = 27; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.output_version_range_), _Internal::kHasBitsOffset + 3, 5, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // .tari.rpc.Range kernel_version_range = 28; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.kernel_version_range_), _Internal::kHasBitsOffset + 4, 6, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .tari.rpc.OutputType permitted_output_types = 29; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_output_types_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // uint64 epoch_length = 30; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.epoch_length_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_registration_min_deposit_amount = 31; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_deposit_amount_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_registration_min_lock_height = 32; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_min_lock_height_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // uint64 validator_node_registration_shuffle_interval_epoch = 33; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.validator_node_registration_shuffle_interval_epoch_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kUInt64)}, - // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; - {PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.permitted_range_proof_types_), -1, 7, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetMapAuxInfo< - decltype(ConsensusConstants()._impl_.proof_of_work_)>( - 0, 0, 0, 13, - 11)}, - {::_pbi::TcParser::CreateInArenaStorageCb<::tari::rpc::PowAlgorithmConstants>}, - {::_pbi::TcParser::GetTable<::tari::rpc::WeightParams>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::OutputsVersion>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::Range>()}, - {::_pbi::TcParser::GetTable<::tari::rpc::PermittedRangeProofs>()}, - }}, {{ - }}, -}; - -::uint8_t* ConsensusConstants::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:tari.rpc.ConsensusConstants) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // uint64 coinbase_min_maturity = 1; - if (this->_internal_coinbase_min_maturity() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 1, this->_internal_coinbase_min_maturity(), target); - } - - // uint32 blockchain_version = 2; - if (this->_internal_blockchain_version() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 2, this->_internal_blockchain_version(), target); - } - - // uint64 future_time_limit = 3; - if (this->_internal_future_time_limit() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 3, this->_internal_future_time_limit(), target); - } - - // uint64 difficulty_block_window = 5; - if (this->_internal_difficulty_block_window() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 5, this->_internal_difficulty_block_window(), target); - } - - // uint64 max_block_transaction_weight = 7; - if (this->_internal_max_block_transaction_weight() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 7, this->_internal_max_block_transaction_weight(), target); - } - - // uint64 pow_algo_count = 8; - if (this->_internal_pow_algo_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 8, this->_internal_pow_algo_count(), target); - } - - // uint64 median_timestamp_count = 9; - if (this->_internal_median_timestamp_count() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 9, this->_internal_median_timestamp_count(), target); - } - - // uint64 emission_initial = 10; - if (this->_internal_emission_initial() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 10, this->_internal_emission_initial(), target); - } - - // repeated uint64 emission_decay = 11; - { - int byte_size = _impl_._emission_decay_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteUInt64Packed( - 11, _internal_emission_decay(), byte_size, target); - } - } - - // uint64 emission_tail = 12; - if (this->_internal_emission_tail() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 12, this->_internal_emission_tail(), target); - } - - // uint64 min_sha3x_pow_difficulty = 13; - if (this->_internal_min_sha3x_pow_difficulty() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 13, this->_internal_min_sha3x_pow_difficulty(), target); - } - - // uint64 block_weight_inputs = 14; - if (this->_internal_block_weight_inputs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 14, this->_internal_block_weight_inputs(), target); - } - - // uint64 block_weight_outputs = 15; - if (this->_internal_block_weight_outputs() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 15, this->_internal_block_weight_outputs(), target); - } - - // uint64 block_weight_kernels = 16; - if (this->_internal_block_weight_kernels() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 16, this->_internal_block_weight_kernels(), target); - } - - // uint64 faucet_value = 17; - if (this->_internal_faucet_value() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 17, this->_internal_faucet_value(), target); - } - - // uint64 max_script_byte_size = 18; - if (this->_internal_max_script_byte_size() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 18, this->_internal_max_script_byte_size(), target); - } - - // uint64 validator_node_validity_period = 19; - if (this->_internal_validator_node_validity_period() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 19, this->_internal_validator_node_validity_period(), target); - } - - // uint64 effective_from_height = 20; - if (this->_internal_effective_from_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 20, this->_internal_effective_from_height(), target); - } - - cached_has_bits = _impl_._has_bits_[0]; - // .tari.rpc.Range valid_blockchain_version_range = 21; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 21, *_impl_.valid_blockchain_version_range_, _impl_.valid_blockchain_version_range_->GetCachedSize(), target, stream); - } - - // uint64 max_randomx_seed_height = 22; - if (this->_internal_max_randomx_seed_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 22, this->_internal_max_randomx_seed_height(), target); - } - - // map proof_of_work = 23; - if (!_internal_proof_of_work().empty()) { - using MapType = ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>; - using WireHelper = _pbi::MapEntryFuncs<::uint32_t, ::tari::rpc::PowAlgorithmConstants, - _pbi::WireFormatLite::TYPE_UINT32, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = _internal_proof_of_work(); - - if (stream->IsSerializationDeterministic() && field.size() > 1) { - for (const auto& entry : ::google::protobuf::internal::MapSorterFlat(field)) { - target = WireHelper::InternalSerialize( - 23, entry.first, entry.second, target, stream); - } - } else { - for (const auto& entry : field) { - target = WireHelper::InternalSerialize( - 23, entry.first, entry.second, target, stream); - } - } - } - - // .tari.rpc.WeightParams transaction_weight = 24; - if (cached_has_bits & 0x00000002u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 24, *_impl_.transaction_weight_, _impl_.transaction_weight_->GetCachedSize(), target, stream); - } - - // .tari.rpc.Range input_version_range = 26; - if (cached_has_bits & 0x00000004u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 26, *_impl_.input_version_range_, _impl_.input_version_range_->GetCachedSize(), target, stream); - } - - // .tari.rpc.OutputsVersion output_version_range = 27; - if (cached_has_bits & 0x00000008u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 27, *_impl_.output_version_range_, _impl_.output_version_range_->GetCachedSize(), target, stream); - } - - // .tari.rpc.Range kernel_version_range = 28; - if (cached_has_bits & 0x00000010u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 28, *_impl_.kernel_version_range_, _impl_.kernel_version_range_->GetCachedSize(), target, stream); - } - - // repeated .tari.rpc.OutputType permitted_output_types = 29; - { - std::size_t byte_size = _impl_._permitted_output_types_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked(29, _internal_permitted_output_types(), - byte_size, target); - } - } - - // uint64 epoch_length = 30; - if (this->_internal_epoch_length() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 30, this->_internal_epoch_length(), target); - } - - // uint64 validator_node_registration_min_deposit_amount = 31; - if (this->_internal_validator_node_registration_min_deposit_amount() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 31, this->_internal_validator_node_registration_min_deposit_amount(), target); - } - - // uint64 validator_node_registration_min_lock_height = 32; - if (this->_internal_validator_node_registration_min_lock_height() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 32, this->_internal_validator_node_registration_min_lock_height(), target); - } - - // uint64 validator_node_registration_shuffle_interval_epoch = 33; - if (this->_internal_validator_node_registration_shuffle_interval_epoch() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray( - 33, this->_internal_validator_node_registration_shuffle_interval_epoch(), target); - } - - // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; - for (unsigned i = 0, n = static_cast( - this->_internal_permitted_range_proof_types_size()); - i < n; i++) { - const auto& repfield = this->_internal_permitted_range_proof_types().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 34, repfield, repfield.GetCachedSize(), - target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:tari.rpc.ConsensusConstants) - return target; -} - -::size_t ConsensusConstants::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:tari.rpc.ConsensusConstants) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated uint64 emission_decay = 11; - { - std::size_t data_size = ::_pbi::WireFormatLite::UInt64Size( - this->_internal_emission_decay()) - ; - _impl_._emission_decay_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - std::size_t tag_size = data_size == 0 - ? 0 - : 1 + ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)) - ; - total_size += tag_size + data_size; - } - // map proof_of_work = 23; - total_size += 2 * ::google::protobuf::internal::FromIntSize(_internal_proof_of_work_size()); - for (const auto& entry : _internal_proof_of_work()) { - total_size += _pbi::MapEntryFuncs<::uint32_t, ::tari::rpc::PowAlgorithmConstants, - _pbi::WireFormatLite::TYPE_UINT32, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - // repeated .tari.rpc.OutputType permitted_output_types = 29; - { - std::size_t data_size = 0; - auto count = static_cast(this->_internal_permitted_output_types_size()); - - for (std::size_t i = 0; i < count; ++i) { - data_size += ::_pbi::WireFormatLite::EnumSize( - this->_internal_permitted_output_types().Get(static_cast(i))); - } - total_size += data_size; - if (data_size > 0) { - total_size += 2; - total_size += ::_pbi::WireFormatLite::Int32Size( - static_cast(data_size)); - } - _impl_._permitted_output_types_cached_byte_size_.Set(::_pbi::ToCachedSize(data_size)); - } - // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; - total_size += 2UL * this->_internal_permitted_range_proof_types_size(); - for (const auto& msg : this->_internal_permitted_range_proof_types()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // .tari.rpc.Range valid_blockchain_version_range = 21; - if (cached_has_bits & 0x00000001u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.valid_blockchain_version_range_); - } - - // .tari.rpc.WeightParams transaction_weight = 24; - if (cached_has_bits & 0x00000002u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.transaction_weight_); - } - - // .tari.rpc.Range input_version_range = 26; - if (cached_has_bits & 0x00000004u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.input_version_range_); - } - - // .tari.rpc.OutputsVersion output_version_range = 27; - if (cached_has_bits & 0x00000008u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.output_version_range_); - } - - // .tari.rpc.Range kernel_version_range = 28; - if (cached_has_bits & 0x00000010u) { - total_size += - 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.kernel_version_range_); - } - - } - // uint64 coinbase_min_maturity = 1; - if (this->_internal_coinbase_min_maturity() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_coinbase_min_maturity()); - } - - // uint64 future_time_limit = 3; - if (this->_internal_future_time_limit() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_future_time_limit()); - } - - // uint64 difficulty_block_window = 5; - if (this->_internal_difficulty_block_window() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_difficulty_block_window()); - } - - // uint64 max_block_transaction_weight = 7; - if (this->_internal_max_block_transaction_weight() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_max_block_transaction_weight()); - } - - // uint64 pow_algo_count = 8; - if (this->_internal_pow_algo_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_pow_algo_count()); - } - - // uint64 median_timestamp_count = 9; - if (this->_internal_median_timestamp_count() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_median_timestamp_count()); - } - - // uint64 emission_initial = 10; - if (this->_internal_emission_initial() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_emission_initial()); - } - - // uint64 emission_tail = 12; - if (this->_internal_emission_tail() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_emission_tail()); - } - - // uint64 min_sha3x_pow_difficulty = 13; - if (this->_internal_min_sha3x_pow_difficulty() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_min_sha3x_pow_difficulty()); - } - - // uint64 block_weight_inputs = 14; - if (this->_internal_block_weight_inputs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_block_weight_inputs()); - } - - // uint64 block_weight_outputs = 15; - if (this->_internal_block_weight_outputs() != 0) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( - this->_internal_block_weight_outputs()); - } - - // uint64 block_weight_kernels = 16; - if (this->_internal_block_weight_kernels() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_block_weight_kernels()); - } - - // uint64 faucet_value = 17; - if (this->_internal_faucet_value() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_faucet_value()); - } - - // uint64 max_script_byte_size = 18; - if (this->_internal_max_script_byte_size() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_max_script_byte_size()); - } - - // uint64 validator_node_validity_period = 19; - if (this->_internal_validator_node_validity_period() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_validity_period()); - } - - // uint64 effective_from_height = 20; - if (this->_internal_effective_from_height() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_effective_from_height()); - } - - // uint64 max_randomx_seed_height = 22; - if (this->_internal_max_randomx_seed_height() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_max_randomx_seed_height()); - } - - // uint64 epoch_length = 30; - if (this->_internal_epoch_length() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_epoch_length()); - } - - // uint64 validator_node_registration_min_deposit_amount = 31; - if (this->_internal_validator_node_registration_min_deposit_amount() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_registration_min_deposit_amount()); - } - - // uint64 validator_node_registration_min_lock_height = 32; - if (this->_internal_validator_node_registration_min_lock_height() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_registration_min_lock_height()); - } - - // uint64 validator_node_registration_shuffle_interval_epoch = 33; - if (this->_internal_validator_node_registration_shuffle_interval_epoch() != 0) { - total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( - this->_internal_validator_node_registration_shuffle_interval_epoch()); - } - - // uint32 blockchain_version = 2; - if (this->_internal_blockchain_version() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this->_internal_blockchain_version()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - - -void ConsensusConstants::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:tari.rpc.ConsensusConstants) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_internal_mutable_emission_decay()->MergeFrom(from._internal_emission_decay()); - _this->_impl_.proof_of_work_.MergeFrom(from._impl_.proof_of_work_); - _this->_internal_mutable_permitted_output_types()->MergeFrom(from._internal_permitted_output_types()); - _this->_internal_mutable_permitted_range_proof_types()->MergeFrom( - from._internal_permitted_range_proof_types()); - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(from._impl_.valid_blockchain_version_range_ != nullptr); - if (_this->_impl_.valid_blockchain_version_range_ == nullptr) { - _this->_impl_.valid_blockchain_version_range_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.valid_blockchain_version_range_); - } else { - _this->_impl_.valid_blockchain_version_range_->MergeFrom(*from._impl_.valid_blockchain_version_range_); - } - } - if (cached_has_bits & 0x00000002u) { - ABSL_DCHECK(from._impl_.transaction_weight_ != nullptr); - if (_this->_impl_.transaction_weight_ == nullptr) { - _this->_impl_.transaction_weight_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::WeightParams>(arena, *from._impl_.transaction_weight_); - } else { - _this->_impl_.transaction_weight_->MergeFrom(*from._impl_.transaction_weight_); - } - } - if (cached_has_bits & 0x00000004u) { - ABSL_DCHECK(from._impl_.input_version_range_ != nullptr); - if (_this->_impl_.input_version_range_ == nullptr) { - _this->_impl_.input_version_range_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.input_version_range_); - } else { - _this->_impl_.input_version_range_->MergeFrom(*from._impl_.input_version_range_); - } - } - if (cached_has_bits & 0x00000008u) { - ABSL_DCHECK(from._impl_.output_version_range_ != nullptr); - if (_this->_impl_.output_version_range_ == nullptr) { - _this->_impl_.output_version_range_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::OutputsVersion>(arena, *from._impl_.output_version_range_); - } else { - _this->_impl_.output_version_range_->MergeFrom(*from._impl_.output_version_range_); - } - } - if (cached_has_bits & 0x00000010u) { - ABSL_DCHECK(from._impl_.kernel_version_range_ != nullptr); - if (_this->_impl_.kernel_version_range_ == nullptr) { - _this->_impl_.kernel_version_range_ = - ::google::protobuf::Message::CopyConstruct<::tari::rpc::Range>(arena, *from._impl_.kernel_version_range_); - } else { - _this->_impl_.kernel_version_range_->MergeFrom(*from._impl_.kernel_version_range_); - } - } - } - if (from._internal_coinbase_min_maturity() != 0) { - _this->_impl_.coinbase_min_maturity_ = from._impl_.coinbase_min_maturity_; - } - if (from._internal_future_time_limit() != 0) { - _this->_impl_.future_time_limit_ = from._impl_.future_time_limit_; - } - if (from._internal_difficulty_block_window() != 0) { - _this->_impl_.difficulty_block_window_ = from._impl_.difficulty_block_window_; - } - if (from._internal_max_block_transaction_weight() != 0) { - _this->_impl_.max_block_transaction_weight_ = from._impl_.max_block_transaction_weight_; - } - if (from._internal_pow_algo_count() != 0) { - _this->_impl_.pow_algo_count_ = from._impl_.pow_algo_count_; - } - if (from._internal_median_timestamp_count() != 0) { - _this->_impl_.median_timestamp_count_ = from._impl_.median_timestamp_count_; - } - if (from._internal_emission_initial() != 0) { - _this->_impl_.emission_initial_ = from._impl_.emission_initial_; - } - if (from._internal_emission_tail() != 0) { - _this->_impl_.emission_tail_ = from._impl_.emission_tail_; - } - if (from._internal_min_sha3x_pow_difficulty() != 0) { - _this->_impl_.min_sha3x_pow_difficulty_ = from._impl_.min_sha3x_pow_difficulty_; - } - if (from._internal_block_weight_inputs() != 0) { - _this->_impl_.block_weight_inputs_ = from._impl_.block_weight_inputs_; - } - if (from._internal_block_weight_outputs() != 0) { - _this->_impl_.block_weight_outputs_ = from._impl_.block_weight_outputs_; - } - if (from._internal_block_weight_kernels() != 0) { - _this->_impl_.block_weight_kernels_ = from._impl_.block_weight_kernels_; - } - if (from._internal_faucet_value() != 0) { - _this->_impl_.faucet_value_ = from._impl_.faucet_value_; - } - if (from._internal_max_script_byte_size() != 0) { - _this->_impl_.max_script_byte_size_ = from._impl_.max_script_byte_size_; - } - if (from._internal_validator_node_validity_period() != 0) { - _this->_impl_.validator_node_validity_period_ = from._impl_.validator_node_validity_period_; - } - if (from._internal_effective_from_height() != 0) { - _this->_impl_.effective_from_height_ = from._impl_.effective_from_height_; - } - if (from._internal_max_randomx_seed_height() != 0) { - _this->_impl_.max_randomx_seed_height_ = from._impl_.max_randomx_seed_height_; - } - if (from._internal_epoch_length() != 0) { - _this->_impl_.epoch_length_ = from._impl_.epoch_length_; - } - if (from._internal_validator_node_registration_min_deposit_amount() != 0) { - _this->_impl_.validator_node_registration_min_deposit_amount_ = from._impl_.validator_node_registration_min_deposit_amount_; - } - if (from._internal_validator_node_registration_min_lock_height() != 0) { - _this->_impl_.validator_node_registration_min_lock_height_ = from._impl_.validator_node_registration_min_lock_height_; - } - if (from._internal_validator_node_registration_shuffle_interval_epoch() != 0) { - _this->_impl_.validator_node_registration_shuffle_interval_epoch_ = from._impl_.validator_node_registration_shuffle_interval_epoch_; - } - if (from._internal_blockchain_version() != 0) { - _this->_impl_.blockchain_version_ = from._impl_.blockchain_version_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void ConsensusConstants::CopyFrom(const ConsensusConstants& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:tari.rpc.ConsensusConstants) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ConsensusConstants::IsInitialized() const { - return true; -} - -void ConsensusConstants::InternalSwap(ConsensusConstants* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.emission_decay_.InternalSwap(&other->_impl_.emission_decay_); - _impl_.proof_of_work_.InternalSwap(&other->_impl_.proof_of_work_); - _impl_.permitted_output_types_.InternalSwap(&other->_impl_.permitted_output_types_); - _impl_.permitted_range_proof_types_.InternalSwap(&other->_impl_.permitted_range_proof_types_); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.blockchain_version_) - + sizeof(ConsensusConstants::_impl_.blockchain_version_) - - PROTOBUF_FIELD_OFFSET(ConsensusConstants, _impl_.valid_blockchain_version_range_)>( - reinterpret_cast(&_impl_.valid_blockchain_version_range_), - reinterpret_cast(&other->_impl_.valid_blockchain_version_range_)); -} - -::google::protobuf::Metadata ConsensusConstants::GetMetadata() const { - return ::_pbi::AssignDescriptors(&descriptor_table_types_2eproto_getter, - &descriptor_table_types_2eproto_once, - file_level_metadata_types_2eproto[12]); -} -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 -static ::std::false_type _static_init_ PROTOBUF_UNUSED = - (::_pbi::AddDescriptors(&descriptor_table_types_2eproto), - ::std::false_type{}); -#include "google/protobuf/port_undef.inc" diff --git a/external/src/Tari/proto/gRPC/types.pb.h b/external/src/Tari/proto/gRPC/types.pb.h deleted file mode 100644 index 77b848b8..00000000 --- a/external/src/Tari/proto/gRPC/types.pb.h +++ /dev/null @@ -1,5113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: types.proto -// Protobuf C++ Version: 5.26.0-rc1 - -#ifndef GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh -#define GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/port_def.inc" -#if PROTOBUF_VERSION != 5026000 -#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/port_undef.inc" -#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/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/map.h" // IWYU pragma: export -#include "google/protobuf/map_entry.h" -#include "google/protobuf/map_field_inl.h" -#include "google/protobuf/generated_enum_reflection.h" -#include "google/protobuf/unknown_field_set.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_types_2eproto - -namespace google { -namespace protobuf { -namespace internal { -class AnyMetadata; -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_types_2eproto { - static const ::uint32_t offsets[]; -}; -extern const ::google::protobuf::internal::DescriptorTable - descriptor_table_types_2eproto; -namespace tari { -namespace rpc { -class BlockHeight; -struct BlockHeightDefaultTypeInternal; -extern BlockHeightDefaultTypeInternal _BlockHeight_default_instance_; -class ComAndPubSignature; -struct ComAndPubSignatureDefaultTypeInternal; -extern ComAndPubSignatureDefaultTypeInternal _ComAndPubSignature_default_instance_; -class CommitmentSignature; -struct CommitmentSignatureDefaultTypeInternal; -extern CommitmentSignatureDefaultTypeInternal _CommitmentSignature_default_instance_; -class ConsensusConstants; -struct ConsensusConstantsDefaultTypeInternal; -extern ConsensusConstantsDefaultTypeInternal _ConsensusConstants_default_instance_; -class ConsensusConstants_ProofOfWorkEntry_DoNotUse; -struct ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal; -extern ConsensusConstants_ProofOfWorkEntry_DoNotUseDefaultTypeInternal _ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_; -class Empty; -struct EmptyDefaultTypeInternal; -extern EmptyDefaultTypeInternal _Empty_default_instance_; -class OutputsVersion; -struct OutputsVersionDefaultTypeInternal; -extern OutputsVersionDefaultTypeInternal _OutputsVersion_default_instance_; -class PermittedRangeProofs; -struct PermittedRangeProofsDefaultTypeInternal; -extern PermittedRangeProofsDefaultTypeInternal _PermittedRangeProofs_default_instance_; -class PowAlgorithmConstants; -struct PowAlgorithmConstantsDefaultTypeInternal; -extern PowAlgorithmConstantsDefaultTypeInternal _PowAlgorithmConstants_default_instance_; -class Range; -struct RangeDefaultTypeInternal; -extern RangeDefaultTypeInternal _Range_default_instance_; -class RangeProof; -struct RangeProofDefaultTypeInternal; -extern RangeProofDefaultTypeInternal _RangeProof_default_instance_; -class Signature; -struct SignatureDefaultTypeInternal; -extern SignatureDefaultTypeInternal _Signature_default_instance_; -class WeightParams; -struct WeightParamsDefaultTypeInternal; -extern WeightParamsDefaultTypeInternal _WeightParams_default_instance_; -} // namespace rpc -} // namespace tari -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -namespace tari { -namespace rpc { -enum OutputType : int { - STANDARD = 0, - COINBASE = 1, - BURN = 2, - VALIDATOR_NODE_REGISTRATION = 3, - CODE_TEMPLATE_REGISTRATION = 4, - OutputType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - OutputType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool OutputType_IsValid(int value); -extern const uint32_t OutputType_internal_data_[]; -constexpr OutputType OutputType_MIN = static_cast(0); -constexpr OutputType OutputType_MAX = static_cast(4); -constexpr int OutputType_ARRAYSIZE = 4 + 1; -const ::google::protobuf::EnumDescriptor* -OutputType_descriptor(); -template -const std::string& OutputType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to OutputType_Name()."); - return OutputType_Name(static_cast(value)); -} -template <> -inline const std::string& OutputType_Name(OutputType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool OutputType_Parse(absl::string_view name, OutputType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OutputType_descriptor(), name, value); -} -enum RangeProofType : int { - BULLETPROOF_PLUS = 0, - REVEALED_VALUE = 1, - RangeProofType_INT_MIN_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::min(), - RangeProofType_INT_MAX_SENTINEL_DO_NOT_USE_ = - std::numeric_limits<::int32_t>::max(), -}; - -bool RangeProofType_IsValid(int value); -extern const uint32_t RangeProofType_internal_data_[]; -constexpr RangeProofType RangeProofType_MIN = static_cast(0); -constexpr RangeProofType RangeProofType_MAX = static_cast(1); -constexpr int RangeProofType_ARRAYSIZE = 1 + 1; -const ::google::protobuf::EnumDescriptor* -RangeProofType_descriptor(); -template -const std::string& RangeProofType_Name(T value) { - static_assert(std::is_same::value || - std::is_integral::value, - "Incorrect type passed to RangeProofType_Name()."); - return RangeProofType_Name(static_cast(value)); -} -template <> -inline const std::string& RangeProofType_Name(RangeProofType value) { - return ::google::protobuf::internal::NameOfDenseEnum( - static_cast(value)); -} -inline bool RangeProofType_Parse(absl::string_view name, RangeProofType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RangeProofType_descriptor(), name, value); -} - -// =================================================================== - - -// ------------------------------------------------------------------- - -class WeightParams final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.WeightParams) */ { - public: - inline WeightParams() : WeightParams(nullptr) {} - ~WeightParams() override; - template - explicit PROTOBUF_CONSTEXPR WeightParams( - ::google::protobuf::internal::ConstantInitialized); - - inline WeightParams(const WeightParams& from) : WeightParams(nullptr, from) {} - inline WeightParams(WeightParams&& from) noexcept - : WeightParams(nullptr, std::move(from)) {} - inline WeightParams& operator=(const WeightParams& from) { - CopyFrom(from); - return *this; - } - inline WeightParams& operator=(WeightParams&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const WeightParams& default_instance() { - return *internal_default_instance(); - } - static inline const WeightParams* internal_default_instance() { - return reinterpret_cast( - &_WeightParams_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(WeightParams& a, WeightParams& b) { a.Swap(&b); } - inline void Swap(WeightParams* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WeightParams* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WeightParams* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const WeightParams& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const WeightParams& from) { WeightParams::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(WeightParams* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.WeightParams"; } - - protected: - explicit WeightParams(::google::protobuf::Arena* arena); - WeightParams(::google::protobuf::Arena* arena, const WeightParams& from); - WeightParams(::google::protobuf::Arena* arena, WeightParams&& from) noexcept - : WeightParams(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kKernelWeightFieldNumber = 1, - kInputWeightFieldNumber = 2, - kOutputWeightFieldNumber = 3, - kFeaturesAndScriptsBytesPerGramFieldNumber = 4, - }; - // uint64 kernel_weight = 1; - void clear_kernel_weight() ; - ::uint64_t kernel_weight() const; - void set_kernel_weight(::uint64_t value); - - private: - ::uint64_t _internal_kernel_weight() const; - void _internal_set_kernel_weight(::uint64_t value); - - public: - // uint64 input_weight = 2; - void clear_input_weight() ; - ::uint64_t input_weight() const; - void set_input_weight(::uint64_t value); - - private: - ::uint64_t _internal_input_weight() const; - void _internal_set_input_weight(::uint64_t value); - - public: - // uint64 output_weight = 3; - void clear_output_weight() ; - ::uint64_t output_weight() const; - void set_output_weight(::uint64_t value); - - private: - ::uint64_t _internal_output_weight() const; - void _internal_set_output_weight(::uint64_t value); - - public: - // uint64 features_and_scripts_bytes_per_gram = 4; - void clear_features_and_scripts_bytes_per_gram() ; - ::uint64_t features_and_scripts_bytes_per_gram() const; - void set_features_and_scripts_bytes_per_gram(::uint64_t value); - - private: - ::uint64_t _internal_features_and_scripts_bytes_per_gram() const; - void _internal_set_features_and_scripts_bytes_per_gram(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.WeightParams) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t kernel_weight_; - ::uint64_t input_weight_; - ::uint64_t output_weight_; - ::uint64_t features_and_scripts_bytes_per_gram_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class Signature final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.Signature) */ { - public: - inline Signature() : Signature(nullptr) {} - ~Signature() override; - template - explicit PROTOBUF_CONSTEXPR Signature( - ::google::protobuf::internal::ConstantInitialized); - - inline Signature(const Signature& from) : Signature(nullptr, from) {} - inline Signature(Signature&& from) noexcept - : Signature(nullptr, std::move(from)) {} - inline Signature& operator=(const Signature& from) { - CopyFrom(from); - return *this; - } - inline Signature& operator=(Signature&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Signature& default_instance() { - return *internal_default_instance(); - } - static inline const Signature* internal_default_instance() { - return reinterpret_cast( - &_Signature_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(Signature& a, Signature& b) { a.Swap(&b); } - inline void Swap(Signature* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Signature* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Signature* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Signature& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Signature& from) { Signature::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Signature* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.Signature"; } - - protected: - explicit Signature(::google::protobuf::Arena* arena); - Signature(::google::protobuf::Arena* arena, const Signature& from); - Signature(::google::protobuf::Arena* arena, Signature&& from) noexcept - : Signature(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicNonceFieldNumber = 1, - kSignatureFieldNumber = 2, - }; - // bytes public_nonce = 1; - void clear_public_nonce() ; - const std::string& public_nonce() const; - template - void set_public_nonce(Arg_&& arg, Args_... args); - std::string* mutable_public_nonce(); - PROTOBUF_NODISCARD std::string* release_public_nonce(); - void set_allocated_public_nonce(std::string* value); - - private: - const std::string& _internal_public_nonce() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_nonce( - const std::string& value); - std::string* _internal_mutable_public_nonce(); - - public: - // bytes signature = 2; - void clear_signature() ; - const std::string& signature() const; - template - void set_signature(Arg_&& arg, Args_... args); - std::string* mutable_signature(); - PROTOBUF_NODISCARD std::string* release_signature(); - void set_allocated_signature(std::string* value); - - private: - const std::string& _internal_signature() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_signature( - const std::string& value); - std::string* _internal_mutable_signature(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.Signature) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr public_nonce_; - ::google::protobuf::internal::ArenaStringPtr signature_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class RangeProof final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.RangeProof) */ { - public: - inline RangeProof() : RangeProof(nullptr) {} - ~RangeProof() override; - template - explicit PROTOBUF_CONSTEXPR RangeProof( - ::google::protobuf::internal::ConstantInitialized); - - inline RangeProof(const RangeProof& from) : RangeProof(nullptr, from) {} - inline RangeProof(RangeProof&& from) noexcept - : RangeProof(nullptr, std::move(from)) {} - inline RangeProof& operator=(const RangeProof& from) { - CopyFrom(from); - return *this; - } - inline RangeProof& operator=(RangeProof&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const RangeProof& default_instance() { - return *internal_default_instance(); - } - static inline const RangeProof* internal_default_instance() { - return reinterpret_cast( - &_RangeProof_default_instance_); - } - static constexpr int kIndexInFileMessages = 10; - friend void swap(RangeProof& a, RangeProof& b) { a.Swap(&b); } - inline void Swap(RangeProof* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(RangeProof* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - RangeProof* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const RangeProof& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const RangeProof& from) { RangeProof::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(RangeProof* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.RangeProof"; } - - protected: - explicit RangeProof(::google::protobuf::Arena* arena); - RangeProof(::google::protobuf::Arena* arena, const RangeProof& from); - RangeProof(::google::protobuf::Arena* arena, RangeProof&& from) noexcept - : RangeProof(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kProofBytesFieldNumber = 1, - }; - // bytes proof_bytes = 1; - void clear_proof_bytes() ; - const std::string& proof_bytes() const; - template - void set_proof_bytes(Arg_&& arg, Args_... args); - std::string* mutable_proof_bytes(); - PROTOBUF_NODISCARD std::string* release_proof_bytes(); - void set_allocated_proof_bytes(std::string* value); - - private: - const std::string& _internal_proof_bytes() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_proof_bytes( - const std::string& value); - std::string* _internal_mutable_proof_bytes(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.RangeProof) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr proof_bytes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class Range final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.Range) */ { - public: - inline Range() : Range(nullptr) {} - ~Range() override; - template - explicit PROTOBUF_CONSTEXPR Range( - ::google::protobuf::internal::ConstantInitialized); - - inline Range(const Range& from) : Range(nullptr, from) {} - inline Range(Range&& from) noexcept - : Range(nullptr, std::move(from)) {} - inline Range& operator=(const Range& from) { - CopyFrom(from); - return *this; - } - inline Range& operator=(Range&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Range& default_instance() { - return *internal_default_instance(); - } - static inline const Range* internal_default_instance() { - return reinterpret_cast( - &_Range_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(Range& a, Range& b) { a.Swap(&b); } - inline void Swap(Range* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Range* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Range* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const Range& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const Range& from) { Range::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(Range* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.Range"; } - - protected: - explicit Range(::google::protobuf::Arena* arena); - Range(::google::protobuf::Arena* arena, const Range& from); - Range(::google::protobuf::Arena* arena, Range&& from) noexcept - : Range(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMinFieldNumber = 1, - kMaxFieldNumber = 2, - }; - // uint64 min = 1; - void clear_min() ; - ::uint64_t min() const; - void set_min(::uint64_t value); - - private: - ::uint64_t _internal_min() const; - void _internal_set_min(::uint64_t value); - - public: - // uint64 max = 2; - void clear_max() ; - ::uint64_t max() const; - void set_max(::uint64_t value); - - private: - ::uint64_t _internal_max() const; - void _internal_set_max(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.Range) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t min_; - ::uint64_t max_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class PowAlgorithmConstants final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.PowAlgorithmConstants) */ { - public: - inline PowAlgorithmConstants() : PowAlgorithmConstants(nullptr) {} - ~PowAlgorithmConstants() override; - template - explicit PROTOBUF_CONSTEXPR PowAlgorithmConstants( - ::google::protobuf::internal::ConstantInitialized); - - inline PowAlgorithmConstants(const PowAlgorithmConstants& from) : PowAlgorithmConstants(nullptr, from) {} - inline PowAlgorithmConstants(PowAlgorithmConstants&& from) noexcept - : PowAlgorithmConstants(nullptr, std::move(from)) {} - inline PowAlgorithmConstants& operator=(const PowAlgorithmConstants& from) { - CopyFrom(from); - return *this; - } - inline PowAlgorithmConstants& operator=(PowAlgorithmConstants&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PowAlgorithmConstants& default_instance() { - return *internal_default_instance(); - } - static inline const PowAlgorithmConstants* internal_default_instance() { - return reinterpret_cast( - &_PowAlgorithmConstants_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(PowAlgorithmConstants& a, PowAlgorithmConstants& b) { a.Swap(&b); } - inline void Swap(PowAlgorithmConstants* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PowAlgorithmConstants* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PowAlgorithmConstants* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PowAlgorithmConstants& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const PowAlgorithmConstants& from) { PowAlgorithmConstants::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PowAlgorithmConstants* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.PowAlgorithmConstants"; } - - protected: - explicit PowAlgorithmConstants(::google::protobuf::Arena* arena); - PowAlgorithmConstants(::google::protobuf::Arena* arena, const PowAlgorithmConstants& from); - PowAlgorithmConstants(::google::protobuf::Arena* arena, PowAlgorithmConstants&& from) noexcept - : PowAlgorithmConstants(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMinDifficultyFieldNumber = 2, - kMaxDifficultyFieldNumber = 3, - kTargetTimeFieldNumber = 4, - }; - // uint64 min_difficulty = 2; - void clear_min_difficulty() ; - ::uint64_t min_difficulty() const; - void set_min_difficulty(::uint64_t value); - - private: - ::uint64_t _internal_min_difficulty() const; - void _internal_set_min_difficulty(::uint64_t value); - - public: - // uint64 max_difficulty = 3; - void clear_max_difficulty() ; - ::uint64_t max_difficulty() const; - void set_max_difficulty(::uint64_t value); - - private: - ::uint64_t _internal_max_difficulty() const; - void _internal_set_max_difficulty(::uint64_t value); - - public: - // uint64 target_time = 4; - void clear_target_time() ; - ::uint64_t target_time() const; - void set_target_time(::uint64_t value); - - private: - ::uint64_t _internal_target_time() const; - void _internal_set_target_time(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.PowAlgorithmConstants) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t min_difficulty_; - ::uint64_t max_difficulty_; - ::uint64_t target_time_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class PermittedRangeProofs final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.PermittedRangeProofs) */ { - public: - inline PermittedRangeProofs() : PermittedRangeProofs(nullptr) {} - ~PermittedRangeProofs() override; - template - explicit PROTOBUF_CONSTEXPR PermittedRangeProofs( - ::google::protobuf::internal::ConstantInitialized); - - inline PermittedRangeProofs(const PermittedRangeProofs& from) : PermittedRangeProofs(nullptr, from) {} - inline PermittedRangeProofs(PermittedRangeProofs&& from) noexcept - : PermittedRangeProofs(nullptr, std::move(from)) {} - inline PermittedRangeProofs& operator=(const PermittedRangeProofs& from) { - CopyFrom(from); - return *this; - } - inline PermittedRangeProofs& operator=(PermittedRangeProofs&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PermittedRangeProofs& default_instance() { - return *internal_default_instance(); - } - static inline const PermittedRangeProofs* internal_default_instance() { - return reinterpret_cast( - &_PermittedRangeProofs_default_instance_); - } - static constexpr int kIndexInFileMessages = 9; - friend void swap(PermittedRangeProofs& a, PermittedRangeProofs& b) { a.Swap(&b); } - inline void Swap(PermittedRangeProofs* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PermittedRangeProofs* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PermittedRangeProofs* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const PermittedRangeProofs& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const PermittedRangeProofs& from) { PermittedRangeProofs::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(PermittedRangeProofs* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.PermittedRangeProofs"; } - - protected: - explicit PermittedRangeProofs(::google::protobuf::Arena* arena); - PermittedRangeProofs(::google::protobuf::Arena* arena, const PermittedRangeProofs& from); - PermittedRangeProofs(::google::protobuf::Arena* arena, PermittedRangeProofs&& from) noexcept - : PermittedRangeProofs(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kRangeProofTypesFieldNumber = 2, - kOutputTypeFieldNumber = 1, - }; - // repeated .tari.rpc.RangeProofType range_proof_types = 2; - int range_proof_types_size() const; - private: - int _internal_range_proof_types_size() const; - - public: - void clear_range_proof_types() ; - public: - ::tari::rpc::RangeProofType range_proof_types(int index) const; - void set_range_proof_types(int index, ::tari::rpc::RangeProofType value); - void add_range_proof_types(::tari::rpc::RangeProofType value); - const ::google::protobuf::RepeatedField& range_proof_types() const; - ::google::protobuf::RepeatedField* mutable_range_proof_types(); - - private: - const ::google::protobuf::RepeatedField& _internal_range_proof_types() const; - ::google::protobuf::RepeatedField* _internal_mutable_range_proof_types(); - - public: - // .tari.rpc.OutputType output_type = 1; - void clear_output_type() ; - ::tari::rpc::OutputType output_type() const; - void set_output_type(::tari::rpc::OutputType value); - - private: - ::tari::rpc::OutputType _internal_output_type() const; - void _internal_set_output_type(::tari::rpc::OutputType value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.PermittedRangeProofs) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::RepeatedField range_proof_types_; - mutable ::google::protobuf::internal::CachedSize _range_proof_types_cached_byte_size_; - int output_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class Empty final : public ::google::protobuf::internal::ZeroFieldsBase -/* @@protoc_insertion_point(class_definition:tari.rpc.Empty) */ { - public: - inline Empty() : Empty(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR Empty( - ::google::protobuf::internal::ConstantInitialized); - - inline Empty(const Empty& from) : Empty(nullptr, from) {} - inline Empty(Empty&& from) noexcept - : Empty(nullptr, std::move(from)) {} - inline Empty& operator=(const Empty& from) { - CopyFrom(from); - return *this; - } - inline Empty& operator=(Empty&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Empty& default_instance() { - return *internal_default_instance(); - } - static inline const Empty* internal_default_instance() { - return reinterpret_cast( - &_Empty_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(Empty& a, Empty& b) { a.Swap(&b); } - inline void Swap(Empty* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Empty* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Empty* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const Empty& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const Empty& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - - public: - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.Empty"; } - - protected: - explicit Empty(::google::protobuf::Arena* arena); - Empty(::google::protobuf::Arena* arena, const Empty& from); - Empty(::google::protobuf::Arena* arena, Empty&& from) noexcept - : Empty(arena) { - *this = ::std::move(from); - } - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:tari.rpc.Empty) - private: - class _Internal; - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class CommitmentSignature final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.CommitmentSignature) */ { - public: - inline CommitmentSignature() : CommitmentSignature(nullptr) {} - ~CommitmentSignature() override; - template - explicit PROTOBUF_CONSTEXPR CommitmentSignature( - ::google::protobuf::internal::ConstantInitialized); - - inline CommitmentSignature(const CommitmentSignature& from) : CommitmentSignature(nullptr, from) {} - inline CommitmentSignature(CommitmentSignature&& from) noexcept - : CommitmentSignature(nullptr, std::move(from)) {} - inline CommitmentSignature& operator=(const CommitmentSignature& from) { - CopyFrom(from); - return *this; - } - inline CommitmentSignature& operator=(CommitmentSignature&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const CommitmentSignature& default_instance() { - return *internal_default_instance(); - } - static inline const CommitmentSignature* internal_default_instance() { - return reinterpret_cast( - &_CommitmentSignature_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(CommitmentSignature& a, CommitmentSignature& b) { a.Swap(&b); } - inline void Swap(CommitmentSignature* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CommitmentSignature* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CommitmentSignature* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const CommitmentSignature& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const CommitmentSignature& from) { CommitmentSignature::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(CommitmentSignature* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.CommitmentSignature"; } - - protected: - explicit CommitmentSignature(::google::protobuf::Arena* arena); - CommitmentSignature(::google::protobuf::Arena* arena, const CommitmentSignature& from); - CommitmentSignature(::google::protobuf::Arena* arena, CommitmentSignature&& from) noexcept - : CommitmentSignature(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicNonceFieldNumber = 1, - kUFieldNumber = 2, - kVFieldNumber = 3, - }; - // bytes public_nonce = 1; - void clear_public_nonce() ; - const std::string& public_nonce() const; - template - void set_public_nonce(Arg_&& arg, Args_... args); - std::string* mutable_public_nonce(); - PROTOBUF_NODISCARD std::string* release_public_nonce(); - void set_allocated_public_nonce(std::string* value); - - private: - const std::string& _internal_public_nonce() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_nonce( - const std::string& value); - std::string* _internal_mutable_public_nonce(); - - public: - // bytes u = 2; - void clear_u() ; - const std::string& u() const; - template - void set_u(Arg_&& arg, Args_... args); - std::string* mutable_u(); - PROTOBUF_NODISCARD std::string* release_u(); - void set_allocated_u(std::string* value); - - private: - const std::string& _internal_u() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u( - const std::string& value); - std::string* _internal_mutable_u(); - - public: - // bytes v = 3; - void clear_v() ; - const std::string& v() const; - template - void set_v(Arg_&& arg, Args_... args); - std::string* mutable_v(); - PROTOBUF_NODISCARD std::string* release_v(); - void set_allocated_v(std::string* value); - - private: - const std::string& _internal_v() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_v( - const std::string& value); - std::string* _internal_mutable_v(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.CommitmentSignature) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr public_nonce_; - ::google::protobuf::internal::ArenaStringPtr u_; - ::google::protobuf::internal::ArenaStringPtr v_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class ComAndPubSignature final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ComAndPubSignature) */ { - public: - inline ComAndPubSignature() : ComAndPubSignature(nullptr) {} - ~ComAndPubSignature() override; - template - explicit PROTOBUF_CONSTEXPR ComAndPubSignature( - ::google::protobuf::internal::ConstantInitialized); - - inline ComAndPubSignature(const ComAndPubSignature& from) : ComAndPubSignature(nullptr, from) {} - inline ComAndPubSignature(ComAndPubSignature&& from) noexcept - : ComAndPubSignature(nullptr, std::move(from)) {} - inline ComAndPubSignature& operator=(const ComAndPubSignature& from) { - CopyFrom(from); - return *this; - } - inline ComAndPubSignature& operator=(ComAndPubSignature&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ComAndPubSignature& default_instance() { - return *internal_default_instance(); - } - static inline const ComAndPubSignature* internal_default_instance() { - return reinterpret_cast( - &_ComAndPubSignature_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(ComAndPubSignature& a, ComAndPubSignature& b) { a.Swap(&b); } - inline void Swap(ComAndPubSignature* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ComAndPubSignature* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ComAndPubSignature* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ComAndPubSignature& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ComAndPubSignature& from) { ComAndPubSignature::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ComAndPubSignature* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ComAndPubSignature"; } - - protected: - explicit ComAndPubSignature(::google::protobuf::Arena* arena); - ComAndPubSignature(::google::protobuf::Arena* arena, const ComAndPubSignature& from); - ComAndPubSignature(::google::protobuf::Arena* arena, ComAndPubSignature&& from) noexcept - : ComAndPubSignature(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kEphemeralCommitmentFieldNumber = 1, - kEphemeralPubkeyFieldNumber = 2, - kUAFieldNumber = 3, - kUXFieldNumber = 4, - kUYFieldNumber = 5, - }; - // bytes ephemeral_commitment = 1; - void clear_ephemeral_commitment() ; - const std::string& ephemeral_commitment() const; - template - void set_ephemeral_commitment(Arg_&& arg, Args_... args); - std::string* mutable_ephemeral_commitment(); - PROTOBUF_NODISCARD std::string* release_ephemeral_commitment(); - void set_allocated_ephemeral_commitment(std::string* value); - - private: - const std::string& _internal_ephemeral_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_commitment( - const std::string& value); - std::string* _internal_mutable_ephemeral_commitment(); - - public: - // bytes ephemeral_pubkey = 2; - void clear_ephemeral_pubkey() ; - const std::string& ephemeral_pubkey() const; - template - void set_ephemeral_pubkey(Arg_&& arg, Args_... args); - std::string* mutable_ephemeral_pubkey(); - PROTOBUF_NODISCARD std::string* release_ephemeral_pubkey(); - void set_allocated_ephemeral_pubkey(std::string* value); - - private: - const std::string& _internal_ephemeral_pubkey() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_pubkey( - const std::string& value); - std::string* _internal_mutable_ephemeral_pubkey(); - - public: - // bytes u_a = 3; - void clear_u_a() ; - const std::string& u_a() const; - template - void set_u_a(Arg_&& arg, Args_... args); - std::string* mutable_u_a(); - PROTOBUF_NODISCARD std::string* release_u_a(); - void set_allocated_u_a(std::string* value); - - private: - const std::string& _internal_u_a() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u_a( - const std::string& value); - std::string* _internal_mutable_u_a(); - - public: - // bytes u_x = 4; - void clear_u_x() ; - const std::string& u_x() const; - template - void set_u_x(Arg_&& arg, Args_... args); - std::string* mutable_u_x(); - PROTOBUF_NODISCARD std::string* release_u_x(); - void set_allocated_u_x(std::string* value); - - private: - const std::string& _internal_u_x() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u_x( - const std::string& value); - std::string* _internal_mutable_u_x(); - - public: - // bytes u_y = 5; - void clear_u_y() ; - const std::string& u_y() const; - template - void set_u_y(Arg_&& arg, Args_... args); - std::string* mutable_u_y(); - PROTOBUF_NODISCARD std::string* release_u_y(); - void set_allocated_u_y(std::string* value); - - private: - const std::string& _internal_u_y() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_u_y( - const std::string& value); - std::string* _internal_mutable_u_y(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ComAndPubSignature) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 3, 5, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::ArenaStringPtr ephemeral_commitment_; - ::google::protobuf::internal::ArenaStringPtr ephemeral_pubkey_; - ::google::protobuf::internal::ArenaStringPtr u_a_; - ::google::protobuf::internal::ArenaStringPtr u_x_; - ::google::protobuf::internal::ArenaStringPtr u_y_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class BlockHeight final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.BlockHeight) */ { - public: - inline BlockHeight() : BlockHeight(nullptr) {} - ~BlockHeight() override; - template - explicit PROTOBUF_CONSTEXPR BlockHeight( - ::google::protobuf::internal::ConstantInitialized); - - inline BlockHeight(const BlockHeight& from) : BlockHeight(nullptr, from) {} - inline BlockHeight(BlockHeight&& from) noexcept - : BlockHeight(nullptr, std::move(from)) {} - inline BlockHeight& operator=(const BlockHeight& from) { - CopyFrom(from); - return *this; - } - inline BlockHeight& operator=(BlockHeight&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const BlockHeight& default_instance() { - return *internal_default_instance(); - } - static inline const BlockHeight* internal_default_instance() { - return reinterpret_cast( - &_BlockHeight_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(BlockHeight& a, BlockHeight& b) { a.Swap(&b); } - inline void Swap(BlockHeight* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BlockHeight* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BlockHeight* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const BlockHeight& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const BlockHeight& from) { BlockHeight::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(BlockHeight* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.BlockHeight"; } - - protected: - explicit BlockHeight(::google::protobuf::Arena* arena); - BlockHeight(::google::protobuf::Arena* arena, const BlockHeight& from); - BlockHeight(::google::protobuf::Arena* arena, BlockHeight&& from) noexcept - : BlockHeight(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBlockHeightFieldNumber = 1, - }; - // uint64 block_height = 1; - void clear_block_height() ; - ::uint64_t block_height() const; - void set_block_height(::uint64_t value); - - private: - ::uint64_t _internal_block_height() const; - void _internal_set_block_height(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.BlockHeight) - 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::uint64_t block_height_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class OutputsVersion final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.OutputsVersion) */ { - public: - inline OutputsVersion() : OutputsVersion(nullptr) {} - ~OutputsVersion() override; - template - explicit PROTOBUF_CONSTEXPR OutputsVersion( - ::google::protobuf::internal::ConstantInitialized); - - inline OutputsVersion(const OutputsVersion& from) : OutputsVersion(nullptr, from) {} - inline OutputsVersion(OutputsVersion&& from) noexcept - : OutputsVersion(nullptr, std::move(from)) {} - inline OutputsVersion& operator=(const OutputsVersion& from) { - CopyFrom(from); - return *this; - } - inline OutputsVersion& operator=(OutputsVersion&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const OutputsVersion& default_instance() { - return *internal_default_instance(); - } - static inline const OutputsVersion* internal_default_instance() { - return reinterpret_cast( - &_OutputsVersion_default_instance_); - } - static constexpr int kIndexInFileMessages = 8; - friend void swap(OutputsVersion& a, OutputsVersion& b) { a.Swap(&b); } - inline void Swap(OutputsVersion* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OutputsVersion* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OutputsVersion* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const OutputsVersion& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const OutputsVersion& from) { OutputsVersion::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(OutputsVersion* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.OutputsVersion"; } - - protected: - explicit OutputsVersion(::google::protobuf::Arena* arena); - OutputsVersion(::google::protobuf::Arena* arena, const OutputsVersion& from); - OutputsVersion(::google::protobuf::Arena* arena, OutputsVersion&& from) noexcept - : OutputsVersion(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kOutputsFieldNumber = 1, - kFeaturesFieldNumber = 2, - }; - // .tari.rpc.Range outputs = 1; - bool has_outputs() const; - void clear_outputs() ; - const ::tari::rpc::Range& outputs() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_outputs(); - ::tari::rpc::Range* mutable_outputs(); - void set_allocated_outputs(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_outputs(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_outputs(); - - private: - const ::tari::rpc::Range& _internal_outputs() const; - ::tari::rpc::Range* _internal_mutable_outputs(); - - public: - // .tari.rpc.Range features = 2; - bool has_features() const; - void clear_features() ; - const ::tari::rpc::Range& features() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_features(); - ::tari::rpc::Range* mutable_features(); - void set_allocated_features(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_features(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_features(); - - private: - const ::tari::rpc::Range& _internal_features() const; - ::tari::rpc::Range* _internal_mutable_features(); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.OutputsVersion) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::tari::rpc::Range* outputs_; - ::tari::rpc::Range* features_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class ConsensusConstants_ProofOfWorkEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry< - ConsensusConstants_ProofOfWorkEntry_DoNotUse, ::uint32_t, ::tari::rpc::PowAlgorithmConstants, - ::google::protobuf::internal::WireFormatLite::TYPE_UINT32, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> { - public: - using SuperType = ::google::protobuf::internal::MapEntry< - ConsensusConstants_ProofOfWorkEntry_DoNotUse, ::uint32_t, ::tari::rpc::PowAlgorithmConstants, - ::google::protobuf::internal::WireFormatLite::TYPE_UINT32, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>; - ConsensusConstants_ProofOfWorkEntry_DoNotUse(); - template - explicit PROTOBUF_CONSTEXPR ConsensusConstants_ProofOfWorkEntry_DoNotUse( - ::google::protobuf::internal::ConstantInitialized); - explicit ConsensusConstants_ProofOfWorkEntry_DoNotUse(::google::protobuf::Arena* arena); - static const ConsensusConstants_ProofOfWorkEntry_DoNotUse* internal_default_instance() { - return reinterpret_cast( - &_ConsensusConstants_ProofOfWorkEntry_DoNotUse_default_instance_); - } - static bool ValidateKey(void*) { return true; } - static bool ValidateValue(void*) { return true; } - ::google::protobuf::Metadata GetMetadata() const final; - friend struct ::TableStruct_types_2eproto; -}; -// ------------------------------------------------------------------- - -class ConsensusConstants final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:tari.rpc.ConsensusConstants) */ { - public: - inline ConsensusConstants() : ConsensusConstants(nullptr) {} - ~ConsensusConstants() override; - template - explicit PROTOBUF_CONSTEXPR ConsensusConstants( - ::google::protobuf::internal::ConstantInitialized); - - inline ConsensusConstants(const ConsensusConstants& from) : ConsensusConstants(nullptr, from) {} - inline ConsensusConstants(ConsensusConstants&& from) noexcept - : ConsensusConstants(nullptr, std::move(from)) {} - inline ConsensusConstants& operator=(const ConsensusConstants& from) { - CopyFrom(from); - return *this; - } - inline ConsensusConstants& operator=(ConsensusConstants&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() -#ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr -#endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - 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* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ConsensusConstants& default_instance() { - return *internal_default_instance(); - } - static inline const ConsensusConstants* internal_default_instance() { - return reinterpret_cast( - &_ConsensusConstants_default_instance_); - } - static constexpr int kIndexInFileMessages = 12; - friend void swap(ConsensusConstants& a, ConsensusConstants& b) { a.Swap(&b); } - inline void Swap(ConsensusConstants* other) { - if (other == this) return; -#ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && GetArena() == other->GetArena()) { -#else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { -#endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConsensusConstants* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConsensusConstants* New(::google::protobuf::Arena* arena = nullptr) const final { - return ::google::protobuf::Message::DefaultConstruct(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const ConsensusConstants& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom(const ConsensusConstants& from) { ConsensusConstants::MergeImpl(*this, from); } - - private: - static void MergeImpl( - ::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(ConsensusConstants* other); - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { return "tari.rpc.ConsensusConstants"; } - - protected: - explicit ConsensusConstants(::google::protobuf::Arena* arena); - ConsensusConstants(::google::protobuf::Arena* arena, const ConsensusConstants& from); - ConsensusConstants(::google::protobuf::Arena* arena, ConsensusConstants&& from) noexcept - : ConsensusConstants(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::MessageLite::ClassData* GetClassData() - const final; - - public: - ::google::protobuf::Metadata GetMetadata() const final; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kEmissionDecayFieldNumber = 11, - kProofOfWorkFieldNumber = 23, - kPermittedOutputTypesFieldNumber = 29, - kPermittedRangeProofTypesFieldNumber = 34, - kValidBlockchainVersionRangeFieldNumber = 21, - kTransactionWeightFieldNumber = 24, - kInputVersionRangeFieldNumber = 26, - kOutputVersionRangeFieldNumber = 27, - kKernelVersionRangeFieldNumber = 28, - kCoinbaseMinMaturityFieldNumber = 1, - kFutureTimeLimitFieldNumber = 3, - kDifficultyBlockWindowFieldNumber = 5, - kMaxBlockTransactionWeightFieldNumber = 7, - kPowAlgoCountFieldNumber = 8, - kMedianTimestampCountFieldNumber = 9, - kEmissionInitialFieldNumber = 10, - kEmissionTailFieldNumber = 12, - kMinSha3XPowDifficultyFieldNumber = 13, - kBlockWeightInputsFieldNumber = 14, - kBlockWeightOutputsFieldNumber = 15, - kBlockWeightKernelsFieldNumber = 16, - kFaucetValueFieldNumber = 17, - kMaxScriptByteSizeFieldNumber = 18, - kValidatorNodeValidityPeriodFieldNumber = 19, - kEffectiveFromHeightFieldNumber = 20, - kMaxRandomxSeedHeightFieldNumber = 22, - kEpochLengthFieldNumber = 30, - kValidatorNodeRegistrationMinDepositAmountFieldNumber = 31, - kValidatorNodeRegistrationMinLockHeightFieldNumber = 32, - kValidatorNodeRegistrationShuffleIntervalEpochFieldNumber = 33, - kBlockchainVersionFieldNumber = 2, - }; - // repeated uint64 emission_decay = 11; - int emission_decay_size() const; - private: - int _internal_emission_decay_size() const; - - public: - void clear_emission_decay() ; - ::uint64_t emission_decay(int index) const; - void set_emission_decay(int index, ::uint64_t value); - void add_emission_decay(::uint64_t value); - const ::google::protobuf::RepeatedField<::uint64_t>& emission_decay() const; - ::google::protobuf::RepeatedField<::uint64_t>* mutable_emission_decay(); - - private: - const ::google::protobuf::RepeatedField<::uint64_t>& _internal_emission_decay() const; - ::google::protobuf::RepeatedField<::uint64_t>* _internal_mutable_emission_decay(); - - public: - // map proof_of_work = 23; - int proof_of_work_size() const; - private: - int _internal_proof_of_work_size() const; - - public: - void clear_proof_of_work() ; - const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& proof_of_work() const; - ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* mutable_proof_of_work(); - - private: - const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& _internal_proof_of_work() const; - ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* _internal_mutable_proof_of_work(); - - public: - // repeated .tari.rpc.OutputType permitted_output_types = 29; - int permitted_output_types_size() const; - private: - int _internal_permitted_output_types_size() const; - - public: - void clear_permitted_output_types() ; - public: - ::tari::rpc::OutputType permitted_output_types(int index) const; - void set_permitted_output_types(int index, ::tari::rpc::OutputType value); - void add_permitted_output_types(::tari::rpc::OutputType value); - const ::google::protobuf::RepeatedField& permitted_output_types() const; - ::google::protobuf::RepeatedField* mutable_permitted_output_types(); - - private: - const ::google::protobuf::RepeatedField& _internal_permitted_output_types() const; - ::google::protobuf::RepeatedField* _internal_mutable_permitted_output_types(); - - public: - // repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; - int permitted_range_proof_types_size() const; - private: - int _internal_permitted_range_proof_types_size() const; - - public: - void clear_permitted_range_proof_types() ; - ::tari::rpc::PermittedRangeProofs* mutable_permitted_range_proof_types(int index); - ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* mutable_permitted_range_proof_types(); - - private: - const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>& _internal_permitted_range_proof_types() const; - ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* _internal_mutable_permitted_range_proof_types(); - public: - const ::tari::rpc::PermittedRangeProofs& permitted_range_proof_types(int index) const; - ::tari::rpc::PermittedRangeProofs* add_permitted_range_proof_types(); - const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>& permitted_range_proof_types() const; - // .tari.rpc.Range valid_blockchain_version_range = 21; - bool has_valid_blockchain_version_range() const; - void clear_valid_blockchain_version_range() ; - const ::tari::rpc::Range& valid_blockchain_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_valid_blockchain_version_range(); - ::tari::rpc::Range* mutable_valid_blockchain_version_range(); - void set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_valid_blockchain_version_range(); - - private: - const ::tari::rpc::Range& _internal_valid_blockchain_version_range() const; - ::tari::rpc::Range* _internal_mutable_valid_blockchain_version_range(); - - public: - // .tari.rpc.WeightParams transaction_weight = 24; - bool has_transaction_weight() const; - void clear_transaction_weight() ; - const ::tari::rpc::WeightParams& transaction_weight() const; - PROTOBUF_NODISCARD ::tari::rpc::WeightParams* release_transaction_weight(); - ::tari::rpc::WeightParams* mutable_transaction_weight(); - void set_allocated_transaction_weight(::tari::rpc::WeightParams* value); - void unsafe_arena_set_allocated_transaction_weight(::tari::rpc::WeightParams* value); - ::tari::rpc::WeightParams* unsafe_arena_release_transaction_weight(); - - private: - const ::tari::rpc::WeightParams& _internal_transaction_weight() const; - ::tari::rpc::WeightParams* _internal_mutable_transaction_weight(); - - public: - // .tari.rpc.Range input_version_range = 26; - bool has_input_version_range() const; - void clear_input_version_range() ; - const ::tari::rpc::Range& input_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_input_version_range(); - ::tari::rpc::Range* mutable_input_version_range(); - void set_allocated_input_version_range(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_input_version_range(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_input_version_range(); - - private: - const ::tari::rpc::Range& _internal_input_version_range() const; - ::tari::rpc::Range* _internal_mutable_input_version_range(); - - public: - // .tari.rpc.OutputsVersion output_version_range = 27; - bool has_output_version_range() const; - void clear_output_version_range() ; - const ::tari::rpc::OutputsVersion& output_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::OutputsVersion* release_output_version_range(); - ::tari::rpc::OutputsVersion* mutable_output_version_range(); - void set_allocated_output_version_range(::tari::rpc::OutputsVersion* value); - void unsafe_arena_set_allocated_output_version_range(::tari::rpc::OutputsVersion* value); - ::tari::rpc::OutputsVersion* unsafe_arena_release_output_version_range(); - - private: - const ::tari::rpc::OutputsVersion& _internal_output_version_range() const; - ::tari::rpc::OutputsVersion* _internal_mutable_output_version_range(); - - public: - // .tari.rpc.Range kernel_version_range = 28; - bool has_kernel_version_range() const; - void clear_kernel_version_range() ; - const ::tari::rpc::Range& kernel_version_range() const; - PROTOBUF_NODISCARD ::tari::rpc::Range* release_kernel_version_range(); - ::tari::rpc::Range* mutable_kernel_version_range(); - void set_allocated_kernel_version_range(::tari::rpc::Range* value); - void unsafe_arena_set_allocated_kernel_version_range(::tari::rpc::Range* value); - ::tari::rpc::Range* unsafe_arena_release_kernel_version_range(); - - private: - const ::tari::rpc::Range& _internal_kernel_version_range() const; - ::tari::rpc::Range* _internal_mutable_kernel_version_range(); - - public: - // uint64 coinbase_min_maturity = 1; - void clear_coinbase_min_maturity() ; - ::uint64_t coinbase_min_maturity() const; - void set_coinbase_min_maturity(::uint64_t value); - - private: - ::uint64_t _internal_coinbase_min_maturity() const; - void _internal_set_coinbase_min_maturity(::uint64_t value); - - public: - // uint64 future_time_limit = 3; - void clear_future_time_limit() ; - ::uint64_t future_time_limit() const; - void set_future_time_limit(::uint64_t value); - - private: - ::uint64_t _internal_future_time_limit() const; - void _internal_set_future_time_limit(::uint64_t value); - - public: - // uint64 difficulty_block_window = 5; - void clear_difficulty_block_window() ; - ::uint64_t difficulty_block_window() const; - void set_difficulty_block_window(::uint64_t value); - - private: - ::uint64_t _internal_difficulty_block_window() const; - void _internal_set_difficulty_block_window(::uint64_t value); - - public: - // uint64 max_block_transaction_weight = 7; - void clear_max_block_transaction_weight() ; - ::uint64_t max_block_transaction_weight() const; - void set_max_block_transaction_weight(::uint64_t value); - - private: - ::uint64_t _internal_max_block_transaction_weight() const; - void _internal_set_max_block_transaction_weight(::uint64_t value); - - public: - // uint64 pow_algo_count = 8; - void clear_pow_algo_count() ; - ::uint64_t pow_algo_count() const; - void set_pow_algo_count(::uint64_t value); - - private: - ::uint64_t _internal_pow_algo_count() const; - void _internal_set_pow_algo_count(::uint64_t value); - - public: - // uint64 median_timestamp_count = 9; - void clear_median_timestamp_count() ; - ::uint64_t median_timestamp_count() const; - void set_median_timestamp_count(::uint64_t value); - - private: - ::uint64_t _internal_median_timestamp_count() const; - void _internal_set_median_timestamp_count(::uint64_t value); - - public: - // uint64 emission_initial = 10; - void clear_emission_initial() ; - ::uint64_t emission_initial() const; - void set_emission_initial(::uint64_t value); - - private: - ::uint64_t _internal_emission_initial() const; - void _internal_set_emission_initial(::uint64_t value); - - public: - // uint64 emission_tail = 12; - void clear_emission_tail() ; - ::uint64_t emission_tail() const; - void set_emission_tail(::uint64_t value); - - private: - ::uint64_t _internal_emission_tail() const; - void _internal_set_emission_tail(::uint64_t value); - - public: - // uint64 min_sha3x_pow_difficulty = 13; - void clear_min_sha3x_pow_difficulty() ; - ::uint64_t min_sha3x_pow_difficulty() const; - void set_min_sha3x_pow_difficulty(::uint64_t value); - - private: - ::uint64_t _internal_min_sha3x_pow_difficulty() const; - void _internal_set_min_sha3x_pow_difficulty(::uint64_t value); - - public: - // uint64 block_weight_inputs = 14; - void clear_block_weight_inputs() ; - ::uint64_t block_weight_inputs() const; - void set_block_weight_inputs(::uint64_t value); - - private: - ::uint64_t _internal_block_weight_inputs() const; - void _internal_set_block_weight_inputs(::uint64_t value); - - public: - // uint64 block_weight_outputs = 15; - void clear_block_weight_outputs() ; - ::uint64_t block_weight_outputs() const; - void set_block_weight_outputs(::uint64_t value); - - private: - ::uint64_t _internal_block_weight_outputs() const; - void _internal_set_block_weight_outputs(::uint64_t value); - - public: - // uint64 block_weight_kernels = 16; - void clear_block_weight_kernels() ; - ::uint64_t block_weight_kernels() const; - void set_block_weight_kernels(::uint64_t value); - - private: - ::uint64_t _internal_block_weight_kernels() const; - void _internal_set_block_weight_kernels(::uint64_t value); - - public: - // uint64 faucet_value = 17; - void clear_faucet_value() ; - ::uint64_t faucet_value() const; - void set_faucet_value(::uint64_t value); - - private: - ::uint64_t _internal_faucet_value() const; - void _internal_set_faucet_value(::uint64_t value); - - public: - // uint64 max_script_byte_size = 18; - void clear_max_script_byte_size() ; - ::uint64_t max_script_byte_size() const; - void set_max_script_byte_size(::uint64_t value); - - private: - ::uint64_t _internal_max_script_byte_size() const; - void _internal_set_max_script_byte_size(::uint64_t value); - - public: - // uint64 validator_node_validity_period = 19; - void clear_validator_node_validity_period() ; - ::uint64_t validator_node_validity_period() const; - void set_validator_node_validity_period(::uint64_t value); - - private: - ::uint64_t _internal_validator_node_validity_period() const; - void _internal_set_validator_node_validity_period(::uint64_t value); - - public: - // uint64 effective_from_height = 20; - void clear_effective_from_height() ; - ::uint64_t effective_from_height() const; - void set_effective_from_height(::uint64_t value); - - private: - ::uint64_t _internal_effective_from_height() const; - void _internal_set_effective_from_height(::uint64_t value); - - public: - // uint64 max_randomx_seed_height = 22; - void clear_max_randomx_seed_height() ; - ::uint64_t max_randomx_seed_height() const; - void set_max_randomx_seed_height(::uint64_t value); - - private: - ::uint64_t _internal_max_randomx_seed_height() const; - void _internal_set_max_randomx_seed_height(::uint64_t value); - - public: - // uint64 epoch_length = 30; - void clear_epoch_length() ; - ::uint64_t epoch_length() const; - void set_epoch_length(::uint64_t value); - - private: - ::uint64_t _internal_epoch_length() const; - void _internal_set_epoch_length(::uint64_t value); - - public: - // uint64 validator_node_registration_min_deposit_amount = 31; - void clear_validator_node_registration_min_deposit_amount() ; - ::uint64_t validator_node_registration_min_deposit_amount() const; - void set_validator_node_registration_min_deposit_amount(::uint64_t value); - - private: - ::uint64_t _internal_validator_node_registration_min_deposit_amount() const; - void _internal_set_validator_node_registration_min_deposit_amount(::uint64_t value); - - public: - // uint64 validator_node_registration_min_lock_height = 32; - void clear_validator_node_registration_min_lock_height() ; - ::uint64_t validator_node_registration_min_lock_height() const; - void set_validator_node_registration_min_lock_height(::uint64_t value); - - private: - ::uint64_t _internal_validator_node_registration_min_lock_height() const; - void _internal_set_validator_node_registration_min_lock_height(::uint64_t value); - - public: - // uint64 validator_node_registration_shuffle_interval_epoch = 33; - void clear_validator_node_registration_shuffle_interval_epoch() ; - ::uint64_t validator_node_registration_shuffle_interval_epoch() const; - void set_validator_node_registration_shuffle_interval_epoch(::uint64_t value); - - private: - ::uint64_t _internal_validator_node_registration_shuffle_interval_epoch() const; - void _internal_set_validator_node_registration_shuffle_interval_epoch(::uint64_t value); - - public: - // uint32 blockchain_version = 2; - void clear_blockchain_version() ; - ::uint32_t blockchain_version() const; - void set_blockchain_version(::uint32_t value); - - private: - ::uint32_t _internal_blockchain_version() const; - void _internal_set_blockchain_version(::uint32_t value); - - public: - // @@protoc_insertion_point(class_scope:tari.rpc.ConsensusConstants) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 5, 31, 8, - 0, 7> - _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* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField<::uint64_t> emission_decay_; - mutable ::google::protobuf::internal::CachedSize _emission_decay_cached_byte_size_; - ::google::protobuf::internal::MapField - proof_of_work_; - ::google::protobuf::RepeatedField permitted_output_types_; - mutable ::google::protobuf::internal::CachedSize _permitted_output_types_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::tari::rpc::PermittedRangeProofs > permitted_range_proof_types_; - ::tari::rpc::Range* valid_blockchain_version_range_; - ::tari::rpc::WeightParams* transaction_weight_; - ::tari::rpc::Range* input_version_range_; - ::tari::rpc::OutputsVersion* output_version_range_; - ::tari::rpc::Range* kernel_version_range_; - ::uint64_t coinbase_min_maturity_; - ::uint64_t future_time_limit_; - ::uint64_t difficulty_block_window_; - ::uint64_t max_block_transaction_weight_; - ::uint64_t pow_algo_count_; - ::uint64_t median_timestamp_count_; - ::uint64_t emission_initial_; - ::uint64_t emission_tail_; - ::uint64_t min_sha3x_pow_difficulty_; - ::uint64_t block_weight_inputs_; - ::uint64_t block_weight_outputs_; - ::uint64_t block_weight_kernels_; - ::uint64_t faucet_value_; - ::uint64_t max_script_byte_size_; - ::uint64_t validator_node_validity_period_; - ::uint64_t effective_from_height_; - ::uint64_t max_randomx_seed_height_; - ::uint64_t epoch_length_; - ::uint64_t validator_node_registration_min_deposit_amount_; - ::uint64_t validator_node_registration_min_lock_height_; - ::uint64_t validator_node_registration_shuffle_interval_epoch_; - ::uint32_t blockchain_version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_types_2eproto; -}; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// Range - -// uint64 min = 1; -inline void Range::clear_min() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_ = ::uint64_t{0u}; -} -inline ::uint64_t Range::min() const { - // @@protoc_insertion_point(field_get:tari.rpc.Range.min) - return _internal_min(); -} -inline void Range::set_min(::uint64_t value) { - _internal_set_min(value); - // @@protoc_insertion_point(field_set:tari.rpc.Range.min) -} -inline ::uint64_t Range::_internal_min() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.min_; -} -inline void Range::_internal_set_min(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_ = value; -} - -// uint64 max = 2; -inline void Range::clear_max() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_ = ::uint64_t{0u}; -} -inline ::uint64_t Range::max() const { - // @@protoc_insertion_point(field_get:tari.rpc.Range.max) - return _internal_max(); -} -inline void Range::set_max(::uint64_t value) { - _internal_set_max(value); - // @@protoc_insertion_point(field_set:tari.rpc.Range.max) -} -inline ::uint64_t Range::_internal_max() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_; -} -inline void Range::_internal_set_max(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_ = value; -} - -// ------------------------------------------------------------------- - -// Empty - -// ------------------------------------------------------------------- - -// BlockHeight - -// uint64 block_height = 1; -inline void BlockHeight::clear_block_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_height_ = ::uint64_t{0u}; -} -inline ::uint64_t BlockHeight::block_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.BlockHeight.block_height) - return _internal_block_height(); -} -inline void BlockHeight::set_block_height(::uint64_t value) { - _internal_set_block_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.BlockHeight.block_height) -} -inline ::uint64_t BlockHeight::_internal_block_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_height_; -} -inline void BlockHeight::_internal_set_block_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_height_ = value; -} - -// ------------------------------------------------------------------- - -// Signature - -// bytes public_nonce = 1; -inline void Signature::clear_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.ClearToEmpty(); -} -inline const std::string& Signature::public_nonce() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Signature.public_nonce) - return _internal_public_nonce(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Signature::set_public_nonce(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Signature.public_nonce) -} -inline std::string* Signature::mutable_public_nonce() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_nonce(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Signature.public_nonce) - return _s; -} -inline const std::string& Signature::_internal_public_nonce() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_nonce_.Get(); -} -inline void Signature::_internal_set_public_nonce(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.Set(value, GetArena()); -} -inline std::string* Signature::_internal_mutable_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_nonce_.Mutable( GetArena()); -} -inline std::string* Signature::release_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Signature.public_nonce) - return _impl_.public_nonce_.Release(); -} -inline void Signature::set_allocated_public_nonce(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_nonce_.IsDefault()) { - _impl_.public_nonce_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Signature.public_nonce) -} - -// bytes signature = 2; -inline void Signature::clear_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signature_.ClearToEmpty(); -} -inline const std::string& Signature::signature() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.Signature.signature) - return _internal_signature(); -} -template -inline PROTOBUF_ALWAYS_INLINE void Signature::set_signature(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signature_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.Signature.signature) -} -inline std::string* Signature::mutable_signature() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_signature(); - // @@protoc_insertion_point(field_mutable:tari.rpc.Signature.signature) - return _s; -} -inline const std::string& Signature::_internal_signature() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.signature_.Get(); -} -inline void Signature::_internal_set_signature(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signature_.Set(value, GetArena()); -} -inline std::string* Signature::_internal_mutable_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.signature_.Mutable( GetArena()); -} -inline std::string* Signature::release_signature() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.Signature.signature) - return _impl_.signature_.Release(); -} -inline void Signature::set_allocated_signature(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.signature_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.signature_.IsDefault()) { - _impl_.signature_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.Signature.signature) -} - -// ------------------------------------------------------------------- - -// ComAndPubSignature - -// bytes ephemeral_commitment = 1; -inline void ComAndPubSignature::clear_ephemeral_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_commitment_.ClearToEmpty(); -} -inline const std::string& ComAndPubSignature::ephemeral_commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.ephemeral_commitment) - return _internal_ephemeral_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_commitment(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.ephemeral_commitment) -} -inline std::string* ComAndPubSignature::mutable_ephemeral_commitment() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_ephemeral_commitment(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.ephemeral_commitment) - return _s; -} -inline const std::string& ComAndPubSignature::_internal_ephemeral_commitment() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ephemeral_commitment_.Get(); -} -inline void ComAndPubSignature::_internal_set_ephemeral_commitment(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_commitment_.Set(value, GetArena()); -} -inline std::string* ComAndPubSignature::_internal_mutable_ephemeral_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.ephemeral_commitment_.Mutable( GetArena()); -} -inline std::string* ComAndPubSignature::release_ephemeral_commitment() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.ephemeral_commitment) - return _impl_.ephemeral_commitment_.Release(); -} -inline void ComAndPubSignature::set_allocated_ephemeral_commitment(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_commitment_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ephemeral_commitment_.IsDefault()) { - _impl_.ephemeral_commitment_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.ephemeral_commitment) -} - -// bytes ephemeral_pubkey = 2; -inline void ComAndPubSignature::clear_ephemeral_pubkey() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_pubkey_.ClearToEmpty(); -} -inline const std::string& ComAndPubSignature::ephemeral_pubkey() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.ephemeral_pubkey) - return _internal_ephemeral_pubkey(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_ephemeral_pubkey(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_pubkey_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.ephemeral_pubkey) -} -inline std::string* ComAndPubSignature::mutable_ephemeral_pubkey() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_ephemeral_pubkey(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.ephemeral_pubkey) - return _s; -} -inline const std::string& ComAndPubSignature::_internal_ephemeral_pubkey() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.ephemeral_pubkey_.Get(); -} -inline void ComAndPubSignature::_internal_set_ephemeral_pubkey(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_pubkey_.Set(value, GetArena()); -} -inline std::string* ComAndPubSignature::_internal_mutable_ephemeral_pubkey() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.ephemeral_pubkey_.Mutable( GetArena()); -} -inline std::string* ComAndPubSignature::release_ephemeral_pubkey() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.ephemeral_pubkey) - return _impl_.ephemeral_pubkey_.Release(); -} -inline void ComAndPubSignature::set_allocated_ephemeral_pubkey(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.ephemeral_pubkey_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.ephemeral_pubkey_.IsDefault()) { - _impl_.ephemeral_pubkey_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.ephemeral_pubkey) -} - -// bytes u_a = 3; -inline void ComAndPubSignature::clear_u_a() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_a_.ClearToEmpty(); -} -inline const std::string& ComAndPubSignature::u_a() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.u_a) - return _internal_u_a(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_a(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_a_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_a) -} -inline std::string* ComAndPubSignature::mutable_u_a() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u_a(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.u_a) - return _s; -} -inline const std::string& ComAndPubSignature::_internal_u_a() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.u_a_.Get(); -} -inline void ComAndPubSignature::_internal_set_u_a(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_a_.Set(value, GetArena()); -} -inline std::string* ComAndPubSignature::_internal_mutable_u_a() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.u_a_.Mutable( GetArena()); -} -inline std::string* ComAndPubSignature::release_u_a() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.u_a) - return _impl_.u_a_.Release(); -} -inline void ComAndPubSignature::set_allocated_u_a(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_a_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_a_.IsDefault()) { - _impl_.u_a_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.u_a) -} - -// bytes u_x = 4; -inline void ComAndPubSignature::clear_u_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_x_.ClearToEmpty(); -} -inline const std::string& ComAndPubSignature::u_x() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.u_x) - return _internal_u_x(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_x(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_x_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_x) -} -inline std::string* ComAndPubSignature::mutable_u_x() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u_x(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.u_x) - return _s; -} -inline const std::string& ComAndPubSignature::_internal_u_x() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.u_x_.Get(); -} -inline void ComAndPubSignature::_internal_set_u_x(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_x_.Set(value, GetArena()); -} -inline std::string* ComAndPubSignature::_internal_mutable_u_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.u_x_.Mutable( GetArena()); -} -inline std::string* ComAndPubSignature::release_u_x() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.u_x) - return _impl_.u_x_.Release(); -} -inline void ComAndPubSignature::set_allocated_u_x(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_x_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_x_.IsDefault()) { - _impl_.u_x_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.u_x) -} - -// bytes u_y = 5; -inline void ComAndPubSignature::clear_u_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_y_.ClearToEmpty(); -} -inline const std::string& ComAndPubSignature::u_y() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ComAndPubSignature.u_y) - return _internal_u_y(); -} -template -inline PROTOBUF_ALWAYS_INLINE void ComAndPubSignature::set_u_y(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_y_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.ComAndPubSignature.u_y) -} -inline std::string* ComAndPubSignature::mutable_u_y() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u_y(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ComAndPubSignature.u_y) - return _s; -} -inline const std::string& ComAndPubSignature::_internal_u_y() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.u_y_.Get(); -} -inline void ComAndPubSignature::_internal_set_u_y(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_y_.Set(value, GetArena()); -} -inline std::string* ComAndPubSignature::_internal_mutable_u_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.u_y_.Mutable( GetArena()); -} -inline std::string* ComAndPubSignature::release_u_y() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ComAndPubSignature.u_y) - return _impl_.u_y_.Release(); -} -inline void ComAndPubSignature::set_allocated_u_y(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_y_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_y_.IsDefault()) { - _impl_.u_y_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ComAndPubSignature.u_y) -} - -// ------------------------------------------------------------------- - -// CommitmentSignature - -// bytes public_nonce = 1; -inline void CommitmentSignature::clear_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.ClearToEmpty(); -} -inline const std::string& CommitmentSignature::public_nonce() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.CommitmentSignature.public_nonce) - return _internal_public_nonce(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_public_nonce(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.public_nonce) -} -inline std::string* CommitmentSignature::mutable_public_nonce() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_public_nonce(); - // @@protoc_insertion_point(field_mutable:tari.rpc.CommitmentSignature.public_nonce) - return _s; -} -inline const std::string& CommitmentSignature::_internal_public_nonce() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.public_nonce_.Get(); -} -inline void CommitmentSignature::_internal_set_public_nonce(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.Set(value, GetArena()); -} -inline std::string* CommitmentSignature::_internal_mutable_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.public_nonce_.Mutable( GetArena()); -} -inline std::string* CommitmentSignature::release_public_nonce() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.CommitmentSignature.public_nonce) - return _impl_.public_nonce_.Release(); -} -inline void CommitmentSignature::set_allocated_public_nonce(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.public_nonce_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.public_nonce_.IsDefault()) { - _impl_.public_nonce_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitmentSignature.public_nonce) -} - -// bytes u = 2; -inline void CommitmentSignature::clear_u() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_.ClearToEmpty(); -} -inline const std::string& CommitmentSignature::u() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.CommitmentSignature.u) - return _internal_u(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_u(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.u) -} -inline std::string* CommitmentSignature::mutable_u() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_u(); - // @@protoc_insertion_point(field_mutable:tari.rpc.CommitmentSignature.u) - return _s; -} -inline const std::string& CommitmentSignature::_internal_u() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.u_.Get(); -} -inline void CommitmentSignature::_internal_set_u(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_.Set(value, GetArena()); -} -inline std::string* CommitmentSignature::_internal_mutable_u() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.u_.Mutable( GetArena()); -} -inline std::string* CommitmentSignature::release_u() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.CommitmentSignature.u) - return _impl_.u_.Release(); -} -inline void CommitmentSignature::set_allocated_u(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.u_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.u_.IsDefault()) { - _impl_.u_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitmentSignature.u) -} - -// bytes v = 3; -inline void CommitmentSignature::clear_v() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.v_.ClearToEmpty(); -} -inline const std::string& CommitmentSignature::v() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.CommitmentSignature.v) - return _internal_v(); -} -template -inline PROTOBUF_ALWAYS_INLINE void CommitmentSignature::set_v(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.v_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.CommitmentSignature.v) -} -inline std::string* CommitmentSignature::mutable_v() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_v(); - // @@protoc_insertion_point(field_mutable:tari.rpc.CommitmentSignature.v) - return _s; -} -inline const std::string& CommitmentSignature::_internal_v() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.v_.Get(); -} -inline void CommitmentSignature::_internal_set_v(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.v_.Set(value, GetArena()); -} -inline std::string* CommitmentSignature::_internal_mutable_v() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.v_.Mutable( GetArena()); -} -inline std::string* CommitmentSignature::release_v() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.CommitmentSignature.v) - return _impl_.v_.Release(); -} -inline void CommitmentSignature::set_allocated_v(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.v_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.v_.IsDefault()) { - _impl_.v_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.CommitmentSignature.v) -} - -// ------------------------------------------------------------------- - -// PowAlgorithmConstants - -// uint64 min_difficulty = 2; -inline void PowAlgorithmConstants::clear_min_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_difficulty_ = ::uint64_t{0u}; -} -inline ::uint64_t PowAlgorithmConstants::min_difficulty() const { - // @@protoc_insertion_point(field_get:tari.rpc.PowAlgorithmConstants.min_difficulty) - return _internal_min_difficulty(); -} -inline void PowAlgorithmConstants::set_min_difficulty(::uint64_t value) { - _internal_set_min_difficulty(value); - // @@protoc_insertion_point(field_set:tari.rpc.PowAlgorithmConstants.min_difficulty) -} -inline ::uint64_t PowAlgorithmConstants::_internal_min_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.min_difficulty_; -} -inline void PowAlgorithmConstants::_internal_set_min_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_difficulty_ = value; -} - -// uint64 max_difficulty = 3; -inline void PowAlgorithmConstants::clear_max_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_difficulty_ = ::uint64_t{0u}; -} -inline ::uint64_t PowAlgorithmConstants::max_difficulty() const { - // @@protoc_insertion_point(field_get:tari.rpc.PowAlgorithmConstants.max_difficulty) - return _internal_max_difficulty(); -} -inline void PowAlgorithmConstants::set_max_difficulty(::uint64_t value) { - _internal_set_max_difficulty(value); - // @@protoc_insertion_point(field_set:tari.rpc.PowAlgorithmConstants.max_difficulty) -} -inline ::uint64_t PowAlgorithmConstants::_internal_max_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_difficulty_; -} -inline void PowAlgorithmConstants::_internal_set_max_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_difficulty_ = value; -} - -// uint64 target_time = 4; -inline void PowAlgorithmConstants::clear_target_time() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_time_ = ::uint64_t{0u}; -} -inline ::uint64_t PowAlgorithmConstants::target_time() const { - // @@protoc_insertion_point(field_get:tari.rpc.PowAlgorithmConstants.target_time) - return _internal_target_time(); -} -inline void PowAlgorithmConstants::set_target_time(::uint64_t value) { - _internal_set_target_time(value); - // @@protoc_insertion_point(field_set:tari.rpc.PowAlgorithmConstants.target_time) -} -inline ::uint64_t PowAlgorithmConstants::_internal_target_time() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.target_time_; -} -inline void PowAlgorithmConstants::_internal_set_target_time(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.target_time_ = value; -} - -// ------------------------------------------------------------------- - -// WeightParams - -// uint64 kernel_weight = 1; -inline void WeightParams::clear_kernel_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_weight_ = ::uint64_t{0u}; -} -inline ::uint64_t WeightParams::kernel_weight() const { - // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.kernel_weight) - return _internal_kernel_weight(); -} -inline void WeightParams::set_kernel_weight(::uint64_t value) { - _internal_set_kernel_weight(value); - // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.kernel_weight) -} -inline ::uint64_t WeightParams::_internal_kernel_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.kernel_weight_; -} -inline void WeightParams::_internal_set_kernel_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.kernel_weight_ = value; -} - -// uint64 input_weight = 2; -inline void WeightParams::clear_input_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_weight_ = ::uint64_t{0u}; -} -inline ::uint64_t WeightParams::input_weight() const { - // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.input_weight) - return _internal_input_weight(); -} -inline void WeightParams::set_input_weight(::uint64_t value) { - _internal_set_input_weight(value); - // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.input_weight) -} -inline ::uint64_t WeightParams::_internal_input_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.input_weight_; -} -inline void WeightParams::_internal_set_input_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.input_weight_ = value; -} - -// uint64 output_weight = 3; -inline void WeightParams::clear_output_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_weight_ = ::uint64_t{0u}; -} -inline ::uint64_t WeightParams::output_weight() const { - // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.output_weight) - return _internal_output_weight(); -} -inline void WeightParams::set_output_weight(::uint64_t value) { - _internal_set_output_weight(value); - // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.output_weight) -} -inline ::uint64_t WeightParams::_internal_output_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.output_weight_; -} -inline void WeightParams::_internal_set_output_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_weight_ = value; -} - -// uint64 features_and_scripts_bytes_per_gram = 4; -inline void WeightParams::clear_features_and_scripts_bytes_per_gram() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.features_and_scripts_bytes_per_gram_ = ::uint64_t{0u}; -} -inline ::uint64_t WeightParams::features_and_scripts_bytes_per_gram() const { - // @@protoc_insertion_point(field_get:tari.rpc.WeightParams.features_and_scripts_bytes_per_gram) - return _internal_features_and_scripts_bytes_per_gram(); -} -inline void WeightParams::set_features_and_scripts_bytes_per_gram(::uint64_t value) { - _internal_set_features_and_scripts_bytes_per_gram(value); - // @@protoc_insertion_point(field_set:tari.rpc.WeightParams.features_and_scripts_bytes_per_gram) -} -inline ::uint64_t WeightParams::_internal_features_and_scripts_bytes_per_gram() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.features_and_scripts_bytes_per_gram_; -} -inline void WeightParams::_internal_set_features_and_scripts_bytes_per_gram(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.features_and_scripts_bytes_per_gram_ = value; -} - -// ------------------------------------------------------------------- - -// OutputsVersion - -// .tari.rpc.Range outputs = 1; -inline bool OutputsVersion::has_outputs() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.outputs_ != nullptr); - return value; -} -inline void OutputsVersion::clear_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.outputs_ != nullptr) _impl_.outputs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::Range& OutputsVersion::_internal_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Range* p = _impl_.outputs_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); -} -inline const ::tari::rpc::Range& OutputsVersion::outputs() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.OutputsVersion.outputs) - return _internal_outputs(); -} -inline void OutputsVersion::unsafe_arena_set_allocated_outputs(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.outputs_); - } - _impl_.outputs_ = reinterpret_cast<::tari::rpc::Range*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.OutputsVersion.outputs) -} -inline ::tari::rpc::Range* OutputsVersion::release_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Range* released = _impl_.outputs_; - _impl_.outputs_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.OutputsVersion.outputs) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Range* temp = _impl_.outputs_; - _impl_.outputs_ = nullptr; - return temp; -} -inline ::tari::rpc::Range* OutputsVersion::_internal_mutable_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.outputs_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); - _impl_.outputs_ = reinterpret_cast<::tari::rpc::Range*>(p); - } - return _impl_.outputs_; -} -inline ::tari::rpc::Range* OutputsVersion::mutable_outputs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Range* _msg = _internal_mutable_outputs(); - // @@protoc_insertion_point(field_mutable:tari.rpc.OutputsVersion.outputs) - return _msg; -} -inline void OutputsVersion::set_allocated_outputs(::tari::rpc::Range* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.outputs_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.outputs_ = reinterpret_cast<::tari::rpc::Range*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.OutputsVersion.outputs) -} - -// .tari.rpc.Range features = 2; -inline bool OutputsVersion::has_features() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.features_ != nullptr); - return value; -} -inline void OutputsVersion::clear_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ != nullptr) _impl_.features_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::tari::rpc::Range& OutputsVersion::_internal_features() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Range* p = _impl_.features_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); -} -inline const ::tari::rpc::Range& OutputsVersion::features() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.OutputsVersion.features) - return _internal_features(); -} -inline void OutputsVersion::unsafe_arena_set_allocated_features(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.features_); - } - _impl_.features_ = reinterpret_cast<::tari::rpc::Range*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.OutputsVersion.features) -} -inline ::tari::rpc::Range* OutputsVersion::release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::Range* released = _impl_.features_; - _impl_.features_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Range* OutputsVersion::unsafe_arena_release_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.OutputsVersion.features) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::Range* temp = _impl_.features_; - _impl_.features_ = nullptr; - return temp; -} -inline ::tari::rpc::Range* OutputsVersion::_internal_mutable_features() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.features_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); - _impl_.features_ = reinterpret_cast<::tari::rpc::Range*>(p); - } - return _impl_.features_; -} -inline ::tari::rpc::Range* OutputsVersion::mutable_features() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::Range* _msg = _internal_mutable_features(); - // @@protoc_insertion_point(field_mutable:tari.rpc.OutputsVersion.features) - return _msg; -} -inline void OutputsVersion::set_allocated_features(::tari::rpc::Range* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.features_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.features_ = reinterpret_cast<::tari::rpc::Range*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.OutputsVersion.features) -} - -// ------------------------------------------------------------------- - -// PermittedRangeProofs - -// .tari.rpc.OutputType output_type = 1; -inline void PermittedRangeProofs::clear_output_type() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_type_ = 0; -} -inline ::tari::rpc::OutputType PermittedRangeProofs::output_type() const { - // @@protoc_insertion_point(field_get:tari.rpc.PermittedRangeProofs.output_type) - return _internal_output_type(); -} -inline void PermittedRangeProofs::set_output_type(::tari::rpc::OutputType value) { - _internal_set_output_type(value); - // @@protoc_insertion_point(field_set:tari.rpc.PermittedRangeProofs.output_type) -} -inline ::tari::rpc::OutputType PermittedRangeProofs::_internal_output_type() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return static_cast<::tari::rpc::OutputType>(_impl_.output_type_); -} -inline void PermittedRangeProofs::_internal_set_output_type(::tari::rpc::OutputType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.output_type_ = value; -} - -// repeated .tari.rpc.RangeProofType range_proof_types = 2; -inline int PermittedRangeProofs::_internal_range_proof_types_size() const { - return _internal_range_proof_types().size(); -} -inline int PermittedRangeProofs::range_proof_types_size() const { - return _internal_range_proof_types_size(); -} -inline void PermittedRangeProofs::clear_range_proof_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.range_proof_types_.Clear(); -} -inline ::tari::rpc::RangeProofType PermittedRangeProofs::range_proof_types(int index) const { - // @@protoc_insertion_point(field_get:tari.rpc.PermittedRangeProofs.range_proof_types) - return static_cast<::tari::rpc::RangeProofType>(_internal_range_proof_types().Get(index)); -} -inline void PermittedRangeProofs::set_range_proof_types(int index, ::tari::rpc::RangeProofType value) { - _internal_mutable_range_proof_types()->Set(index, value); - // @@protoc_insertion_point(field_set:tari.rpc.PermittedRangeProofs.range_proof_types) -} -inline void PermittedRangeProofs::add_range_proof_types(::tari::rpc::RangeProofType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_range_proof_types()->Add(value); - // @@protoc_insertion_point(field_add:tari.rpc.PermittedRangeProofs.range_proof_types) -} -inline const ::google::protobuf::RepeatedField& PermittedRangeProofs::range_proof_types() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.PermittedRangeProofs.range_proof_types) - return _internal_range_proof_types(); -} -inline ::google::protobuf::RepeatedField* PermittedRangeProofs::mutable_range_proof_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.PermittedRangeProofs.range_proof_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_range_proof_types(); -} -inline const ::google::protobuf::RepeatedField& PermittedRangeProofs::_internal_range_proof_types() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.range_proof_types_; -} -inline ::google::protobuf::RepeatedField* PermittedRangeProofs::_internal_mutable_range_proof_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.range_proof_types_; -} - -// ------------------------------------------------------------------- - -// RangeProof - -// bytes proof_bytes = 1; -inline void RangeProof::clear_proof_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proof_bytes_.ClearToEmpty(); -} -inline const std::string& RangeProof::proof_bytes() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.RangeProof.proof_bytes) - return _internal_proof_bytes(); -} -template -inline PROTOBUF_ALWAYS_INLINE void RangeProof::set_proof_bytes(Arg_&& arg, - Args_... args) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proof_bytes_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:tari.rpc.RangeProof.proof_bytes) -} -inline std::string* RangeProof::mutable_proof_bytes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - std::string* _s = _internal_mutable_proof_bytes(); - // @@protoc_insertion_point(field_mutable:tari.rpc.RangeProof.proof_bytes) - return _s; -} -inline const std::string& RangeProof::_internal_proof_bytes() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.proof_bytes_.Get(); -} -inline void RangeProof::_internal_set_proof_bytes(const std::string& value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proof_bytes_.Set(value, GetArena()); -} -inline std::string* RangeProof::_internal_mutable_proof_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.proof_bytes_.Mutable( GetArena()); -} -inline std::string* RangeProof::release_proof_bytes() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.RangeProof.proof_bytes) - return _impl_.proof_bytes_.Release(); -} -inline void RangeProof::set_allocated_proof_bytes(std::string* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proof_bytes_.SetAllocated(value, GetArena()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.proof_bytes_.IsDefault()) { - _impl_.proof_bytes_.Set("", GetArena()); - } - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:tari.rpc.RangeProof.proof_bytes) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ConsensusConstants - -// uint64 coinbase_min_maturity = 1; -inline void ConsensusConstants::clear_coinbase_min_maturity() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.coinbase_min_maturity_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::coinbase_min_maturity() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.coinbase_min_maturity) - return _internal_coinbase_min_maturity(); -} -inline void ConsensusConstants::set_coinbase_min_maturity(::uint64_t value) { - _internal_set_coinbase_min_maturity(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.coinbase_min_maturity) -} -inline ::uint64_t ConsensusConstants::_internal_coinbase_min_maturity() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.coinbase_min_maturity_; -} -inline void ConsensusConstants::_internal_set_coinbase_min_maturity(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.coinbase_min_maturity_ = value; -} - -// uint32 blockchain_version = 2; -inline void ConsensusConstants::clear_blockchain_version() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.blockchain_version_ = 0u; -} -inline ::uint32_t ConsensusConstants::blockchain_version() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.blockchain_version) - return _internal_blockchain_version(); -} -inline void ConsensusConstants::set_blockchain_version(::uint32_t value) { - _internal_set_blockchain_version(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.blockchain_version) -} -inline ::uint32_t ConsensusConstants::_internal_blockchain_version() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.blockchain_version_; -} -inline void ConsensusConstants::_internal_set_blockchain_version(::uint32_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.blockchain_version_ = value; -} - -// uint64 future_time_limit = 3; -inline void ConsensusConstants::clear_future_time_limit() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.future_time_limit_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::future_time_limit() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.future_time_limit) - return _internal_future_time_limit(); -} -inline void ConsensusConstants::set_future_time_limit(::uint64_t value) { - _internal_set_future_time_limit(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.future_time_limit) -} -inline ::uint64_t ConsensusConstants::_internal_future_time_limit() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.future_time_limit_; -} -inline void ConsensusConstants::_internal_set_future_time_limit(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.future_time_limit_ = value; -} - -// uint64 difficulty_block_window = 5; -inline void ConsensusConstants::clear_difficulty_block_window() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.difficulty_block_window_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::difficulty_block_window() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.difficulty_block_window) - return _internal_difficulty_block_window(); -} -inline void ConsensusConstants::set_difficulty_block_window(::uint64_t value) { - _internal_set_difficulty_block_window(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.difficulty_block_window) -} -inline ::uint64_t ConsensusConstants::_internal_difficulty_block_window() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.difficulty_block_window_; -} -inline void ConsensusConstants::_internal_set_difficulty_block_window(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.difficulty_block_window_ = value; -} - -// uint64 max_block_transaction_weight = 7; -inline void ConsensusConstants::clear_max_block_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_block_transaction_weight_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::max_block_transaction_weight() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.max_block_transaction_weight) - return _internal_max_block_transaction_weight(); -} -inline void ConsensusConstants::set_max_block_transaction_weight(::uint64_t value) { - _internal_set_max_block_transaction_weight(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.max_block_transaction_weight) -} -inline ::uint64_t ConsensusConstants::_internal_max_block_transaction_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_block_transaction_weight_; -} -inline void ConsensusConstants::_internal_set_max_block_transaction_weight(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_block_transaction_weight_ = value; -} - -// uint64 pow_algo_count = 8; -inline void ConsensusConstants::clear_pow_algo_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_count_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::pow_algo_count() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.pow_algo_count) - return _internal_pow_algo_count(); -} -inline void ConsensusConstants::set_pow_algo_count(::uint64_t value) { - _internal_set_pow_algo_count(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.pow_algo_count) -} -inline ::uint64_t ConsensusConstants::_internal_pow_algo_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.pow_algo_count_; -} -inline void ConsensusConstants::_internal_set_pow_algo_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.pow_algo_count_ = value; -} - -// uint64 median_timestamp_count = 9; -inline void ConsensusConstants::clear_median_timestamp_count() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.median_timestamp_count_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::median_timestamp_count() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.median_timestamp_count) - return _internal_median_timestamp_count(); -} -inline void ConsensusConstants::set_median_timestamp_count(::uint64_t value) { - _internal_set_median_timestamp_count(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.median_timestamp_count) -} -inline ::uint64_t ConsensusConstants::_internal_median_timestamp_count() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.median_timestamp_count_; -} -inline void ConsensusConstants::_internal_set_median_timestamp_count(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.median_timestamp_count_ = value; -} - -// uint64 emission_initial = 10; -inline void ConsensusConstants::clear_emission_initial() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emission_initial_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::emission_initial() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.emission_initial) - return _internal_emission_initial(); -} -inline void ConsensusConstants::set_emission_initial(::uint64_t value) { - _internal_set_emission_initial(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.emission_initial) -} -inline ::uint64_t ConsensusConstants::_internal_emission_initial() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.emission_initial_; -} -inline void ConsensusConstants::_internal_set_emission_initial(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emission_initial_ = value; -} - -// repeated uint64 emission_decay = 11; -inline int ConsensusConstants::_internal_emission_decay_size() const { - return _internal_emission_decay().size(); -} -inline int ConsensusConstants::emission_decay_size() const { - return _internal_emission_decay_size(); -} -inline void ConsensusConstants::clear_emission_decay() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emission_decay_.Clear(); -} -inline ::uint64_t ConsensusConstants::emission_decay(int index) const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.emission_decay) - return _internal_emission_decay().Get(index); -} -inline void ConsensusConstants::set_emission_decay(int index, ::uint64_t value) { - _internal_mutable_emission_decay()->Set(index, value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.emission_decay) -} -inline void ConsensusConstants::add_emission_decay(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_emission_decay()->Add(value); - // @@protoc_insertion_point(field_add:tari.rpc.ConsensusConstants.emission_decay) -} -inline const ::google::protobuf::RepeatedField<::uint64_t>& ConsensusConstants::emission_decay() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.ConsensusConstants.emission_decay) - return _internal_emission_decay(); -} -inline ::google::protobuf::RepeatedField<::uint64_t>* ConsensusConstants::mutable_emission_decay() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.ConsensusConstants.emission_decay) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_emission_decay(); -} -inline const ::google::protobuf::RepeatedField<::uint64_t>& -ConsensusConstants::_internal_emission_decay() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.emission_decay_; -} -inline ::google::protobuf::RepeatedField<::uint64_t>* ConsensusConstants::_internal_mutable_emission_decay() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.emission_decay_; -} - -// uint64 emission_tail = 12; -inline void ConsensusConstants::clear_emission_tail() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emission_tail_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::emission_tail() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.emission_tail) - return _internal_emission_tail(); -} -inline void ConsensusConstants::set_emission_tail(::uint64_t value) { - _internal_set_emission_tail(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.emission_tail) -} -inline ::uint64_t ConsensusConstants::_internal_emission_tail() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.emission_tail_; -} -inline void ConsensusConstants::_internal_set_emission_tail(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.emission_tail_ = value; -} - -// uint64 min_sha3x_pow_difficulty = 13; -inline void ConsensusConstants::clear_min_sha3x_pow_difficulty() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_sha3x_pow_difficulty_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::min_sha3x_pow_difficulty() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.min_sha3x_pow_difficulty) - return _internal_min_sha3x_pow_difficulty(); -} -inline void ConsensusConstants::set_min_sha3x_pow_difficulty(::uint64_t value) { - _internal_set_min_sha3x_pow_difficulty(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.min_sha3x_pow_difficulty) -} -inline ::uint64_t ConsensusConstants::_internal_min_sha3x_pow_difficulty() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.min_sha3x_pow_difficulty_; -} -inline void ConsensusConstants::_internal_set_min_sha3x_pow_difficulty(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.min_sha3x_pow_difficulty_ = value; -} - -// uint64 block_weight_inputs = 14; -inline void ConsensusConstants::clear_block_weight_inputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_weight_inputs_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::block_weight_inputs() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.block_weight_inputs) - return _internal_block_weight_inputs(); -} -inline void ConsensusConstants::set_block_weight_inputs(::uint64_t value) { - _internal_set_block_weight_inputs(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.block_weight_inputs) -} -inline ::uint64_t ConsensusConstants::_internal_block_weight_inputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_weight_inputs_; -} -inline void ConsensusConstants::_internal_set_block_weight_inputs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_weight_inputs_ = value; -} - -// uint64 block_weight_outputs = 15; -inline void ConsensusConstants::clear_block_weight_outputs() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_weight_outputs_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::block_weight_outputs() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.block_weight_outputs) - return _internal_block_weight_outputs(); -} -inline void ConsensusConstants::set_block_weight_outputs(::uint64_t value) { - _internal_set_block_weight_outputs(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.block_weight_outputs) -} -inline ::uint64_t ConsensusConstants::_internal_block_weight_outputs() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_weight_outputs_; -} -inline void ConsensusConstants::_internal_set_block_weight_outputs(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_weight_outputs_ = value; -} - -// uint64 block_weight_kernels = 16; -inline void ConsensusConstants::clear_block_weight_kernels() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_weight_kernels_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::block_weight_kernels() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.block_weight_kernels) - return _internal_block_weight_kernels(); -} -inline void ConsensusConstants::set_block_weight_kernels(::uint64_t value) { - _internal_set_block_weight_kernels(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.block_weight_kernels) -} -inline ::uint64_t ConsensusConstants::_internal_block_weight_kernels() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.block_weight_kernels_; -} -inline void ConsensusConstants::_internal_set_block_weight_kernels(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.block_weight_kernels_ = value; -} - -// uint64 faucet_value = 17; -inline void ConsensusConstants::clear_faucet_value() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.faucet_value_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::faucet_value() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.faucet_value) - return _internal_faucet_value(); -} -inline void ConsensusConstants::set_faucet_value(::uint64_t value) { - _internal_set_faucet_value(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.faucet_value) -} -inline ::uint64_t ConsensusConstants::_internal_faucet_value() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.faucet_value_; -} -inline void ConsensusConstants::_internal_set_faucet_value(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.faucet_value_ = value; -} - -// uint64 max_script_byte_size = 18; -inline void ConsensusConstants::clear_max_script_byte_size() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_script_byte_size_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::max_script_byte_size() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.max_script_byte_size) - return _internal_max_script_byte_size(); -} -inline void ConsensusConstants::set_max_script_byte_size(::uint64_t value) { - _internal_set_max_script_byte_size(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.max_script_byte_size) -} -inline ::uint64_t ConsensusConstants::_internal_max_script_byte_size() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_script_byte_size_; -} -inline void ConsensusConstants::_internal_set_max_script_byte_size(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_script_byte_size_ = value; -} - -// uint64 validator_node_validity_period = 19; -inline void ConsensusConstants::clear_validator_node_validity_period() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_validity_period_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::validator_node_validity_period() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_validity_period) - return _internal_validator_node_validity_period(); -} -inline void ConsensusConstants::set_validator_node_validity_period(::uint64_t value) { - _internal_set_validator_node_validity_period(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_validity_period) -} -inline ::uint64_t ConsensusConstants::_internal_validator_node_validity_period() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.validator_node_validity_period_; -} -inline void ConsensusConstants::_internal_set_validator_node_validity_period(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_validity_period_ = value; -} - -// uint64 effective_from_height = 20; -inline void ConsensusConstants::clear_effective_from_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.effective_from_height_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::effective_from_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.effective_from_height) - return _internal_effective_from_height(); -} -inline void ConsensusConstants::set_effective_from_height(::uint64_t value) { - _internal_set_effective_from_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.effective_from_height) -} -inline ::uint64_t ConsensusConstants::_internal_effective_from_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.effective_from_height_; -} -inline void ConsensusConstants::_internal_set_effective_from_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.effective_from_height_ = value; -} - -// .tari.rpc.Range valid_blockchain_version_range = 21; -inline bool ConsensusConstants::has_valid_blockchain_version_range() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.valid_blockchain_version_range_ != nullptr); - return value; -} -inline void ConsensusConstants::clear_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.valid_blockchain_version_range_ != nullptr) _impl_.valid_blockchain_version_range_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::tari::rpc::Range& ConsensusConstants::_internal_valid_blockchain_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Range* p = _impl_.valid_blockchain_version_range_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); -} -inline const ::tari::rpc::Range& ConsensusConstants::valid_blockchain_version_range() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.valid_blockchain_version_range) - return _internal_valid_blockchain_version_range(); -} -inline void ConsensusConstants::unsafe_arena_set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.valid_blockchain_version_range_); - } - _impl_.valid_blockchain_version_range_ = reinterpret_cast<::tari::rpc::Range*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.valid_blockchain_version_range) -} -inline ::tari::rpc::Range* ConsensusConstants::release_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Range* released = _impl_.valid_blockchain_version_range_; - _impl_.valid_blockchain_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.valid_blockchain_version_range) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::tari::rpc::Range* temp = _impl_.valid_blockchain_version_range_; - _impl_.valid_blockchain_version_range_ = nullptr; - return temp; -} -inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_valid_blockchain_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.valid_blockchain_version_range_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); - _impl_.valid_blockchain_version_range_ = reinterpret_cast<::tari::rpc::Range*>(p); - } - return _impl_.valid_blockchain_version_range_; -} -inline ::tari::rpc::Range* ConsensusConstants::mutable_valid_blockchain_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; - ::tari::rpc::Range* _msg = _internal_mutable_valid_blockchain_version_range(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.valid_blockchain_version_range) - return _msg; -} -inline void ConsensusConstants::set_allocated_valid_blockchain_version_range(::tari::rpc::Range* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.valid_blockchain_version_range_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.valid_blockchain_version_range_ = reinterpret_cast<::tari::rpc::Range*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ConsensusConstants.valid_blockchain_version_range) -} - -// uint64 max_randomx_seed_height = 22; -inline void ConsensusConstants::clear_max_randomx_seed_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_randomx_seed_height_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::max_randomx_seed_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.max_randomx_seed_height) - return _internal_max_randomx_seed_height(); -} -inline void ConsensusConstants::set_max_randomx_seed_height(::uint64_t value) { - _internal_set_max_randomx_seed_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.max_randomx_seed_height) -} -inline ::uint64_t ConsensusConstants::_internal_max_randomx_seed_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.max_randomx_seed_height_; -} -inline void ConsensusConstants::_internal_set_max_randomx_seed_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.max_randomx_seed_height_ = value; -} - -// map proof_of_work = 23; -inline int ConsensusConstants::_internal_proof_of_work_size() const { - return _internal_proof_of_work().size(); -} -inline int ConsensusConstants::proof_of_work_size() const { - return _internal_proof_of_work_size(); -} -inline void ConsensusConstants::clear_proof_of_work() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.proof_of_work_.Clear(); -} -inline const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& ConsensusConstants::_internal_proof_of_work() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.proof_of_work_.GetMap(); -} -inline const ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>& ConsensusConstants::proof_of_work() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_map:tari.rpc.ConsensusConstants.proof_of_work) - return _internal_proof_of_work(); -} -inline ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* ConsensusConstants::_internal_mutable_proof_of_work() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _impl_.proof_of_work_.MutableMap(); -} -inline ::google::protobuf::Map<::uint32_t, ::tari::rpc::PowAlgorithmConstants>* ConsensusConstants::mutable_proof_of_work() ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_map:tari.rpc.ConsensusConstants.proof_of_work) - return _internal_mutable_proof_of_work(); -} - -// .tari.rpc.WeightParams transaction_weight = 24; -inline bool ConsensusConstants::has_transaction_weight() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || _impl_.transaction_weight_ != nullptr); - return value; -} -inline void ConsensusConstants::clear_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.transaction_weight_ != nullptr) _impl_.transaction_weight_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline const ::tari::rpc::WeightParams& ConsensusConstants::_internal_transaction_weight() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::WeightParams* p = _impl_.transaction_weight_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_WeightParams_default_instance_); -} -inline const ::tari::rpc::WeightParams& ConsensusConstants::transaction_weight() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.transaction_weight) - return _internal_transaction_weight(); -} -inline void ConsensusConstants::unsafe_arena_set_allocated_transaction_weight(::tari::rpc::WeightParams* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.transaction_weight_); - } - _impl_.transaction_weight_ = reinterpret_cast<::tari::rpc::WeightParams*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.transaction_weight) -} -inline ::tari::rpc::WeightParams* ConsensusConstants::release_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::WeightParams* released = _impl_.transaction_weight_; - _impl_.transaction_weight_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::WeightParams* ConsensusConstants::unsafe_arena_release_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.transaction_weight) - - _impl_._has_bits_[0] &= ~0x00000002u; - ::tari::rpc::WeightParams* temp = _impl_.transaction_weight_; - _impl_.transaction_weight_ = nullptr; - return temp; -} -inline ::tari::rpc::WeightParams* ConsensusConstants::_internal_mutable_transaction_weight() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.transaction_weight_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::WeightParams>(GetArena()); - _impl_.transaction_weight_ = reinterpret_cast<::tari::rpc::WeightParams*>(p); - } - return _impl_.transaction_weight_; -} -inline ::tari::rpc::WeightParams* ConsensusConstants::mutable_transaction_weight() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; - ::tari::rpc::WeightParams* _msg = _internal_mutable_transaction_weight(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.transaction_weight) - return _msg; -} -inline void ConsensusConstants::set_allocated_transaction_weight(::tari::rpc::WeightParams* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.transaction_weight_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000002u; - } else { - _impl_._has_bits_[0] &= ~0x00000002u; - } - - _impl_.transaction_weight_ = reinterpret_cast<::tari::rpc::WeightParams*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ConsensusConstants.transaction_weight) -} - -// .tari.rpc.Range input_version_range = 26; -inline bool ConsensusConstants::has_input_version_range() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || _impl_.input_version_range_ != nullptr); - return value; -} -inline void ConsensusConstants::clear_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.input_version_range_ != nullptr) _impl_.input_version_range_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline const ::tari::rpc::Range& ConsensusConstants::_internal_input_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Range* p = _impl_.input_version_range_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); -} -inline const ::tari::rpc::Range& ConsensusConstants::input_version_range() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.input_version_range) - return _internal_input_version_range(); -} -inline void ConsensusConstants::unsafe_arena_set_allocated_input_version_range(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.input_version_range_); - } - _impl_.input_version_range_ = reinterpret_cast<::tari::rpc::Range*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.input_version_range) -} -inline ::tari::rpc::Range* ConsensusConstants::release_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::Range* released = _impl_.input_version_range_; - _impl_.input_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.input_version_range) - - _impl_._has_bits_[0] &= ~0x00000004u; - ::tari::rpc::Range* temp = _impl_.input_version_range_; - _impl_.input_version_range_ = nullptr; - return temp; -} -inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_input_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.input_version_range_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); - _impl_.input_version_range_ = reinterpret_cast<::tari::rpc::Range*>(p); - } - return _impl_.input_version_range_; -} -inline ::tari::rpc::Range* ConsensusConstants::mutable_input_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; - ::tari::rpc::Range* _msg = _internal_mutable_input_version_range(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.input_version_range) - return _msg; -} -inline void ConsensusConstants::set_allocated_input_version_range(::tari::rpc::Range* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.input_version_range_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000004u; - } else { - _impl_._has_bits_[0] &= ~0x00000004u; - } - - _impl_.input_version_range_ = reinterpret_cast<::tari::rpc::Range*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ConsensusConstants.input_version_range) -} - -// .tari.rpc.OutputsVersion output_version_range = 27; -inline bool ConsensusConstants::has_output_version_range() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || _impl_.output_version_range_ != nullptr); - return value; -} -inline void ConsensusConstants::clear_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.output_version_range_ != nullptr) _impl_.output_version_range_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline const ::tari::rpc::OutputsVersion& ConsensusConstants::_internal_output_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::OutputsVersion* p = _impl_.output_version_range_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_OutputsVersion_default_instance_); -} -inline const ::tari::rpc::OutputsVersion& ConsensusConstants::output_version_range() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.output_version_range) - return _internal_output_version_range(); -} -inline void ConsensusConstants::unsafe_arena_set_allocated_output_version_range(::tari::rpc::OutputsVersion* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.output_version_range_); - } - _impl_.output_version_range_ = reinterpret_cast<::tari::rpc::OutputsVersion*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; - } else { - _impl_._has_bits_[0] &= ~0x00000008u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.output_version_range) -} -inline ::tari::rpc::OutputsVersion* ConsensusConstants::release_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000008u; - ::tari::rpc::OutputsVersion* released = _impl_.output_version_range_; - _impl_.output_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::OutputsVersion* ConsensusConstants::unsafe_arena_release_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.output_version_range) - - _impl_._has_bits_[0] &= ~0x00000008u; - ::tari::rpc::OutputsVersion* temp = _impl_.output_version_range_; - _impl_.output_version_range_ = nullptr; - return temp; -} -inline ::tari::rpc::OutputsVersion* ConsensusConstants::_internal_mutable_output_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.output_version_range_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::OutputsVersion>(GetArena()); - _impl_.output_version_range_ = reinterpret_cast<::tari::rpc::OutputsVersion*>(p); - } - return _impl_.output_version_range_; -} -inline ::tari::rpc::OutputsVersion* ConsensusConstants::mutable_output_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000008u; - ::tari::rpc::OutputsVersion* _msg = _internal_mutable_output_version_range(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.output_version_range) - return _msg; -} -inline void ConsensusConstants::set_allocated_output_version_range(::tari::rpc::OutputsVersion* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.output_version_range_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000008u; - } else { - _impl_._has_bits_[0] &= ~0x00000008u; - } - - _impl_.output_version_range_ = reinterpret_cast<::tari::rpc::OutputsVersion*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ConsensusConstants.output_version_range) -} - -// .tari.rpc.Range kernel_version_range = 28; -inline bool ConsensusConstants::has_kernel_version_range() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || _impl_.kernel_version_range_ != nullptr); - return value; -} -inline void ConsensusConstants::clear_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.kernel_version_range_ != nullptr) _impl_.kernel_version_range_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline const ::tari::rpc::Range& ConsensusConstants::_internal_kernel_version_range() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::tari::rpc::Range* p = _impl_.kernel_version_range_; - return p != nullptr ? *p : reinterpret_cast(::tari::rpc::_Range_default_instance_); -} -inline const ::tari::rpc::Range& ConsensusConstants::kernel_version_range() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.kernel_version_range) - return _internal_kernel_version_range(); -} -inline void ConsensusConstants::unsafe_arena_set_allocated_kernel_version_range(::tari::rpc::Range* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.kernel_version_range_); - } - _impl_.kernel_version_range_ = reinterpret_cast<::tari::rpc::Range*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; - } else { - _impl_._has_bits_[0] &= ~0x00000010u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tari.rpc.ConsensusConstants.kernel_version_range) -} -inline ::tari::rpc::Range* ConsensusConstants::release_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000010u; - ::tari::rpc::Range* released = _impl_.kernel_version_range_; - _impl_.kernel_version_range_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::tari::rpc::Range* ConsensusConstants::unsafe_arena_release_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:tari.rpc.ConsensusConstants.kernel_version_range) - - _impl_._has_bits_[0] &= ~0x00000010u; - ::tari::rpc::Range* temp = _impl_.kernel_version_range_; - _impl_.kernel_version_range_ = nullptr; - return temp; -} -inline ::tari::rpc::Range* ConsensusConstants::_internal_mutable_kernel_version_range() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.kernel_version_range_ == nullptr) { - auto* p = ::google::protobuf::Message::DefaultConstruct<::tari::rpc::Range>(GetArena()); - _impl_.kernel_version_range_ = reinterpret_cast<::tari::rpc::Range*>(p); - } - return _impl_.kernel_version_range_; -} -inline ::tari::rpc::Range* ConsensusConstants::mutable_kernel_version_range() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000010u; - ::tari::rpc::Range* _msg = _internal_mutable_kernel_version_range(); - // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.kernel_version_range) - return _msg; -} -inline void ConsensusConstants::set_allocated_kernel_version_range(::tari::rpc::Range* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete (_impl_.kernel_version_range_); - } - - 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); - } - _impl_._has_bits_[0] |= 0x00000010u; - } else { - _impl_._has_bits_[0] &= ~0x00000010u; - } - - _impl_.kernel_version_range_ = reinterpret_cast<::tari::rpc::Range*>(value); - // @@protoc_insertion_point(field_set_allocated:tari.rpc.ConsensusConstants.kernel_version_range) -} - -// repeated .tari.rpc.OutputType permitted_output_types = 29; -inline int ConsensusConstants::_internal_permitted_output_types_size() const { - return _internal_permitted_output_types().size(); -} -inline int ConsensusConstants::permitted_output_types_size() const { - return _internal_permitted_output_types_size(); -} -inline void ConsensusConstants::clear_permitted_output_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.permitted_output_types_.Clear(); -} -inline ::tari::rpc::OutputType ConsensusConstants::permitted_output_types(int index) const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.permitted_output_types) - return static_cast<::tari::rpc::OutputType>(_internal_permitted_output_types().Get(index)); -} -inline void ConsensusConstants::set_permitted_output_types(int index, ::tari::rpc::OutputType value) { - _internal_mutable_permitted_output_types()->Set(index, value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.permitted_output_types) -} -inline void ConsensusConstants::add_permitted_output_types(::tari::rpc::OutputType value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _internal_mutable_permitted_output_types()->Add(value); - // @@protoc_insertion_point(field_add:tari.rpc.ConsensusConstants.permitted_output_types) -} -inline const ::google::protobuf::RepeatedField& ConsensusConstants::permitted_output_types() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.ConsensusConstants.permitted_output_types) - return _internal_permitted_output_types(); -} -inline ::google::protobuf::RepeatedField* ConsensusConstants::mutable_permitted_output_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.ConsensusConstants.permitted_output_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_permitted_output_types(); -} -inline const ::google::protobuf::RepeatedField& ConsensusConstants::_internal_permitted_output_types() - const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.permitted_output_types_; -} -inline ::google::protobuf::RepeatedField* ConsensusConstants::_internal_mutable_permitted_output_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.permitted_output_types_; -} - -// uint64 epoch_length = 30; -inline void ConsensusConstants::clear_epoch_length() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.epoch_length_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::epoch_length() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.epoch_length) - return _internal_epoch_length(); -} -inline void ConsensusConstants::set_epoch_length(::uint64_t value) { - _internal_set_epoch_length(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.epoch_length) -} -inline ::uint64_t ConsensusConstants::_internal_epoch_length() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.epoch_length_; -} -inline void ConsensusConstants::_internal_set_epoch_length(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.epoch_length_ = value; -} - -// uint64 validator_node_registration_min_deposit_amount = 31; -inline void ConsensusConstants::clear_validator_node_registration_min_deposit_amount() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_registration_min_deposit_amount_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::validator_node_registration_min_deposit_amount() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_registration_min_deposit_amount) - return _internal_validator_node_registration_min_deposit_amount(); -} -inline void ConsensusConstants::set_validator_node_registration_min_deposit_amount(::uint64_t value) { - _internal_set_validator_node_registration_min_deposit_amount(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_registration_min_deposit_amount) -} -inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_min_deposit_amount() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.validator_node_registration_min_deposit_amount_; -} -inline void ConsensusConstants::_internal_set_validator_node_registration_min_deposit_amount(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_registration_min_deposit_amount_ = value; -} - -// uint64 validator_node_registration_min_lock_height = 32; -inline void ConsensusConstants::clear_validator_node_registration_min_lock_height() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_registration_min_lock_height_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::validator_node_registration_min_lock_height() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_registration_min_lock_height) - return _internal_validator_node_registration_min_lock_height(); -} -inline void ConsensusConstants::set_validator_node_registration_min_lock_height(::uint64_t value) { - _internal_set_validator_node_registration_min_lock_height(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_registration_min_lock_height) -} -inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_min_lock_height() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.validator_node_registration_min_lock_height_; -} -inline void ConsensusConstants::_internal_set_validator_node_registration_min_lock_height(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_registration_min_lock_height_ = value; -} - -// uint64 validator_node_registration_shuffle_interval_epoch = 33; -inline void ConsensusConstants::clear_validator_node_registration_shuffle_interval_epoch() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_registration_shuffle_interval_epoch_ = ::uint64_t{0u}; -} -inline ::uint64_t ConsensusConstants::validator_node_registration_shuffle_interval_epoch() const { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.validator_node_registration_shuffle_interval_epoch) - return _internal_validator_node_registration_shuffle_interval_epoch(); -} -inline void ConsensusConstants::set_validator_node_registration_shuffle_interval_epoch(::uint64_t value) { - _internal_set_validator_node_registration_shuffle_interval_epoch(value); - // @@protoc_insertion_point(field_set:tari.rpc.ConsensusConstants.validator_node_registration_shuffle_interval_epoch) -} -inline ::uint64_t ConsensusConstants::_internal_validator_node_registration_shuffle_interval_epoch() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.validator_node_registration_shuffle_interval_epoch_; -} -inline void ConsensusConstants::_internal_set_validator_node_registration_shuffle_interval_epoch(::uint64_t value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.validator_node_registration_shuffle_interval_epoch_ = value; -} - -// repeated .tari.rpc.PermittedRangeProofs permitted_range_proof_types = 34; -inline int ConsensusConstants::_internal_permitted_range_proof_types_size() const { - return _internal_permitted_range_proof_types().size(); -} -inline int ConsensusConstants::permitted_range_proof_types_size() const { - return _internal_permitted_range_proof_types_size(); -} -inline void ConsensusConstants::clear_permitted_range_proof_types() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.permitted_range_proof_types_.Clear(); -} -inline ::tari::rpc::PermittedRangeProofs* ConsensusConstants::mutable_permitted_range_proof_types(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:tari.rpc.ConsensusConstants.permitted_range_proof_types) - return _internal_mutable_permitted_range_proof_types()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* ConsensusConstants::mutable_permitted_range_proof_types() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:tari.rpc.ConsensusConstants.permitted_range_proof_types) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - return _internal_mutable_permitted_range_proof_types(); -} -inline const ::tari::rpc::PermittedRangeProofs& ConsensusConstants::permitted_range_proof_types(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:tari.rpc.ConsensusConstants.permitted_range_proof_types) - return _internal_permitted_range_proof_types().Get(index); -} -inline ::tari::rpc::PermittedRangeProofs* ConsensusConstants::add_permitted_range_proof_types() ABSL_ATTRIBUTE_LIFETIME_BOUND { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::tari::rpc::PermittedRangeProofs* _add = _internal_mutable_permitted_range_proof_types()->Add(); - // @@protoc_insertion_point(field_add:tari.rpc.ConsensusConstants.permitted_range_proof_types) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>& ConsensusConstants::permitted_range_proof_types() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:tari.rpc.ConsensusConstants.permitted_range_proof_types) - return _internal_permitted_range_proof_types(); -} -inline const ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>& -ConsensusConstants::_internal_permitted_range_proof_types() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.permitted_range_proof_types_; -} -inline ::google::protobuf::RepeatedPtrField<::tari::rpc::PermittedRangeProofs>* -ConsensusConstants::_internal_mutable_permitted_range_proof_types() { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return &_impl_.permitted_range_proof_types_; -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace rpc -} // namespace tari - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::tari::rpc::OutputType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::OutputType>() { - return ::tari::rpc::OutputType_descriptor(); -} -template <> -struct is_proto_enum<::tari::rpc::RangeProofType> : std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor<::tari::rpc::RangeProofType>() { - return ::tari::rpc::RangeProofType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // GOOGLE_PROTOBUF_INCLUDED_types_2eproto_2epb_2eh diff --git a/external/src/protobuf b/external/src/protobuf deleted file mode 160000 index 48d42399..00000000 --- a/external/src/protobuf +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 48d4239946152d5a82381df9ab2089f64bbe9dd4 diff --git a/external/src/protobuf-c b/external/src/protobuf-c new file mode 160000 index 00000000..8c201f6e --- /dev/null +++ b/external/src/protobuf-c @@ -0,0 +1 @@ +Subproject commit 8c201f6e47a53feaab773922a743091eb6c8972a