From a60fba8c18d28ed8f85f8794a7d3c953c2ba4f12 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Sat, 27 Jan 2024 21:29:12 +0100 Subject: [PATCH] Added Tari gRPC definitions --- .github/workflows/c-cpp.yml | 38 +- .github/workflows/clang-tidy.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/cppcheck.yml | 4 +- .github/workflows/msvc-analysis.yml | 2 +- .github/workflows/source-snapshot.yml | 2 +- .github/workflows/test-sync.yml | 10 +- .gitmodules | 3 + CMakeLists.txt | 22 +- cmake/aarch64_toolchain.cmake | 8 + cmake/flags.cmake | 21 +- external/src/Tari/CMakeLists.txt | 30 + external/src/Tari/proto.h | 14 + external/src/Tari/proto/gRPC/base_node.pb.cc | 13838 +++++++++++++ external/src/Tari/proto/gRPC/base_node.pb.h | 16737 ++++++++++++++++ external/src/Tari/proto/gRPC/base_node.proto | 488 + external/src/Tari/proto/gRPC/block.pb.cc | 2567 +++ external/src/Tari/proto/gRPC/block.pb.h | 3416 ++++ external/src/Tari/proto/gRPC/block.proto | 137 + external/src/Tari/proto/gRPC/network.pb.cc | 2375 +++ external/src/Tari/proto/gRPC/network.pb.h | 3263 +++ external/src/Tari/proto/gRPC/network.proto | 93 + .../src/Tari/proto/gRPC/sidechain_types.pb.cc | 2431 +++ .../src/Tari/proto/gRPC/sidechain_types.pb.h | 3302 +++ .../src/Tari/proto/gRPC/sidechain_types.proto | 77 + .../src/Tari/proto/gRPC/transaction.pb.cc | 3484 ++++ external/src/Tari/proto/gRPC/transaction.pb.h | 5226 +++++ .../src/Tari/proto/gRPC/transaction.proto | 182 + external/src/Tari/proto/gRPC/types.pb.cc | 4010 ++++ external/src/Tari/proto/gRPC/types.pb.h | 5282 +++++ external/src/Tari/proto/gRPC/types.proto | 144 + external/src/protobuf | 1 + 32 files changed, 67181 insertions(+), 30 deletions(-) create mode 100644 cmake/aarch64_toolchain.cmake create mode 100644 external/src/Tari/CMakeLists.txt create mode 100644 external/src/Tari/proto.h create mode 100644 external/src/Tari/proto/gRPC/base_node.pb.cc create mode 100644 external/src/Tari/proto/gRPC/base_node.pb.h create mode 100644 external/src/Tari/proto/gRPC/base_node.proto create mode 100644 external/src/Tari/proto/gRPC/block.pb.cc create mode 100644 external/src/Tari/proto/gRPC/block.pb.h create mode 100644 external/src/Tari/proto/gRPC/block.proto create mode 100644 external/src/Tari/proto/gRPC/network.pb.cc create mode 100644 external/src/Tari/proto/gRPC/network.pb.h create mode 100644 external/src/Tari/proto/gRPC/network.proto create mode 100644 external/src/Tari/proto/gRPC/sidechain_types.pb.cc create mode 100644 external/src/Tari/proto/gRPC/sidechain_types.pb.h create mode 100644 external/src/Tari/proto/gRPC/sidechain_types.proto create mode 100644 external/src/Tari/proto/gRPC/transaction.pb.cc create mode 100644 external/src/Tari/proto/gRPC/transaction.pb.h create mode 100644 external/src/Tari/proto/gRPC/transaction.proto create mode 100644 external/src/Tari/proto/gRPC/types.pb.cc create mode 100644 external/src/Tari/proto/gRPC/types.pb.h create mode 100644 external/src/Tari/proto/gRPC/types.proto create mode 160000 external/src/protobuf diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index ece2957..d2a99c2 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -32,12 +32,12 @@ jobs: - name: Install dependencies shell: alpine.sh --root {0} run: | - apk add git cmake gcc g++ make + apk add git cmake gcc g++ make linux-headers - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build libcurl shell: alpine.sh {0} @@ -115,7 +115,7 @@ jobs: strategy: matrix: config: - - {os: ubuntu-20.04, c: gcc-7, cpp: g++-7, flags: "-Wno-lto-type-mismatch"} + - {os: ubuntu-20.04, c: gcc, cpp: g++, flags: ""} - {os: ubuntu-20.04, c: gcc-11, cpp: g++-11, flags: ""} - {os: ubuntu-22.04, c: gcc-12, cpp: g++-12, flags: ""} @@ -129,7 +129,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build p2pool run: | @@ -184,7 +184,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build libcurl run: | @@ -261,12 +261,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build libcurl run: | cd external/src/curl - cmake . -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_C_FLAGS="-Os ${{ matrix.config.flags }}" -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_ZLIB=OFF -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_NETRC=ON -DCURL_DISABLE_NTLM=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_SHUFFLE_DNS=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF -DENABLE_UNIX_SOCKETS=OFF + cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS="-Os ${{ matrix.config.flags }}" -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_ZLIB=OFF -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_NETRC=ON -DCURL_DISABLE_NTLM=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_SHUFFLE_DNS=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF -DENABLE_UNIX_SOCKETS=OFF make -j$(nproc) cd lib && mkdir .libs && cp libcurl.a .libs @@ -275,7 +275,7 @@ jobs: cd external/src/libuv mkdir build cd build - cmake .. -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DBUILD_TESTING=OFF -DLIBUV_BUILD_SHARED=OFF + cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DBUILD_TESTING=OFF -DLIBUV_BUILD_SHARED=OFF make -j$(nproc) - name: Build libzmq @@ -283,14 +283,14 @@ jobs: cd external/src/libzmq mkdir build cd build - cmake .. -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DCMAKE_CXX_FLAGS='-Os ${{ matrix.config.flags }}' -DWITH_LIBSODIUM=OFF -DWITH_LIBBSD=OFF -DBUILD_TESTS=OFF -DWITH_DOCS=OFF -DENABLE_DRAFTS=OFF -DBUILD_SHARED=OFF + cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DCMAKE_CXX_FLAGS='-Os ${{ matrix.config.flags }}' -DWITH_LIBSODIUM=OFF -DWITH_LIBBSD=OFF -DBUILD_TESTS=OFF -DWITH_DOCS=OFF -DENABLE_DRAFTS=OFF -DBUILD_SHARED=OFF make -j$(nproc) - name: Build p2pool run: | mkdir build cd build - cmake .. -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_STRIP=/usr/bin/aarch64-linux-gnu-strip -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DARCH_ID=aarch64 + cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/aarch64_toolchain.cmake -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON -DARCH_ID=aarch64 make -j$(nproc) - name: Run RandomX tests @@ -449,7 +449,7 @@ jobs: cd tests mkdir build cd build - cmake .. -G "${{ matrix.config.vs }}" + cmake .. -G "${{ matrix.config.vs }}" -DDEV_WITH_ASAN=ON & "${{ matrix.config.vspath }}\\MSBuild\\Current\\Bin\\amd64\\msbuild" -v:m /m /p:Configuration=Debug p2pool_tests.vcxproj - name: Run tests @@ -579,7 +579,7 @@ jobs: build-freebsd: - timeout-minutes: 75 + timeout-minutes: 90 runs-on: ${{ matrix.os.host }} strategy: @@ -596,6 +596,11 @@ jobs: with: submodules: recursive + - name: Delete unused files + run: | + rm -rf .git + rm -rf external/lib + - name: Build p2pool uses: cross-platform-actions/action@v0.22.0 with: @@ -642,7 +647,7 @@ jobs: build-openbsd: - timeout-minutes: 75 + timeout-minutes: 90 runs-on: ${{ matrix.os.host }} strategy: @@ -650,7 +655,7 @@ jobs: os: - name: openbsd architecture: x86-64 - version: '7.2' + version: '7.4' host: ubuntu-22.04 steps: @@ -659,6 +664,11 @@ jobs: with: submodules: recursive + - name: Delete unused files + run: | + rm -rf .git + rm -rf external/lib + - name: Build p2pool uses: cross-platform-actions/action@v0.22.0 with: diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index b1605f0..1192a29 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -25,7 +25,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: cmake p2pool run: | diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 45e9e97..66fbdf5 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -49,7 +49,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index 8b513b2..ba91a3e 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Checkout cppcheck uses: actions/checkout@v4 @@ -68,7 +68,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Checkout cppcheck uses: actions/checkout@v4 diff --git a/.github/workflows/msvc-analysis.yml b/.github/workflows/msvc-analysis.yml index 1ecabe7..1252f3a 100644 --- a/.github/workflows/msvc-analysis.yml +++ b/.github/workflows/msvc-analysis.yml @@ -35,7 +35,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Configure CMake run: cmake -B ${{ env.build }} -DCMAKE_BUILD_TYPE=${{ env.config }} diff --git a/.github/workflows/source-snapshot.yml b/.github/workflows/source-snapshot.yml index fc8e5ae..9114982 100644 --- a/.github/workflows/source-snapshot.yml +++ b/.github/workflows/source-snapshot.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Compress source code run: | diff --git a/.github/workflows/test-sync.yml b/.github/workflows/test-sync.yml index 0c780b9..c4492d7 100644 --- a/.github/workflows/test-sync.yml +++ b/.github/workflows/test-sync.yml @@ -25,7 +25,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build libcurl run: | @@ -113,7 +113,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build libcurl run: | @@ -185,7 +185,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build p2pool run: | @@ -234,7 +234,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - submodules: true + submodules: recursive - name: Build p2pool run: | @@ -357,7 +357,7 @@ jobs: run: | mkdir build cd build - cmake .. -G "Visual Studio 17 2022" -DDEV_TEST_SYNC=ON + cmake .. -G "Visual Studio 17 2022" -DDEV_TEST_SYNC=ON -DDEV_WITH_ASAN=ON & "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Msbuild\\Current\\Bin\\amd64\\msbuild" -v:m /m /p:Configuration=Debug p2pool.vcxproj - name: Run p2pool diff --git a/.gitmodules b/.gitmodules index 312be70..2257dea 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,3 +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 diff --git a/CMakeLists.txt b/CMakeLists.txt index b2d646d..30be080 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,14 @@ cmake_minimum_required(VERSION 3.5) project(p2pool) +message(STATUS "Build environment: + System processor: ${CMAKE_SYSTEM_PROCESSOR} + C compiler: ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID}) + CXX compiler: ${CMAKE_CXX_COMPILER} (${CMAKE_CXX_COMPILER_ID}) +") + +set_property(GLOBAL PROPERTY USE_FOLDERS ON) + option(STATIC_BINARY "Build static binary" OFF) option(STATIC_LIBS "Link libuv and libzmq statically" OFF) option(WITH_RANDOMX "Include the RandomX library in the build. If this is turned off, p2pool will rely on monerod for verifying RandomX hashes" ON) @@ -15,12 +23,16 @@ option(DEV_WITH_ASAN "[Developer only] Compile with address sanitizer" OFF) option(DEV_CLANG_TIDY "[Developer only] Compile for clang-tidy" OFF) option(DEV_TRACK_MEMORY "[Developer only] Track memory allocations" OFF) -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") - if (${CMAKE_VERSION} VERSION_GREATER "3.5.2") set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT p2pool) endif() +add_subdirectory(external/src/protobuf) +set(LIBS ${LIBS} libprotobuf) + +add_subdirectory(external/src/Tari) +set(LIBS ${LIBS} Tari_gRPC) + if (WITH_RANDOMX) add_definitions(-DWITH_RANDOMX) add_subdirectory(external/src/RandomX) @@ -131,6 +143,9 @@ if (WITH_RANDOMX) set(SOURCES ${SOURCES} src/miner.cpp) endif() +source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" PREFIX "Header Files" FILES ${HEADERS}) +source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" PREFIX "Source Files" FILES ${SOURCES}) + if (NOT ((CMAKE_CXX_COMPILER_ID MATCHES MSVC) OR STATIC_BINARY OR STATIC_LIBS)) include(FindCURL) endif() @@ -164,6 +179,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) if (WIN32) set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi dnsapi dbghelp) @@ -235,7 +251,7 @@ add_definitions(/DZMQ_STATIC) include(CheckCXXSourceCompiles) check_cxx_source_compiles("int main(){ return __builtin_clzll(1);}" HAVE_BUILTIN_CLZLL) -check_cxx_source_compiles("#include \n#pragma intrinsic(_BitScanReverse64)\nint main(){unsigned long r;_BitScanReverse64(&r,1);return r;}" HAVE_BITSCANREVERSE64) +check_cxx_source_compiles("#include \n#pragma intrinsic(_BitScanReverse64)\nint main(){unsigned long r;_BitScanReverse64(&r,1);return static_cast(r);}" HAVE_BITSCANREVERSE64) check_cxx_source_compiles("#include \nint main(){sched_param param;return sched_setscheduler(0, SCHED_IDLE, ¶m);}" HAVE_SCHED) include(CheckCSourceCompiles) diff --git a/cmake/aarch64_toolchain.cmake b/cmake/aarch64_toolchain.cmake new file mode 100644 index 0000000..cb37e81 --- /dev/null +++ b/cmake/aarch64_toolchain.cmake @@ -0,0 +1,8 @@ +set(CMAKE_SYSTEM_NAME Linux) +set(CMAKE_CROSSCOMPILING TRUE) + +set(CMAKE_SYSTEM_PROCESSOR aarch64) + +set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc) +set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++) +set(CMAKE_STRIP /usr/bin/aarch64-linux-gnu-strip) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index f1520d8..c3143d7 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -41,6 +41,10 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU) set(WARNING_FLAGS "${WARNING_FLAGS} -Wstrict-overflow=2") endif() + if (DISABLE_WARNINGS) + set(WARNING_FLAGS "-w") + endif() + if (DEV_WITH_TSAN OR DEV_WITH_UBSAN OR DEV_WITH_ASAN) set(OPTIMIZATION_FLAGS "-Og -g") else() @@ -76,8 +80,17 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC) set(SECURITY_FLAGS "/GS /guard:cf") set(OPTIMIZATION_FLAGS "/O2 /Oi /Ob2 /Ot /DNDEBUG /GL") - set(CMAKE_C_FLAGS_DEBUG "${GENERAL_FLAGS} ${WARNING_FLAGS} ${SECURITY_FLAGS} /Od /Ob0 /Zi /MTd /fsanitize=address") - set(CMAKE_CXX_FLAGS_DEBUG "${GENERAL_FLAGS} ${WARNING_FLAGS} ${SECURITY_FLAGS} /Od /Ob0 /Zi /MTd /fsanitize=address") + if (DISABLE_WARNINGS) + set(WARNING_FLAGS "/W0") + endif() + + set(CMAKE_C_FLAGS_DEBUG "${GENERAL_FLAGS} ${WARNING_FLAGS} ${SECURITY_FLAGS} /Od /Ob0 /Zi /MTd") + set(CMAKE_CXX_FLAGS_DEBUG "${GENERAL_FLAGS} ${WARNING_FLAGS} ${SECURITY_FLAGS} /Od /Ob0 /Zi /MTd") + + if (DEV_WITH_ASAN) + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /fsanitize=address") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /fsanitize=address") + endif() set(CMAKE_C_FLAGS_RELEASE "${GENERAL_FLAGS} ${WARNING_FLAGS} ${SECURITY_FLAGS} ${OPTIMIZATION_FLAGS} /MT") set(CMAKE_CXX_FLAGS_RELEASE "${GENERAL_FLAGS} ${WARNING_FLAGS} ${SECURITY_FLAGS} ${OPTIMIZATION_FLAGS} /MT") @@ -100,6 +113,10 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang) set(WARNING_FLAGS "-Wall -Wextra -Wno-undefined-internal -Wunreachable-code-aggressive -Wmissing-prototypes -Wmissing-variable-declarations -Werror") + if (DISABLE_WARNINGS) + set(WARNING_FLAGS "-w") + endif() + if (DEV_WITH_MSAN) set(OPTIMIZATION_FLAGS "-Og -g") else() diff --git a/external/src/Tari/CMakeLists.txt b/external/src/Tari/CMakeLists.txt new file mode 100644 index 0000000..10a2902 --- /dev/null +++ b/external/src/Tari/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.5) +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 + 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 +) + +include_directories(../protobuf/src) +include_directories(../protobuf/third_party/abseil-cpp) + +set(DISABLE_WARNINGS ON) + +include(../../../cmake/flags.cmake) + +add_library(Tari_gRPC ${HEADERS} ${SOURCES}) diff --git a/external/src/Tari/proto.h b/external/src/Tari/proto.h new file mode 100644 index 0000000..ec221eb --- /dev/null +++ b/external/src/Tari/proto.h @@ -0,0 +1,14 @@ +#ifdef _MSC_VER +#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" + +#ifdef _MSC_VER +#pragma warning(pop) +#endif diff --git a/external/src/Tari/proto/gRPC/base_node.pb.cc b/external/src/Tari/proto/gRPC/base_node.pb.cc new file mode 100644 index 0000000..9102964 --- /dev/null +++ b/external/src/Tari/proto/gRPC/base_node.pb.cc @@ -0,0 +1,13838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: base_node.proto + +#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()), + _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()), + 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[] PROTOBUF_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_), + ~0u, + 0, + ~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::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[] PROTOBUF_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, 342, -1, sizeof(::tari::rpc::GetNewBlockResult)}, + {345, -1, -1, sizeof(::tari::rpc::GetNewBlockBlobResult)}, + {358, 370, -1, sizeof(::tari::rpc::MinerData)}, + {374, -1, -1, sizeof(::tari::rpc::SearchKernelsRequest)}, + {383, -1, -1, sizeof(::tari::rpc::SearchUtxosRequest)}, + {392, -1, -1, sizeof(::tari::rpc::FetchMatchingUtxosRequest)}, + {401, 410, -1, sizeof(::tari::rpc::FetchMatchingUtxosResponse)}, + {411, 420, -1, sizeof(::tari::rpc::GetPeersResponse)}, + {421, -1, -1, sizeof(::tari::rpc::GetPeersRequest)}, + {429, 438, -1, sizeof(::tari::rpc::SubmitTransactionRequest)}, + {439, -1, -1, sizeof(::tari::rpc::SubmitTransactionResponse)}, + {448, -1, -1, sizeof(::tari::rpc::GetMempoolTransactionsRequest)}, + {456, 465, -1, sizeof(::tari::rpc::GetMempoolTransactionsResponse)}, + {466, 475, -1, sizeof(::tari::rpc::TransactionStateRequest)}, + {476, -1, -1, sizeof(::tari::rpc::TransactionStateResponse)}, + {485, -1, -1, sizeof(::tari::rpc::MempoolStatsResponse)}, + {496, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesRequest)}, + {505, -1, -1, sizeof(::tari::rpc::GetActiveValidatorNodesResponse)}, + {515, -1, -1, sizeof(::tari::rpc::GetShardKeyRequest)}, + {525, -1, -1, sizeof(::tari::rpc::GetShardKeyResponse)}, + {535, -1, -1, sizeof(::tari::rpc::GetTemplateRegistrationsRequest)}, + {545, 555, -1, sizeof(::tari::rpc::GetTemplateRegistrationResponse)}, + {557, -1, -1, sizeof(::tari::rpc::BlockInfo)}, + {568, -1, -1, sizeof(::tari::rpc::GetSideChainUtxosRequest)}, + {578, 588, -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[] PROTOBUF_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\"b\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\"{\n\025GetNewB" + "lockBlobResult\022\022\n\nblock_hash\030\001 \001(\014\022\016\n\006he" + "ader\030\002 \001(\014\022\022\n\nblock_body\030\003 \001(\014\022\031\n\021merge_" + "mining_hash\030\004 \001(\014\022\017\n\007utxo_mr\030\005 \001(\014\"k\n\tMi" + "nerData\022\037\n\004algo\030\001 \001(\0132\021.tari.rpc.PowAlgo" + "\022\031\n\021target_difficulty\030\002 \001(\004\022\016\n\006reward\030\003 " + "\001(\004\022\022\n\ntotal_fees\030\005 \001(\004\"\?\n\024SearchKernels" + "Request\022\'\n\nsignatures\030\001 \003(\0132\023.tari.rpc.S" + "ignature\")\n\022SearchUtxosRequest\022\023\n\013commit" + "ments\030\001 \003(\014\"+\n\031FetchMatchingUtxosRequest" + "\022\016\n\006hashes\030\001 \003(\014\"I\n\032FetchMatchingUtxosRe" + "sponse\022+\n\006output\030\001 \001(\0132\033.tari.rpc.Transa" + "ctionOutput\"0\n\020GetPeersResponse\022\034\n\004peer\030" + "\001 \001(\0132\016.tari.rpc.Peer\"\021\n\017GetPeersRequest" + "\"F\n\030SubmitTransactionRequest\022*\n\013transact" + "ion\030\001 \001(\0132\025.tari.rpc.Transaction\"N\n\031Subm" + "itTransactionResponse\0221\n\006result\030\001 \001(\0162!." + "tari.rpc.SubmitTransactionResult\"\037\n\035GetM" + "empoolTransactionsRequest\"L\n\036GetMempoolT" + "ransactionsResponse\022*\n\013transaction\030\001 \001(\013" + "2\025.tari.rpc.Transaction\"B\n\027TransactionSt" + "ateRequest\022\'\n\nexcess_sig\030\001 \001(\0132\023.tari.rp" + "c.Signature\"I\n\030TransactionStateResponse\022" + "-\n\006result\030\001 \001(\0162\035.tari.rpc.TransactionLo" + "cation\"^\n\024MempoolStatsResponse\022\027\n\017unconf" + "irmed_txs\030\002 \001(\004\022\021\n\treorg_txs\030\003 \001(\004\022\032\n\022un" + "confirmed_weight\030\004 \001(\004\"0\n\036GetActiveValid" + "atorNodesRequest\022\016\n\006height\030\001 \001(\004\"H\n\037GetA" + "ctiveValidatorNodesResponse\022\021\n\tshard_key" + "\030\001 \001(\014\022\022\n\npublic_key\030\002 \001(\014\"8\n\022GetShardKe" + "yRequest\022\016\n\006height\030\001 \001(\004\022\022\n\npublic_key\030\002" + " \001(\014\"7\n\023GetShardKeyResponse\022\021\n\tshard_key" + "\030\001 \001(\014\022\r\n\005found\030\002 \001(\010\"D\n\037GetTemplateRegi" + "strationsRequest\022\022\n\nstart_hash\030\001 \001(\014\022\r\n\005" + "count\030\002 \001(\004\"j\n\037GetTemplateRegistrationRe" + "sponse\022\021\n\tutxo_hash\030\001 \001(\014\0224\n\014registratio" + "n\030\002 \001(\0132\036.tari.rpc.TemplateRegistration\"" + "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\030GetSideCh" + "ainUtxosRequest\022\022\n\nstart_hash\030\001 \001(\014\022\r\n\005c" + "ount\030\002 \001(\004\"r\n\031GetSideChainUtxosResponse\022" + "\'\n\nblock_info\030\001 \001(\0132\023.tari.rpc.BlockInfo" + "\022,\n\007outputs\030\002 \003(\0132\033.tari.rpc.Transaction" + "Output*\200\001\n\rBaseNodeState\022\014\n\010START_UP\020\000\022\017" + "\n\013HEADER_SYNC\020\001\022\020\n\014HORIZON_SYNC\020\002\022\016\n\nCON" + "NECTING\020\003\022\016\n\nBLOCK_SYNC\020\004\022\r\n\tLISTENING\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\010QUARTILE\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\017HEADE" + "R_STARTING\020\001\022\n\n\006HEADER\020\002\022\022\n\016BLOCK_STARTI" + "NG\020\003\022\t\n\005BLOCK\020\004\022\010\n\004DONE\020\005*t\n\027SubmitTrans" + "actionResult\022\010\n\004NONE\020\000\022\014\n\010ACCEPTED\020\001\022 \n\034" + "NOT_PROCESSABLE_AT_THIS_TIME\020\002\022\021\n\rALREAD" + "Y_MINED\020\003\022\014\n\010REJECTED\020\004*J\n\023TransactionLo" + "cation\022\013\n\007UNKNOWN\020\000\022\013\n\007MEMPOOL\020\001\022\t\n\005MINE" + "D\020\002\022\016\n\nNOT_STORED\020\0032\377\024\n\010BaseNode\022L\n\013List" + "Headers\022\034.tari.rpc.ListHeadersRequest\032\035." + "tari.rpc.BlockHeaderResponse0\001\022R\n\017GetHea" + "derByHash\022 .tari.rpc.GetHeaderByHashRequ" + "est\032\035.tari.rpc.BlockHeaderResponse\022D\n\tGe" + "tBlocks\022\032.tari.rpc.GetBlocksRequest\032\031.ta" + "ri.rpc.HistoricalBlock0\001\022H\n\016GetBlockTimi" + "ng\022\027.tari.rpc.HeightRequest\032\035.tari.rpc.B" + "lockTimingResponse\022C\n\014GetConstants\022\025.tar" + "i.rpc.BlockHeight\032\034.tari.rpc.ConsensusCo" + "nstants\022I\n\014GetBlockSize\022\033.tari.rpc.Block" + "GroupRequest\032\034.tari.rpc.BlockGroupRespon" + "se\022I\n\014GetBlockFees\022\033.tari.rpc.BlockGroup" + "Request\032\034.tari.rpc.BlockGroupResponse\0224\n" + "\nGetVersion\022\017.tari.rpc.Empty\032\025.tari.rpc." + "StringValue\022<\n\017CheckForUpdates\022\017.tari.rp" + "c.Empty\032\030.tari.rpc.SoftwareUpdate\022W\n\026Get" + "TokensInCirculation\022\032.tari.rpc.GetBlocks" + "Request\032\037.tari.rpc.ValueAtHeightResponse" + "0\001\022V\n\024GetNetworkDifficulty\022\027.tari.rpc.He" + "ightRequest\032#.tari.rpc.NetworkDifficulty" + "Response0\001\022\\\n\023GetNewBlockTemplate\022!.tari" + ".rpc.NewBlockTemplateRequest\032\".tari.rpc." + "NewBlockTemplateResponse\022F\n\013GetNewBlock\022" + "\032.tari.rpc.NewBlockTemplate\032\033.tari.rpc.G" + "etNewBlockResult\022N\n\017GetNewBlockBlob\022\032.ta" + "ri.rpc.NewBlockTemplate\032\037.tari.rpc.GetNe" + "wBlockBlobResult\022=\n\013SubmitBlock\022\017.tari.r" + "pc.Block\032\035.tari.rpc.SubmitBlockResponse\022" + "L\n\017SubmitBlockBlob\022\032.tari.rpc.BlockBlobR" + "equest\032\035.tari.rpc.SubmitBlockResponse\022\\\n" + "\021SubmitTransaction\022\".tari.rpc.SubmitTran" + "sactionRequest\032#.tari.rpc.SubmitTransact" + "ionResponse\022:\n\013GetSyncInfo\022\017.tari.rpc.Em" + "pty\032\032.tari.rpc.SyncInfoResponse\022B\n\017GetSy" + "ncProgress\022\017.tari.rpc.Empty\032\036.tari.rpc.S" + "yncProgressResponse\0228\n\nGetTipInfo\022\017.tari" + ".rpc.Empty\032\031.tari.rpc.TipInfoResponse\022L\n" + "\rSearchKernels\022\036.tari.rpc.SearchKernelsR" + "equest\032\031.tari.rpc.HistoricalBlock0\001\022H\n\013S" + "earchUtxos\022\034.tari.rpc.SearchUtxosRequest" + "\032\031.tari.rpc.HistoricalBlock0\001\022a\n\022FetchMa" + "tchingUtxos\022#.tari.rpc.FetchMatchingUtxo" + "sRequest\032$.tari.rpc.FetchMatchingUtxosRe" + "sponse0\001\022C\n\010GetPeers\022\031.tari.rpc.GetPeers" + "Request\032\032.tari.rpc.GetPeersResponse0\001\022m\n" + "\026GetMempoolTransactions\022\'.tari.rpc.GetMe" + "mpoolTransactionsRequest\032(.tari.rpc.GetM" + "empoolTransactionsResponse0\001\022Y\n\020Transact" + "ionState\022!.tari.rpc.TransactionStateRequ" + "est\032\".tari.rpc.TransactionStateResponse\022" + "3\n\010Identify\022\017.tari.rpc.Empty\032\026.tari.rpc." + "NodeIdentity\022D\n\020GetNetworkStatus\022\017.tari." + "rpc.Empty\032\037.tari.rpc.NetworkStatusRespon" + "se\022K\n\022ListConnectedPeers\022\017.tari.rpc.Empt" + "y\032$.tari.rpc.ListConnectedPeersResponse\022" + "B\n\017GetMempoolStats\022\017.tari.rpc.Empty\032\036.ta" + "ri.rpc.MempoolStatsResponse\022p\n\027GetActive" + "ValidatorNodes\022(.tari.rpc.GetActiveValid" + "atorNodesRequest\032).tari.rpc.GetActiveVal" + "idatorNodesResponse0\001\022J\n\013GetShardKey\022\034.t" + "ari.rpc.GetShardKeyRequest\032\035.tari.rpc.Ge" + "tShardKeyResponse\022r\n\030GetTemplateRegistra" + "tions\022).tari.rpc.GetTemplateRegistration" + "sRequest\032).tari.rpc.GetTemplateRegistrat" + "ionResponse0\001\022^\n\021GetSideChainUtxos\022\".tar" + "i.rpc.GetSideChainUtxosRequest\032#.tari.rp" + "c.GetSideChainUtxosResponse0\001b\006proto3" +}; +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, + 7757, + 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; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_base_5fnode_2eproto(&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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetAssetMetadataRequest::_class_data_ = { + GetAssetMetadataRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetAssetMetadataRequest::GetClassData() const { + return &_class_data_; +} + +void GetAssetMetadataRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* GetAssetMetadataRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::OutputFeatures& features(const GetAssetMetadataResponse* msg); + static void set_has_features(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::OutputFeatures& GetAssetMetadataResponse::_Internal::features(const GetAssetMetadataResponse* msg) { + return *msg->_impl_.features_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // 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, _Internal::features(this), + _Internal::features(this).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_); +} + +const ::google::protobuf::Message::ClassData GetAssetMetadataResponse::_class_data_ = { + GetAssetMetadataResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetAssetMetadataResponse::GetClassData() const { + return &_class_data_; +} + +void GetAssetMetadataResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( + from._internal_features()); + } + if (from._internal_mined_height() != 0) { + _this->_internal_set_mined_height(from._internal_mined_height()); + } + _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; +} + +::_pbi::CachedSize* GetAssetMetadataResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData ListAssetRegistrationsRequest::_class_data_ = { + ListAssetRegistrationsRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ListAssetRegistrationsRequest::GetClassData() const { + return &_class_data_; +} + +void ListAssetRegistrationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_offset(from._internal_offset()); + } + if (from._internal_count() != 0) { + _this->_internal_set_count(from._internal_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; +} + +::_pbi::CachedSize* ListAssetRegistrationsRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::OutputFeatures& features(const ListAssetRegistrationsResponse* msg); + static void set_has_features(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::OutputFeatures& ListAssetRegistrationsResponse::_Internal::features(const ListAssetRegistrationsResponse* msg) { + return *msg->_impl_.features_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::features(this), + _Internal::features(this).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_); +} + +const ::google::protobuf::Message::ClassData ListAssetRegistrationsResponse::_class_data_ = { + ListAssetRegistrationsResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ListAssetRegistrationsResponse::GetClassData() const { + return &_class_data_; +} + +void ListAssetRegistrationsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( + from._internal_features()); + } + if (from._internal_mined_height() != 0) { + _this->_internal_set_mined_height(from._internal_mined_height()); + } + _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; +} + +::_pbi::CachedSize* ListAssetRegistrationsResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetTokensRequest::_class_data_ = { + GetTokensRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetTokensRequest::GetClassData() const { + return &_class_data_; +} + +void GetTokensRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* GetTokensRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::OutputFeatures& features(const GetTokensResponse* msg); + static void set_has_features(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::OutputFeatures& GetTokensResponse::_Internal::features(const GetTokensResponse* msg) { + return *msg->_impl_.features_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::features(this), + _Internal::features(this).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_); +} + +const ::google::protobuf::Message::ClassData GetTokensResponse::_class_data_ = { + GetTokensResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetTokensResponse::GetClassData() const { + return &_class_data_; +} + +void GetTokensResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( + from._internal_features()); + } + if (from._internal_mined_height() != 0) { + _this->_internal_set_mined_height(from._internal_mined_height()); + } + _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; +} + +::_pbi::CachedSize* GetTokensResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData SubmitBlockResponse::_class_data_ = { + SubmitBlockResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SubmitBlockResponse::GetClassData() const { + return &_class_data_; +} + +void SubmitBlockResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* SubmitBlockResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData BlockBlobRequest::_class_data_ = { + BlockBlobRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockBlobRequest::GetClassData() const { + return &_class_data_; +} + +void BlockBlobRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* BlockBlobRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::MetaData& metadata(const TipInfoResponse* msg); + static void set_has_metadata(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::MetaData& TipInfoResponse::_Internal::metadata(const TipInfoResponse* msg) { + return *msg->_impl_.metadata_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::metadata(this), + _Internal::metadata(this).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_); +} + +const ::google::protobuf::Message::ClassData TipInfoResponse::_class_data_ = { + TipInfoResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TipInfoResponse::GetClassData() const { + return &_class_data_; +} + +void TipInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.TipInfoResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_metadata()->::tari::rpc::MetaData::MergeFrom( + from._internal_metadata()); + } + if (from._internal_initial_sync_achieved() != 0) { + _this->_internal_set_initial_sync_achieved(from._internal_initial_sync_achieved()); + } + if (from._internal_base_node_state() != 0) { + _this->_internal_set_base_node_state(from._internal_base_node_state()); + } + _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; +} + +::_pbi::CachedSize* TipInfoResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::NewBlockTemplate& new_block_template(const NewBlockTemplateResponse* msg); + static void set_has_new_block_template(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::MinerData& miner_data(const NewBlockTemplateResponse* msg); + static void set_has_miner_data(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::tari::rpc::NewBlockTemplate& NewBlockTemplateResponse::_Internal::new_block_template(const NewBlockTemplateResponse* msg) { + return *msg->_impl_.new_block_template_; +} +const ::tari::rpc::MinerData& NewBlockTemplateResponse::_Internal::miner_data(const NewBlockTemplateResponse* msg) { + return *msg->_impl_.miner_data_; +} +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) + ? CreateMaybeMessage<::tari::rpc::NewBlockTemplate>(arena, *from._impl_.new_block_template_) + : nullptr; + _impl_.miner_data_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::new_block_template(this), + _Internal::new_block_template(this).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, _Internal::miner_data(this), + _Internal::miner_data(this).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_); +} + +const ::google::protobuf::Message::ClassData NewBlockTemplateResponse::_class_data_ = { + NewBlockTemplateResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* NewBlockTemplateResponse::GetClassData() const { + return &_class_data_; +} + +void NewBlockTemplateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_new_block_template()->::tari::rpc::NewBlockTemplate::MergeFrom( + from._internal_new_block_template()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_miner_data()->::tari::rpc::MinerData::MergeFrom( + from._internal_miner_data()); + } + } + if (from._internal_initial_sync_achieved() != 0) { + _this->_internal_set_initial_sync_achieved(from._internal_initial_sync_achieved()); + } + _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; +} + +::_pbi::CachedSize* NewBlockTemplateResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::PowAlgo& algo(const NewBlockTemplateRequest* msg); + static void set_has_algo(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::PowAlgo& NewBlockTemplateRequest::_Internal::algo(const NewBlockTemplateRequest* msg) { + return *msg->_impl_.algo_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // 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, _Internal::algo(this), + _Internal::algo(this).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_); +} + +const ::google::protobuf::Message::ClassData NewBlockTemplateRequest::_class_data_ = { + NewBlockTemplateRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* NewBlockTemplateRequest::GetClassData() const { + return &_class_data_; +} + +void NewBlockTemplateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.NewBlockTemplateRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_algo()->::tari::rpc::PowAlgo::MergeFrom( + from._internal_algo()); + } + if (from._internal_max_weight() != 0) { + _this->_internal_set_max_weight(from._internal_max_weight()); + } + _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; +} + +::_pbi::CachedSize* NewBlockTemplateRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData NetworkDifficultyResponse::_class_data_ = { + NetworkDifficultyResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* NetworkDifficultyResponse::GetClassData() const { + return &_class_data_; +} + +void NetworkDifficultyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_difficulty(from._internal_difficulty()); + } + if (from._internal_estimated_hash_rate() != 0) { + _this->_internal_set_estimated_hash_rate(from._internal_estimated_hash_rate()); + } + if (from._internal_height() != 0) { + _this->_internal_set_height(from._internal_height()); + } + if (from._internal_timestamp() != 0) { + _this->_internal_set_timestamp(from._internal_timestamp()); + } + if (from._internal_pow_algo() != 0) { + _this->_internal_set_pow_algo(from._internal_pow_algo()); + } + if (from._internal_sha3x_estimated_hash_rate() != 0) { + _this->_internal_set_sha3x_estimated_hash_rate(from._internal_sha3x_estimated_hash_rate()); + } + if (from._internal_randomx_estimated_hash_rate() != 0) { + _this->_internal_set_randomx_estimated_hash_rate(from._internal_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; +} + +::_pbi::CachedSize* NetworkDifficultyResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData ValueAtHeightResponse::_class_data_ = { + ValueAtHeightResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ValueAtHeightResponse::GetClassData() const { + return &_class_data_; +} + +void ValueAtHeightResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_value(from._internal_value()); + } + if (from._internal_height() != 0) { + _this->_internal_set_height(from._internal_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; +} + +::_pbi::CachedSize* ValueAtHeightResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData IntegerValue::_class_data_ = { + IntegerValue::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* IntegerValue::GetClassData() const { + return &_class_data_; +} + +void IntegerValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_value(from._internal_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; +} + +::_pbi::CachedSize* IntegerValue::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData StringValue::_class_data_ = { + StringValue::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* StringValue::GetClassData() const { + return &_class_data_; +} + +void StringValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* StringValue::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // .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_); +} + +const ::google::protobuf::Message::ClassData BlockGroupRequest::_class_data_ = { + BlockGroupRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockGroupRequest::GetClassData() const { + return &_class_data_; +} + +void BlockGroupRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_from_tip(from._internal_from_tip()); + } + if (from._internal_start_height() != 0) { + _this->_internal_set_start_height(from._internal_start_height()); + } + if (from._internal_end_height() != 0) { + _this->_internal_set_end_height(from._internal_end_height()); + } + if (from._internal_calc_type() != 0) { + _this->_internal_set_calc_type(from._internal_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; +} + +::_pbi::CachedSize* BlockGroupRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // .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_); +} + +const ::google::protobuf::Message::ClassData BlockGroupResponse::_class_data_ = { + BlockGroupResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockGroupResponse::GetClassData() const { + return &_class_data_; +} + +void BlockGroupResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_calc_type(from._internal_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; +} + +::_pbi::CachedSize* BlockGroupResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData HeightRequest::_class_data_ = { + HeightRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* HeightRequest::GetClassData() const { + return &_class_data_; +} + +void HeightRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_from_tip(from._internal_from_tip()); + } + if (from._internal_start_height() != 0) { + _this->_internal_set_start_height(from._internal_start_height()); + } + if (from._internal_end_height() != 0) { + _this->_internal_set_end_height(from._internal_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; +} + +::_pbi::CachedSize* HeightRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData BlockTimingResponse::_class_data_ = { + BlockTimingResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockTimingResponse::GetClassData() const { + return &_class_data_; +} + +void BlockTimingResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_max(from._internal_max()); + } + if (from._internal_min() != 0) { + _this->_internal_set_min(from._internal_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->_internal_set_avg(from._internal_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; +} + +::_pbi::CachedSize* BlockTimingResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetHeaderByHashRequest::_class_data_ = { + GetHeaderByHashRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetHeaderByHashRequest::GetClassData() const { + return &_class_data_; +} + +void GetHeaderByHashRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* GetHeaderByHashRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::BlockHeader& header(const BlockHeaderResponse* msg); + static void set_has_header(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::BlockHeader& BlockHeaderResponse::_Internal::header(const BlockHeaderResponse* msg) { + return *msg->_impl_.header_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::header(this), + _Internal::header(this).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_); +} + +const ::google::protobuf::Message::ClassData BlockHeaderResponse::_class_data_ = { + BlockHeaderResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockHeaderResponse::GetClassData() const { + return &_class_data_; +} + +void BlockHeaderResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.BlockHeaderResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_header()->::tari::rpc::BlockHeader::MergeFrom( + from._internal_header()); + } + if (from._internal_confirmations() != 0) { + _this->_internal_set_confirmations(from._internal_confirmations()); + } + if (from._internal_reward() != 0) { + _this->_internal_set_reward(from._internal_reward()); + } + if (from._internal_difficulty() != 0) { + _this->_internal_set_difficulty(from._internal_difficulty()); + } + if (from._internal_num_transactions() != 0) { + _this->_internal_set_num_transactions(from._internal_num_transactions()); + } + _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; +} + +::_pbi::CachedSize* BlockHeaderResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData ListHeadersRequest::_class_data_ = { + ListHeadersRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ListHeadersRequest::GetClassData() const { + return &_class_data_; +} + +void ListHeadersRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_from_height(from._internal_from_height()); + } + if (from._internal_num_headers() != 0) { + _this->_internal_set_num_headers(from._internal_num_headers()); + } + if (from._internal_sorting() != 0) { + _this->_internal_set_sorting(from._internal_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; +} + +::_pbi::CachedSize* ListHeadersRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetBlocksRequest::_class_data_ = { + GetBlocksRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetBlocksRequest::GetClassData() const { + return &_class_data_; +} + +void GetBlocksRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* GetBlocksRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetBlocksResponse::_class_data_ = { + GetBlocksResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetBlocksResponse::GetClassData() const { + return &_class_data_; +} + +void GetBlocksResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* GetBlocksResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData MetaData::_class_data_ = { + MetaData::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* MetaData::GetClassData() const { + return &_class_data_; +} + +void MetaData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_height_of_longest_chain(from._internal_height_of_longest_chain()); + } + if (from._internal_pruned_height() != 0) { + _this->_internal_set_pruned_height(from._internal_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; +} + +::_pbi::CachedSize* MetaData::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData SyncInfoResponse::_class_data_ = { + SyncInfoResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SyncInfoResponse::GetClassData() const { + return &_class_data_; +} + +void SyncInfoResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_tip_height(from._internal_tip_height()); + } + if (from._internal_local_height() != 0) { + _this->_internal_set_local_height(from._internal_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; +} + +::_pbi::CachedSize* SyncInfoResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData SyncProgressResponse::_class_data_ = { + SyncProgressResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SyncProgressResponse::GetClassData() const { + return &_class_data_; +} + +void SyncProgressResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_tip_height(from._internal_tip_height()); + } + if (from._internal_local_height() != 0) { + _this->_internal_set_local_height(from._internal_local_height()); + } + if (from._internal_state() != 0) { + _this->_internal_set_state(from._internal_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; +} + +::_pbi::CachedSize* SyncProgressResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Block& block(const GetNewBlockResult* msg); + static void set_has_block(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Block& GetNewBlockResult::_Internal::block(const GetNewBlockResult* msg) { + return *msg->_impl_.block_; +} +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_) {} + +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) + ? CreateMaybeMessage<::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) {} + +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(); + delete _impl_.block_; + _impl_.~Impl_(); +} + +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(); + 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, 3, 1, 0, 2> GetNewBlockResult::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GetNewBlockResult, _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), + &_GetNewBlockResult_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // 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)}, + }}, {{ + {::_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, _Internal::block(this), + _Internal::block(this).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); + } + + 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()); + } + + // .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_); +} + +const ::google::protobuf::Message::ClassData GetNewBlockResult::_class_data_ = { + GetNewBlockResult::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetNewBlockResult::GetClassData() const { + return &_class_data_; +} + +void GetNewBlockResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_block()->::tari::rpc::Block::MergeFrom( + from._internal_block()); + } + _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; +} + +::_pbi::CachedSize* GetNewBlockResult::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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); + 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_), + _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), + _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_.~Impl_(); +} + +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(); + _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, 5, 0, 0, 2> GetNewBlockBlobResult::_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 + &_GetNewBlockBlobResult_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_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_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_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)}, + }}, + // 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); + } + + 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()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::google::protobuf::Message::ClassData GetNewBlockBlobResult::_class_data_ = { + GetNewBlockBlobResult::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetNewBlockBlobResult::GetClassData() const { + return &_class_data_; +} + +void GetNewBlockBlobResult::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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()); + } + _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; +} + +::_pbi::CachedSize* GetNewBlockBlobResult::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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); +} + +::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_); + static const ::tari::rpc::PowAlgo& algo(const MinerData* msg); + static void set_has_algo(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::PowAlgo& MinerData::_Internal::algo(const MinerData* msg) { + return *msg->_impl_.algo_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::algo(this), + _Internal::algo(this).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_); +} + +const ::google::protobuf::Message::ClassData MinerData::_class_data_ = { + MinerData::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* MinerData::GetClassData() const { + return &_class_data_; +} + +void MinerData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.MinerData) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_algo()->::tari::rpc::PowAlgo::MergeFrom( + from._internal_algo()); + } + if (from._internal_target_difficulty() != 0) { + _this->_internal_set_target_difficulty(from._internal_target_difficulty()); + } + if (from._internal_reward() != 0) { + _this->_internal_set_reward(from._internal_reward()); + } + if (from._internal_total_fees() != 0) { + _this->_internal_set_total_fees(from._internal_total_fees()); + } + _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; +} + +::_pbi::CachedSize* MinerData::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData SearchKernelsRequest::_class_data_ = { + SearchKernelsRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SearchKernelsRequest::GetClassData() const { + return &_class_data_; +} + +void SearchKernelsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* SearchKernelsRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData SearchUtxosRequest::_class_data_ = { + SearchUtxosRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SearchUtxosRequest::GetClassData() const { + return &_class_data_; +} + +void SearchUtxosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* SearchUtxosRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData FetchMatchingUtxosRequest::_class_data_ = { + FetchMatchingUtxosRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* FetchMatchingUtxosRequest::GetClassData() const { + return &_class_data_; +} + +void FetchMatchingUtxosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* FetchMatchingUtxosRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::TransactionOutput& output(const FetchMatchingUtxosResponse* msg); + static void set_has_output(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::TransactionOutput& FetchMatchingUtxosResponse::_Internal::output(const FetchMatchingUtxosResponse* msg) { + return *msg->_impl_.output_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::output(this), + _Internal::output(this).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_); +} + +const ::google::protobuf::Message::ClassData FetchMatchingUtxosResponse::_class_data_ = { + FetchMatchingUtxosResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* FetchMatchingUtxosResponse::GetClassData() const { + return &_class_data_; +} + +void FetchMatchingUtxosResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.FetchMatchingUtxosResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_output()->::tari::rpc::TransactionOutput::MergeFrom( + from._internal_output()); + } + _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; +} + +::_pbi::CachedSize* FetchMatchingUtxosResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Peer& peer(const GetPeersResponse* msg); + static void set_has_peer(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Peer& GetPeersResponse::_Internal::peer(const GetPeersResponse* msg) { + return *msg->_impl_.peer_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::peer(this), + _Internal::peer(this).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_); +} + +const ::google::protobuf::Message::ClassData GetPeersResponse::_class_data_ = { + GetPeersResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetPeersResponse::GetClassData() const { + return &_class_data_; +} + +void GetPeersResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.GetPeersResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_peer()->::tari::rpc::Peer::MergeFrom( + from._internal_peer()); + } + _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; +} + +::_pbi::CachedSize* GetPeersResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Transaction& transaction(const SubmitTransactionRequest* msg); + static void set_has_transaction(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Transaction& SubmitTransactionRequest::_Internal::transaction(const SubmitTransactionRequest* msg) { + return *msg->_impl_.transaction_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::transaction(this), + _Internal::transaction(this).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_); +} + +const ::google::protobuf::Message::ClassData SubmitTransactionRequest::_class_data_ = { + SubmitTransactionRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SubmitTransactionRequest::GetClassData() const { + return &_class_data_; +} + +void SubmitTransactionRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.SubmitTransactionRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_transaction()->::tari::rpc::Transaction::MergeFrom( + from._internal_transaction()); + } + _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; +} + +::_pbi::CachedSize* SubmitTransactionRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // .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_); +} + +const ::google::protobuf::Message::ClassData SubmitTransactionResponse::_class_data_ = { + SubmitTransactionResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SubmitTransactionResponse::GetClassData() const { + return &_class_data_; +} + +void SubmitTransactionResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_result(from._internal_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; +} + +::_pbi::CachedSize* SubmitTransactionResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Transaction& transaction(const GetMempoolTransactionsResponse* msg); + static void set_has_transaction(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Transaction& GetMempoolTransactionsResponse::_Internal::transaction(const GetMempoolTransactionsResponse* msg) { + return *msg->_impl_.transaction_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::transaction(this), + _Internal::transaction(this).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_); +} + +const ::google::protobuf::Message::ClassData GetMempoolTransactionsResponse::_class_data_ = { + GetMempoolTransactionsResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetMempoolTransactionsResponse::GetClassData() const { + return &_class_data_; +} + +void GetMempoolTransactionsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.GetMempoolTransactionsResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_transaction()->::tari::rpc::Transaction::MergeFrom( + from._internal_transaction()); + } + _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; +} + +::_pbi::CachedSize* GetMempoolTransactionsResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Signature& excess_sig(const TransactionStateRequest* msg); + static void set_has_excess_sig(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Signature& TransactionStateRequest::_Internal::excess_sig(const TransactionStateRequest* msg) { + return *msg->_impl_.excess_sig_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::excess_sig(this), + _Internal::excess_sig(this).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_); +} + +const ::google::protobuf::Message::ClassData TransactionStateRequest::_class_data_ = { + TransactionStateRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TransactionStateRequest::GetClassData() const { + return &_class_data_; +} + +void TransactionStateRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.TransactionStateRequest) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_excess_sig()->::tari::rpc::Signature::MergeFrom( + from._internal_excess_sig()); + } + _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; +} + +::_pbi::CachedSize* TransactionStateRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // .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_); +} + +const ::google::protobuf::Message::ClassData TransactionStateResponse::_class_data_ = { + TransactionStateResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TransactionStateResponse::GetClassData() const { + return &_class_data_; +} + +void TransactionStateResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_result(from._internal_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; +} + +::_pbi::CachedSize* TransactionStateResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData MempoolStatsResponse::_class_data_ = { + MempoolStatsResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* MempoolStatsResponse::GetClassData() const { + return &_class_data_; +} + +void MempoolStatsResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_unconfirmed_txs(from._internal_unconfirmed_txs()); + } + if (from._internal_reorg_txs() != 0) { + _this->_internal_set_reorg_txs(from._internal_reorg_txs()); + } + if (from._internal_unconfirmed_weight() != 0) { + _this->_internal_set_unconfirmed_weight(from._internal_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; +} + +::_pbi::CachedSize* MempoolStatsResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetActiveValidatorNodesRequest::_class_data_ = { + GetActiveValidatorNodesRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetActiveValidatorNodesRequest::GetClassData() const { + return &_class_data_; +} + +void GetActiveValidatorNodesRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_height(from._internal_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; +} + +::_pbi::CachedSize* GetActiveValidatorNodesRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetActiveValidatorNodesResponse::_class_data_ = { + GetActiveValidatorNodesResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetActiveValidatorNodesResponse::GetClassData() const { + return &_class_data_; +} + +void GetActiveValidatorNodesResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* GetActiveValidatorNodesResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetShardKeyRequest::_class_data_ = { + GetShardKeyRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetShardKeyRequest::GetClassData() const { + return &_class_data_; +} + +void GetShardKeyRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_height(from._internal_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; +} + +::_pbi::CachedSize* GetShardKeyRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetShardKeyResponse::_class_data_ = { + GetShardKeyResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetShardKeyResponse::GetClassData() const { + return &_class_data_; +} + +void GetShardKeyResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_found(from._internal_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; +} + +::_pbi::CachedSize* GetShardKeyResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetTemplateRegistrationsRequest::_class_data_ = { + GetTemplateRegistrationsRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetTemplateRegistrationsRequest::GetClassData() const { + return &_class_data_; +} + +void GetTemplateRegistrationsRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_count(from._internal_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; +} + +::_pbi::CachedSize* GetTemplateRegistrationsRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::TemplateRegistration& registration(const GetTemplateRegistrationResponse* msg); + static void set_has_registration(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::TemplateRegistration& GetTemplateRegistrationResponse::_Internal::registration(const GetTemplateRegistrationResponse* msg) { + return *msg->_impl_.registration_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::registration(this), + _Internal::registration(this).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_); +} + +const ::google::protobuf::Message::ClassData GetTemplateRegistrationResponse::_class_data_ = { + GetTemplateRegistrationResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetTemplateRegistrationResponse::GetClassData() const { + return &_class_data_; +} + +void GetTemplateRegistrationResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_registration()->::tari::rpc::TemplateRegistration::MergeFrom( + from._internal_registration()); + } + _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; +} + +::_pbi::CachedSize* GetTemplateRegistrationResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData BlockInfo::_class_data_ = { + BlockInfo::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockInfo::GetClassData() const { + return &_class_data_; +} + +void BlockInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_height(from._internal_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; +} + +::_pbi::CachedSize* BlockInfo::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData GetSideChainUtxosRequest::_class_data_ = { + GetSideChainUtxosRequest::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetSideChainUtxosRequest::GetClassData() const { + return &_class_data_; +} + +void GetSideChainUtxosRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_count(from._internal_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; +} + +::_pbi::CachedSize* GetSideChainUtxosRequest::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::BlockInfo& block_info(const GetSideChainUtxosResponse* msg); + static void set_has_block_info(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::BlockInfo& GetSideChainUtxosResponse::_Internal::block_info(const GetSideChainUtxosResponse* msg) { + return *msg->_impl_.block_info_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // 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, _Internal::block_info(this), + _Internal::block_info(this).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_); +} + +const ::google::protobuf::Message::ClassData GetSideChainUtxosResponse::_class_data_ = { + GetSideChainUtxosResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetSideChainUtxosResponse::GetClassData() const { + return &_class_data_; +} + +void GetSideChainUtxosResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.GetSideChainUtxosResponse) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_internal_mutable_outputs()->MergeFrom( + from._internal_outputs()); + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_block_info()->::tari::rpc::BlockInfo::MergeFrom( + from._internal_block_info()); + } + _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; +} + +::_pbi::CachedSize* GetSideChainUtxosResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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) +#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 new file mode 100644 index 0000000..52f55d0 --- /dev/null +++ b/external/src/Tari/proto/gRPC/base_node.pb.h @@ -0,0 +1,16737 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: base_node.proto +// Protobuf C++ Version: 4.25.2 + +#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 < 4025000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4025002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#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) {} + ValueAtHeightResponse(ValueAtHeightResponse&& from) noexcept + : ValueAtHeightResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + TransactionStateResponse(TransactionStateResponse&& from) noexcept + : TransactionStateResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SyncProgressResponse(SyncProgressResponse&& from) noexcept + : SyncProgressResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SyncInfoResponse(SyncInfoResponse&& from) noexcept + : SyncInfoResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SubmitTransactionResponse(SubmitTransactionResponse&& from) noexcept + : SubmitTransactionResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SubmitBlockResponse(SubmitBlockResponse&& from) noexcept + : SubmitBlockResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + StringValue(StringValue&& from) noexcept + : StringValue() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SearchUtxosRequest(SearchUtxosRequest&& from) noexcept + : SearchUtxosRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + NetworkDifficultyResponse(NetworkDifficultyResponse&& from) noexcept + : NetworkDifficultyResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + MetaData(MetaData&& from) noexcept + : MetaData() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + MempoolStatsResponse(MempoolStatsResponse&& from) noexcept + : MempoolStatsResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ListHeadersRequest(ListHeadersRequest&& from) noexcept + : ListHeadersRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ListAssetRegistrationsRequest(ListAssetRegistrationsRequest&& from) noexcept + : ListAssetRegistrationsRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + IntegerValue(IntegerValue&& from) noexcept + : IntegerValue() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + HeightRequest(HeightRequest&& from) noexcept + : HeightRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetTokensRequest(GetTokensRequest&& from) noexcept + : GetTokensRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetTemplateRegistrationsRequest(GetTemplateRegistrationsRequest&& from) noexcept + : GetTemplateRegistrationsRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetSideChainUtxosRequest(GetSideChainUtxosRequest&& from) noexcept + : GetSideChainUtxosRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetShardKeyResponse(GetShardKeyResponse&& from) noexcept + : GetShardKeyResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetShardKeyRequest(GetShardKeyRequest&& from) noexcept + : GetShardKeyRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetPeersRequest(GetPeersRequest&& from) noexcept + : GetPeersRequest() { + *this = ::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 CreateMaybeMessage(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); + 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) {} + GetNewBlockBlobResult(GetNewBlockBlobResult&& from) noexcept + : GetNewBlockBlobResult() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBlockHashFieldNumber = 1, + kHeaderFieldNumber = 2, + kBlockBodyFieldNumber = 3, + kMergeMiningHashFieldNumber = 4, + kUtxoMrFieldNumber = 5, + }; + // 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: + // @@protoc_insertion_point(class_scope:tari.rpc.GetNewBlockBlobResult) + 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 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_; + 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) {} + GetMempoolTransactionsRequest(GetMempoolTransactionsRequest&& from) noexcept + : GetMempoolTransactionsRequest() { + *this = ::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 CreateMaybeMessage(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); + 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) {} + GetHeaderByHashRequest(GetHeaderByHashRequest&& from) noexcept + : GetHeaderByHashRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetBlocksRequest(GetBlocksRequest&& from) noexcept + : GetBlocksRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetAssetMetadataRequest(GetAssetMetadataRequest&& from) noexcept + : GetAssetMetadataRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetActiveValidatorNodesResponse(GetActiveValidatorNodesResponse&& from) noexcept + : GetActiveValidatorNodesResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetActiveValidatorNodesRequest(GetActiveValidatorNodesRequest&& from) noexcept + : GetActiveValidatorNodesRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + FetchMatchingUtxosRequest(FetchMatchingUtxosRequest&& from) noexcept + : FetchMatchingUtxosRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockTimingResponse(BlockTimingResponse&& from) noexcept + : BlockTimingResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockInfo(BlockInfo&& from) noexcept + : BlockInfo() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockGroupResponse(BlockGroupResponse&& from) noexcept + : BlockGroupResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockGroupRequest(BlockGroupRequest&& from) noexcept + : BlockGroupRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockBlobRequest(BlockBlobRequest&& from) noexcept + : BlockBlobRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + TransactionStateRequest(TransactionStateRequest&& from) noexcept + : TransactionStateRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + TipInfoResponse(TipInfoResponse&& from) noexcept + : TipInfoResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SearchKernelsRequest(SearchKernelsRequest&& from) noexcept + : SearchKernelsRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + NewBlockTemplateRequest(NewBlockTemplateRequest&& from) noexcept + : NewBlockTemplateRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + MinerData(MinerData&& from) noexcept + : MinerData() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetPeersResponse(GetPeersResponse&& from) noexcept + : GetPeersResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockHeaderResponse(BlockHeaderResponse&& from) noexcept + : BlockHeaderResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetTemplateRegistrationResponse(GetTemplateRegistrationResponse&& from) noexcept + : GetTemplateRegistrationResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ListAssetRegistrationsResponse(ListAssetRegistrationsResponse&& from) noexcept + : ListAssetRegistrationsResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetTokensResponse(GetTokensResponse&& from) noexcept + : GetTokensResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetAssetMetadataResponse(GetAssetMetadataResponse&& from) noexcept + : GetAssetMetadataResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetSideChainUtxosResponse(GetSideChainUtxosResponse&& from) noexcept + : GetSideChainUtxosResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + FetchMatchingUtxosResponse(FetchMatchingUtxosResponse&& from) noexcept + : FetchMatchingUtxosResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SubmitTransactionRequest(SubmitTransactionRequest&& from) noexcept + : SubmitTransactionRequest() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + NewBlockTemplateResponse(NewBlockTemplateResponse&& from) noexcept + : NewBlockTemplateResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetNewBlockResult(GetNewBlockResult&& from) noexcept + : GetNewBlockResult() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBlockHashFieldNumber = 1, + kMergeMiningHashFieldNumber = 3, + 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: + // .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, 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 block_hash_; + ::google::protobuf::internal::ArenaStringPtr merge_mining_hash_; + ::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) {} + GetMempoolTransactionsResponse(GetMempoolTransactionsResponse&& from) noexcept + : GetMempoolTransactionsResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetBlocksResponse(GetBlocksResponse&& from) noexcept + : GetBlocksResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.features_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.features_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.features_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::MetaData*>(_impl_.metadata_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::MetaData*>(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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.new_block_template_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.miner_data_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::MinerData*>(_impl_.miner_data_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::MinerData*>(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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.algo_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.block_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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) +} + +// ------------------------------------------------------------------- + +// 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) +} + +// ------------------------------------------------------------------- + +// 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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.algo_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.output_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.peer_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.transaction_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.transaction_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.excess_sig_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.registration_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.block_info_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::BlockInfo*>(_impl_.block_info_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::BlockInfo*>(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/base_node.proto b/external/src/Tari/proto/gRPC/base_node.proto new file mode 100644 index 0000000..df0ef38 --- /dev/null +++ b/external/src/Tari/proto/gRPC/base_node.proto @@ -0,0 +1,488 @@ +// Copyright 2020. The Tari Project +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// 2. 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. +// +// 3. Neither the name of the copyright holder 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 HOLDER 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"; + +import "types.proto"; +import "transaction.proto"; +import "block.proto"; +import "network.proto"; +import "sidechain_types.proto"; + +package tari.rpc; + +// The gRPC interface for interacting with the base node. +service BaseNode { + // Lists headers in the current best chain + rpc ListHeaders(ListHeadersRequest) returns (stream BlockHeaderResponse); + // Get header by hash + rpc GetHeaderByHash(GetHeaderByHashRequest) returns (BlockHeaderResponse); + // Returns blocks in the current best chain. Currently only supports querying by height + rpc GetBlocks(GetBlocksRequest) returns (stream HistoricalBlock); + // Returns the block timing for the chain heights + rpc GetBlockTiming(HeightRequest) returns (BlockTimingResponse); + // Returns the network Constants + rpc GetConstants(BlockHeight) returns (ConsensusConstants); + // Returns Block Sizes + rpc GetBlockSize (BlockGroupRequest) returns (BlockGroupResponse); + // Returns Block Fees + rpc GetBlockFees (BlockGroupRequest) returns (BlockGroupResponse); + // Get Version + rpc GetVersion(Empty) returns (StringValue); + // Check for new updates + rpc CheckForUpdates(Empty) returns (SoftwareUpdate); + // Get coins in circulation + rpc GetTokensInCirculation(GetBlocksRequest) returns (stream ValueAtHeightResponse); + // Get network difficulties + rpc GetNetworkDifficulty(HeightRequest) returns (stream NetworkDifficultyResponse); + // Get the block template + rpc GetNewBlockTemplate(NewBlockTemplateRequest) returns (NewBlockTemplateResponse); + // Construct a new block from a provided template + rpc GetNewBlock(NewBlockTemplate) returns (GetNewBlockResult); + // Construct a new block and header blob from a provided template + rpc GetNewBlockBlob(NewBlockTemplate) returns (GetNewBlockBlobResult); + // Submit a new block for propagation + rpc SubmitBlock(Block) returns (SubmitBlockResponse); + // Submit a new mined block blob for propagation + rpc SubmitBlockBlob(BlockBlobRequest) returns (SubmitBlockResponse); + // Submit a transaction for propagation + rpc SubmitTransaction(SubmitTransactionRequest) returns (SubmitTransactionResponse); + // Get the base node sync information + rpc GetSyncInfo(Empty) returns (SyncInfoResponse); + // Get the base node sync information + rpc GetSyncProgress(Empty) returns (SyncProgressResponse); + // Get the base node tip information + rpc GetTipInfo(Empty) returns (TipInfoResponse); + // Search for blocks containing the specified kernels + rpc SearchKernels(SearchKernelsRequest) returns (stream HistoricalBlock); + // Search for blocks containing the specified commitments + rpc SearchUtxos(SearchUtxosRequest) returns (stream HistoricalBlock); + // Fetch any utxos that exist in the main chain + rpc FetchMatchingUtxos(FetchMatchingUtxosRequest) returns (stream FetchMatchingUtxosResponse); + // get all peers from the base node + rpc GetPeers(GetPeersRequest) returns (stream GetPeersResponse); + rpc GetMempoolTransactions(GetMempoolTransactionsRequest) returns (stream GetMempoolTransactionsResponse); + rpc TransactionState(TransactionStateRequest) returns (TransactionStateResponse); + // This returns the node's network identity + rpc Identify (Empty) returns (NodeIdentity); + // Get Base Node network connectivity status + rpc GetNetworkStatus(Empty) returns (NetworkStatusResponse); + // List currently connected peers + rpc ListConnectedPeers(Empty) returns (ListConnectedPeersResponse); + // Get mempool stats + rpc GetMempoolStats(Empty) returns (MempoolStatsResponse); + // Get VNs + rpc GetActiveValidatorNodes(GetActiveValidatorNodesRequest) returns (stream GetActiveValidatorNodesResponse); + rpc GetShardKey(GetShardKeyRequest) returns (GetShardKeyResponse); + // Get templates + rpc GetTemplateRegistrations(GetTemplateRegistrationsRequest) returns (stream GetTemplateRegistrationResponse); + rpc GetSideChainUtxos(GetSideChainUtxosRequest) returns (stream GetSideChainUtxosResponse); +} + +message GetAssetMetadataRequest { + bytes asset_public_key = 1; +} + +message GetAssetMetadataResponse { + string name = 2; + string description =3; + string image = 4; + bytes owner_commitment = 5; + OutputFeatures features = 6; + uint64 mined_height = 7; + bytes mined_in_block = 8; +} + +message ListAssetRegistrationsRequest { + uint64 offset = 2; + uint64 count = 3; +} + +message ListAssetRegistrationsResponse { + bytes asset_public_key = 1; + bytes unique_id = 2; + bytes owner_commitment = 3; + uint64 mined_height = 4; + bytes mined_in_block = 5; + OutputFeatures features = 6; + bytes script = 7; +} + +message GetTokensRequest { + bytes asset_public_key = 1; + // Optionally get a set of specific unique_ids + repeated bytes unique_ids = 2; +} + +message GetTokensResponse { + bytes unique_id = 1; + bytes asset_public_key = 2; + bytes owner_commitment = 3; + bytes mined_in_block = 4; + uint64 mined_height = 5; + OutputFeatures features = 6; + bytes script = 7; +} + +message SubmitBlockResponse { + bytes block_hash = 1; +} + +message BlockBlobRequest{ + bytes header_blob = 1; + bytes body_blob = 2; +} + +/// return type of GetTipInfo +message TipInfoResponse { + MetaData metadata = 1; + bool initial_sync_achieved = 2; + BaseNodeState base_node_state = 3; +} + +enum BaseNodeState{ + START_UP = 0; + HEADER_SYNC = 1; + HORIZON_SYNC = 2; + CONNECTING = 3; + BLOCK_SYNC = 4; + LISTENING = 5; + SYNC_FAILED = 6; +} + +/// return type of GetNewBlockTemplate +message NewBlockTemplateResponse { + NewBlockTemplate new_block_template = 1; + bool initial_sync_achieved = 3; + MinerData miner_data = 4; +} + +/// return type of NewBlockTemplateRequest +message NewBlockTemplateRequest{ + PowAlgo algo = 1; + //This field should be moved to optional once optional keyword is standard + uint64 max_weight = 2; +} + +// Network difficulty response +message NetworkDifficultyResponse { + uint64 difficulty = 1; + uint64 estimated_hash_rate = 2; + uint64 height = 3; + uint64 timestamp = 4; + uint64 pow_algo = 5; + uint64 sha3x_estimated_hash_rate = 6; + uint64 randomx_estimated_hash_rate = 7; +} + +// A generic single value response for a specific height +message ValueAtHeightResponse { + uint64 value= 1; + uint64 height = 2; +} + +// A generic uint value +message IntegerValue { + uint64 value = 1; +} + +// A generic String value +message StringValue { + string value = 1; +} + +/// GetBlockSize / GetBlockFees Request +/// Either the starting and ending heights OR the from_tip param must be specified +message BlockGroupRequest { + // The height from the chain tip (optional) + uint64 from_tip = 1; + // The starting height (optional) + uint64 start_height = 2; + // The ending height (optional) + uint64 end_height = 3; + /// The type of calculation required (optional) + /// Defaults to median + /// median, mean, quartile, quantile + CalcType calc_type = 4; +} + +/// GetBlockSize / GetBlockFees Response +message BlockGroupResponse { + repeated double value = 1; + CalcType calc_type = 2; +} + +enum CalcType { + MEAN = 0; + MEDIAN = 1; + QUANTILE = 2; + QUARTILE = 3; +} + +// 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 +message HeightRequest { + // The height from the chain tip (optional) + uint64 from_tip = 1; + // The starting height (optional) + uint64 start_height = 2; + // The ending height (optional) + uint64 end_height = 3; +} + +// The return type of the rpc GetBlockTiming +message BlockTimingResponse { + uint64 max = 1; + uint64 min = 2; + double avg = 3; +} + +// Request that returns a header based by hash +message GetHeaderByHashRequest { + // The hash of the block header + bytes hash = 1; +} + + +message BlockHeaderResponse { + // The block header + BlockHeader header = 1; + // The number of blocks from the tip of this block (a.k.a depth) + uint64 confirmations = 2; + // The block reward i.e mining reward + fees + uint64 reward = 3; + // Achieved difficulty + uint64 difficulty = 4; + // The number of transactions contained in the block + uint32 num_transactions = 5; +} + +// 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. +message ListHeadersRequest { + // 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 from_height = 1; + // The number of headers to return. If not specified, it will default to 10 + uint64 num_headers = 2; + // 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. + Sorting sorting = 3; +} + +// 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. +message GetBlocksRequest { + repeated uint64 heights = 1; +} + +// The return type of the rpc GetBlocks. Blocks are not guaranteed to be returned in the order requested. +message GetBlocksResponse { + repeated HistoricalBlock blocks = 1; +} + +enum Sorting { + SORTING_DESC = 0; + SORTING_ASC = 1; +} + +message MetaData { + // The current chain height, or the block number of the longest valid chain, or `None` if there is no chain + uint64 height_of_longest_chain = 1; + // The block hash of the current tip of the longest valid chain, or `None` for an empty chain + bytes best_block = 2; + // 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 pruned_height = 6; + // The current geometric mean of the pow of the chain tip, or `None` if there is no chain + bytes accumulated_difficulty = 5; +} + +message SyncInfoResponse { + uint64 tip_height = 1; + uint64 local_height = 2; + repeated bytes peer_node_id = 3; +} + +message SyncProgressResponse { + uint64 tip_height = 1; + uint64 local_height = 2; + SyncState state = 3; +} + +enum SyncState { + STARTUP = 0; + HEADER_STARTING = 1; + HEADER = 2; + BLOCK_STARTING = 3; + BLOCK = 4; + DONE = 5; +} + +// This is the message that is returned for a miner after it asks for a new block. +message GetNewBlockResult{ + // This is the header hash of the completed block + bytes block_hash = 1; + // This is the completed block + Block block = 2; + bytes merge_mining_hash =3; +} + +// This is the message that is returned for a miner after it asks for a new block. +message GetNewBlockBlobResult{ + // This is the header hash of the completed block + bytes block_hash = 1; + // This is the completed block's header + bytes header = 2; + // This is the completed block's body + bytes block_body = 3; + bytes merge_mining_hash =4; + bytes utxo_mr = 5; +} + +// This is mining data for the miner asking for a new block +message MinerData{ + PowAlgo algo = 1; + uint64 target_difficulty = 2; + uint64 reward = 3; +// bytes merge_mining_hash =4; + uint64 total_fees = 5; +} + +// This is the request type for the Search Kernels rpc +message SearchKernelsRequest{ + repeated Signature signatures = 1; +} + +// This is the request type for the Search Utxo rpc +message SearchUtxosRequest{ + repeated bytes commitments = 1; +} + +message FetchMatchingUtxosRequest { + repeated bytes hashes = 1; +} + +message FetchMatchingUtxosResponse { + TransactionOutput output = 1; +} + +// This is the request type of the get all peers rpc call +message GetPeersResponse{ + Peer peer = 1; +} + +message GetPeersRequest{} + +message SubmitTransactionRequest { + Transaction transaction = 1; +} + +message SubmitTransactionResponse { + SubmitTransactionResult result =1; +} + +enum SubmitTransactionResult { + NONE = 0; + ACCEPTED = 1; + NOT_PROCESSABLE_AT_THIS_TIME = 2; + ALREADY_MINED = 3; + REJECTED = 4; + +} + +message GetMempoolTransactionsRequest { + +} + +message GetMempoolTransactionsResponse { + Transaction transaction = 1; +} + +message TransactionStateRequest { + Signature excess_sig = 1; +} + +message TransactionStateResponse { + TransactionLocation result =1; +} + +enum TransactionLocation { + UNKNOWN = 0; + MEMPOOL = 1; + MINED = 2; + NOT_STORED = 3; +} + +message MempoolStatsResponse { + uint64 unconfirmed_txs = 2; + uint64 reorg_txs = 3; + uint64 unconfirmed_weight = 4; +} + +message GetActiveValidatorNodesRequest { + uint64 height = 1; +} + +message GetActiveValidatorNodesResponse { + bytes shard_key = 1; + bytes public_key = 2; +} + +message GetShardKeyRequest { + uint64 height = 1; + bytes public_key = 2; +} + +message GetShardKeyResponse { + bytes shard_key = 1; + bool found = 2; +} + +message GetTemplateRegistrationsRequest { + bytes start_hash = 1; + uint64 count = 2; +} + +message GetTemplateRegistrationResponse { + bytes utxo_hash = 1; + TemplateRegistration registration = 2; +} + +message BlockInfo { + uint64 height = 1; + bytes hash = 2; + bytes next_block_hash = 3; +} + +message GetSideChainUtxosRequest { + bytes start_hash = 1; + uint64 count = 2; +} + +message GetSideChainUtxosResponse { + BlockInfo block_info = 1; + repeated TransactionOutput outputs = 2; +} + diff --git a/external/src/Tari/proto/gRPC/block.pb.cc b/external/src/Tari/proto/gRPC/block.pb.cc new file mode 100644 index 0000000..92f5d29 --- /dev/null +++ b/external/src/Tari/proto/gRPC/block.pb.cc @@ -0,0 +1,2567 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: block.proto + +#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[] PROTOBUF_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[] PROTOBUF_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[] PROTOBUF_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; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_block_2eproto(&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_); + static const ::tari::rpc::ProofOfWork& pow(const BlockHeader* msg); + static void set_has_pow(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::ProofOfWork& BlockHeader::_Internal::pow(const BlockHeader* msg) { + return *msg->_impl_.pow_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::pow(this), + _Internal::pow(this).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_); +} + +const ::google::protobuf::Message::ClassData BlockHeader::_class_data_ = { + BlockHeader::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockHeader::GetClassData() const { + return &_class_data_; +} + +void BlockHeader::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_pow()->::tari::rpc::ProofOfWork::MergeFrom( + from._internal_pow()); + } + if (from._internal_height() != 0) { + _this->_internal_set_height(from._internal_height()); + } + if (from._internal_timestamp() != 0) { + _this->_internal_set_timestamp(from._internal_timestamp()); + } + if (from._internal_nonce() != 0) { + _this->_internal_set_nonce(from._internal_nonce()); + } + if (from._internal_kernel_mmr_size() != 0) { + _this->_internal_set_kernel_mmr_size(from._internal_kernel_mmr_size()); + } + if (from._internal_output_mmr_size() != 0) { + _this->_internal_set_output_mmr_size(from._internal_output_mmr_size()); + } + if (from._internal_validator_node_size() != 0) { + _this->_internal_set_validator_node_size(from._internal_validator_node_size()); + } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } + _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; +} + +::_pbi::CachedSize* BlockHeader::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData ProofOfWork::_class_data_ = { + ProofOfWork::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ProofOfWork::GetClassData() const { + return &_class_data_; +} + +void ProofOfWork::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_pow_algo(from._internal_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; +} + +::_pbi::CachedSize* ProofOfWork::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // .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_); +} + +const ::google::protobuf::Message::ClassData PowAlgo::_class_data_ = { + PowAlgo::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* PowAlgo::GetClassData() const { + return &_class_data_; +} + +void PowAlgo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_pow_algo(from._internal_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; +} + +::_pbi::CachedSize* PowAlgo::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::BlockHeader& header(const Block* msg); + static void set_has_header(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::AggregateBody& body(const Block* msg); + static void set_has_body(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::tari::rpc::BlockHeader& Block::_Internal::header(const Block* msg) { + return *msg->_impl_.header_; +} +const ::tari::rpc::AggregateBody& Block::_Internal::body(const Block* msg) { + return *msg->_impl_.body_; +} +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) + ? CreateMaybeMessage<::tari::rpc::BlockHeader>(arena, *from._impl_.header_) + : nullptr; + _impl_.body_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::header(this), + _Internal::header(this).GetCachedSize(), target, stream); + } + + // .tari.rpc.AggregateBody body = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::body(this), + _Internal::body(this).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_); +} + +const ::google::protobuf::Message::ClassData Block::_class_data_ = { + Block::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* Block::GetClassData() const { + return &_class_data_; +} + +void Block::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_header()->::tari::rpc::BlockHeader::MergeFrom( + from._internal_header()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_body()->::tari::rpc::AggregateBody::MergeFrom( + from._internal_body()); + } + } + _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; +} + +::_pbi::CachedSize* Block::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Block& block(const HistoricalBlock* msg); + static void set_has_block(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Block& HistoricalBlock::_Internal::block(const HistoricalBlock* msg) { + return *msg->_impl_.block_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::block(this), + _Internal::block(this).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_); +} + +const ::google::protobuf::Message::ClassData HistoricalBlock::_class_data_ = { + HistoricalBlock::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* HistoricalBlock::GetClassData() const { + return &_class_data_; +} + +void HistoricalBlock::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.HistoricalBlock) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_block()->::tari::rpc::Block::MergeFrom( + from._internal_block()); + } + if (from._internal_confirmations() != 0) { + _this->_internal_set_confirmations(from._internal_confirmations()); + } + _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; +} + +::_pbi::CachedSize* HistoricalBlock::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::ProofOfWork& pow(const NewBlockHeaderTemplate* msg); + static void set_has_pow(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::ProofOfWork& NewBlockHeaderTemplate::_Internal::pow(const NewBlockHeaderTemplate* msg) { + return *msg->_impl_.pow_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::pow(this), + _Internal::pow(this).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_); +} + +const ::google::protobuf::Message::ClassData NewBlockHeaderTemplate::_class_data_ = { + NewBlockHeaderTemplate::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* NewBlockHeaderTemplate::GetClassData() const { + return &_class_data_; +} + +void NewBlockHeaderTemplate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_pow()->::tari::rpc::ProofOfWork::MergeFrom( + from._internal_pow()); + } + if (from._internal_height() != 0) { + _this->_internal_set_height(from._internal_height()); + } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } + _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; +} + +::_pbi::CachedSize* NewBlockHeaderTemplate::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::NewBlockHeaderTemplate& header(const NewBlockTemplate* msg); + static void set_has_header(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::AggregateBody& body(const NewBlockTemplate* msg); + static void set_has_body(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::tari::rpc::NewBlockHeaderTemplate& NewBlockTemplate::_Internal::header(const NewBlockTemplate* msg) { + return *msg->_impl_.header_; +} +const ::tari::rpc::AggregateBody& NewBlockTemplate::_Internal::body(const NewBlockTemplate* msg) { + return *msg->_impl_.body_; +} +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) + ? CreateMaybeMessage<::tari::rpc::NewBlockHeaderTemplate>(arena, *from._impl_.header_) + : nullptr; + _impl_.body_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::header(this), + _Internal::header(this).GetCachedSize(), target, stream); + } + + // .tari.rpc.AggregateBody body = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::body(this), + _Internal::body(this).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_); +} + +const ::google::protobuf::Message::ClassData NewBlockTemplate::_class_data_ = { + NewBlockTemplate::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* NewBlockTemplate::GetClassData() const { + return &_class_data_; +} + +void NewBlockTemplate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_header()->::tari::rpc::NewBlockHeaderTemplate::MergeFrom( + from._internal_header()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_body()->::tari::rpc::AggregateBody::MergeFrom( + from._internal_body()); + } + } + _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; +} + +::_pbi::CachedSize* NewBlockTemplate::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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) +#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 new file mode 100644 index 0000000..b7d880e --- /dev/null +++ b/external/src/Tari/proto/gRPC/block.pb.h @@ -0,0 +1,3416 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: block.proto +// Protobuf C++ Version: 4.25.2 + +#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 < 4025000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4025002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#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) {} + ProofOfWork(ProofOfWork&& from) noexcept + : ProofOfWork() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + PowAlgo(PowAlgo&& from) noexcept + : PowAlgo() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + NewBlockHeaderTemplate(NewBlockHeaderTemplate&& from) noexcept + : NewBlockHeaderTemplate() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockHeader(BlockHeader&& from) noexcept + : BlockHeader() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + NewBlockTemplate(NewBlockTemplate&& from) noexcept + : NewBlockTemplate() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + Block(Block&& from) noexcept + : Block() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + HistoricalBlock(HistoricalBlock&& from) noexcept + : HistoricalBlock() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.pow_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::ProofOfWork*>(_impl_.pow_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::ProofOfWork*>(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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::BlockHeader*>(_impl_.header_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::BlockHeader*>(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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.body_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.block_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::Block*>(_impl_.block_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Block*>(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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.pow_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::ProofOfWork*>(_impl_.pow_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::ProofOfWork*>(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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.header_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(_impl_.header_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::NewBlockHeaderTemplate*>(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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.body_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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/block.proto b/external/src/Tari/proto/gRPC/block.proto new file mode 100644 index 0000000..f5ed70c --- /dev/null +++ b/external/src/Tari/proto/gRPC/block.proto @@ -0,0 +1,137 @@ +// Copyright 2020. The Tari Project +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// 2. 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. +// +// 3. Neither the name of the copyright holder 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 HOLDER 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 tari.rpc; + +import "transaction.proto"; + +// The BlockHeader contains all the metadata for the block, including proof of work, a link to the previous block +// and the transaction kernels. +message BlockHeader { + // The hash of the block + bytes hash = 1; + // Version of the block + uint32 version = 2; + // Height of this block since the genesis block (height 0) + uint64 height = 3; + // Hash of the block previous to this in the chain. + bytes prev_hash = 4; + // Timestamp at which the block was built. + uint64 timestamp = 5; + // This is the UTXO merkle root of the outputs + // This is calculated as Hash (txo MMR root || roaring bitmap hash of UTXO indices) + bytes output_mr = 6; + // This is the MMR root of the kernels + bytes kernel_mr = 8; + // This is the Merkle root of the inputs in this block + bytes input_mr = 9; + // 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. + bytes total_kernel_offset = 10; + // Nonce increment used to mine this block. + uint64 nonce = 11; + // Proof of work metadata + ProofOfWork pow = 12; + // Kernel MMR size + uint64 kernel_mmr_size = 13; + // Output MMR size + uint64 output_mmr_size = 14; + // Sum of script offsets for all kernels in this block. + bytes total_script_offset = 15; + // Merkle root of validator nodes + bytes validator_node_mr = 16; + // Validator size + uint64 validator_node_size = 17; +} + +// The proof of work data structure that is included in the block header. +message ProofOfWork { + // The algorithm used to mine this block + // 0 = Monero + // 1 = Sha3X + uint64 pow_algo = 1; + // 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. + bytes pow_data = 4; +} + +//This is used to request the which pow algo should be used with the block template +message PowAlgo { + // The permitted pow algorithms + enum PowAlgos { + POW_ALGOS_RANDOMX = 0; // Accessible as `grpc::pow_algo::PowAlgos::Randomx` + POW_ALGOS_SHA3X = 1; // Accessible as `grpc::pow_algo::PowAlgos::Sha3x` + } + // The pow algo to use + PowAlgos pow_algo = 1; +} + + +// A Minotari block. Blocks are linked together into a blockchain. +message Block { + // The BlockHeader contains all the metadata for the block, including proof of work, a link to the previous block + // and the transaction kernels. + BlockHeader header = 1; + // 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. + AggregateBody body = 2; +} + +// 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. +message HistoricalBlock { + // The number of blocks that have been mined since this block, including this one. The current tip will have one + // confirmation. + uint64 confirmations = 1; + // The underlying block + Block block = 2; +} + + +// 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. +message NewBlockHeaderTemplate { + // Version of the block + uint32 version = 1; + // Height of this block since the genesis block (height 0) + uint64 height = 2; + // Hash of the block previous to this in the chain. + bytes prev_hash = 3; + // 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. + bytes total_kernel_offset = 4; + // Proof of work metadata + ProofOfWork pow = 5; + // Sum of script offsets for all kernels in this block. + bytes total_script_offset = 7; +} + +// 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. +message NewBlockTemplate { + // 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. + NewBlockHeaderTemplate header = 1; + // 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. + AggregateBody body = 2; +} + diff --git a/external/src/Tari/proto/gRPC/network.pb.cc b/external/src/Tari/proto/gRPC/network.pb.cc new file mode 100644 index 0000000..4431cc8 --- /dev/null +++ b/external/src/Tari/proto/gRPC/network.pb.cc @@ -0,0 +1,2375 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: network.proto + +#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[] PROTOBUF_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[] PROTOBUF_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[] PROTOBUF_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; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_network_2eproto(&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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData NodeIdentity::_class_data_ = { + NodeIdentity::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* NodeIdentity::GetClassData() const { + return &_class_data_; +} + +void NodeIdentity::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* NodeIdentity::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData Peer::_class_data_ = { + Peer::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* Peer::GetClassData() const { + return &_class_data_; +} + +void Peer::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_last_connection(from._internal_last_connection()); + } + if (from._internal_banned_until() != 0) { + _this->_internal_set_banned_until(from._internal_banned_until()); + } + if (from._internal_flags() != 0) { + _this->_internal_set_flags(from._internal_flags()); + } + if (from._internal_features() != 0) { + _this->_internal_set_features(from._internal_features()); + } + if (from._internal_offline_at() != 0) { + _this->_internal_set_offline_at(from._internal_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; +} + +::_pbi::CachedSize* Peer::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData NetworkStatusResponse::_class_data_ = { + NetworkStatusResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* NetworkStatusResponse::GetClassData() const { + return &_class_data_; +} + +void NetworkStatusResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_status(from._internal_status()); + } + if (from._internal_avg_latency_ms() != 0) { + _this->_internal_set_avg_latency_ms(from._internal_avg_latency_ms()); + } + if (from._internal_num_node_connections() != 0) { + _this->_internal_set_num_node_connections(from._internal_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; +} + +::_pbi::CachedSize* NetworkStatusResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData Address::_class_data_ = { + Address::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* Address::GetClassData() const { + return &_class_data_; +} + +void Address::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_avg_latency(from._internal_avg_latency()); + } + if (from._internal_connection_attempts() != 0) { + _this->_internal_set_connection_attempts(from._internal_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; +} + +::_pbi::CachedSize* Address::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData ListConnectedPeersResponse::_class_data_ = { + ListConnectedPeersResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ListConnectedPeersResponse::GetClassData() const { + return &_class_data_; +} + +void ListConnectedPeersResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* ListConnectedPeersResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData SoftwareUpdate::_class_data_ = { + SoftwareUpdate::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SoftwareUpdate::GetClassData() const { + return &_class_data_; +} + +void SoftwareUpdate::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_has_update(from._internal_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; +} + +::_pbi::CachedSize* SoftwareUpdate::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData GetIdentityResponse::_class_data_ = { + GetIdentityResponse::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* GetIdentityResponse::GetClassData() const { + return &_class_data_; +} + +void GetIdentityResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* GetIdentityResponse::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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) +#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 new file mode 100644 index 0000000..f9cfdf7 --- /dev/null +++ b/external/src/Tari/proto/gRPC/network.pb.h @@ -0,0 +1,3263 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: network.proto +// Protobuf C++ Version: 4.25.2 + +#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 < 4025000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4025002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#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) {} + SoftwareUpdate(SoftwareUpdate&& from) noexcept + : SoftwareUpdate() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + NodeIdentity(NodeIdentity&& from) noexcept + : NodeIdentity() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + NetworkStatusResponse(NetworkStatusResponse&& from) noexcept + : NetworkStatusResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetIdentityResponse(GetIdentityResponse&& from) noexcept + : GetIdentityResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + GetIdentityRequest(GetIdentityRequest&& from) noexcept + : GetIdentityRequest() { + *this = ::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 CreateMaybeMessage(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); + 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) {} + Address(Address&& from) noexcept + : Address() { + *this = ::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 CreateMaybeMessage
(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + Peer(Peer&& from) noexcept + : Peer() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ListConnectedPeersResponse(ListConnectedPeersResponse&& from) noexcept + : ListConnectedPeersResponse() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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/network.proto b/external/src/Tari/proto/gRPC/network.proto new file mode 100644 index 0000000..62f6c57 --- /dev/null +++ b/external/src/Tari/proto/gRPC/network.proto @@ -0,0 +1,93 @@ +// Copyright 2020. The Tari Project +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// 2. 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. +// +// 3. Neither the name of the copyright holder 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 HOLDER 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 tari.rpc; + +import "google/protobuf/timestamp.proto"; + +message NodeIdentity { + bytes public_key = 1; + repeated string public_addresses = 2; + bytes node_id = 3; +} + +message Peer { + /// Public key of the peer + bytes public_key =1; + /// NodeId of the peer + bytes node_id =2; + /// Peer's addresses + repeated Address addresses = 3; + /// Last connection attempt to peer + uint64 last_connection = 4; + /// Flags for the peer. + uint32 flags = 5; + uint64 banned_until= 6; + string banned_reason= 7; + uint64 offline_at = 8; + /// Features supported by the peer + uint32 features = 9; + /// used as information for more efficient protocol negotiation. + repeated bytes supported_protocols = 11; + /// User agent advertised by the peer + string user_agent = 12; +} + +enum ConnectivityStatus { + Initializing = 0; + Online = 1; + Degraded = 2; + Offline = 3; +} + +message NetworkStatusResponse { + ConnectivityStatus status = 1; + uint32 avg_latency_ms = 2; + uint32 num_node_connections = 3; +} + +message Address{ + bytes address =1; + string last_seen = 2; + uint32 connection_attempts = 3; + uint64 avg_latency = 5; +} + +message ListConnectedPeersResponse { + repeated Peer connected_peers = 1; +} + +message SoftwareUpdate { + bool has_update = 1; + string version = 2; + string sha = 3; + string download_url = 4; +} + +message GetIdentityRequest { } + +message GetIdentityResponse { + bytes public_key = 1; + string public_address = 2; + bytes node_id = 3; +} diff --git a/external/src/Tari/proto/gRPC/sidechain_types.pb.cc b/external/src/Tari/proto/gRPC/sidechain_types.pb.cc new file mode 100644 index 0000000..20563ed --- /dev/null +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb.cc @@ -0,0 +1,2431 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: sidechain_types.proto + +#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[] PROTOBUF_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[] PROTOBUF_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[] PROTOBUF_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; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_sidechain_5ftypes_2eproto(&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_); + static const ::tari::rpc::ValidatorNodeRegistration& validator_node_registration(const SideChainFeature* msg); + static const ::tari::rpc::TemplateRegistration& template_registration(const SideChainFeature* msg); + static const ::tari::rpc::ConfidentialOutputData& confidential_output(const SideChainFeature* msg); +}; + +const ::tari::rpc::ValidatorNodeRegistration& SideChainFeature::_Internal::validator_node_registration(const SideChainFeature* msg) { + return *msg->_impl_.side_chain_feature_.validator_node_registration_; +} +const ::tari::rpc::TemplateRegistration& SideChainFeature::_Internal::template_registration(const SideChainFeature* msg) { + return *msg->_impl_.side_chain_feature_.template_registration_; +} +const ::tari::rpc::ConfidentialOutputData& SideChainFeature::_Internal::confidential_output(const SideChainFeature* msg) { + return *msg->_impl_.side_chain_feature_.confidential_output_; +} +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_ = CreateMaybeMessage<::tari::rpc::ValidatorNodeRegistration>(arena, *from._impl_.side_chain_feature_.validator_node_registration_); + break; + case kTemplateRegistration: + _impl_.side_chain_feature_.template_registration_ = CreateMaybeMessage<::tari::rpc::TemplateRegistration>(arena, *from._impl_.side_chain_feature_.template_registration_); + break; + case kConfidentialOutput: + _impl_.side_chain_feature_.confidential_output_ = CreateMaybeMessage<::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; +} + + +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 + }, {{ + {::_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, _Internal::validator_node_registration(this), + _Internal::validator_node_registration(this).GetCachedSize(), target, stream); + break; + } + case kTemplateRegistration: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::template_registration(this), + _Internal::template_registration(this).GetCachedSize(), target, stream); + break; + } + case kConfidentialOutput: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, _Internal::confidential_output(this), + _Internal::confidential_output(this).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_); +} + +const ::google::protobuf::Message::ClassData SideChainFeature::_class_data_ = { + SideChainFeature::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* SideChainFeature::GetClassData() const { + return &_class_data_; +} + +void SideChainFeature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.SideChainFeature) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.side_chain_feature_case()) { + case kValidatorNodeRegistration: { + _this->_internal_mutable_validator_node_registration()->::tari::rpc::ValidatorNodeRegistration::MergeFrom( + from._internal_validator_node_registration()); + break; + } + case kTemplateRegistration: { + _this->_internal_mutable_template_registration()->::tari::rpc::TemplateRegistration::MergeFrom( + from._internal_template_registration()); + break; + } + case kConfidentialOutput: { + _this->_internal_mutable_confidential_output()->::tari::rpc::ConfidentialOutputData::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; +} + +::_pbi::CachedSize* SideChainFeature::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Signature& signature(const ValidatorNodeRegistration* msg); + static void set_has_signature(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Signature& ValidatorNodeRegistration::_Internal::signature(const ValidatorNodeRegistration* msg) { + return *msg->_impl_.signature_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::signature(this), + _Internal::signature(this).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_); +} + +const ::google::protobuf::Message::ClassData ValidatorNodeRegistration::_class_data_ = { + ValidatorNodeRegistration::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ValidatorNodeRegistration::GetClassData() const { + return &_class_data_; +} + +void ValidatorNodeRegistration::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_signature()->::tari::rpc::Signature::MergeFrom( + from._internal_signature()); + } + _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; +} + +::_pbi::CachedSize* ValidatorNodeRegistration::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Signature& author_signature(const TemplateRegistration* msg); + static void set_has_author_signature(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::TemplateType& template_type(const TemplateRegistration* msg); + static void set_has_template_type(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::tari::rpc::BuildInfo& build_info(const TemplateRegistration* msg); + static void set_has_build_info(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +const ::tari::rpc::Signature& TemplateRegistration::_Internal::author_signature(const TemplateRegistration* msg) { + return *msg->_impl_.author_signature_; +} +const ::tari::rpc::TemplateType& TemplateRegistration::_Internal::template_type(const TemplateRegistration* msg) { + return *msg->_impl_.template_type_; +} +const ::tari::rpc::BuildInfo& TemplateRegistration::_Internal::build_info(const TemplateRegistration* msg) { + return *msg->_impl_.build_info_; +} +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) + ? CreateMaybeMessage<::tari::rpc::Signature>(arena, *from._impl_.author_signature_) + : nullptr; + _impl_.template_type_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::tari::rpc::TemplateType>(arena, *from._impl_.template_type_) + : nullptr; + _impl_.build_info_ = (cached_has_bits & 0x00000004u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // 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, _Internal::author_signature(this), + _Internal::author_signature(this).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, _Internal::template_type(this), + _Internal::template_type(this).GetCachedSize(), target, stream); + } + + // .tari.rpc.BuildInfo build_info = 6; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 6, _Internal::build_info(this), + _Internal::build_info(this).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_); +} + +const ::google::protobuf::Message::ClassData TemplateRegistration::_class_data_ = { + TemplateRegistration::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TemplateRegistration::GetClassData() const { + return &_class_data_; +} + +void TemplateRegistration::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_author_signature()->::tari::rpc::Signature::MergeFrom( + from._internal_author_signature()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_template_type()->::tari::rpc::TemplateType::MergeFrom( + from._internal_template_type()); + } + if (cached_has_bits & 0x00000004u) { + _this->_internal_mutable_build_info()->::tari::rpc::BuildInfo::MergeFrom( + from._internal_build_info()); + } + } + if (from._internal_template_version() != 0) { + _this->_internal_set_template_version(from._internal_template_version()); + } + _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; +} + +::_pbi::CachedSize* TemplateRegistration::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData ConfidentialOutputData::_class_data_ = { + ConfidentialOutputData::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ConfidentialOutputData::GetClassData() const { + return &_class_data_; +} + +void ConfidentialOutputData::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* ConfidentialOutputData::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::WasmInfo& wasm(const TemplateType* msg); + static const ::tari::rpc::FlowInfo& flow(const TemplateType* msg); + static const ::tari::rpc::ManifestInfo& manifest(const TemplateType* msg); +}; + +const ::tari::rpc::WasmInfo& TemplateType::_Internal::wasm(const TemplateType* msg) { + return *msg->_impl_.template_type_.wasm_; +} +const ::tari::rpc::FlowInfo& TemplateType::_Internal::flow(const TemplateType* msg) { + return *msg->_impl_.template_type_.flow_; +} +const ::tari::rpc::ManifestInfo& TemplateType::_Internal::manifest(const TemplateType* msg) { + return *msg->_impl_.template_type_.manifest_; +} +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_ = CreateMaybeMessage<::tari::rpc::WasmInfo>(arena, *from._impl_.template_type_.wasm_); + break; + case kFlow: + _impl_.template_type_.flow_ = CreateMaybeMessage<::tari::rpc::FlowInfo>(arena, *from._impl_.template_type_.flow_); + break; + case kManifest: + _impl_.template_type_.manifest_ = CreateMaybeMessage<::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; +} + + +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 + }, {{ + {::_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, _Internal::wasm(this), + _Internal::wasm(this).GetCachedSize(), target, stream); + break; + } + case kFlow: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::flow(this), + _Internal::flow(this).GetCachedSize(), target, stream); + break; + } + case kManifest: { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 3, _Internal::manifest(this), + _Internal::manifest(this).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_); +} + +const ::google::protobuf::Message::ClassData TemplateType::_class_data_ = { + TemplateType::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TemplateType::GetClassData() const { + return &_class_data_; +} + +void TemplateType::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.TemplateType) + ABSL_DCHECK_NE(&from, _this); + ::uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.template_type_case()) { + case kWasm: { + _this->_internal_mutable_wasm()->::tari::rpc::WasmInfo::MergeFrom( + from._internal_wasm()); + break; + } + case kFlow: { + _this->_internal_mutable_flow()->::tari::rpc::FlowInfo::MergeFrom( + from._internal_flow()); + break; + } + case kManifest: { + _this->_internal_mutable_manifest()->::tari::rpc::ManifestInfo::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; +} + +::_pbi::CachedSize* TemplateType::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData WasmInfo::_class_data_ = { + WasmInfo::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* WasmInfo::GetClassData() const { + return &_class_data_; +} + +void WasmInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_abi_version(from._internal_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; +} + +::_pbi::CachedSize* WasmInfo::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData BuildInfo::_class_data_ = { + BuildInfo::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BuildInfo::GetClassData() const { + return &_class_data_; +} + +void BuildInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* BuildInfo::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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) +#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 new file mode 100644 index 0000000..c4b2bc7 --- /dev/null +++ b/external/src/Tari/proto/gRPC/sidechain_types.pb.h @@ -0,0 +1,3302 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: sidechain_types.proto +// Protobuf C++ Version: 4.25.2 + +#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 < 4025000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4025002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#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) {} + WasmInfo(WasmInfo&& from) noexcept + : WasmInfo() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ManifestInfo(ManifestInfo&& from) noexcept + : ManifestInfo() { + *this = ::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 CreateMaybeMessage(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); + 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) {} + FlowInfo(FlowInfo&& from) noexcept + : FlowInfo() { + *this = ::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 CreateMaybeMessage(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); + 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) {} + ConfidentialOutputData(ConfidentialOutputData&& from) noexcept + : ConfidentialOutputData() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BuildInfo(BuildInfo&& from) noexcept + : BuildInfo() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ValidatorNodeRegistration(ValidatorNodeRegistration&& from) noexcept + : ValidatorNodeRegistration() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + TemplateType(TemplateType&& from) noexcept + : TemplateType() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + TemplateRegistration(TemplateRegistration&& from) noexcept + : TemplateRegistration() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + SideChainFeature(SideChainFeature&& from) noexcept + : SideChainFeature() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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_ = CreateMaybeMessage<::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_ = CreateMaybeMessage<::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_ = CreateMaybeMessage<::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.signature_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.author_signature_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.template_type_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::TemplateType*>(_impl_.template_type_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::TemplateType*>(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); + _impl_._has_bits_[0] |= 0x00000004u; + if (_impl_.build_info_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::BuildInfo*>(_impl_.build_info_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::BuildInfo*>(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_ = CreateMaybeMessage<::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_ = CreateMaybeMessage<::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_ = CreateMaybeMessage<::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/sidechain_types.proto b/external/src/Tari/proto/gRPC/sidechain_types.proto new file mode 100644 index 0000000..184a321 --- /dev/null +++ b/external/src/Tari/proto/gRPC/sidechain_types.proto @@ -0,0 +1,77 @@ +// Copyright 2020. The Tari Project +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// 2. 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. +// +// 3. Neither the name of the copyright holder 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 HOLDER 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 tari.rpc; + +import "types.proto"; + +message SideChainFeature { + oneof side_chain_feature { + ValidatorNodeRegistration validator_node_registration = 1; + TemplateRegistration template_registration = 2; + ConfidentialOutputData confidential_output = 3; + } +} + +message ValidatorNodeRegistration { + bytes public_key = 1; + Signature signature = 2; +} + +message TemplateRegistration { + bytes author_public_key = 1; + Signature author_signature = 2; + string template_name = 3; + uint32 template_version = 4; + TemplateType template_type = 5; + BuildInfo build_info = 6; + bytes binary_sha = 7; + string binary_url = 8; +} + +message ConfidentialOutputData { + bytes claim_public_key = 1; +} + +message TemplateType { + oneof template_type { + WasmInfo wasm = 1; + FlowInfo flow = 2; + ManifestInfo manifest = 3; + } +} + +message WasmInfo { + uint32 abi_version = 1; +} + +message FlowInfo { +} + +message ManifestInfo { +} + +message BuildInfo { + string repo_url = 1; + bytes commit_hash = 2; +} diff --git a/external/src/Tari/proto/gRPC/transaction.pb.cc b/external/src/Tari/proto/gRPC/transaction.pb.cc new file mode 100644 index 0000000..855e285 --- /dev/null +++ b/external/src/Tari/proto/gRPC/transaction.pb.cc @@ -0,0 +1,3484 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: transaction.proto + +#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[] PROTOBUF_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[] PROTOBUF_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[] PROTOBUF_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; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_transaction_2eproto(&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_); + static const ::tari::rpc::Signature& excess_sig(const TransactionKernel* msg); + static void set_has_excess_sig(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::Signature& TransactionKernel::_Internal::excess_sig(const TransactionKernel* msg) { + return *msg->_impl_.excess_sig_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::excess_sig(this), + _Internal::excess_sig(this).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_); +} + +const ::google::protobuf::Message::ClassData TransactionKernel::_class_data_ = { + TransactionKernel::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TransactionKernel::GetClassData() const { + return &_class_data_; +} + +void TransactionKernel::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_excess_sig()->::tari::rpc::Signature::MergeFrom( + from._internal_excess_sig()); + } + if (from._internal_fee() != 0) { + _this->_internal_set_fee(from._internal_fee()); + } + if (from._internal_lock_height() != 0) { + _this->_internal_set_lock_height(from._internal_lock_height()); + } + if (from._internal_features() != 0) { + _this->_internal_set_features(from._internal_features()); + } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } + _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; +} + +::_pbi::CachedSize* TransactionKernel::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::OutputFeatures& features(const TransactionInput* msg); + static void set_has_features(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::ComAndPubSignature& script_signature(const TransactionInput* msg); + static void set_has_script_signature(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::tari::rpc::ComAndPubSignature& metadata_signature(const TransactionInput* msg); + static void set_has_metadata_signature(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +const ::tari::rpc::OutputFeatures& TransactionInput::_Internal::features(const TransactionInput* msg) { + return *msg->_impl_.features_; +} +const ::tari::rpc::ComAndPubSignature& TransactionInput::_Internal::script_signature(const TransactionInput* msg) { + return *msg->_impl_.script_signature_; +} +const ::tari::rpc::ComAndPubSignature& TransactionInput::_Internal::metadata_signature(const TransactionInput* msg) { + return *msg->_impl_.metadata_signature_; +} +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) + ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) + : nullptr; + _impl_.script_signature_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::tari::rpc::ComAndPubSignature>(arena, *from._impl_.script_signature_) + : nullptr; + _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::features(this), + _Internal::features(this).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, _Internal::script_signature(this), + _Internal::script_signature(this).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, _Internal::metadata_signature(this), + _Internal::metadata_signature(this).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_); +} + +const ::google::protobuf::Message::ClassData TransactionInput::_class_data_ = { + TransactionInput::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TransactionInput::GetClassData() const { + return &_class_data_; +} + +void TransactionInput::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( + from._internal_features()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_script_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( + from._internal_script_signature()); + } + if (cached_has_bits & 0x00000004u) { + _this->_internal_mutable_metadata_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( + from._internal_metadata_signature()); + } + } + if (from._internal_minimum_value_promise() != 0) { + _this->_internal_set_minimum_value_promise(from._internal_minimum_value_promise()); + } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } + _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; +} + +::_pbi::CachedSize* TransactionInput::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::OutputFeatures& features(const TransactionOutput* msg); + static void set_has_features(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::RangeProof& range_proof(const TransactionOutput* msg); + static void set_has_range_proof(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::tari::rpc::ComAndPubSignature& metadata_signature(const TransactionOutput* msg); + static void set_has_metadata_signature(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +const ::tari::rpc::OutputFeatures& TransactionOutput::_Internal::features(const TransactionOutput* msg) { + return *msg->_impl_.features_; +} +const ::tari::rpc::RangeProof& TransactionOutput::_Internal::range_proof(const TransactionOutput* msg) { + return *msg->_impl_.range_proof_; +} +const ::tari::rpc::ComAndPubSignature& TransactionOutput::_Internal::metadata_signature(const TransactionOutput* msg) { + return *msg->_impl_.metadata_signature_; +} +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) + ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) + : nullptr; + _impl_.range_proof_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::tari::rpc::RangeProof>(arena, *from._impl_.range_proof_) + : nullptr; + _impl_.metadata_signature_ = (cached_has_bits & 0x00000004u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::features(this), + _Internal::features(this).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, _Internal::range_proof(this), + _Internal::range_proof(this).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, _Internal::metadata_signature(this), + _Internal::metadata_signature(this).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_); +} + +const ::google::protobuf::Message::ClassData TransactionOutput::_class_data_ = { + TransactionOutput::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* TransactionOutput::GetClassData() const { + return &_class_data_; +} + +void TransactionOutput::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( + from._internal_features()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_range_proof()->::tari::rpc::RangeProof::MergeFrom( + from._internal_range_proof()); + } + if (cached_has_bits & 0x00000004u) { + _this->_internal_mutable_metadata_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( + from._internal_metadata_signature()); + } + } + if (from._internal_minimum_value_promise() != 0) { + _this->_internal_set_minimum_value_promise(from._internal_minimum_value_promise()); + } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } + _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; +} + +::_pbi::CachedSize* TransactionOutput::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::SideChainFeature& sidechain_feature(const OutputFeatures* msg); + static void set_has_sidechain_feature(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::SideChainFeature& OutputFeatures::_Internal::sidechain_feature(const OutputFeatures* msg) { + return *msg->_impl_.sidechain_feature_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::sidechain_feature(this), + _Internal::sidechain_feature(this).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_); +} + +const ::google::protobuf::Message::ClassData OutputFeatures::_class_data_ = { + OutputFeatures::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* OutputFeatures::GetClassData() const { + return &_class_data_; +} + +void OutputFeatures::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_sidechain_feature()->::tari::rpc::SideChainFeature::MergeFrom( + from._internal_sidechain_feature()); + } + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); + } + if (from._internal_output_type() != 0) { + _this->_internal_set_output_type(from._internal_output_type()); + } + if (from._internal_maturity() != 0) { + _this->_internal_set_maturity(from._internal_maturity()); + } + if (from._internal_range_proof_type() != 0) { + _this->_internal_set_range_proof_type(from._internal_range_proof_type()); + } + _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; +} + +::_pbi::CachedSize* OutputFeatures::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData AggregateBody::_class_data_ = { + AggregateBody::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* AggregateBody::GetClassData() const { + return &_class_data_; +} + +void AggregateBody::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* AggregateBody::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::AggregateBody& body(const Transaction* msg); + static void set_has_body(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +const ::tari::rpc::AggregateBody& Transaction::_Internal::body(const Transaction* msg) { + return *msg->_impl_.body_; +} +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) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::body(this), + _Internal::body(this).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_); +} + +const ::google::protobuf::Message::ClassData Transaction::_class_data_ = { + Transaction::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* Transaction::GetClassData() const { + return &_class_data_; +} + +void Transaction::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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()); + } + if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { + _this->_internal_mutable_body()->::tari::rpc::AggregateBody::MergeFrom( + from._internal_body()); + } + _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; +} + +::_pbi::CachedSize* Transaction::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::OutputFeatures& features(const UnblindedOutput* msg); + static void set_has_features(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::ComAndPubSignature& metadata_signature(const UnblindedOutput* msg); + static void set_has_metadata_signature(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::tari::rpc::OutputFeatures& UnblindedOutput::_Internal::features(const UnblindedOutput* msg) { + return *msg->_impl_.features_; +} +const ::tari::rpc::ComAndPubSignature& UnblindedOutput::_Internal::metadata_signature(const UnblindedOutput* msg) { + return *msg->_impl_.metadata_signature_; +} +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) + ? CreateMaybeMessage<::tari::rpc::OutputFeatures>(arena, *from._impl_.features_) + : nullptr; + _impl_.metadata_signature_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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, _Internal::features(this), + _Internal::features(this).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, _Internal::metadata_signature(this), + _Internal::metadata_signature(this).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_); +} + +const ::google::protobuf::Message::ClassData UnblindedOutput::_class_data_ = { + UnblindedOutput::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* UnblindedOutput::GetClassData() const { + return &_class_data_; +} + +void UnblindedOutput::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_features()->::tari::rpc::OutputFeatures::MergeFrom( + from._internal_features()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_metadata_signature()->::tari::rpc::ComAndPubSignature::MergeFrom( + from._internal_metadata_signature()); + } + } + if (from._internal_value() != 0) { + _this->_internal_set_value(from._internal_value()); + } + if (from._internal_script_lock_height() != 0) { + _this->_internal_set_script_lock_height(from._internal_script_lock_height()); + } + if (from._internal_minimum_value_promise() != 0) { + _this->_internal_set_minimum_value_promise(from._internal_minimum_value_promise()); + } + _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; +} + +::_pbi::CachedSize* UnblindedOutput::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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) +#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 new file mode 100644 index 0000000..28bc13e --- /dev/null +++ b/external/src/Tari/proto/gRPC/transaction.pb.h @@ -0,0 +1,5226 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: transaction.proto +// Protobuf C++ Version: 4.25.2 + +#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 < 4025000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4025002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#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) {} + TransactionKernel(TransactionKernel&& from) noexcept + : TransactionKernel() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + OutputFeatures(OutputFeatures&& from) noexcept + : OutputFeatures() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + UnblindedOutput(UnblindedOutput&& from) noexcept + : UnblindedOutput() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + TransactionOutput(TransactionOutput&& from) noexcept + : TransactionOutput() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + TransactionInput(TransactionInput&& from) noexcept + : TransactionInput() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + AggregateBody(AggregateBody&& from) noexcept + : AggregateBody() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + Transaction(Transaction&& from) noexcept + : Transaction() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.excess_sig_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.features_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::OutputFeatures*>(_impl_.features_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputFeatures*>(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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.script_signature_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000004u; + if (_impl_.metadata_signature_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.features_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::OutputFeatures*>(_impl_.features_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputFeatures*>(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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.range_proof_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000004u; + if (_impl_.metadata_signature_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.sidechain_feature_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.body_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::AggregateBody*>(_impl_.body_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::AggregateBody*>(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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.features_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::OutputFeatures*>(_impl_.features_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputFeatures*>(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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.metadata_signature_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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/transaction.proto b/external/src/Tari/proto/gRPC/transaction.proto new file mode 100644 index 0000000..8133e70 --- /dev/null +++ b/external/src/Tari/proto/gRPC/transaction.proto @@ -0,0 +1,182 @@ +// Copyright 2020. The Tari Project +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// 2. 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. +// +// 3. Neither the name of the copyright holder 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 HOLDER 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 tari.rpc; + +import "types.proto"; +import "sidechain_types.proto"; + +// 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. +message TransactionKernel { + // Options for a kernel's structure or use + uint32 features = 1; + /// Fee originally included in the transaction this proof is for (in MicroMinotari) + uint64 fee = 2; + // This kernel is not valid earlier than lock_height blocks + // The max lock_height of all *inputs* to this transaction + uint64 lock_height = 3; + // 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. + bytes excess = 6; + // The signature proving the excess is a valid public key, which signs + // the transaction fee. + Signature excess_sig = 7; + // The hash of the kernel, as it appears in the MMR + bytes hash = 8; + // Version + uint32 version = 9; + // Optional burned commitment + bytes burn_commitment = 10; +} + +// A transaction input. +// +// Primarily a reference to an output being spent by the transaction. +message TransactionInput { + // The features of the output being spent. We will check maturity for all outputs. + OutputFeatures features = 1; + // The commitment referencing the output being spent. + bytes commitment = 2; + // Hash of the input, as it appears in the MMR + bytes hash = 3; + // The serialised script + bytes script = 4; + // The script input data, if any + bytes input_data = 5; + // A signature with k_s, signing the script, input data, and mined height + ComAndPubSignature script_signature = 7; + // The offset public key, K_O + bytes sender_offset_public_key = 8; + // The hash of the output this input is spending + bytes output_hash = 9; + // Covenant + bytes covenant = 10; + // Version + uint32 version = 11; + // The encrypted data + bytes encrypted_data = 12; + // The minimum value of the commitment that is proven by the range proof (in MicroMinotari) + uint64 minimum_value_promise = 13; + // The metadata signature for output this input is spending + ComAndPubSignature metadata_signature = 14; + // The rangeproof hash for output this input is spending + bytes rangeproof_hash = 15; +} + +// 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. +message TransactionOutput { + // Options for an output's structure or use + OutputFeatures features = 1; + // The homomorphic commitment representing the output amount + bytes commitment = 2; + // A proof that the commitment is in the right range + RangeProof range_proof = 3; + // The hash of the output, as it appears in the MMR + bytes hash = 4; + // Tari script serialised script + bytes script = 5; + // Tari script offset public key, K_O + bytes sender_offset_public_key = 6; + // Metadata signature with the homomorphic commitment private values (amount and blinding factor) and the sender + // offset private key + ComAndPubSignature metadata_signature = 7; + // Covenant + bytes covenant = 8; + // Version + uint32 version = 9; + // Encrypted Pedersen commitment openings (value and mask) for the output + bytes encrypted_data = 10; + // The minimum value of the commitment that is proven by the range proof (in MicroMinotari) + uint64 minimum_value_promise = 11; +} + +// Options for UTXOs +message OutputFeatures { + // Version + uint32 version = 1; + // The type of output, eg Coinbase, all of which have different consensus rules + uint32 output_type = 2; + // 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 maturity = 3; + // Additional arbitrary info in coinbase transactions supplied by miners + bytes coinbase_extra = 4; + // Features that are specific to a side chain + SideChainFeature sidechain_feature = 5; + // The type of range proof used in the output + uint32 range_proof_type = 6; +} + +// 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 +message AggregateBody { + // List of inputs spent by the transaction. + repeated TransactionInput inputs = 1; + // List of outputs the transaction produces. + repeated TransactionOutput outputs = 2; + // Kernels contain the excesses and their signatures for transaction + repeated TransactionKernel kernels = 3; +} + +// A transaction which consists of a kernel offset and an aggregate body made up of inputs, outputs and kernels. +message Transaction { + bytes offset = 1; + AggregateBody body = 2; + bytes script_offset = 3; +} + +message UnblindedOutput { + // Value of the output + uint64 value = 1; + // Spending key of the output + bytes spending_key = 2; + // Options for an output's structure or use + OutputFeatures features = 3; + // Tari script serialised script + bytes script = 4; + // Tari script input data for spending + bytes input_data = 5; + // Tari script private key + bytes script_private_key = 7; + // Tari script offset pubkey, K_O + bytes sender_offset_public_key = 8; + // UTXO signature with the script offset private key, k_O + ComAndPubSignature metadata_signature = 9; + // The minimum height the script allows this output to be spent + uint64 script_lock_height = 10; + // Covenant + bytes covenant = 11; + // Encrypted data + bytes encrypted_data = 12; + // The minimum value of the commitment that is proven by the range proof (in MicroMinotari) + uint64 minimum_value_promise = 13; +} + diff --git a/external/src/Tari/proto/gRPC/types.pb.cc b/external/src/Tari/proto/gRPC/types.pb.cc new file mode 100644 index 0000000..81e3f9a --- /dev/null +++ b/external/src/Tari/proto/gRPC/types.pb.cc @@ -0,0 +1,4010 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: types.proto + +#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[] PROTOBUF_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[] PROTOBUF_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[] PROTOBUF_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; +} +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 +static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_types_2eproto(&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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData Range::_class_data_ = { + Range::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* Range::GetClassData() const { + return &_class_data_; +} + +void Range::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_min(from._internal_min()); + } + if (from._internal_max() != 0) { + _this->_internal_set_max(from._internal_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; +} + +::_pbi::CachedSize* Range::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData BlockHeight::_class_data_ = { + BlockHeight::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* BlockHeight::GetClassData() const { + return &_class_data_; +} + +void BlockHeight::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_block_height(from._internal_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; +} + +::_pbi::CachedSize* BlockHeight::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData Signature::_class_data_ = { + Signature::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* Signature::GetClassData() const { + return &_class_data_; +} + +void Signature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* Signature::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData ComAndPubSignature::_class_data_ = { + ComAndPubSignature::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ComAndPubSignature::GetClassData() const { + return &_class_data_; +} + +void ComAndPubSignature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* ComAndPubSignature::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + {::_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_); +} + +const ::google::protobuf::Message::ClassData CommitmentSignature::_class_data_ = { + CommitmentSignature::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* CommitmentSignature::GetClassData() const { + return &_class_data_; +} + +void CommitmentSignature::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* CommitmentSignature::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData PowAlgorithmConstants::_class_data_ = { + PowAlgorithmConstants::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* PowAlgorithmConstants::GetClassData() const { + return &_class_data_; +} + +void PowAlgorithmConstants::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_min_difficulty(from._internal_min_difficulty()); + } + if (from._internal_max_difficulty() != 0) { + _this->_internal_set_max_difficulty(from._internal_max_difficulty()); + } + if (from._internal_target_time() != 0) { + _this->_internal_set_target_time(from._internal_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; +} + +::_pbi::CachedSize* PowAlgorithmConstants::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData WeightParams::_class_data_ = { + WeightParams::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* WeightParams::GetClassData() const { + return &_class_data_; +} + +void WeightParams::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_kernel_weight(from._internal_kernel_weight()); + } + if (from._internal_input_weight() != 0) { + _this->_internal_set_input_weight(from._internal_input_weight()); + } + if (from._internal_output_weight() != 0) { + _this->_internal_set_output_weight(from._internal_output_weight()); + } + if (from._internal_features_and_scripts_bytes_per_gram() != 0) { + _this->_internal_set_features_and_scripts_bytes_per_gram(from._internal_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; +} + +::_pbi::CachedSize* WeightParams::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Range& outputs(const OutputsVersion* msg); + static void set_has_outputs(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::Range& features(const OutputsVersion* msg); + static void set_has_features(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } +}; + +const ::tari::rpc::Range& OutputsVersion::_Internal::outputs(const OutputsVersion* msg) { + return *msg->_impl_.outputs_; +} +const ::tari::rpc::Range& OutputsVersion::_Internal::features(const OutputsVersion* msg) { + return *msg->_impl_.features_; +} +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) + ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.outputs_) + : nullptr; + _impl_.features_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + // .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, _Internal::outputs(this), + _Internal::outputs(this).GetCachedSize(), target, stream); + } + + // .tari.rpc.Range features = 2; + if (cached_has_bits & 0x00000002u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 2, _Internal::features(this), + _Internal::features(this).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_); +} + +const ::google::protobuf::Message::ClassData OutputsVersion::_class_data_ = { + OutputsVersion::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* OutputsVersion::GetClassData() const { + return &_class_data_; +} + +void OutputsVersion::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_outputs()->::tari::rpc::Range::MergeFrom( + from._internal_outputs()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_features()->::tari::rpc::Range::MergeFrom( + from._internal_features()); + } + } + _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; +} + +::_pbi::CachedSize* OutputsVersion::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData PermittedRangeProofs::_class_data_ = { + PermittedRangeProofs::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* PermittedRangeProofs::GetClassData() const { + return &_class_data_; +} + +void PermittedRangeProofs::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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->_internal_set_output_type(from._internal_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; +} + +::_pbi::CachedSize* PermittedRangeProofs::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_(); +} + +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 + }, {{ + // 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_); +} + +const ::google::protobuf::Message::ClassData RangeProof::_class_data_ = { + RangeProof::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* RangeProof::GetClassData() const { + return &_class_data_; +} + +void RangeProof::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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; +} + +::_pbi::CachedSize* RangeProof::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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_); + static const ::tari::rpc::Range& valid_blockchain_version_range(const ConsensusConstants* msg); + static void set_has_valid_blockchain_version_range(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static const ::tari::rpc::WeightParams& transaction_weight(const ConsensusConstants* msg); + static void set_has_transaction_weight(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static const ::tari::rpc::Range& input_version_range(const ConsensusConstants* msg); + static void set_has_input_version_range(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static const ::tari::rpc::OutputsVersion& output_version_range(const ConsensusConstants* msg); + static void set_has_output_version_range(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static const ::tari::rpc::Range& kernel_version_range(const ConsensusConstants* msg); + static void set_has_kernel_version_range(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } +}; + +const ::tari::rpc::Range& ConsensusConstants::_Internal::valid_blockchain_version_range(const ConsensusConstants* msg) { + return *msg->_impl_.valid_blockchain_version_range_; +} +const ::tari::rpc::WeightParams& ConsensusConstants::_Internal::transaction_weight(const ConsensusConstants* msg) { + return *msg->_impl_.transaction_weight_; +} +const ::tari::rpc::Range& ConsensusConstants::_Internal::input_version_range(const ConsensusConstants* msg) { + return *msg->_impl_.input_version_range_; +} +const ::tari::rpc::OutputsVersion& ConsensusConstants::_Internal::output_version_range(const ConsensusConstants* msg) { + return *msg->_impl_.output_version_range_; +} +const ::tari::rpc::Range& ConsensusConstants::_Internal::kernel_version_range(const ConsensusConstants* msg) { + return *msg->_impl_.kernel_version_range_; +} +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) + ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.valid_blockchain_version_range_) + : nullptr; + _impl_.transaction_weight_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::tari::rpc::WeightParams>(arena, *from._impl_.transaction_weight_) + : nullptr; + _impl_.input_version_range_ = (cached_has_bits & 0x00000004u) + ? CreateMaybeMessage<::tari::rpc::Range>(arena, *from._impl_.input_version_range_) + : nullptr; + _impl_.output_version_range_ = (cached_has_bits & 0x00000008u) + ? CreateMaybeMessage<::tari::rpc::OutputsVersion>(arena, *from._impl_.output_version_range_) + : nullptr; + _impl_.kernel_version_range_ = (cached_has_bits & 0x00000010u) + ? CreateMaybeMessage<::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_(); +} + +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 + }, {{ + {::_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_)>( + 1, 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, _Internal::valid_blockchain_version_range(this), + _Internal::valid_blockchain_version_range(this).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, _Internal::transaction_weight(this), + _Internal::transaction_weight(this).GetCachedSize(), target, stream); + } + + // .tari.rpc.Range input_version_range = 26; + if (cached_has_bits & 0x00000004u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 26, _Internal::input_version_range(this), + _Internal::input_version_range(this).GetCachedSize(), target, stream); + } + + // .tari.rpc.OutputsVersion output_version_range = 27; + if (cached_has_bits & 0x00000008u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 27, _Internal::output_version_range(this), + _Internal::output_version_range(this).GetCachedSize(), target, stream); + } + + // .tari.rpc.Range kernel_version_range = 28; + if (cached_has_bits & 0x00000010u) { + target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( + 28, _Internal::kernel_version_range(this), + _Internal::kernel_version_range(this).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_); +} + +const ::google::protobuf::Message::ClassData ConsensusConstants::_class_data_ = { + ConsensusConstants::MergeImpl, + nullptr, // OnDemandRegisterArenaDtor +}; +const ::google::protobuf::Message::ClassData* ConsensusConstants::GetClassData() const { + return &_class_data_; +} + +void ConsensusConstants::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& 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.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) { + _this->_internal_mutable_valid_blockchain_version_range()->::tari::rpc::Range::MergeFrom( + from._internal_valid_blockchain_version_range()); + } + if (cached_has_bits & 0x00000002u) { + _this->_internal_mutable_transaction_weight()->::tari::rpc::WeightParams::MergeFrom( + from._internal_transaction_weight()); + } + if (cached_has_bits & 0x00000004u) { + _this->_internal_mutable_input_version_range()->::tari::rpc::Range::MergeFrom( + from._internal_input_version_range()); + } + if (cached_has_bits & 0x00000008u) { + _this->_internal_mutable_output_version_range()->::tari::rpc::OutputsVersion::MergeFrom( + from._internal_output_version_range()); + } + if (cached_has_bits & 0x00000010u) { + _this->_internal_mutable_kernel_version_range()->::tari::rpc::Range::MergeFrom( + from._internal_kernel_version_range()); + } + } + if (from._internal_coinbase_min_maturity() != 0) { + _this->_internal_set_coinbase_min_maturity(from._internal_coinbase_min_maturity()); + } + if (from._internal_future_time_limit() != 0) { + _this->_internal_set_future_time_limit(from._internal_future_time_limit()); + } + if (from._internal_difficulty_block_window() != 0) { + _this->_internal_set_difficulty_block_window(from._internal_difficulty_block_window()); + } + if (from._internal_max_block_transaction_weight() != 0) { + _this->_internal_set_max_block_transaction_weight(from._internal_max_block_transaction_weight()); + } + if (from._internal_pow_algo_count() != 0) { + _this->_internal_set_pow_algo_count(from._internal_pow_algo_count()); + } + if (from._internal_median_timestamp_count() != 0) { + _this->_internal_set_median_timestamp_count(from._internal_median_timestamp_count()); + } + if (from._internal_emission_initial() != 0) { + _this->_internal_set_emission_initial(from._internal_emission_initial()); + } + if (from._internal_emission_tail() != 0) { + _this->_internal_set_emission_tail(from._internal_emission_tail()); + } + if (from._internal_min_sha3x_pow_difficulty() != 0) { + _this->_internal_set_min_sha3x_pow_difficulty(from._internal_min_sha3x_pow_difficulty()); + } + if (from._internal_block_weight_inputs() != 0) { + _this->_internal_set_block_weight_inputs(from._internal_block_weight_inputs()); + } + if (from._internal_block_weight_outputs() != 0) { + _this->_internal_set_block_weight_outputs(from._internal_block_weight_outputs()); + } + if (from._internal_block_weight_kernels() != 0) { + _this->_internal_set_block_weight_kernels(from._internal_block_weight_kernels()); + } + if (from._internal_faucet_value() != 0) { + _this->_internal_set_faucet_value(from._internal_faucet_value()); + } + if (from._internal_max_script_byte_size() != 0) { + _this->_internal_set_max_script_byte_size(from._internal_max_script_byte_size()); + } + if (from._internal_validator_node_validity_period() != 0) { + _this->_internal_set_validator_node_validity_period(from._internal_validator_node_validity_period()); + } + if (from._internal_effective_from_height() != 0) { + _this->_internal_set_effective_from_height(from._internal_effective_from_height()); + } + if (from._internal_max_randomx_seed_height() != 0) { + _this->_internal_set_max_randomx_seed_height(from._internal_max_randomx_seed_height()); + } + if (from._internal_epoch_length() != 0) { + _this->_internal_set_epoch_length(from._internal_epoch_length()); + } + if (from._internal_validator_node_registration_min_deposit_amount() != 0) { + _this->_internal_set_validator_node_registration_min_deposit_amount(from._internal_validator_node_registration_min_deposit_amount()); + } + if (from._internal_validator_node_registration_min_lock_height() != 0) { + _this->_internal_set_validator_node_registration_min_lock_height(from._internal_validator_node_registration_min_lock_height()); + } + if (from._internal_validator_node_registration_shuffle_interval_epoch() != 0) { + _this->_internal_set_validator_node_registration_shuffle_interval_epoch(from._internal_validator_node_registration_shuffle_interval_epoch()); + } + if (from._internal_blockchain_version() != 0) { + _this->_internal_set_blockchain_version(from._internal_blockchain_version()); + } + _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; +} + +::_pbi::CachedSize* ConsensusConstants::AccessCachedSize() const { + return &_impl_._cached_size_; +} +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) +#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 new file mode 100644 index 0000000..f60bf6b --- /dev/null +++ b/external/src/Tari/proto/gRPC/types.pb.h @@ -0,0 +1,5282 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: types.proto +// Protobuf C++ Version: 4.25.2 + +#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 < 4025000 +#error "This file was generated by a newer version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please update" +#error "your headers." +#endif // PROTOBUF_VERSION + +#if 4025002 < PROTOBUF_MIN_PROTOC_VERSION +#error "This file was generated by an older version of protoc which is" +#error "incompatible with your Protocol Buffer headers. Please" +#error "regenerate this file with a newer version of protoc." +#endif // PROTOBUF_MIN_PROTOC_VERSION +#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) {} + WeightParams(WeightParams&& from) noexcept + : WeightParams() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + Signature(Signature&& from) noexcept + : Signature() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + RangeProof(RangeProof&& from) noexcept + : RangeProof() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + Range(Range&& from) noexcept + : Range() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + PowAlgorithmConstants(PowAlgorithmConstants&& from) noexcept + : PowAlgorithmConstants() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + PermittedRangeProofs(PermittedRangeProofs&& from) noexcept + : PermittedRangeProofs() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + Empty(Empty&& from) noexcept + : Empty() { + *this = ::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 CreateMaybeMessage(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); + 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) {} + CommitmentSignature(CommitmentSignature&& from) noexcept + : CommitmentSignature() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ComAndPubSignature(ComAndPubSignature&& from) noexcept + : ComAndPubSignature() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + BlockHeight(BlockHeight&& from) noexcept + : BlockHeight() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + OutputsVersion(OutputsVersion&& from) noexcept + : OutputsVersion() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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) {} + ConsensusConstants(ConsensusConstants&& from) noexcept + : ConsensusConstants() { + *this = ::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 CreateMaybeMessage(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::Message& to_msg, const ::google::protobuf::Message& from_msg); + public: + PROTOBUF_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: + ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; + 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); + public: + + static const ClassData _class_data_; + const ::google::protobuf::Message::ClassData*GetClassData() const final; + + ::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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.outputs_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::Range*>(_impl_.outputs_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.features_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::Range*>(_impl_.features_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(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); + _impl_._has_bits_[0] |= 0x00000001u; + if (_impl_.valid_blockchain_version_range_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::Range*>(_impl_.valid_blockchain_version_range_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(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); + _impl_._has_bits_[0] |= 0x00000002u; + if (_impl_.transaction_weight_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::WeightParams*>(_impl_.transaction_weight_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::WeightParams*>(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); + _impl_._has_bits_[0] |= 0x00000004u; + if (_impl_.input_version_range_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::Range*>(_impl_.input_version_range_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(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); + _impl_._has_bits_[0] |= 0x00000008u; + if (_impl_.output_version_range_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::OutputsVersion*>(_impl_.output_version_range_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::OutputsVersion*>(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); + _impl_._has_bits_[0] |= 0x00000010u; + if (_impl_.kernel_version_range_ == nullptr) { + auto* p = CreateMaybeMessage<::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 { + ::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 reinterpret_cast<::tari::rpc::Range*>(_impl_.kernel_version_range_); + } + + if (value != nullptr) { + ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::tari::rpc::Range*>(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/Tari/proto/gRPC/types.proto b/external/src/Tari/proto/gRPC/types.proto new file mode 100644 index 0000000..474e2bc --- /dev/null +++ b/external/src/Tari/proto/gRPC/types.proto @@ -0,0 +1,144 @@ +// Copyright 2020. The Tari Project +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +// following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +// disclaimer. +// +// 2. 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. +// +// 3. Neither the name of the copyright holder 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 HOLDER 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 tari.rpc; + +/// An unsigned range interface to more accurately represent Rust native Range's +message Range { + uint64 min = 1; + uint64 max = 2; +} + +/// An Empty placeholder for endpoints without request parameters +message Empty {} + +/// Define an interface for block height +message BlockHeight { + uint64 block_height = 1; +} + +// Define the explicit Signature implementation for the Minotari base layer. A different signature scheme can be +// employed by redefining this type. +message Signature { + bytes public_nonce = 1; + bytes signature = 2; +} + +// Define the explicit ComAndPubSignature implementation for the Minotari base layer. A different signature scheme can be +// employed by redefining this type. +message ComAndPubSignature { + bytes ephemeral_commitment = 1; + bytes ephemeral_pubkey = 2; + bytes u_a = 3; + bytes u_x = 4; + bytes u_y = 5; +} + +// Define the explicit CommitmentSignature implementation for the Minotari base layer. A different signature scheme can be +// employed by redefining this type +message CommitmentSignature { + bytes public_nonce = 1; + bytes u = 2; + bytes v = 3; +} + +/// PoW Algorithm constants +message PowAlgorithmConstants { + uint64 min_difficulty = 2; + uint64 max_difficulty = 3; + uint64 target_time = 4; +} + +/// Weight params +message WeightParams { + uint64 kernel_weight = 1; + uint64 input_weight = 2; + uint64 output_weight = 3; + uint64 features_and_scripts_bytes_per_gram = 4; +} + +/// Output version +message OutputsVersion { + Range outputs = 1; + Range features = 2; +} + +/// Output types +enum OutputType { + STANDARD = 0; + COINBASE = 1; + BURN = 2; + VALIDATOR_NODE_REGISTRATION = 3; + CODE_TEMPLATE_REGISTRATION = 4; +} + +/// Range proof types +enum RangeProofType { + BULLETPROOF_PLUS = 0; + REVEALED_VALUE = 1; +} + +message PermittedRangeProofs { + OutputType output_type = 1; + repeated RangeProofType range_proof_types = 2; +} + +/// Range proof +message RangeProof { + bytes proof_bytes = 1; +} + +/// Consensus Constants response +message ConsensusConstants { + uint64 coinbase_min_maturity = 1; + uint32 blockchain_version = 2; + uint64 future_time_limit = 3; + uint64 difficulty_block_window = 5; + uint64 max_block_transaction_weight = 7; + uint64 pow_algo_count = 8; + uint64 median_timestamp_count = 9; + uint64 emission_initial = 10; + repeated uint64 emission_decay = 11; + uint64 emission_tail = 12; + uint64 min_sha3x_pow_difficulty = 13; + uint64 block_weight_inputs = 14; + uint64 block_weight_outputs = 15; + uint64 block_weight_kernels = 16; + uint64 faucet_value = 17; + uint64 max_script_byte_size = 18; + uint64 validator_node_validity_period = 19; + uint64 effective_from_height = 20; + Range valid_blockchain_version_range = 21; + uint64 max_randomx_seed_height = 22; + map proof_of_work = 23; + WeightParams transaction_weight = 24; + Range input_version_range = 26; + OutputsVersion output_version_range = 27; + Range kernel_version_range = 28; + repeated OutputType permitted_output_types = 29; + uint64 epoch_length = 30; + uint64 validator_node_registration_min_deposit_amount = 31; + uint64 validator_node_registration_min_lock_height = 32; + uint64 validator_node_registration_shuffle_interval_epoch = 33; + repeated PermittedRangeProofs permitted_range_proof_types = 34; +} diff --git a/external/src/protobuf b/external/src/protobuf new file mode 160000 index 0000000..b052f43 --- /dev/null +++ b/external/src/protobuf @@ -0,0 +1 @@ +Subproject commit b052f432fa7162f5ad946dc7b6c62969e0172610